forked from sin365/AxibugEmuOnline
离开房间
This commit is contained in:
parent
935518a2e1
commit
8d432ddcd4
@ -8,6 +8,7 @@
|
||||
|
||||
OnRoomListAllUpdate,//房间列表全量刷新
|
||||
OnRoomListSingleUpdate,//房间列表中单个更新
|
||||
OnRoomListSingleClose,//房间关闭
|
||||
OnRoomGetRoomScreen,//获取到房间数据
|
||||
|
||||
/// <summary>
|
||||
|
@ -200,8 +200,16 @@ namespace AxibugEmuOnline.Client.Manager
|
||||
{
|
||||
App.log.Debug("单个房间状态更新");
|
||||
Protobuf_Room_Update_RESP msg = ProtoBufHelper.DeSerizlize<Protobuf_Room_Update_RESP>(reqData);
|
||||
AddOrUpdateRoomList(msg.RoomMiniInfo);
|
||||
Eventer.Instance.PostEvent(EEvent.OnRoomListSingleUpdate, msg.RoomMiniInfo.GameRomID);
|
||||
if (msg.UpdateType == 0)
|
||||
{
|
||||
AddOrUpdateRoomList(msg.RoomMiniInfo);
|
||||
Eventer.Instance.PostEvent(EEvent.OnRoomListSingleUpdate, msg.RoomMiniInfo.GameRomID);
|
||||
}
|
||||
else
|
||||
{
|
||||
RemoveRoomList(msg.RoomMiniInfo.GameRomID);
|
||||
Eventer.Instance.PostEvent(EEvent.OnRoomListSingleClose, msg.RoomMiniInfo.GameRomID);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user