diff --git a/AxibugEmuOnline.Server/AxibugEmuOnline.Server.sln b/AxibugEmuOnline.Server/AxibugEmuOnline.Server.sln new file mode 100644 index 0000000..d31fccf --- /dev/null +++ b/AxibugEmuOnline.Server/AxibugEmuOnline.Server.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34511.84 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AxibugEmuOnline.Server", "AxibugEmuOnline.Server\AxibugEmuOnline.Server.csproj", "{38E193D4-3BEC-42D0-9616-53D7AF3937FC}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Lib", "Lib", "{F151804D-CF60-437E-ACE6-F1C04DCECBF8}" + ProjectSection(SolutionItems) = preProject + ..\Lib\Google.Protobuf.dll = ..\Lib\Google.Protobuf.dll + ..\Lib\HaoYueNet.ServerNetwork.dll = ..\Lib\HaoYueNet.ServerNetwork.dll + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {38E193D4-3BEC-42D0-9616-53D7AF3937FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {38E193D4-3BEC-42D0-9616-53D7AF3937FC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {38E193D4-3BEC-42D0-9616-53D7AF3937FC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {38E193D4-3BEC-42D0-9616-53D7AF3937FC}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {705EF8E0-A868-4412-BC48-A7DD735C2DBD} + EndGlobalSection +EndGlobal diff --git a/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Event/EventSystem.cs b/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Event/EventSystem.cs index 7fb3750..b15194d 100644 --- a/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Event/EventSystem.cs +++ b/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Event/EventSystem.cs @@ -111,7 +111,7 @@ namespace AxibugEmuOnline.Server.Event } catch (Exception e) { - ServerManager.g_Log.Error(e.Message); + AppSrv.g_Log.Error(e.Message); } } } @@ -130,7 +130,7 @@ namespace AxibugEmuOnline.Server.Event } catch (Exception e) { - ServerManager.g_Log.Error(e.Message); + AppSrv.g_Log.Error(e.Message); } } } @@ -149,7 +149,7 @@ namespace AxibugEmuOnline.Server.Event } catch (Exception e) { - ServerManager.g_Log.Error(e.Message); + AppSrv.g_Log.Error(e.Message); } } } @@ -168,7 +168,7 @@ namespace AxibugEmuOnline.Server.Event } catch (Exception e) { - ServerManager.g_Log.Error(e.Message + ", method name : " + callback.Method); + AppSrv.g_Log.Error(e.Message + ", method name : " + callback.Method); } } } @@ -188,7 +188,7 @@ namespace AxibugEmuOnline.Server.Event } catch (Exception e) { - ServerManager.g_Log.Error(e.Message); + AppSrv.g_Log.Error(e.Message); } } } diff --git a/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/ServerManager.cs b/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/AppSrv.cs similarity index 89% rename from AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/ServerManager.cs rename to AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/AppSrv.cs index 00a36c8..6826346 100644 --- a/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/ServerManager.cs +++ b/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/AppSrv.cs @@ -5,13 +5,14 @@ using System.Net; namespace AxibugEmuOnline.Server { - public static class ServerManager + public static class AppSrv { public static ClientManager g_ClientMgr; public static LogManager g_Log; public static LoginManager g_Login; public static ChatManager g_Chat; public static IOCPNetWork g_SocketMgr; + public static RoomManager g_Room; public static GameManager g_Game; public static void InitServer(int port) @@ -23,6 +24,7 @@ namespace AxibugEmuOnline.Server g_Chat = new ChatManager(); //g_SocketMgr = new IOCPNetWork(1024, 1024); g_SocketMgr = new IOCPNetWork(1024, 4096); + g_Room = new RoomManager(); g_Game = new GameManager(); g_SocketMgr.Init(); diff --git a/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/ChatManager.cs b/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/ChatManager.cs index 0773168..3c14876 100644 --- a/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/ChatManager.cs +++ b/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/ChatManager.cs @@ -14,8 +14,8 @@ namespace AxibugEmuOnline.Server.Manager public void RecvPlayerChatMsg(Socket sk, byte[] reqData) { - ClientInfo _c = ServerManager.g_ClientMgr.GetClientForSocket(sk); - ServerManager.g_Log.Debug("收到聊天消息请求"); + ClientInfo _c = AppSrv.g_ClientMgr.GetClientForSocket(sk); + AppSrv.g_Log.Debug("收到聊天消息请求"); Protobuf_ChatMsg msg = ProtoBufHelper.DeSerizlize(reqData); byte[] respData = ProtoBufHelper.Serizlize(new Protobuf_ChatMsg_RESP() { @@ -23,7 +23,7 @@ namespace AxibugEmuOnline.Server.Manager NickName = _c.Account, Date = Helper.GetNowTimeStamp() }); - ServerManager.g_ClientMgr.ClientSendALL((int)CommandID.CmdChatmsg, (int)ErrorCode.ErrorOk, respData); + AppSrv.g_ClientMgr.ClientSendALL((int)CommandID.CmdChatmsg, (int)ErrorCode.ErrorOk, respData); } } } \ No newline at end of file diff --git a/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/ClientManager.cs b/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/ClientManager.cs index 99ed3c2..06608c9 100644 --- a/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/ClientManager.cs +++ b/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/ClientManager.cs @@ -7,6 +7,7 @@ namespace AxibugEmuOnline.Server.Manager public class ClientInfo { public long UID { get; set; } + public string NickName { get; set; } public string Account { get; set; } public Socket _socket { get; set; } public bool IsOffline { get; set; } = false; @@ -125,13 +126,13 @@ namespace AxibugEmuOnline.Server.Manager ClientList.Remove(client); } - } + } /// /// 清理连接 /// /// - public bool GetClientByUID(long uid,out ClientInfo client) + public bool GetClientByUID(long uid, out ClientInfo client, bool bNeedOnline = false) { lock (ClientList) { @@ -142,6 +143,10 @@ namespace AxibugEmuOnline.Server.Manager } client = _DictUIDClient[uid]; + + + if (bNeedOnline && client.IsOffline) + return false; return true; } } @@ -209,14 +214,14 @@ namespace AxibugEmuOnline.Server.Manager if(SkipUID > -1 && _toclientlist[i].UID == SkipUID) continue; - ServerManager.g_SocketMgr.SendToSocket(_toclientlist[i]._socket, CMDID, ERRCODE, data); + AppSrv.g_SocketMgr.SendToSocket(_toclientlist[i]._socket, CMDID, ERRCODE, data); } } public void ClientSend(Socket _socket, int CMDID, int ERRCODE, byte[] data) { //Console.WriteLine("发送数据 CMDID->"+ CMDID); - ServerManager.g_SocketMgr.SendToSocket(_socket, CMDID, ERRCODE, data); + AppSrv.g_SocketMgr.SendToSocket(_socket, CMDID, ERRCODE, data); } /// @@ -230,7 +235,7 @@ namespace AxibugEmuOnline.Server.Manager { if (_c == null || _c.IsOffline) return; - ServerManager.g_SocketMgr.SendToSocket(_c._socket, CMDID, ERRCODE, data); + AppSrv.g_SocketMgr.SendToSocket(_c._socket, CMDID, ERRCODE, data); } public int GetOnlineClient() diff --git a/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/GameManager.cs b/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/GameManager.cs index 29cc0df..80dd2c6 100644 --- a/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/GameManager.cs +++ b/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/GameManager.cs @@ -17,10 +17,21 @@ namespace AxibugEmuOnline.Server public void OnCmdScreen(Socket sk, byte[] reqData) { - ServerManager.g_Log.Debug($"OnCmdScreen lenght:{reqData.Length}"); - ClientInfo _c = ServerManager.g_ClientMgr.GetClientForSocket(sk); + AppSrv.g_Log.Debug($"OnCmdScreen lenght:{reqData.Length}"); + ClientInfo _c = AppSrv.g_ClientMgr.GetClientForSocket(sk); Protobuf_Screnn_Frame msg = ProtoBufHelper.DeSerizlize(reqData); - ServerManager.g_ClientMgr.ClientSendALL((int)CommandID.CmdScreen, (int)ErrorCode.ErrorOk, reqData, _c.UID); + + Data_RoomData room = AppSrv.g_Room.GetRoomData(msg.RoomID); + + if (room == null) + { + AppSrv.g_ClientMgr.ClientSend(_c,(int)CommandID.CmdScreen, (int)ErrorCode.ErrorRoomNotFound, new byte[1]); + return; + } + + List userlist = room.GetAllPlayerClientList(); + AppSrv.g_ClientMgr.ClientSend(userlist, (int)CommandID.CmdScreen, (int)ErrorCode.ErrorOk, reqData, _c.UID); } + } } \ No newline at end of file diff --git a/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/LoginManager.cs b/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/LoginManager.cs index a7e4fe9..ac4c921 100644 --- a/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/LoginManager.cs +++ b/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/LoginManager.cs @@ -14,9 +14,9 @@ namespace AxibugEmuOnline.Server.Manager public void UserLogin(Socket _socket, byte[] reqData) { - ServerManager.g_Log.Debug("收到新的登录请求"); + AppSrv.g_Log.Debug("收到新的登录请求"); Protobuf_Login msg = ProtoBufHelper.DeSerizlize(reqData); - ClientInfo cinfo = ServerManager.g_ClientMgr.JoinNewClient(msg, _socket); + ClientInfo cinfo = AppSrv.g_ClientMgr.JoinNewClient(msg, _socket); byte[] respData = ProtoBufHelper.Serizlize(new Protobuf_Login_RESP() { diff --git a/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/RoomManager.cs b/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/RoomManager.cs new file mode 100644 index 0000000..b8a6299 --- /dev/null +++ b/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Manager/RoomManager.cs @@ -0,0 +1,370 @@ +using AxibugEmuOnline.Server.Common; +using AxibugEmuOnline.Server.Manager; +using AxibugEmuOnline.Server.NetWork; +using AxibugProtobuf; +using System.Net; +using System.Net.Sockets; +using static System.Runtime.InteropServices.JavaScript.JSType; + +namespace AxibugEmuOnline.Server +{ + + public class RoomManager + { + Dictionary mDictRoom = new Dictionary(); + int RoomIDSeed = 1; + public RoomManager() + { + NetMsg.Instance.RegNetMsgEvent((int)CommandID.CmdRoomList, OnCmdRoomList); + + NetMsg.Instance.RegNetMsgEvent((int)CommandID.CmdRoomCreate, OnCmdRoomCreate); + NetMsg.Instance.RegNetMsgEvent((int)CommandID.CmdRoomJoin, OnCmdRoomJoin); + NetMsg.Instance.RegNetMsgEvent((int)CommandID.CmdRoomLeave, OnCmdRoomLeave); + } + + #region 房间管理 + + int GetNewRoomID() + { + return RoomIDSeed++; + } + + void AddRoom(Data_RoomData data) + { + lock (mDictRoom) + { + if (!mDictRoom.ContainsKey(data.RoomID)) + { + mDictRoom.Add(data.RoomID, data); + } + } + } + + void RemoveRoom(int RoomID) + { + lock(mDictRoom) + { + if (mDictRoom.ContainsKey(RoomID)) + { + mDictRoom.Remove(RoomID); + } + } + } + + public Data_RoomData GetRoomData(int RoomID) + { + if (!mDictRoom.ContainsKey(RoomID)) + return null; + + return mDictRoom[RoomID]; + } + + List GetRoomList() + { + lock (mDictRoom) + { + List temp = new List(); + foreach (var room in mDictRoom) + { + temp.AddRange(mDictRoom.Values); + } + return temp; + } + } + + #endregion + + private Protobuf_Room_MiniInfo GetProtoDataRoom(Data_RoomData room) + { + Protobuf_Room_MiniInfo result = new Protobuf_Room_MiniInfo() + { + GameRomID = room.GameRomID, + RoomID = room.RoomID, + GameRomHash = room.RomHash, + GameState = room.GameState, + PlayerState = room.PlayerState, + ObsUserCount = 0,//TODO + Player1UID = room.Player1_UID, + Player2UID = room.Player2_UID, + }; + + if (result.Player1UID >= 0 && AppSrv.g_ClientMgr.GetClientByUID(result.Player1UID, out ClientInfo _c1)) + result.Player1NickName = _c1.NickName; + + if (result.Player2UID >= 0 && AppSrv.g_ClientMgr.GetClientByUID(result.Player2UID, out ClientInfo _c2)) + result.Player2NickName = _c2.NickName; + + return result; + } + + public void OnCmdRoomList(Socket sk, byte[] reqData) + { + AppSrv.g_Log.Debug($"OnCmdRoomList "); + ClientInfo _c = AppSrv.g_ClientMgr.GetClientForSocket(sk); + Protobuf_Room_List msg = ProtoBufHelper.DeSerizlize(reqData); + + Protobuf_Room_List_RESP resp = new Protobuf_Room_List_RESP(); + List temp = GetRoomList(); + foreach (var room in temp) + resp.RoomMiniInfoList.Add(GetProtoDataRoom(room)); + AppSrv.g_ClientMgr.ClientSend(_c, (int)CommandID.CmdChatmsg, (int)ErrorCode.ErrorOk, ProtoBufHelper.Serizlize(resp)); + } + + /// + /// + /// + /// + /// //[0] 更新或新增 [1] 删除 + public void SendRoomUpdateToAll(int RoomID,int type) + { + Data_RoomData room = GetRoomData(RoomID); + if (room == null) + return; + + Protobuf_Room_Update_RESP resp = new Protobuf_Room_Update_RESP() + { + UpdateType = type, + RoomMiniInfo = GetProtoDataRoom(room) + }; + + AppSrv.g_ClientMgr.ClientSendALL((int)CommandID.CmdRoomListUpdate, (int)ErrorCode.ErrorOk, ProtoBufHelper.Serizlize(resp)); + } + + public void OnCmdRoomCreate(Socket sk, byte[] reqData) + { + AppSrv.g_Log.Debug($"OnCmdRoomCreate "); + ClientInfo _c = AppSrv.g_ClientMgr.GetClientForSocket(sk); + Protobuf_Room_Create msg = ProtoBufHelper.DeSerizlize(reqData); + + Data_RoomData newRoom = new Data_RoomData(); + newRoom.Init(GetNewRoomID(), msg.GameRomID,msg.GameRomHash); + AddRoom(newRoom); + + + //加入 + if (!Join(newRoom.GameRomID, 0, _c, out ErrorCode joinErrcode)) + { + AppSrv.g_ClientMgr.ClientSend(_c, (int)CommandID.CmdRoomCreate, (int)joinErrcode, new byte[1]); + return; + } + + //创建成功下行 + Protobuf_Room_Create_RESP resp = new Protobuf_Room_Create_RESP() + { + RoomMiniInfo = GetProtoDataRoom(newRoom) + }; + AppSrv.g_ClientMgr.ClientSend(_c, (int)CommandID.CmdRoomCreate, (int)ErrorCode.ErrorOk, ProtoBufHelper.Serizlize(resp)); + + } + + public void OnCmdRoomJoin(Socket sk, byte[] reqData) + { + AppSrv.g_Log.Debug($"OnCmdRoomJoin "); + ClientInfo _c = AppSrv.g_ClientMgr.GetClientForSocket(sk); + Protobuf_Room_Join msg = ProtoBufHelper.DeSerizlize(reqData); + + //加入 + if (!Join(msg.RoomID, msg.PlayerNum, _c, out ErrorCode joinErrcode)) + { + AppSrv.g_ClientMgr.ClientSend(_c, (int)CommandID.CmdRoomJoin, (int)joinErrcode, new byte[1]); + return; + } + + Data_RoomData roomData = GetRoomData(msg.RoomID); + + //创建成功下行 + Protobuf_Room_Join_RESP resp = new Protobuf_Room_Join_RESP() + { + RoomMiniInfo = GetProtoDataRoom(roomData) + }; + + AppSrv.g_ClientMgr.ClientSend(_c, (int)CommandID.CmdRoomJoin, (int)ErrorCode.ErrorOk, ProtoBufHelper.Serizlize(resp)); + Protobuf_Room_MyRoom_State_Change(msg.RoomID); + } + public void OnCmdRoomLeave(Socket sk, byte[] reqData) + { + AppSrv.g_Log.Debug($"OnCmdRoomJoin "); + ClientInfo _c = AppSrv.g_ClientMgr.GetClientForSocket(sk); + Protobuf_Room_Leave msg = ProtoBufHelper.DeSerizlize(reqData); + + //加入 + if (!Leave(msg.RoomID, _c, out ErrorCode joinErrcode)) + { + AppSrv.g_ClientMgr.ClientSend(_c, (int)CommandID.CmdRoomLeave, (int)joinErrcode, new byte[1]); + return; + } + + //创建成功下行 + Protobuf_Room_Leave_RESP resp = new Protobuf_Room_Leave_RESP() + { + RoomID = msg.RoomID, + }; + + AppSrv.g_ClientMgr.ClientSend(_c, (int)CommandID.CmdRoomLeave, (int)ErrorCode.ErrorOk, ProtoBufHelper.Serizlize(resp)); + Protobuf_Room_MyRoom_State_Change(msg.RoomID); + } + + /// + /// 广播房间状态变化 + /// + /// + public void Protobuf_Room_MyRoom_State_Change(int RoomID) + { + Data_RoomData room = GetRoomData(RoomID); + if (room == null) + return; + + Protobuf_Room_MyRoom_State_Change resp = new Protobuf_Room_MyRoom_State_Change() + { + RoomMiniInfo = GetProtoDataRoom(room) + }; + + List userlist = room.GetAllPlayerClientList(); + + foreach(ClientInfo _c in userlist) + { + AppSrv.g_ClientMgr.ClientSend(_c,(int)CommandID.CmdRoomMyRoomStateChanged, (int)ErrorCode.ErrorOk, ProtoBufHelper.Serizlize(resp)); + } + } + + #region 房间内逻辑 + /// + /// 进入房间 + /// + /// + /// + /// + /// + /// + bool Join(int RoomID,int PlayerNum,ClientInfo _c,out ErrorCode errcode) + { + Data_RoomData room = GetRoomData(RoomID); + if (room == null) + { + errcode = ErrorCode.ErrorRoomNotFound; + return false; + } + //玩家1 + if (PlayerNum == 0) + { + if (room.PlayerState != RoomPlayerState.NonePlayerState) + { + errcode = ErrorCode.ErrorRoomSlotReadlyHadPlayer; + return false; + } + room.Player1_UID = _c.UID; + } + //其他玩家 + else + { + if (room.PlayerState != RoomPlayerState.OnlyP1) + { + errcode = ErrorCode.ErrorRoomSlotReadlyHadPlayer; + return false; + } + room.Player2_UID = _c.UID; + } + + //广播房间 + SendRoomUpdateToAll(RoomID, 0); + errcode = ErrorCode.ErrorOk; + return true; + } + + /// + /// 离开房间 + /// + /// + /// + /// + /// + bool Leave(int RoomID, ClientInfo _c, out ErrorCode errcode) + { + Data_RoomData room = GetRoomData(RoomID); + if (room == null) + { + errcode = ErrorCode.ErrorRoomNotFound; + return false; + } + + if (room.Player1_UID == _c.UID) + room.Player1_UID = -1; + if (room.Player2_UID == _c.UID) + room.Player2_UID = -1; + + if (room.PlayerState == RoomPlayerState.NonePlayerState) + { + SendRoomUpdateToAll(RoomID, 1); + RemoveRoom(RoomID); + } + else + { + //广播房间变化 + SendRoomUpdateToAll(RoomID, 0); + } + errcode = ErrorCode.ErrorOk; + return true; + } + #endregion + } + + public class Data_RoomData + { + public int RoomID; + public int GameRomID; + public string RomHash; + public long Player1_UID; + public long Player2_UID; + public RoomPlayerState PlayerState => getPlayerState(); + public RoomGameState GameState; + + public void Init(int roomID,int gameRomID,string roomHash) + { + RoomID = roomID; + GameRomID = gameRomID; + RomHash = roomHash; + Player1_UID = -1; + Player2_UID = -1; + GameState = RoomGameState.NoneGameState; + } + + RoomPlayerState getPlayerState() + { + if (Player1_UID < 0 && Player2_UID < 0) + return RoomPlayerState.NonePlayerState; + + if (Player1_UID < 0) + return RoomPlayerState.OnlyP2; + + if (Player2_UID < 0) + return RoomPlayerState.OnlyP1; + + return RoomPlayerState.BothOnline; + } + + public List GetAllPlayerUIDs() + { + List list = new List(); + if (Player1_UID > 0) list.Add(Player1_UID); + if (Player2_UID > 0) list.Add(Player2_UID); + return list; + } + + public List GetAllPlayerClientList() + { + List list = new List(); + + List Uids = GetAllPlayerUIDs(); + + foreach (long uid in Uids) + { + if (!AppSrv.g_ClientMgr.GetClientByUID(uid, out ClientInfo _c,true)) + continue; + + list.Add(_c); + } + + return list; + } + } +} \ No newline at end of file diff --git a/AxibugEmuOnline.Server/AxibugEmuOnline.Server/NetWork/IOCPNetWork.cs b/AxibugEmuOnline.Server/AxibugEmuOnline.Server/NetWork/IOCPNetWork.cs index 94b2722..b539280 100644 --- a/AxibugEmuOnline.Server/AxibugEmuOnline.Server/NetWork/IOCPNetWork.cs +++ b/AxibugEmuOnline.Server/AxibugEmuOnline.Server/NetWork/IOCPNetWork.cs @@ -32,7 +32,7 @@ namespace AxibugEmuOnline.Server.NetWork public void DataCallBack(Socket sk, int CMDID, byte[] data) { - //ServerManager.g_Log.Debug("收到消息 CMDID =>" + CMDID + " 数据长度=>" + data.Length); + //AppSrv.g_Log.Debug("收到消息 CMDID =>" + CMDID + " 数据长度=>" + data.Length); try { //抛出网络数据 @@ -51,12 +51,12 @@ namespace AxibugEmuOnline.Server.NetWork public void OnDisconnect(AsyncUserToken token) { Console.WriteLine("断开连接"); - ServerManager.g_ClientMgr.SetClientOfflineForSocket(token.Socket); + AppSrv.g_ClientMgr.SetClientOfflineForSocket(token.Socket); } public void OnShowNetLog(string msg) { - ServerManager.g_Log.Debug(msg); + AppSrv.g_Log.Debug(msg); } } diff --git a/AxibugEmuOnline.Server/AxibugEmuOnline.Server/NetWork/NetMsg.cs b/AxibugEmuOnline.Server/AxibugEmuOnline.Server/NetWork/NetMsg.cs index 3bd94fa..dec88b1 100644 --- a/AxibugEmuOnline.Server/AxibugEmuOnline.Server/NetWork/NetMsg.cs +++ b/AxibugEmuOnline.Server/AxibugEmuOnline.Server/NetWork/NetMsg.cs @@ -68,7 +68,7 @@ namespace AxibugEmuOnline.Server.NetWork } catch (Exception e) { - ServerManager.g_Log.Error(e.Message); + AppSrv.g_Log.Error(e.Message); } } } diff --git a/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Program.cs b/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Program.cs index 6d4a122..ea7bae9 100644 --- a/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Program.cs +++ b/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Program.cs @@ -7,7 +7,7 @@ { Console.ForegroundColor = ConsoleColor.Green; Console.Title = Title; - ServerManager.InitServer(10492); + AppSrv.InitServer(10492); while (true) { Console.ReadLine(); diff --git a/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Protobuf/ProtobufAxibugEmuOnline.cs b/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Protobuf/ProtobufAxibugEmuOnline.cs index b23e13b..ea11a55 100644 --- a/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Protobuf/ProtobufAxibugEmuOnline.cs +++ b/AxibugEmuOnline.Server/AxibugEmuOnline.Server/Protobuf/ProtobufAxibugEmuOnline.cs @@ -34,23 +34,65 @@ namespace AxibugProtobuf { "dG9idWZfTG9naW5fUkVTUBINCgVUb2tlbhgBIAEoCRIVCg1MYXN0TG9naW5E", "YXRlGAIgASgJEg8KB1JlZ0RhdGUYAyABKAkSMQoGU3RhdHVzGAQgASgOMiEu", "QXhpYnVnUHJvdG9idWYuTG9naW5SZXN1bHRTdGF0dXMSCwoDVUlEGAUgASgD", - "IjsKFVByb3RvYnVmX1NjcmVubl9GcmFtZRIPCgdGcmFtZUlEGAEgASgFEhEK", - "CVJhd0JpdG1hcBgCIAEoDCpOCglDb21tYW5kSUQSDgoKQ01EX0RFRkFVTBAA", - "Eg4KCUNNRF9MT0dJThDRDxIQCgtDTURfQ0hBVE1TRxChHxIPCgpDTURfU2Ny", - "ZWVuEIknKisKCUVycm9yQ29kZRIQCgxFUlJPUl9ERUZBVUwQABIMCghFUlJP", - "Ul9PSxABKhwKCUxvZ2luVHlwZRIPCgtCYXNlRGVmYXVsdBAAKksKCkRldmlj", - "ZVR5cGUSFgoSRGV2aWNlVHlwZV9EZWZhdWx0EAASBgoCUEMQARILCgdBbmRy", - "b2lkEAISBwoDSU9TEAMSBwoDUFNWEAQqTgoRTG9naW5SZXN1bHRTdGF0dXMS", - "IQodTG9naW5SZXN1bHRTdGF0dXNfQmFzZURlZmF1bHQQABIGCgJPSxABEg4K", - "CkFjY291bnRFcnIQAkICSAFiBnByb3RvMw==")); + "IhQKElByb3RvYnVmX1Jvb21fTGlzdCJbChdQcm90b2J1Zl9Sb29tX0xpc3Rf", + "UkVTUBJAChBSb29tTWluaUluZm9MaXN0GAEgAygLMiYuQXhpYnVnUHJvdG9i", + "dWYuUHJvdG9idWZfUm9vbV9NaW5pSW5mbyKsAgoWUHJvdG9idWZfUm9vbV9N", + "aW5pSW5mbxIOCgZSb29tSUQYASABKAUSEQoJR2FtZVJvbUlEGAIgASgFEhMK", + "C0dhbWVSb21IYXNoGAMgASgJEjQKC1BsYXllclN0YXRlGAQgASgOMh8uQXhp", + "YnVnUHJvdG9idWYuUm9vbVBsYXllclN0YXRlEjAKCUdhbWVTdGF0ZRgFIAEo", + "DjIdLkF4aWJ1Z1Byb3RvYnVmLlJvb21HYW1lU3RhdGUSFAoMT2JzVXNlckNv", + "dW50GAYgASgFEhMKC1BsYXllcjFfVUlEGAcgASgDEhgKEFBsYXllcjFfTmlj", + "a05hbWUYCCABKAkSEwoLUGxheWVyMl9VSUQYCSABKAMSGAoQUGxheWVyMl9O", + "aWNrTmFtZRgKIAEoCSJtChlQcm90b2J1Zl9Sb29tX1VwZGF0ZV9SRVNQEhIK", + "ClVwZGF0ZVR5cGUYASABKAUSPAoMUm9vbU1pbmlJbmZvGAIgASgLMiYuQXhp", + "YnVnUHJvdG9idWYuUHJvdG9idWZfUm9vbV9NaW5pSW5mbyJLChVQcm90b2J1", + "Zl9TY3Jlbm5fRnJhbWUSDgoGUm9vbUlEGAEgASgFEg8KB0ZyYW1lSUQYAiAB", + "KAUSEQoJUmF3Qml0bWFwGAMgASgMIj4KFFByb3RvYnVmX1Jvb21fQ3JlYXRl", + "EhEKCUdhbWVSb21JRBgBIAEoBRITCgtHYW1lUm9tSGFzaBgCIAEoCSJZChlQ", + "cm90b2J1Zl9Sb29tX0NyZWF0ZV9SRVNQEjwKDFJvb21NaW5pSW5mbxgBIAEo", + "CzImLkF4aWJ1Z1Byb3RvYnVmLlByb3RvYnVmX1Jvb21fTWluaUluZm8iNwoS", + "UHJvdG9idWZfUm9vbV9Kb2luEg4KBlJvb21JRBgBIAEoBRIRCglQbGF5ZXJO", + "dW0YAiABKAUiVwoXUHJvdG9idWZfUm9vbV9Kb2luX1JFU1ASPAoMUm9vbU1p", + "bmlJbmZvGAEgASgLMiYuQXhpYnVnUHJvdG9idWYuUHJvdG9idWZfUm9vbV9N", + "aW5pSW5mbyIlChNQcm90b2J1Zl9Sb29tX0xlYXZlEg4KBlJvb21JRBgBIAEo", + "BSIqChhQcm90b2J1Zl9Sb29tX0xlYXZlX1JFU1ASDgoGUm9vbUlEGAEgASgF", + "ImEKIVByb3RvYnVmX1Jvb21fTXlSb29tX1N0YXRlX0NoYW5nZRI8CgxSb29t", + "TWluaUluZm8YASABKAsyJi5BeGlidWdQcm90b2J1Zi5Qcm90b2J1Zl9Sb29t", + "X01pbmlJbmZvKuABCglDb21tYW5kSUQSDgoKQ01EX0RFRkFVTBAAEg4KCUNN", + "RF9MT0dJThDRDxIQCgtDTURfQ0hBVE1TRxChHxISCg1DTURfUm9vbV9MaXN0", + "EIknEhkKFENNRF9Sb29tX0xpc3RfVXBkYXRlEIonEhQKD0NNRF9Sb29tX0Ny", + "ZWF0ZRDtJxISCg1DTURfUm9vbV9Kb2luEPEnEhMKDkNNRF9Sb29tX0xlYXZl", + "EPInEiIKHUNNRF9Sb29tX015Um9vbV9TdGF0ZV9DaGFuZ2VkEPYnEg8KCkNN", + "RF9TY3JlZW4Q8S4qbAoJRXJyb3JDb2RlEhAKDEVSUk9SX0RFRkFVTBAAEgwK", + "CEVSUk9SX09LEAESGAoURVJST1JfUk9PTV9OT1RfRk9VTkQQChIlCiFFUlJP", + "Ul9ST09NX1NMT1RfUkVBRExZX0hBRF9QTEFZRVIQCyocCglMb2dpblR5cGUS", + "DwoLQmFzZURlZmF1bHQQACpLCgpEZXZpY2VUeXBlEhYKEkRldmljZVR5cGVf", + "RGVmYXVsdBAAEgYKAlBDEAESCwoHQW5kcm9pZBACEgcKA0lPUxADEgcKA1BT", + "VhAEKk8KD1Jvb21QbGF5ZXJTdGF0ZRIUChBOb25lX1BsYXllclN0YXRlEAAS", + "CgoGT25seVAxEAESCgoGT25seVAyEAISDgoKQm90aE9ubGluZRADKjoKDVJv", + "b21HYW1lU3RhdGUSEgoOTm9uZV9HYW1lU3RhdGUQABIKCgZJbkdhbWUQARIJ", + "CgVQYXVzZRACKk4KEUxvZ2luUmVzdWx0U3RhdHVzEiEKHUxvZ2luUmVzdWx0", + "U3RhdHVzX0Jhc2VEZWZhdWx0EAASBgoCT0sQARIOCgpBY2NvdW50RXJyEAJC", + "AkgBYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::AxibugProtobuf.CommandID), typeof(global::AxibugProtobuf.ErrorCode), typeof(global::AxibugProtobuf.LoginType), typeof(global::AxibugProtobuf.DeviceType), typeof(global::AxibugProtobuf.LoginResultStatus), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::AxibugProtobuf.CommandID), typeof(global::AxibugProtobuf.ErrorCode), typeof(global::AxibugProtobuf.LoginType), typeof(global::AxibugProtobuf.DeviceType), typeof(global::AxibugProtobuf.RoomPlayerState), typeof(global::AxibugProtobuf.RoomGameState), typeof(global::AxibugProtobuf.LoginResultStatus), }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_ChatMsg), global::AxibugProtobuf.Protobuf_ChatMsg.Parser, new[]{ "ChatMsg" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_ChatMsg_RESP), global::AxibugProtobuf.Protobuf_ChatMsg_RESP.Parser, new[]{ "NickName", "ChatMsg", "Date" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Login), global::AxibugProtobuf.Protobuf_Login.Parser, new[]{ "LoginType", "DeviceType", "Account", "Password" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Login_RESP), global::AxibugProtobuf.Protobuf_Login_RESP.Parser, new[]{ "Token", "LastLoginDate", "RegDate", "Status", "UID" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Screnn_Frame), global::AxibugProtobuf.Protobuf_Screnn_Frame.Parser, new[]{ "FrameID", "RawBitmap" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_List), global::AxibugProtobuf.Protobuf_Room_List.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_List_RESP), global::AxibugProtobuf.Protobuf_Room_List_RESP.Parser, new[]{ "RoomMiniInfoList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_MiniInfo), global::AxibugProtobuf.Protobuf_Room_MiniInfo.Parser, new[]{ "RoomID", "GameRomID", "GameRomHash", "PlayerState", "GameState", "ObsUserCount", "Player1UID", "Player1NickName", "Player2UID", "Player2NickName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_Update_RESP), global::AxibugProtobuf.Protobuf_Room_Update_RESP.Parser, new[]{ "UpdateType", "RoomMiniInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Screnn_Frame), global::AxibugProtobuf.Protobuf_Screnn_Frame.Parser, new[]{ "RoomID", "FrameID", "RawBitmap" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_Create), global::AxibugProtobuf.Protobuf_Room_Create.Parser, new[]{ "GameRomID", "GameRomHash" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_Create_RESP), global::AxibugProtobuf.Protobuf_Room_Create_RESP.Parser, new[]{ "RoomMiniInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_Join), global::AxibugProtobuf.Protobuf_Room_Join.Parser, new[]{ "RoomID", "PlayerNum" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_Join_RESP), global::AxibugProtobuf.Protobuf_Room_Join_RESP.Parser, new[]{ "RoomMiniInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_Leave), global::AxibugProtobuf.Protobuf_Room_Leave.Parser, new[]{ "RoomID" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_Leave_RESP), global::AxibugProtobuf.Protobuf_Room_Leave_RESP.Parser, new[]{ "RoomID" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_MyRoom_State_Change), global::AxibugProtobuf.Protobuf_Room_MyRoom_State_Change.Parser, new[]{ "RoomMiniInfo" }, null, null, null, null) })); } #endregion @@ -67,13 +109,37 @@ namespace AxibugProtobuf { /// [pbr::OriginalName("CMD_LOGIN")] CmdLogin = 2001, /// - ///广播信息上行 | 下行 对应 Protobuf_ChatMsg | Protobuf_ChatMsg_RESP + ///广播聊天信息上行 | 下行 对应 Protobuf_ChatMsg | Protobuf_ChatMsg_RESP /// [pbr::OriginalName("CMD_CHATMSG")] CmdChatmsg = 4001, /// - ///画面同步 | 同步广播 对应 Protobuf_Screnn_Frame + ///房间列表相关 /// - [pbr::OriginalName("CMD_Screen")] CmdScreen = 5001, + [pbr::OriginalName("CMD_Room_List")] CmdRoomList = 5001, + /// + ///房间单个房间信息更新 对应 Protobuf_Room_Update_RESP + /// + [pbr::OriginalName("CMD_Room_List_Update")] CmdRoomListUpdate = 5002, + /// + ///房间内相关 + /// + [pbr::OriginalName("CMD_Room_Create")] CmdRoomCreate = 5101, + /// + ///房间列表加入 对应 Protobuf_Room_Join | Protobuf_Room_Join_RESP + /// + [pbr::OriginalName("CMD_Room_Join")] CmdRoomJoin = 5105, + /// + ///房间列表离开 对应 Protobuf_Room_Leave | Protobuf_Room_Leave_RESP + /// + [pbr::OriginalName("CMD_Room_Leave")] CmdRoomLeave = 5106, + /// + ///我所在的房间内状态发生变化 对应 Protobuf_Room_MyRoom_State_Change; + /// + [pbr::OriginalName("CMD_Room_MyRoom_State_Changed")] CmdRoomMyRoomStateChanged = 5110, + /// + ///游戏同步 + /// + [pbr::OriginalName("CMD_Screen")] CmdScreen = 6001, } public enum ErrorCode { @@ -85,6 +151,14 @@ namespace AxibugProtobuf { ///成功 /// [pbr::OriginalName("ERROR_OK")] ErrorOk = 1, + /// + ///房间不存在 + /// + [pbr::OriginalName("ERROR_ROOM_NOT_FOUND")] ErrorRoomNotFound = 10, + /// + ///加入目标位置已经有人 + /// + [pbr::OriginalName("ERROR_ROOM_SLOT_READLY_HAD_PLAYER")] ErrorRoomSlotReadlyHadPlayer = 11, } public enum LoginType { @@ -105,6 +179,40 @@ namespace AxibugProtobuf { [pbr::OriginalName("PSV")] Psv = 4, } + public enum RoomPlayerState { + /// + ///缺省 + /// + [pbr::OriginalName("None_PlayerState")] NonePlayerState = 0, + /// + ///仅P1 + /// + [pbr::OriginalName("OnlyP1")] OnlyP1 = 1, + /// + ///仅P2 + /// + [pbr::OriginalName("OnlyP2")] OnlyP2 = 2, + /// + ///玩家都在 + /// + [pbr::OriginalName("BothOnline")] BothOnline = 3, + } + + public enum RoomGameState { + /// + ///缺省 + /// + [pbr::OriginalName("None_GameState")] NoneGameState = 0, + /// + ///游戏中 + /// + [pbr::OriginalName("InGame")] InGame = 1, + /// + ///暂停 + /// + [pbr::OriginalName("Pause")] Pause = 2, + } + public enum LoginResultStatus { /// ///缺省不使用 @@ -1177,6 +1285,1052 @@ namespace AxibugProtobuf { } + public sealed partial class Protobuf_Room_List : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Room_List()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_List() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_List(Protobuf_Room_List other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_List Clone() { + return new Protobuf_Room_List(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Protobuf_Room_List); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Protobuf_Room_List other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Protobuf_Room_List other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + public sealed partial class Protobuf_Room_List_RESP : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Room_List_RESP()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_List_RESP() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_List_RESP(Protobuf_Room_List_RESP other) : this() { + roomMiniInfoList_ = other.roomMiniInfoList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_List_RESP Clone() { + return new Protobuf_Room_List_RESP(this); + } + + /// Field number for the "RoomMiniInfoList" field. + public const int RoomMiniInfoListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_roomMiniInfoList_codec + = pb::FieldCodec.ForMessage(10, global::AxibugProtobuf.Protobuf_Room_MiniInfo.Parser); + private readonly pbc::RepeatedField roomMiniInfoList_ = new pbc::RepeatedField(); + /// + ///房间列表 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField RoomMiniInfoList { + get { return roomMiniInfoList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Protobuf_Room_List_RESP); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Protobuf_Room_List_RESP other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!roomMiniInfoList_.Equals(other.roomMiniInfoList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= roomMiniInfoList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + roomMiniInfoList_.WriteTo(output, _repeated_roomMiniInfoList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + roomMiniInfoList_.WriteTo(ref output, _repeated_roomMiniInfoList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += roomMiniInfoList_.CalculateSize(_repeated_roomMiniInfoList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Protobuf_Room_List_RESP other) { + if (other == null) { + return; + } + roomMiniInfoList_.Add(other.roomMiniInfoList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + roomMiniInfoList_.AddEntriesFrom(input, _repeated_roomMiniInfoList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + roomMiniInfoList_.AddEntriesFrom(ref input, _repeated_roomMiniInfoList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class Protobuf_Room_MiniInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Room_MiniInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_MiniInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_MiniInfo(Protobuf_Room_MiniInfo other) : this() { + roomID_ = other.roomID_; + gameRomID_ = other.gameRomID_; + gameRomHash_ = other.gameRomHash_; + playerState_ = other.playerState_; + gameState_ = other.gameState_; + obsUserCount_ = other.obsUserCount_; + player1UID_ = other.player1UID_; + player1NickName_ = other.player1NickName_; + player2UID_ = other.player2UID_; + player2NickName_ = other.player2NickName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_MiniInfo Clone() { + return new Protobuf_Room_MiniInfo(this); + } + + /// Field number for the "RoomID" field. + public const int RoomIDFieldNumber = 1; + private int roomID_; + /// + ///房间ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int RoomID { + get { return roomID_; } + set { + roomID_ = value; + } + } + + /// Field number for the "GameRomID" field. + public const int GameRomIDFieldNumber = 2; + private int gameRomID_; + /// + ///游戏ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int GameRomID { + get { return gameRomID_; } + set { + gameRomID_ = value; + } + } + + /// Field number for the "GameRomHash" field. + public const int GameRomHashFieldNumber = 3; + private string gameRomHash_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string GameRomHash { + get { return gameRomHash_; } + set { + gameRomHash_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "PlayerState" field. + public const int PlayerStateFieldNumber = 4; + private global::AxibugProtobuf.RoomPlayerState playerState_ = global::AxibugProtobuf.RoomPlayerState.NonePlayerState; + /// + ///玩家加入状态 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AxibugProtobuf.RoomPlayerState PlayerState { + get { return playerState_; } + set { + playerState_ = value; + } + } + + /// Field number for the "GameState" field. + public const int GameStateFieldNumber = 5; + private global::AxibugProtobuf.RoomGameState gameState_ = global::AxibugProtobuf.RoomGameState.NoneGameState; + /// + ///游戏状态 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AxibugProtobuf.RoomGameState GameState { + get { return gameState_; } + set { + gameState_ = value; + } + } + + /// Field number for the "ObsUserCount" field. + public const int ObsUserCountFieldNumber = 6; + private int obsUserCount_; + /// + ///观战用户数量 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ObsUserCount { + get { return obsUserCount_; } + set { + obsUserCount_ = value; + } + } + + /// Field number for the "Player1_UID" field. + public const int Player1UIDFieldNumber = 7; + private long player1UID_; + /// + ///玩家1 UID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long Player1UID { + get { return player1UID_; } + set { + player1UID_ = value; + } + } + + /// Field number for the "Player1_NickName" field. + public const int Player1NickNameFieldNumber = 8; + private string player1NickName_ = ""; + /// + ///玩家1 昵称 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Player1NickName { + get { return player1NickName_; } + set { + player1NickName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Player2_UID" field. + public const int Player2UIDFieldNumber = 9; + private long player2UID_; + /// + ///玩家2 UID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long Player2UID { + get { return player2UID_; } + set { + player2UID_ = value; + } + } + + /// Field number for the "Player2_NickName" field. + public const int Player2NickNameFieldNumber = 10; + private string player2NickName_ = ""; + /// + ///玩家2 昵称 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Player2NickName { + get { return player2NickName_; } + set { + player2NickName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Protobuf_Room_MiniInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Protobuf_Room_MiniInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RoomID != other.RoomID) return false; + if (GameRomID != other.GameRomID) return false; + if (GameRomHash != other.GameRomHash) return false; + if (PlayerState != other.PlayerState) return false; + if (GameState != other.GameState) return false; + if (ObsUserCount != other.ObsUserCount) return false; + if (Player1UID != other.Player1UID) return false; + if (Player1NickName != other.Player1NickName) return false; + if (Player2UID != other.Player2UID) return false; + if (Player2NickName != other.Player2NickName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (RoomID != 0) hash ^= RoomID.GetHashCode(); + if (GameRomID != 0) hash ^= GameRomID.GetHashCode(); + if (GameRomHash.Length != 0) hash ^= GameRomHash.GetHashCode(); + if (PlayerState != global::AxibugProtobuf.RoomPlayerState.NonePlayerState) hash ^= PlayerState.GetHashCode(); + if (GameState != global::AxibugProtobuf.RoomGameState.NoneGameState) hash ^= GameState.GetHashCode(); + if (ObsUserCount != 0) hash ^= ObsUserCount.GetHashCode(); + if (Player1UID != 0L) hash ^= Player1UID.GetHashCode(); + if (Player1NickName.Length != 0) hash ^= Player1NickName.GetHashCode(); + if (Player2UID != 0L) hash ^= Player2UID.GetHashCode(); + if (Player2NickName.Length != 0) hash ^= Player2NickName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RoomID != 0) { + output.WriteRawTag(8); + output.WriteInt32(RoomID); + } + if (GameRomID != 0) { + output.WriteRawTag(16); + output.WriteInt32(GameRomID); + } + if (GameRomHash.Length != 0) { + output.WriteRawTag(26); + output.WriteString(GameRomHash); + } + if (PlayerState != global::AxibugProtobuf.RoomPlayerState.NonePlayerState) { + output.WriteRawTag(32); + output.WriteEnum((int) PlayerState); + } + if (GameState != global::AxibugProtobuf.RoomGameState.NoneGameState) { + output.WriteRawTag(40); + output.WriteEnum((int) GameState); + } + if (ObsUserCount != 0) { + output.WriteRawTag(48); + output.WriteInt32(ObsUserCount); + } + if (Player1UID != 0L) { + output.WriteRawTag(56); + output.WriteInt64(Player1UID); + } + if (Player1NickName.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Player1NickName); + } + if (Player2UID != 0L) { + output.WriteRawTag(72); + output.WriteInt64(Player2UID); + } + if (Player2NickName.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Player2NickName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RoomID != 0) { + output.WriteRawTag(8); + output.WriteInt32(RoomID); + } + if (GameRomID != 0) { + output.WriteRawTag(16); + output.WriteInt32(GameRomID); + } + if (GameRomHash.Length != 0) { + output.WriteRawTag(26); + output.WriteString(GameRomHash); + } + if (PlayerState != global::AxibugProtobuf.RoomPlayerState.NonePlayerState) { + output.WriteRawTag(32); + output.WriteEnum((int) PlayerState); + } + if (GameState != global::AxibugProtobuf.RoomGameState.NoneGameState) { + output.WriteRawTag(40); + output.WriteEnum((int) GameState); + } + if (ObsUserCount != 0) { + output.WriteRawTag(48); + output.WriteInt32(ObsUserCount); + } + if (Player1UID != 0L) { + output.WriteRawTag(56); + output.WriteInt64(Player1UID); + } + if (Player1NickName.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Player1NickName); + } + if (Player2UID != 0L) { + output.WriteRawTag(72); + output.WriteInt64(Player2UID); + } + if (Player2NickName.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Player2NickName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (RoomID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomID); + } + if (GameRomID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GameRomID); + } + if (GameRomHash.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GameRomHash); + } + if (PlayerState != global::AxibugProtobuf.RoomPlayerState.NonePlayerState) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlayerState); + } + if (GameState != global::AxibugProtobuf.RoomGameState.NoneGameState) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) GameState); + } + if (ObsUserCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ObsUserCount); + } + if (Player1UID != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Player1UID); + } + if (Player1NickName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Player1NickName); + } + if (Player2UID != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Player2UID); + } + if (Player2NickName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Player2NickName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Protobuf_Room_MiniInfo other) { + if (other == null) { + return; + } + if (other.RoomID != 0) { + RoomID = other.RoomID; + } + if (other.GameRomID != 0) { + GameRomID = other.GameRomID; + } + if (other.GameRomHash.Length != 0) { + GameRomHash = other.GameRomHash; + } + if (other.PlayerState != global::AxibugProtobuf.RoomPlayerState.NonePlayerState) { + PlayerState = other.PlayerState; + } + if (other.GameState != global::AxibugProtobuf.RoomGameState.NoneGameState) { + GameState = other.GameState; + } + if (other.ObsUserCount != 0) { + ObsUserCount = other.ObsUserCount; + } + if (other.Player1UID != 0L) { + Player1UID = other.Player1UID; + } + if (other.Player1NickName.Length != 0) { + Player1NickName = other.Player1NickName; + } + if (other.Player2UID != 0L) { + Player2UID = other.Player2UID; + } + if (other.Player2NickName.Length != 0) { + Player2NickName = other.Player2NickName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + RoomID = input.ReadInt32(); + break; + } + case 16: { + GameRomID = input.ReadInt32(); + break; + } + case 26: { + GameRomHash = input.ReadString(); + break; + } + case 32: { + PlayerState = (global::AxibugProtobuf.RoomPlayerState) input.ReadEnum(); + break; + } + case 40: { + GameState = (global::AxibugProtobuf.RoomGameState) input.ReadEnum(); + break; + } + case 48: { + ObsUserCount = input.ReadInt32(); + break; + } + case 56: { + Player1UID = input.ReadInt64(); + break; + } + case 66: { + Player1NickName = input.ReadString(); + break; + } + case 72: { + Player2UID = input.ReadInt64(); + break; + } + case 82: { + Player2NickName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + RoomID = input.ReadInt32(); + break; + } + case 16: { + GameRomID = input.ReadInt32(); + break; + } + case 26: { + GameRomHash = input.ReadString(); + break; + } + case 32: { + PlayerState = (global::AxibugProtobuf.RoomPlayerState) input.ReadEnum(); + break; + } + case 40: { + GameState = (global::AxibugProtobuf.RoomGameState) input.ReadEnum(); + break; + } + case 48: { + ObsUserCount = input.ReadInt32(); + break; + } + case 56: { + Player1UID = input.ReadInt64(); + break; + } + case 66: { + Player1NickName = input.ReadString(); + break; + } + case 72: { + Player2UID = input.ReadInt64(); + break; + } + case 82: { + Player2NickName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Protobuf_Room_Update_RESP : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Room_Update_RESP()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Update_RESP() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Update_RESP(Protobuf_Room_Update_RESP other) : this() { + updateType_ = other.updateType_; + roomMiniInfo_ = other.roomMiniInfo_ != null ? other.roomMiniInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Update_RESP Clone() { + return new Protobuf_Room_Update_RESP(this); + } + + /// Field number for the "UpdateType" field. + public const int UpdateTypeFieldNumber = 1; + private int updateType_; + /// + ///[0] 更新或新增 [1] 删除 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int UpdateType { + get { return updateType_; } + set { + updateType_ = value; + } + } + + /// Field number for the "RoomMiniInfo" field. + public const int RoomMiniInfoFieldNumber = 2; + private global::AxibugProtobuf.Protobuf_Room_MiniInfo roomMiniInfo_; + /// + ///房间信息 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AxibugProtobuf.Protobuf_Room_MiniInfo RoomMiniInfo { + get { return roomMiniInfo_; } + set { + roomMiniInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Protobuf_Room_Update_RESP); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Protobuf_Room_Update_RESP other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UpdateType != other.UpdateType) return false; + if (!object.Equals(RoomMiniInfo, other.RoomMiniInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (UpdateType != 0) hash ^= UpdateType.GetHashCode(); + if (roomMiniInfo_ != null) hash ^= RoomMiniInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (UpdateType != 0) { + output.WriteRawTag(8); + output.WriteInt32(UpdateType); + } + if (roomMiniInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RoomMiniInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (UpdateType != 0) { + output.WriteRawTag(8); + output.WriteInt32(UpdateType); + } + if (roomMiniInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RoomMiniInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (UpdateType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UpdateType); + } + if (roomMiniInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoomMiniInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Protobuf_Room_Update_RESP other) { + if (other == null) { + return; + } + if (other.UpdateType != 0) { + UpdateType = other.UpdateType; + } + if (other.roomMiniInfo_ != null) { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + RoomMiniInfo.MergeFrom(other.RoomMiniInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + UpdateType = input.ReadInt32(); + break; + } + case 18: { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + input.ReadMessage(RoomMiniInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + UpdateType = input.ReadInt32(); + break; + } + case 18: { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + input.ReadMessage(RoomMiniInfo); + break; + } + } + } + } + #endif + + } + public sealed partial class Protobuf_Screnn_Frame : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -1189,7 +2343,7 @@ namespace AxibugProtobuf { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[4]; } + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[8]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -1206,6 +2360,7 @@ namespace AxibugProtobuf { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Protobuf_Screnn_Frame(Protobuf_Screnn_Frame other) : this() { + roomID_ = other.roomID_; frameID_ = other.frameID_; rawBitmap_ = other.rawBitmap_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -1216,8 +2371,22 @@ namespace AxibugProtobuf { return new Protobuf_Screnn_Frame(this); } + /// Field number for the "RoomID" field. + public const int RoomIDFieldNumber = 1; + private int roomID_; + /// + ///房间ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int RoomID { + get { return roomID_; } + set { + roomID_ = value; + } + } + /// Field number for the "FrameID" field. - public const int FrameIDFieldNumber = 1; + public const int FrameIDFieldNumber = 2; private int frameID_; /// ///帧编号 @@ -1231,7 +2400,7 @@ namespace AxibugProtobuf { } /// Field number for the "RawBitmap" field. - public const int RawBitmapFieldNumber = 2; + public const int RawBitmapFieldNumber = 3; private pb::ByteString rawBitmap_ = pb::ByteString.Empty; /// ///渲染层画面 @@ -1257,6 +2426,7 @@ namespace AxibugProtobuf { if (ReferenceEquals(other, this)) { return true; } + if (RoomID != other.RoomID) return false; if (FrameID != other.FrameID) return false; if (RawBitmap != other.RawBitmap) return false; return Equals(_unknownFields, other._unknownFields); @@ -1265,6 +2435,7 @@ namespace AxibugProtobuf { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; + if (RoomID != 0) hash ^= RoomID.GetHashCode(); if (FrameID != 0) hash ^= FrameID.GetHashCode(); if (RawBitmap.Length != 0) hash ^= RawBitmap.GetHashCode(); if (_unknownFields != null) { @@ -1283,12 +2454,16 @@ namespace AxibugProtobuf { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (FrameID != 0) { + if (RoomID != 0) { output.WriteRawTag(8); + output.WriteInt32(RoomID); + } + if (FrameID != 0) { + output.WriteRawTag(16); output.WriteInt32(FrameID); } if (RawBitmap.Length != 0) { - output.WriteRawTag(18); + output.WriteRawTag(26); output.WriteBytes(RawBitmap); } if (_unknownFields != null) { @@ -1300,12 +2475,16 @@ namespace AxibugProtobuf { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (FrameID != 0) { + if (RoomID != 0) { output.WriteRawTag(8); + output.WriteInt32(RoomID); + } + if (FrameID != 0) { + output.WriteRawTag(16); output.WriteInt32(FrameID); } if (RawBitmap.Length != 0) { - output.WriteRawTag(18); + output.WriteRawTag(26); output.WriteBytes(RawBitmap); } if (_unknownFields != null) { @@ -1317,6 +2496,9 @@ namespace AxibugProtobuf { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; + if (RoomID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomID); + } if (FrameID != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(FrameID); } @@ -1334,6 +2516,9 @@ namespace AxibugProtobuf { if (other == null) { return; } + if (other.RoomID != 0) { + RoomID = other.RoomID; + } if (other.FrameID != 0) { FrameID = other.FrameID; } @@ -1355,10 +2540,14 @@ namespace AxibugProtobuf { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { + RoomID = input.ReadInt32(); + break; + } + case 16: { FrameID = input.ReadInt32(); break; } - case 18: { + case 26: { RawBitmap = input.ReadBytes(); break; } @@ -1377,10 +2566,14 @@ namespace AxibugProtobuf { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { + RoomID = input.ReadInt32(); + break; + } + case 16: { FrameID = input.ReadInt32(); break; } - case 18: { + case 26: { RawBitmap = input.ReadBytes(); break; } @@ -1391,6 +2584,1330 @@ namespace AxibugProtobuf { } + public sealed partial class Protobuf_Room_Create : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Room_Create()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Create() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Create(Protobuf_Room_Create other) : this() { + gameRomID_ = other.gameRomID_; + gameRomHash_ = other.gameRomHash_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Create Clone() { + return new Protobuf_Room_Create(this); + } + + /// Field number for the "GameRomID" field. + public const int GameRomIDFieldNumber = 1; + private int gameRomID_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int GameRomID { + get { return gameRomID_; } + set { + gameRomID_ = value; + } + } + + /// Field number for the "GameRomHash" field. + public const int GameRomHashFieldNumber = 2; + private string gameRomHash_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string GameRomHash { + get { return gameRomHash_; } + set { + gameRomHash_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Protobuf_Room_Create); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Protobuf_Room_Create other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GameRomID != other.GameRomID) return false; + if (GameRomHash != other.GameRomHash) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (GameRomID != 0) hash ^= GameRomID.GetHashCode(); + if (GameRomHash.Length != 0) hash ^= GameRomHash.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (GameRomID != 0) { + output.WriteRawTag(8); + output.WriteInt32(GameRomID); + } + if (GameRomHash.Length != 0) { + output.WriteRawTag(18); + output.WriteString(GameRomHash); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (GameRomID != 0) { + output.WriteRawTag(8); + output.WriteInt32(GameRomID); + } + if (GameRomHash.Length != 0) { + output.WriteRawTag(18); + output.WriteString(GameRomHash); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (GameRomID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GameRomID); + } + if (GameRomHash.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GameRomHash); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Protobuf_Room_Create other) { + if (other == null) { + return; + } + if (other.GameRomID != 0) { + GameRomID = other.GameRomID; + } + if (other.GameRomHash.Length != 0) { + GameRomHash = other.GameRomHash; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + GameRomID = input.ReadInt32(); + break; + } + case 18: { + GameRomHash = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + GameRomID = input.ReadInt32(); + break; + } + case 18: { + GameRomHash = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Protobuf_Room_Create_RESP : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Room_Create_RESP()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Create_RESP() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Create_RESP(Protobuf_Room_Create_RESP other) : this() { + roomMiniInfo_ = other.roomMiniInfo_ != null ? other.roomMiniInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Create_RESP Clone() { + return new Protobuf_Room_Create_RESP(this); + } + + /// Field number for the "RoomMiniInfo" field. + public const int RoomMiniInfoFieldNumber = 1; + private global::AxibugProtobuf.Protobuf_Room_MiniInfo roomMiniInfo_; + /// + ///房间信息 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AxibugProtobuf.Protobuf_Room_MiniInfo RoomMiniInfo { + get { return roomMiniInfo_; } + set { + roomMiniInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Protobuf_Room_Create_RESP); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Protobuf_Room_Create_RESP other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RoomMiniInfo, other.RoomMiniInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (roomMiniInfo_ != null) hash ^= RoomMiniInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (roomMiniInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RoomMiniInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (roomMiniInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RoomMiniInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (roomMiniInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoomMiniInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Protobuf_Room_Create_RESP other) { + if (other == null) { + return; + } + if (other.roomMiniInfo_ != null) { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + RoomMiniInfo.MergeFrom(other.RoomMiniInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + input.ReadMessage(RoomMiniInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + input.ReadMessage(RoomMiniInfo); + break; + } + } + } + } + #endif + + } + + public sealed partial class Protobuf_Room_Join : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Room_Join()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Join() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Join(Protobuf_Room_Join other) : this() { + roomID_ = other.roomID_; + playerNum_ = other.playerNum_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Join Clone() { + return new Protobuf_Room_Join(this); + } + + /// Field number for the "RoomID" field. + public const int RoomIDFieldNumber = 1; + private int roomID_; + /// + ///房间ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int RoomID { + get { return roomID_; } + set { + roomID_ = value; + } + } + + /// Field number for the "PlayerNum" field. + public const int PlayerNumFieldNumber = 2; + private int playerNum_; + /// + ///玩家编号 [0]1号玩家 [1]2号玩家 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int PlayerNum { + get { return playerNum_; } + set { + playerNum_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Protobuf_Room_Join); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Protobuf_Room_Join other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RoomID != other.RoomID) return false; + if (PlayerNum != other.PlayerNum) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (RoomID != 0) hash ^= RoomID.GetHashCode(); + if (PlayerNum != 0) hash ^= PlayerNum.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RoomID != 0) { + output.WriteRawTag(8); + output.WriteInt32(RoomID); + } + if (PlayerNum != 0) { + output.WriteRawTag(16); + output.WriteInt32(PlayerNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RoomID != 0) { + output.WriteRawTag(8); + output.WriteInt32(RoomID); + } + if (PlayerNum != 0) { + output.WriteRawTag(16); + output.WriteInt32(PlayerNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (RoomID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomID); + } + if (PlayerNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlayerNum); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Protobuf_Room_Join other) { + if (other == null) { + return; + } + if (other.RoomID != 0) { + RoomID = other.RoomID; + } + if (other.PlayerNum != 0) { + PlayerNum = other.PlayerNum; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + RoomID = input.ReadInt32(); + break; + } + case 16: { + PlayerNum = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + RoomID = input.ReadInt32(); + break; + } + case 16: { + PlayerNum = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Protobuf_Room_Join_RESP : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Room_Join_RESP()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Join_RESP() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Join_RESP(Protobuf_Room_Join_RESP other) : this() { + roomMiniInfo_ = other.roomMiniInfo_ != null ? other.roomMiniInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Join_RESP Clone() { + return new Protobuf_Room_Join_RESP(this); + } + + /// Field number for the "RoomMiniInfo" field. + public const int RoomMiniInfoFieldNumber = 1; + private global::AxibugProtobuf.Protobuf_Room_MiniInfo roomMiniInfo_; + /// + ///房间信息 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AxibugProtobuf.Protobuf_Room_MiniInfo RoomMiniInfo { + get { return roomMiniInfo_; } + set { + roomMiniInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Protobuf_Room_Join_RESP); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Protobuf_Room_Join_RESP other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RoomMiniInfo, other.RoomMiniInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (roomMiniInfo_ != null) hash ^= RoomMiniInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (roomMiniInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RoomMiniInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (roomMiniInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RoomMiniInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (roomMiniInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoomMiniInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Protobuf_Room_Join_RESP other) { + if (other == null) { + return; + } + if (other.roomMiniInfo_ != null) { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + RoomMiniInfo.MergeFrom(other.RoomMiniInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + input.ReadMessage(RoomMiniInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + input.ReadMessage(RoomMiniInfo); + break; + } + } + } + } + #endif + + } + + public sealed partial class Protobuf_Room_Leave : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Room_Leave()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Leave() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Leave(Protobuf_Room_Leave other) : this() { + roomID_ = other.roomID_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Leave Clone() { + return new Protobuf_Room_Leave(this); + } + + /// Field number for the "RoomID" field. + public const int RoomIDFieldNumber = 1; + private int roomID_; + /// + ///离开的房间ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int RoomID { + get { return roomID_; } + set { + roomID_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Protobuf_Room_Leave); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Protobuf_Room_Leave other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RoomID != other.RoomID) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (RoomID != 0) hash ^= RoomID.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RoomID != 0) { + output.WriteRawTag(8); + output.WriteInt32(RoomID); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RoomID != 0) { + output.WriteRawTag(8); + output.WriteInt32(RoomID); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (RoomID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomID); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Protobuf_Room_Leave other) { + if (other == null) { + return; + } + if (other.RoomID != 0) { + RoomID = other.RoomID; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + RoomID = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + RoomID = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Protobuf_Room_Leave_RESP : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Room_Leave_RESP()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Leave_RESP() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Leave_RESP(Protobuf_Room_Leave_RESP other) : this() { + roomID_ = other.roomID_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Leave_RESP Clone() { + return new Protobuf_Room_Leave_RESP(this); + } + + /// Field number for the "RoomID" field. + public const int RoomIDFieldNumber = 1; + private int roomID_; + /// + ///离开的房间ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int RoomID { + get { return roomID_; } + set { + roomID_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Protobuf_Room_Leave_RESP); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Protobuf_Room_Leave_RESP other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RoomID != other.RoomID) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (RoomID != 0) hash ^= RoomID.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RoomID != 0) { + output.WriteRawTag(8); + output.WriteInt32(RoomID); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RoomID != 0) { + output.WriteRawTag(8); + output.WriteInt32(RoomID); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (RoomID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomID); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Protobuf_Room_Leave_RESP other) { + if (other == null) { + return; + } + if (other.RoomID != 0) { + RoomID = other.RoomID; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + RoomID = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + RoomID = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Protobuf_Room_MyRoom_State_Change : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Room_MyRoom_State_Change()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_MyRoom_State_Change() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_MyRoom_State_Change(Protobuf_Room_MyRoom_State_Change other) : this() { + roomMiniInfo_ = other.roomMiniInfo_ != null ? other.roomMiniInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_MyRoom_State_Change Clone() { + return new Protobuf_Room_MyRoom_State_Change(this); + } + + /// Field number for the "RoomMiniInfo" field. + public const int RoomMiniInfoFieldNumber = 1; + private global::AxibugProtobuf.Protobuf_Room_MiniInfo roomMiniInfo_; + /// + ///更新房间信息 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AxibugProtobuf.Protobuf_Room_MiniInfo RoomMiniInfo { + get { return roomMiniInfo_; } + set { + roomMiniInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Protobuf_Room_MyRoom_State_Change); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Protobuf_Room_MyRoom_State_Change other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RoomMiniInfo, other.RoomMiniInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (roomMiniInfo_ != null) hash ^= RoomMiniInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (roomMiniInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RoomMiniInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (roomMiniInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RoomMiniInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (roomMiniInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoomMiniInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Protobuf_Room_MyRoom_State_Change other) { + if (other == null) { + return; + } + if (other.roomMiniInfo_ != null) { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + RoomMiniInfo.MergeFrom(other.RoomMiniInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + input.ReadMessage(RoomMiniInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + input.ReadMessage(RoomMiniInfo); + break; + } + } + } + } + #endif + + } + #endregion } diff --git a/ProtobufCore/build_cs.bat b/ProtobufCore/build_cs.bat index a8e3673..bbb9a34 100644 --- a/ProtobufCore/build_cs.bat +++ b/ProtobufCore/build_cs.bat @@ -12,5 +12,5 @@ for /f "delims=" %%i in ('dir /b proto "proto/*.proto"') do ( echo "==>>build finish" echo "==>>copy cs" -::copy %cd%\out\CS\ ..\AxibugEmuOnline.Server\AxibugEmuOnline.Server\Protobuf +copy %cd%\out\CS\ ..\AxibugEmuOnline.Server\AxibugEmuOnline.Server\Protobuf pause \ No newline at end of file diff --git a/ProtobufCore/out/CS/ProtobufAxibugEmuOnline.cs b/ProtobufCore/out/CS/ProtobufAxibugEmuOnline.cs index b23e13b..ea11a55 100644 --- a/ProtobufCore/out/CS/ProtobufAxibugEmuOnline.cs +++ b/ProtobufCore/out/CS/ProtobufAxibugEmuOnline.cs @@ -34,23 +34,65 @@ namespace AxibugProtobuf { "dG9idWZfTG9naW5fUkVTUBINCgVUb2tlbhgBIAEoCRIVCg1MYXN0TG9naW5E", "YXRlGAIgASgJEg8KB1JlZ0RhdGUYAyABKAkSMQoGU3RhdHVzGAQgASgOMiEu", "QXhpYnVnUHJvdG9idWYuTG9naW5SZXN1bHRTdGF0dXMSCwoDVUlEGAUgASgD", - "IjsKFVByb3RvYnVmX1NjcmVubl9GcmFtZRIPCgdGcmFtZUlEGAEgASgFEhEK", - "CVJhd0JpdG1hcBgCIAEoDCpOCglDb21tYW5kSUQSDgoKQ01EX0RFRkFVTBAA", - "Eg4KCUNNRF9MT0dJThDRDxIQCgtDTURfQ0hBVE1TRxChHxIPCgpDTURfU2Ny", - "ZWVuEIknKisKCUVycm9yQ29kZRIQCgxFUlJPUl9ERUZBVUwQABIMCghFUlJP", - "Ul9PSxABKhwKCUxvZ2luVHlwZRIPCgtCYXNlRGVmYXVsdBAAKksKCkRldmlj", - "ZVR5cGUSFgoSRGV2aWNlVHlwZV9EZWZhdWx0EAASBgoCUEMQARILCgdBbmRy", - "b2lkEAISBwoDSU9TEAMSBwoDUFNWEAQqTgoRTG9naW5SZXN1bHRTdGF0dXMS", - "IQodTG9naW5SZXN1bHRTdGF0dXNfQmFzZURlZmF1bHQQABIGCgJPSxABEg4K", - "CkFjY291bnRFcnIQAkICSAFiBnByb3RvMw==")); + "IhQKElByb3RvYnVmX1Jvb21fTGlzdCJbChdQcm90b2J1Zl9Sb29tX0xpc3Rf", + "UkVTUBJAChBSb29tTWluaUluZm9MaXN0GAEgAygLMiYuQXhpYnVnUHJvdG9i", + "dWYuUHJvdG9idWZfUm9vbV9NaW5pSW5mbyKsAgoWUHJvdG9idWZfUm9vbV9N", + "aW5pSW5mbxIOCgZSb29tSUQYASABKAUSEQoJR2FtZVJvbUlEGAIgASgFEhMK", + "C0dhbWVSb21IYXNoGAMgASgJEjQKC1BsYXllclN0YXRlGAQgASgOMh8uQXhp", + "YnVnUHJvdG9idWYuUm9vbVBsYXllclN0YXRlEjAKCUdhbWVTdGF0ZRgFIAEo", + "DjIdLkF4aWJ1Z1Byb3RvYnVmLlJvb21HYW1lU3RhdGUSFAoMT2JzVXNlckNv", + "dW50GAYgASgFEhMKC1BsYXllcjFfVUlEGAcgASgDEhgKEFBsYXllcjFfTmlj", + "a05hbWUYCCABKAkSEwoLUGxheWVyMl9VSUQYCSABKAMSGAoQUGxheWVyMl9O", + "aWNrTmFtZRgKIAEoCSJtChlQcm90b2J1Zl9Sb29tX1VwZGF0ZV9SRVNQEhIK", + "ClVwZGF0ZVR5cGUYASABKAUSPAoMUm9vbU1pbmlJbmZvGAIgASgLMiYuQXhp", + "YnVnUHJvdG9idWYuUHJvdG9idWZfUm9vbV9NaW5pSW5mbyJLChVQcm90b2J1", + "Zl9TY3Jlbm5fRnJhbWUSDgoGUm9vbUlEGAEgASgFEg8KB0ZyYW1lSUQYAiAB", + "KAUSEQoJUmF3Qml0bWFwGAMgASgMIj4KFFByb3RvYnVmX1Jvb21fQ3JlYXRl", + "EhEKCUdhbWVSb21JRBgBIAEoBRITCgtHYW1lUm9tSGFzaBgCIAEoCSJZChlQ", + "cm90b2J1Zl9Sb29tX0NyZWF0ZV9SRVNQEjwKDFJvb21NaW5pSW5mbxgBIAEo", + "CzImLkF4aWJ1Z1Byb3RvYnVmLlByb3RvYnVmX1Jvb21fTWluaUluZm8iNwoS", + "UHJvdG9idWZfUm9vbV9Kb2luEg4KBlJvb21JRBgBIAEoBRIRCglQbGF5ZXJO", + "dW0YAiABKAUiVwoXUHJvdG9idWZfUm9vbV9Kb2luX1JFU1ASPAoMUm9vbU1p", + "bmlJbmZvGAEgASgLMiYuQXhpYnVnUHJvdG9idWYuUHJvdG9idWZfUm9vbV9N", + "aW5pSW5mbyIlChNQcm90b2J1Zl9Sb29tX0xlYXZlEg4KBlJvb21JRBgBIAEo", + "BSIqChhQcm90b2J1Zl9Sb29tX0xlYXZlX1JFU1ASDgoGUm9vbUlEGAEgASgF", + "ImEKIVByb3RvYnVmX1Jvb21fTXlSb29tX1N0YXRlX0NoYW5nZRI8CgxSb29t", + "TWluaUluZm8YASABKAsyJi5BeGlidWdQcm90b2J1Zi5Qcm90b2J1Zl9Sb29t", + "X01pbmlJbmZvKuABCglDb21tYW5kSUQSDgoKQ01EX0RFRkFVTBAAEg4KCUNN", + "RF9MT0dJThDRDxIQCgtDTURfQ0hBVE1TRxChHxISCg1DTURfUm9vbV9MaXN0", + "EIknEhkKFENNRF9Sb29tX0xpc3RfVXBkYXRlEIonEhQKD0NNRF9Sb29tX0Ny", + "ZWF0ZRDtJxISCg1DTURfUm9vbV9Kb2luEPEnEhMKDkNNRF9Sb29tX0xlYXZl", + "EPInEiIKHUNNRF9Sb29tX015Um9vbV9TdGF0ZV9DaGFuZ2VkEPYnEg8KCkNN", + "RF9TY3JlZW4Q8S4qbAoJRXJyb3JDb2RlEhAKDEVSUk9SX0RFRkFVTBAAEgwK", + "CEVSUk9SX09LEAESGAoURVJST1JfUk9PTV9OT1RfRk9VTkQQChIlCiFFUlJP", + "Ul9ST09NX1NMT1RfUkVBRExZX0hBRF9QTEFZRVIQCyocCglMb2dpblR5cGUS", + "DwoLQmFzZURlZmF1bHQQACpLCgpEZXZpY2VUeXBlEhYKEkRldmljZVR5cGVf", + "RGVmYXVsdBAAEgYKAlBDEAESCwoHQW5kcm9pZBACEgcKA0lPUxADEgcKA1BT", + "VhAEKk8KD1Jvb21QbGF5ZXJTdGF0ZRIUChBOb25lX1BsYXllclN0YXRlEAAS", + "CgoGT25seVAxEAESCgoGT25seVAyEAISDgoKQm90aE9ubGluZRADKjoKDVJv", + "b21HYW1lU3RhdGUSEgoOTm9uZV9HYW1lU3RhdGUQABIKCgZJbkdhbWUQARIJ", + "CgVQYXVzZRACKk4KEUxvZ2luUmVzdWx0U3RhdHVzEiEKHUxvZ2luUmVzdWx0", + "U3RhdHVzX0Jhc2VEZWZhdWx0EAASBgoCT0sQARIOCgpBY2NvdW50RXJyEAJC", + "AkgBYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::AxibugProtobuf.CommandID), typeof(global::AxibugProtobuf.ErrorCode), typeof(global::AxibugProtobuf.LoginType), typeof(global::AxibugProtobuf.DeviceType), typeof(global::AxibugProtobuf.LoginResultStatus), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::AxibugProtobuf.CommandID), typeof(global::AxibugProtobuf.ErrorCode), typeof(global::AxibugProtobuf.LoginType), typeof(global::AxibugProtobuf.DeviceType), typeof(global::AxibugProtobuf.RoomPlayerState), typeof(global::AxibugProtobuf.RoomGameState), typeof(global::AxibugProtobuf.LoginResultStatus), }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_ChatMsg), global::AxibugProtobuf.Protobuf_ChatMsg.Parser, new[]{ "ChatMsg" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_ChatMsg_RESP), global::AxibugProtobuf.Protobuf_ChatMsg_RESP.Parser, new[]{ "NickName", "ChatMsg", "Date" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Login), global::AxibugProtobuf.Protobuf_Login.Parser, new[]{ "LoginType", "DeviceType", "Account", "Password" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Login_RESP), global::AxibugProtobuf.Protobuf_Login_RESP.Parser, new[]{ "Token", "LastLoginDate", "RegDate", "Status", "UID" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Screnn_Frame), global::AxibugProtobuf.Protobuf_Screnn_Frame.Parser, new[]{ "FrameID", "RawBitmap" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_List), global::AxibugProtobuf.Protobuf_Room_List.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_List_RESP), global::AxibugProtobuf.Protobuf_Room_List_RESP.Parser, new[]{ "RoomMiniInfoList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_MiniInfo), global::AxibugProtobuf.Protobuf_Room_MiniInfo.Parser, new[]{ "RoomID", "GameRomID", "GameRomHash", "PlayerState", "GameState", "ObsUserCount", "Player1UID", "Player1NickName", "Player2UID", "Player2NickName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_Update_RESP), global::AxibugProtobuf.Protobuf_Room_Update_RESP.Parser, new[]{ "UpdateType", "RoomMiniInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Screnn_Frame), global::AxibugProtobuf.Protobuf_Screnn_Frame.Parser, new[]{ "RoomID", "FrameID", "RawBitmap" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_Create), global::AxibugProtobuf.Protobuf_Room_Create.Parser, new[]{ "GameRomID", "GameRomHash" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_Create_RESP), global::AxibugProtobuf.Protobuf_Room_Create_RESP.Parser, new[]{ "RoomMiniInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_Join), global::AxibugProtobuf.Protobuf_Room_Join.Parser, new[]{ "RoomID", "PlayerNum" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_Join_RESP), global::AxibugProtobuf.Protobuf_Room_Join_RESP.Parser, new[]{ "RoomMiniInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_Leave), global::AxibugProtobuf.Protobuf_Room_Leave.Parser, new[]{ "RoomID" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_Leave_RESP), global::AxibugProtobuf.Protobuf_Room_Leave_RESP.Parser, new[]{ "RoomID" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_MyRoom_State_Change), global::AxibugProtobuf.Protobuf_Room_MyRoom_State_Change.Parser, new[]{ "RoomMiniInfo" }, null, null, null, null) })); } #endregion @@ -67,13 +109,37 @@ namespace AxibugProtobuf { /// [pbr::OriginalName("CMD_LOGIN")] CmdLogin = 2001, /// - ///广播信息上行 | 下行 对应 Protobuf_ChatMsg | Protobuf_ChatMsg_RESP + ///广播聊天信息上行 | 下行 对应 Protobuf_ChatMsg | Protobuf_ChatMsg_RESP /// [pbr::OriginalName("CMD_CHATMSG")] CmdChatmsg = 4001, /// - ///画面同步 | 同步广播 对应 Protobuf_Screnn_Frame + ///房间列表相关 /// - [pbr::OriginalName("CMD_Screen")] CmdScreen = 5001, + [pbr::OriginalName("CMD_Room_List")] CmdRoomList = 5001, + /// + ///房间单个房间信息更新 对应 Protobuf_Room_Update_RESP + /// + [pbr::OriginalName("CMD_Room_List_Update")] CmdRoomListUpdate = 5002, + /// + ///房间内相关 + /// + [pbr::OriginalName("CMD_Room_Create")] CmdRoomCreate = 5101, + /// + ///房间列表加入 对应 Protobuf_Room_Join | Protobuf_Room_Join_RESP + /// + [pbr::OriginalName("CMD_Room_Join")] CmdRoomJoin = 5105, + /// + ///房间列表离开 对应 Protobuf_Room_Leave | Protobuf_Room_Leave_RESP + /// + [pbr::OriginalName("CMD_Room_Leave")] CmdRoomLeave = 5106, + /// + ///我所在的房间内状态发生变化 对应 Protobuf_Room_MyRoom_State_Change; + /// + [pbr::OriginalName("CMD_Room_MyRoom_State_Changed")] CmdRoomMyRoomStateChanged = 5110, + /// + ///游戏同步 + /// + [pbr::OriginalName("CMD_Screen")] CmdScreen = 6001, } public enum ErrorCode { @@ -85,6 +151,14 @@ namespace AxibugProtobuf { ///成功 /// [pbr::OriginalName("ERROR_OK")] ErrorOk = 1, + /// + ///房间不存在 + /// + [pbr::OriginalName("ERROR_ROOM_NOT_FOUND")] ErrorRoomNotFound = 10, + /// + ///加入目标位置已经有人 + /// + [pbr::OriginalName("ERROR_ROOM_SLOT_READLY_HAD_PLAYER")] ErrorRoomSlotReadlyHadPlayer = 11, } public enum LoginType { @@ -105,6 +179,40 @@ namespace AxibugProtobuf { [pbr::OriginalName("PSV")] Psv = 4, } + public enum RoomPlayerState { + /// + ///缺省 + /// + [pbr::OriginalName("None_PlayerState")] NonePlayerState = 0, + /// + ///仅P1 + /// + [pbr::OriginalName("OnlyP1")] OnlyP1 = 1, + /// + ///仅P2 + /// + [pbr::OriginalName("OnlyP2")] OnlyP2 = 2, + /// + ///玩家都在 + /// + [pbr::OriginalName("BothOnline")] BothOnline = 3, + } + + public enum RoomGameState { + /// + ///缺省 + /// + [pbr::OriginalName("None_GameState")] NoneGameState = 0, + /// + ///游戏中 + /// + [pbr::OriginalName("InGame")] InGame = 1, + /// + ///暂停 + /// + [pbr::OriginalName("Pause")] Pause = 2, + } + public enum LoginResultStatus { /// ///缺省不使用 @@ -1177,6 +1285,1052 @@ namespace AxibugProtobuf { } + public sealed partial class Protobuf_Room_List : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Room_List()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_List() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_List(Protobuf_Room_List other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_List Clone() { + return new Protobuf_Room_List(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Protobuf_Room_List); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Protobuf_Room_List other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Protobuf_Room_List other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + public sealed partial class Protobuf_Room_List_RESP : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Room_List_RESP()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_List_RESP() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_List_RESP(Protobuf_Room_List_RESP other) : this() { + roomMiniInfoList_ = other.roomMiniInfoList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_List_RESP Clone() { + return new Protobuf_Room_List_RESP(this); + } + + /// Field number for the "RoomMiniInfoList" field. + public const int RoomMiniInfoListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_roomMiniInfoList_codec + = pb::FieldCodec.ForMessage(10, global::AxibugProtobuf.Protobuf_Room_MiniInfo.Parser); + private readonly pbc::RepeatedField roomMiniInfoList_ = new pbc::RepeatedField(); + /// + ///房间列表 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField RoomMiniInfoList { + get { return roomMiniInfoList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Protobuf_Room_List_RESP); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Protobuf_Room_List_RESP other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!roomMiniInfoList_.Equals(other.roomMiniInfoList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= roomMiniInfoList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + roomMiniInfoList_.WriteTo(output, _repeated_roomMiniInfoList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + roomMiniInfoList_.WriteTo(ref output, _repeated_roomMiniInfoList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += roomMiniInfoList_.CalculateSize(_repeated_roomMiniInfoList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Protobuf_Room_List_RESP other) { + if (other == null) { + return; + } + roomMiniInfoList_.Add(other.roomMiniInfoList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + roomMiniInfoList_.AddEntriesFrom(input, _repeated_roomMiniInfoList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + roomMiniInfoList_.AddEntriesFrom(ref input, _repeated_roomMiniInfoList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class Protobuf_Room_MiniInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Room_MiniInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_MiniInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_MiniInfo(Protobuf_Room_MiniInfo other) : this() { + roomID_ = other.roomID_; + gameRomID_ = other.gameRomID_; + gameRomHash_ = other.gameRomHash_; + playerState_ = other.playerState_; + gameState_ = other.gameState_; + obsUserCount_ = other.obsUserCount_; + player1UID_ = other.player1UID_; + player1NickName_ = other.player1NickName_; + player2UID_ = other.player2UID_; + player2NickName_ = other.player2NickName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_MiniInfo Clone() { + return new Protobuf_Room_MiniInfo(this); + } + + /// Field number for the "RoomID" field. + public const int RoomIDFieldNumber = 1; + private int roomID_; + /// + ///房间ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int RoomID { + get { return roomID_; } + set { + roomID_ = value; + } + } + + /// Field number for the "GameRomID" field. + public const int GameRomIDFieldNumber = 2; + private int gameRomID_; + /// + ///游戏ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int GameRomID { + get { return gameRomID_; } + set { + gameRomID_ = value; + } + } + + /// Field number for the "GameRomHash" field. + public const int GameRomHashFieldNumber = 3; + private string gameRomHash_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string GameRomHash { + get { return gameRomHash_; } + set { + gameRomHash_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "PlayerState" field. + public const int PlayerStateFieldNumber = 4; + private global::AxibugProtobuf.RoomPlayerState playerState_ = global::AxibugProtobuf.RoomPlayerState.NonePlayerState; + /// + ///玩家加入状态 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AxibugProtobuf.RoomPlayerState PlayerState { + get { return playerState_; } + set { + playerState_ = value; + } + } + + /// Field number for the "GameState" field. + public const int GameStateFieldNumber = 5; + private global::AxibugProtobuf.RoomGameState gameState_ = global::AxibugProtobuf.RoomGameState.NoneGameState; + /// + ///游戏状态 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AxibugProtobuf.RoomGameState GameState { + get { return gameState_; } + set { + gameState_ = value; + } + } + + /// Field number for the "ObsUserCount" field. + public const int ObsUserCountFieldNumber = 6; + private int obsUserCount_; + /// + ///观战用户数量 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ObsUserCount { + get { return obsUserCount_; } + set { + obsUserCount_ = value; + } + } + + /// Field number for the "Player1_UID" field. + public const int Player1UIDFieldNumber = 7; + private long player1UID_; + /// + ///玩家1 UID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long Player1UID { + get { return player1UID_; } + set { + player1UID_ = value; + } + } + + /// Field number for the "Player1_NickName" field. + public const int Player1NickNameFieldNumber = 8; + private string player1NickName_ = ""; + /// + ///玩家1 昵称 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Player1NickName { + get { return player1NickName_; } + set { + player1NickName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Player2_UID" field. + public const int Player2UIDFieldNumber = 9; + private long player2UID_; + /// + ///玩家2 UID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long Player2UID { + get { return player2UID_; } + set { + player2UID_ = value; + } + } + + /// Field number for the "Player2_NickName" field. + public const int Player2NickNameFieldNumber = 10; + private string player2NickName_ = ""; + /// + ///玩家2 昵称 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Player2NickName { + get { return player2NickName_; } + set { + player2NickName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Protobuf_Room_MiniInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Protobuf_Room_MiniInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RoomID != other.RoomID) return false; + if (GameRomID != other.GameRomID) return false; + if (GameRomHash != other.GameRomHash) return false; + if (PlayerState != other.PlayerState) return false; + if (GameState != other.GameState) return false; + if (ObsUserCount != other.ObsUserCount) return false; + if (Player1UID != other.Player1UID) return false; + if (Player1NickName != other.Player1NickName) return false; + if (Player2UID != other.Player2UID) return false; + if (Player2NickName != other.Player2NickName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (RoomID != 0) hash ^= RoomID.GetHashCode(); + if (GameRomID != 0) hash ^= GameRomID.GetHashCode(); + if (GameRomHash.Length != 0) hash ^= GameRomHash.GetHashCode(); + if (PlayerState != global::AxibugProtobuf.RoomPlayerState.NonePlayerState) hash ^= PlayerState.GetHashCode(); + if (GameState != global::AxibugProtobuf.RoomGameState.NoneGameState) hash ^= GameState.GetHashCode(); + if (ObsUserCount != 0) hash ^= ObsUserCount.GetHashCode(); + if (Player1UID != 0L) hash ^= Player1UID.GetHashCode(); + if (Player1NickName.Length != 0) hash ^= Player1NickName.GetHashCode(); + if (Player2UID != 0L) hash ^= Player2UID.GetHashCode(); + if (Player2NickName.Length != 0) hash ^= Player2NickName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RoomID != 0) { + output.WriteRawTag(8); + output.WriteInt32(RoomID); + } + if (GameRomID != 0) { + output.WriteRawTag(16); + output.WriteInt32(GameRomID); + } + if (GameRomHash.Length != 0) { + output.WriteRawTag(26); + output.WriteString(GameRomHash); + } + if (PlayerState != global::AxibugProtobuf.RoomPlayerState.NonePlayerState) { + output.WriteRawTag(32); + output.WriteEnum((int) PlayerState); + } + if (GameState != global::AxibugProtobuf.RoomGameState.NoneGameState) { + output.WriteRawTag(40); + output.WriteEnum((int) GameState); + } + if (ObsUserCount != 0) { + output.WriteRawTag(48); + output.WriteInt32(ObsUserCount); + } + if (Player1UID != 0L) { + output.WriteRawTag(56); + output.WriteInt64(Player1UID); + } + if (Player1NickName.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Player1NickName); + } + if (Player2UID != 0L) { + output.WriteRawTag(72); + output.WriteInt64(Player2UID); + } + if (Player2NickName.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Player2NickName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RoomID != 0) { + output.WriteRawTag(8); + output.WriteInt32(RoomID); + } + if (GameRomID != 0) { + output.WriteRawTag(16); + output.WriteInt32(GameRomID); + } + if (GameRomHash.Length != 0) { + output.WriteRawTag(26); + output.WriteString(GameRomHash); + } + if (PlayerState != global::AxibugProtobuf.RoomPlayerState.NonePlayerState) { + output.WriteRawTag(32); + output.WriteEnum((int) PlayerState); + } + if (GameState != global::AxibugProtobuf.RoomGameState.NoneGameState) { + output.WriteRawTag(40); + output.WriteEnum((int) GameState); + } + if (ObsUserCount != 0) { + output.WriteRawTag(48); + output.WriteInt32(ObsUserCount); + } + if (Player1UID != 0L) { + output.WriteRawTag(56); + output.WriteInt64(Player1UID); + } + if (Player1NickName.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Player1NickName); + } + if (Player2UID != 0L) { + output.WriteRawTag(72); + output.WriteInt64(Player2UID); + } + if (Player2NickName.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Player2NickName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (RoomID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomID); + } + if (GameRomID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GameRomID); + } + if (GameRomHash.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GameRomHash); + } + if (PlayerState != global::AxibugProtobuf.RoomPlayerState.NonePlayerState) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlayerState); + } + if (GameState != global::AxibugProtobuf.RoomGameState.NoneGameState) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) GameState); + } + if (ObsUserCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ObsUserCount); + } + if (Player1UID != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Player1UID); + } + if (Player1NickName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Player1NickName); + } + if (Player2UID != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Player2UID); + } + if (Player2NickName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Player2NickName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Protobuf_Room_MiniInfo other) { + if (other == null) { + return; + } + if (other.RoomID != 0) { + RoomID = other.RoomID; + } + if (other.GameRomID != 0) { + GameRomID = other.GameRomID; + } + if (other.GameRomHash.Length != 0) { + GameRomHash = other.GameRomHash; + } + if (other.PlayerState != global::AxibugProtobuf.RoomPlayerState.NonePlayerState) { + PlayerState = other.PlayerState; + } + if (other.GameState != global::AxibugProtobuf.RoomGameState.NoneGameState) { + GameState = other.GameState; + } + if (other.ObsUserCount != 0) { + ObsUserCount = other.ObsUserCount; + } + if (other.Player1UID != 0L) { + Player1UID = other.Player1UID; + } + if (other.Player1NickName.Length != 0) { + Player1NickName = other.Player1NickName; + } + if (other.Player2UID != 0L) { + Player2UID = other.Player2UID; + } + if (other.Player2NickName.Length != 0) { + Player2NickName = other.Player2NickName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + RoomID = input.ReadInt32(); + break; + } + case 16: { + GameRomID = input.ReadInt32(); + break; + } + case 26: { + GameRomHash = input.ReadString(); + break; + } + case 32: { + PlayerState = (global::AxibugProtobuf.RoomPlayerState) input.ReadEnum(); + break; + } + case 40: { + GameState = (global::AxibugProtobuf.RoomGameState) input.ReadEnum(); + break; + } + case 48: { + ObsUserCount = input.ReadInt32(); + break; + } + case 56: { + Player1UID = input.ReadInt64(); + break; + } + case 66: { + Player1NickName = input.ReadString(); + break; + } + case 72: { + Player2UID = input.ReadInt64(); + break; + } + case 82: { + Player2NickName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + RoomID = input.ReadInt32(); + break; + } + case 16: { + GameRomID = input.ReadInt32(); + break; + } + case 26: { + GameRomHash = input.ReadString(); + break; + } + case 32: { + PlayerState = (global::AxibugProtobuf.RoomPlayerState) input.ReadEnum(); + break; + } + case 40: { + GameState = (global::AxibugProtobuf.RoomGameState) input.ReadEnum(); + break; + } + case 48: { + ObsUserCount = input.ReadInt32(); + break; + } + case 56: { + Player1UID = input.ReadInt64(); + break; + } + case 66: { + Player1NickName = input.ReadString(); + break; + } + case 72: { + Player2UID = input.ReadInt64(); + break; + } + case 82: { + Player2NickName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Protobuf_Room_Update_RESP : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Room_Update_RESP()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Update_RESP() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Update_RESP(Protobuf_Room_Update_RESP other) : this() { + updateType_ = other.updateType_; + roomMiniInfo_ = other.roomMiniInfo_ != null ? other.roomMiniInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Update_RESP Clone() { + return new Protobuf_Room_Update_RESP(this); + } + + /// Field number for the "UpdateType" field. + public const int UpdateTypeFieldNumber = 1; + private int updateType_; + /// + ///[0] 更新或新增 [1] 删除 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int UpdateType { + get { return updateType_; } + set { + updateType_ = value; + } + } + + /// Field number for the "RoomMiniInfo" field. + public const int RoomMiniInfoFieldNumber = 2; + private global::AxibugProtobuf.Protobuf_Room_MiniInfo roomMiniInfo_; + /// + ///房间信息 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AxibugProtobuf.Protobuf_Room_MiniInfo RoomMiniInfo { + get { return roomMiniInfo_; } + set { + roomMiniInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Protobuf_Room_Update_RESP); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Protobuf_Room_Update_RESP other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UpdateType != other.UpdateType) return false; + if (!object.Equals(RoomMiniInfo, other.RoomMiniInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (UpdateType != 0) hash ^= UpdateType.GetHashCode(); + if (roomMiniInfo_ != null) hash ^= RoomMiniInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (UpdateType != 0) { + output.WriteRawTag(8); + output.WriteInt32(UpdateType); + } + if (roomMiniInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RoomMiniInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (UpdateType != 0) { + output.WriteRawTag(8); + output.WriteInt32(UpdateType); + } + if (roomMiniInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RoomMiniInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (UpdateType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UpdateType); + } + if (roomMiniInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoomMiniInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Protobuf_Room_Update_RESP other) { + if (other == null) { + return; + } + if (other.UpdateType != 0) { + UpdateType = other.UpdateType; + } + if (other.roomMiniInfo_ != null) { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + RoomMiniInfo.MergeFrom(other.RoomMiniInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + UpdateType = input.ReadInt32(); + break; + } + case 18: { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + input.ReadMessage(RoomMiniInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + UpdateType = input.ReadInt32(); + break; + } + case 18: { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + input.ReadMessage(RoomMiniInfo); + break; + } + } + } + } + #endif + + } + public sealed partial class Protobuf_Screnn_Frame : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -1189,7 +2343,7 @@ namespace AxibugProtobuf { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { - get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[4]; } + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[8]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -1206,6 +2360,7 @@ namespace AxibugProtobuf { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public Protobuf_Screnn_Frame(Protobuf_Screnn_Frame other) : this() { + roomID_ = other.roomID_; frameID_ = other.frameID_; rawBitmap_ = other.rawBitmap_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -1216,8 +2371,22 @@ namespace AxibugProtobuf { return new Protobuf_Screnn_Frame(this); } + /// Field number for the "RoomID" field. + public const int RoomIDFieldNumber = 1; + private int roomID_; + /// + ///房间ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int RoomID { + get { return roomID_; } + set { + roomID_ = value; + } + } + /// Field number for the "FrameID" field. - public const int FrameIDFieldNumber = 1; + public const int FrameIDFieldNumber = 2; private int frameID_; /// ///帧编号 @@ -1231,7 +2400,7 @@ namespace AxibugProtobuf { } /// Field number for the "RawBitmap" field. - public const int RawBitmapFieldNumber = 2; + public const int RawBitmapFieldNumber = 3; private pb::ByteString rawBitmap_ = pb::ByteString.Empty; /// ///渲染层画面 @@ -1257,6 +2426,7 @@ namespace AxibugProtobuf { if (ReferenceEquals(other, this)) { return true; } + if (RoomID != other.RoomID) return false; if (FrameID != other.FrameID) return false; if (RawBitmap != other.RawBitmap) return false; return Equals(_unknownFields, other._unknownFields); @@ -1265,6 +2435,7 @@ namespace AxibugProtobuf { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; + if (RoomID != 0) hash ^= RoomID.GetHashCode(); if (FrameID != 0) hash ^= FrameID.GetHashCode(); if (RawBitmap.Length != 0) hash ^= RawBitmap.GetHashCode(); if (_unknownFields != null) { @@ -1283,12 +2454,16 @@ namespace AxibugProtobuf { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (FrameID != 0) { + if (RoomID != 0) { output.WriteRawTag(8); + output.WriteInt32(RoomID); + } + if (FrameID != 0) { + output.WriteRawTag(16); output.WriteInt32(FrameID); } if (RawBitmap.Length != 0) { - output.WriteRawTag(18); + output.WriteRawTag(26); output.WriteBytes(RawBitmap); } if (_unknownFields != null) { @@ -1300,12 +2475,16 @@ namespace AxibugProtobuf { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (FrameID != 0) { + if (RoomID != 0) { output.WriteRawTag(8); + output.WriteInt32(RoomID); + } + if (FrameID != 0) { + output.WriteRawTag(16); output.WriteInt32(FrameID); } if (RawBitmap.Length != 0) { - output.WriteRawTag(18); + output.WriteRawTag(26); output.WriteBytes(RawBitmap); } if (_unknownFields != null) { @@ -1317,6 +2496,9 @@ namespace AxibugProtobuf { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; + if (RoomID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomID); + } if (FrameID != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(FrameID); } @@ -1334,6 +2516,9 @@ namespace AxibugProtobuf { if (other == null) { return; } + if (other.RoomID != 0) { + RoomID = other.RoomID; + } if (other.FrameID != 0) { FrameID = other.FrameID; } @@ -1355,10 +2540,14 @@ namespace AxibugProtobuf { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { + RoomID = input.ReadInt32(); + break; + } + case 16: { FrameID = input.ReadInt32(); break; } - case 18: { + case 26: { RawBitmap = input.ReadBytes(); break; } @@ -1377,10 +2566,14 @@ namespace AxibugProtobuf { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { + RoomID = input.ReadInt32(); + break; + } + case 16: { FrameID = input.ReadInt32(); break; } - case 18: { + case 26: { RawBitmap = input.ReadBytes(); break; } @@ -1391,6 +2584,1330 @@ namespace AxibugProtobuf { } + public sealed partial class Protobuf_Room_Create : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Room_Create()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Create() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Create(Protobuf_Room_Create other) : this() { + gameRomID_ = other.gameRomID_; + gameRomHash_ = other.gameRomHash_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Create Clone() { + return new Protobuf_Room_Create(this); + } + + /// Field number for the "GameRomID" field. + public const int GameRomIDFieldNumber = 1; + private int gameRomID_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int GameRomID { + get { return gameRomID_; } + set { + gameRomID_ = value; + } + } + + /// Field number for the "GameRomHash" field. + public const int GameRomHashFieldNumber = 2; + private string gameRomHash_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string GameRomHash { + get { return gameRomHash_; } + set { + gameRomHash_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Protobuf_Room_Create); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Protobuf_Room_Create other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GameRomID != other.GameRomID) return false; + if (GameRomHash != other.GameRomHash) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (GameRomID != 0) hash ^= GameRomID.GetHashCode(); + if (GameRomHash.Length != 0) hash ^= GameRomHash.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (GameRomID != 0) { + output.WriteRawTag(8); + output.WriteInt32(GameRomID); + } + if (GameRomHash.Length != 0) { + output.WriteRawTag(18); + output.WriteString(GameRomHash); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (GameRomID != 0) { + output.WriteRawTag(8); + output.WriteInt32(GameRomID); + } + if (GameRomHash.Length != 0) { + output.WriteRawTag(18); + output.WriteString(GameRomHash); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (GameRomID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(GameRomID); + } + if (GameRomHash.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GameRomHash); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Protobuf_Room_Create other) { + if (other == null) { + return; + } + if (other.GameRomID != 0) { + GameRomID = other.GameRomID; + } + if (other.GameRomHash.Length != 0) { + GameRomHash = other.GameRomHash; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + GameRomID = input.ReadInt32(); + break; + } + case 18: { + GameRomHash = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + GameRomID = input.ReadInt32(); + break; + } + case 18: { + GameRomHash = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Protobuf_Room_Create_RESP : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Room_Create_RESP()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Create_RESP() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Create_RESP(Protobuf_Room_Create_RESP other) : this() { + roomMiniInfo_ = other.roomMiniInfo_ != null ? other.roomMiniInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Create_RESP Clone() { + return new Protobuf_Room_Create_RESP(this); + } + + /// Field number for the "RoomMiniInfo" field. + public const int RoomMiniInfoFieldNumber = 1; + private global::AxibugProtobuf.Protobuf_Room_MiniInfo roomMiniInfo_; + /// + ///房间信息 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AxibugProtobuf.Protobuf_Room_MiniInfo RoomMiniInfo { + get { return roomMiniInfo_; } + set { + roomMiniInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Protobuf_Room_Create_RESP); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Protobuf_Room_Create_RESP other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RoomMiniInfo, other.RoomMiniInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (roomMiniInfo_ != null) hash ^= RoomMiniInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (roomMiniInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RoomMiniInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (roomMiniInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RoomMiniInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (roomMiniInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoomMiniInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Protobuf_Room_Create_RESP other) { + if (other == null) { + return; + } + if (other.roomMiniInfo_ != null) { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + RoomMiniInfo.MergeFrom(other.RoomMiniInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + input.ReadMessage(RoomMiniInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + input.ReadMessage(RoomMiniInfo); + break; + } + } + } + } + #endif + + } + + public sealed partial class Protobuf_Room_Join : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Room_Join()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Join() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Join(Protobuf_Room_Join other) : this() { + roomID_ = other.roomID_; + playerNum_ = other.playerNum_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Join Clone() { + return new Protobuf_Room_Join(this); + } + + /// Field number for the "RoomID" field. + public const int RoomIDFieldNumber = 1; + private int roomID_; + /// + ///房间ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int RoomID { + get { return roomID_; } + set { + roomID_ = value; + } + } + + /// Field number for the "PlayerNum" field. + public const int PlayerNumFieldNumber = 2; + private int playerNum_; + /// + ///玩家编号 [0]1号玩家 [1]2号玩家 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int PlayerNum { + get { return playerNum_; } + set { + playerNum_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Protobuf_Room_Join); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Protobuf_Room_Join other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RoomID != other.RoomID) return false; + if (PlayerNum != other.PlayerNum) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (RoomID != 0) hash ^= RoomID.GetHashCode(); + if (PlayerNum != 0) hash ^= PlayerNum.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RoomID != 0) { + output.WriteRawTag(8); + output.WriteInt32(RoomID); + } + if (PlayerNum != 0) { + output.WriteRawTag(16); + output.WriteInt32(PlayerNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RoomID != 0) { + output.WriteRawTag(8); + output.WriteInt32(RoomID); + } + if (PlayerNum != 0) { + output.WriteRawTag(16); + output.WriteInt32(PlayerNum); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (RoomID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomID); + } + if (PlayerNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlayerNum); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Protobuf_Room_Join other) { + if (other == null) { + return; + } + if (other.RoomID != 0) { + RoomID = other.RoomID; + } + if (other.PlayerNum != 0) { + PlayerNum = other.PlayerNum; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + RoomID = input.ReadInt32(); + break; + } + case 16: { + PlayerNum = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + RoomID = input.ReadInt32(); + break; + } + case 16: { + PlayerNum = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Protobuf_Room_Join_RESP : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Room_Join_RESP()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Join_RESP() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Join_RESP(Protobuf_Room_Join_RESP other) : this() { + roomMiniInfo_ = other.roomMiniInfo_ != null ? other.roomMiniInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Join_RESP Clone() { + return new Protobuf_Room_Join_RESP(this); + } + + /// Field number for the "RoomMiniInfo" field. + public const int RoomMiniInfoFieldNumber = 1; + private global::AxibugProtobuf.Protobuf_Room_MiniInfo roomMiniInfo_; + /// + ///房间信息 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AxibugProtobuf.Protobuf_Room_MiniInfo RoomMiniInfo { + get { return roomMiniInfo_; } + set { + roomMiniInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Protobuf_Room_Join_RESP); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Protobuf_Room_Join_RESP other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RoomMiniInfo, other.RoomMiniInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (roomMiniInfo_ != null) hash ^= RoomMiniInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (roomMiniInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RoomMiniInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (roomMiniInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RoomMiniInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (roomMiniInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoomMiniInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Protobuf_Room_Join_RESP other) { + if (other == null) { + return; + } + if (other.roomMiniInfo_ != null) { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + RoomMiniInfo.MergeFrom(other.RoomMiniInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + input.ReadMessage(RoomMiniInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + input.ReadMessage(RoomMiniInfo); + break; + } + } + } + } + #endif + + } + + public sealed partial class Protobuf_Room_Leave : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Room_Leave()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Leave() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Leave(Protobuf_Room_Leave other) : this() { + roomID_ = other.roomID_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Leave Clone() { + return new Protobuf_Room_Leave(this); + } + + /// Field number for the "RoomID" field. + public const int RoomIDFieldNumber = 1; + private int roomID_; + /// + ///离开的房间ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int RoomID { + get { return roomID_; } + set { + roomID_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Protobuf_Room_Leave); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Protobuf_Room_Leave other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RoomID != other.RoomID) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (RoomID != 0) hash ^= RoomID.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RoomID != 0) { + output.WriteRawTag(8); + output.WriteInt32(RoomID); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RoomID != 0) { + output.WriteRawTag(8); + output.WriteInt32(RoomID); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (RoomID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomID); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Protobuf_Room_Leave other) { + if (other == null) { + return; + } + if (other.RoomID != 0) { + RoomID = other.RoomID; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + RoomID = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + RoomID = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Protobuf_Room_Leave_RESP : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Room_Leave_RESP()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Leave_RESP() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Leave_RESP(Protobuf_Room_Leave_RESP other) : this() { + roomID_ = other.roomID_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_Leave_RESP Clone() { + return new Protobuf_Room_Leave_RESP(this); + } + + /// Field number for the "RoomID" field. + public const int RoomIDFieldNumber = 1; + private int roomID_; + /// + ///离开的房间ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int RoomID { + get { return roomID_; } + set { + roomID_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Protobuf_Room_Leave_RESP); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Protobuf_Room_Leave_RESP other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RoomID != other.RoomID) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (RoomID != 0) hash ^= RoomID.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RoomID != 0) { + output.WriteRawTag(8); + output.WriteInt32(RoomID); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RoomID != 0) { + output.WriteRawTag(8); + output.WriteInt32(RoomID); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (RoomID != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomID); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Protobuf_Room_Leave_RESP other) { + if (other == null) { + return; + } + if (other.RoomID != 0) { + RoomID = other.RoomID; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + RoomID = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + RoomID = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Protobuf_Room_MyRoom_State_Change : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Room_MyRoom_State_Change()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::AxibugProtobuf.ProtobufAxibugEmuOnlineReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_MyRoom_State_Change() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_MyRoom_State_Change(Protobuf_Room_MyRoom_State_Change other) : this() { + roomMiniInfo_ = other.roomMiniInfo_ != null ? other.roomMiniInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Protobuf_Room_MyRoom_State_Change Clone() { + return new Protobuf_Room_MyRoom_State_Change(this); + } + + /// Field number for the "RoomMiniInfo" field. + public const int RoomMiniInfoFieldNumber = 1; + private global::AxibugProtobuf.Protobuf_Room_MiniInfo roomMiniInfo_; + /// + ///更新房间信息 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AxibugProtobuf.Protobuf_Room_MiniInfo RoomMiniInfo { + get { return roomMiniInfo_; } + set { + roomMiniInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Protobuf_Room_MyRoom_State_Change); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Protobuf_Room_MyRoom_State_Change other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RoomMiniInfo, other.RoomMiniInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (roomMiniInfo_ != null) hash ^= RoomMiniInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (roomMiniInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RoomMiniInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (roomMiniInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RoomMiniInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (roomMiniInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoomMiniInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Protobuf_Room_MyRoom_State_Change other) { + if (other == null) { + return; + } + if (other.roomMiniInfo_ != null) { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + RoomMiniInfo.MergeFrom(other.RoomMiniInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + input.ReadMessage(RoomMiniInfo); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (roomMiniInfo_ == null) { + RoomMiniInfo = new global::AxibugProtobuf.Protobuf_Room_MiniInfo(); + } + input.ReadMessage(RoomMiniInfo); + break; + } + } + } + } + #endif + + } + #endregion } diff --git a/ProtobufCore/proto/protobuf_AxibugEmuOnline.proto b/ProtobufCore/proto/protobuf_AxibugEmuOnline.proto index ed86c1e..a2fda67 100644 --- a/ProtobufCore/proto/protobuf_AxibugEmuOnline.proto +++ b/ProtobufCore/proto/protobuf_AxibugEmuOnline.proto @@ -10,18 +10,21 @@ enum CommandID CMD_CHATMSG = 4001; //广播聊天信息上行 | 下行 对应 Protobuf_ChatMsg | Protobuf_ChatMsg_RESP - //房间相关 + //房间列表相关 CMD_Room_List = 5001; //房间列表 上行 | 下行 对应 Protobuf_Room_List | Protobuf_Room_List_RESP - CMD_Room_List_Update = 5002; //房间列表更新 对应 Protobuf_Room_Update_RESP + CMD_Room_List_Update = 5002; //房间单个房间信息更新 对应 Protobuf_Room_Update_RESP - CMD_Room_Create = 5003; //房间列表创建 对应 Protobuf_Room_Create + //房间内相关 + CMD_Room_Create = 5101; //房间列表创建 对应 Protobuf_Room_Create | Protobuf_Room_Create_RESP - CMD_Room_Leave = 5004; //房间列表离开 对应 Protobuf_Room_Leave + CMD_Room_Join = 5105; //房间列表加入 对应 Protobuf_Room_Join | Protobuf_Room_Join_RESP - CMD_Room_Join = 5005; //房间列表加入 对应 Protobuf_Room_Join + CMD_Room_Leave = 5106; //房间列表离开 对应 Protobuf_Room_Leave | Protobuf_Room_Leave_RESP - //画面同步相关 + CMD_Room_MyRoom_State_Changed = 5110; //我所在的房间内状态发生变化 对应 Protobuf_Room_MyRoom_State_Change; + + //游戏同步 CMD_Screen = 6001; //画面同步 | 同步广播 对应 Protobuf_Screnn_Frame } @@ -29,6 +32,9 @@ enum ErrorCode { ERROR_DEFAUL = 0;//缺省不使用 ERROR_OK = 1; //成功 + + ERROR_ROOM_NOT_FOUND = 10;//房间不存在 + ERROR_ROOM_SLOT_READLY_HAD_PLAYER=11;//加入目标位置已经有人 } enum LoginType @@ -47,7 +53,7 @@ enum DeviceType enum RoomPlayerState { - None = 0;//缺省 + None_PlayerState = 0;//缺省 OnlyP1 = 1; //仅P1 OnlyP2 = 2; //仅P2 BothOnline = 3; //玩家都在 @@ -55,7 +61,7 @@ enum RoomPlayerState enum RoomGameState { - None = 0;//缺省 + None_GameState = 0;//缺省 InGame = 1;//游戏中 Pause = 2;//暂停 } @@ -116,19 +122,21 @@ message Protobuf_Room_List_RESP message Protobuf_Room_MiniInfo { int32 RoomID = 1;//房间ID - int32 GameID = 2;//游戏ID - RoomPlayerState PlayerState = 3;//玩家加入状态 - RoomGameState GameState = 4;//游戏状态 - int32 ObsUserCount = 5;//观战用户数量 - int64 Player1_UID = 6;//玩家1 UID - string Player1_NickName = 7;//玩家1 昵称 - int64 Player2_UID = 8;//玩家2 UID - string Player2_NickName = 9;//玩家2 昵称 + int32 GameRomID = 2;//游戏ID + string GameRomHash = 3; + RoomPlayerState PlayerState = 4;//玩家加入状态 + RoomGameState GameState = 5;//游戏状态 + int32 ObsUserCount = 6;//观战用户数量 + int64 Player1_UID = 7;//玩家1 UID + string Player1_NickName = 8;//玩家1 昵称 + int64 Player2_UID = 9;//玩家2 UID + string Player2_NickName = 10;//玩家2 昵称 } message Protobuf_Room_Update_RESP { - Protobuf_Room_MiniInfo RoomMiniInfo = 1;//房间信息 + int32 UpdateType = 1;//[0] 更新或新增 [1] 删除 + Protobuf_Room_MiniInfo RoomMiniInfo = 2;//房间信息 } message Protobuf_Screnn_Frame @@ -136,4 +144,41 @@ message Protobuf_Screnn_Frame int32 RoomID = 1;//房间ID int32 FrameID = 2;//帧编号 bytes RawBitmap = 3;//渲染层画面 +} + +message Protobuf_Room_Create +{ + int32 GameRomID = 1; + string GameRomHash = 2; +} + +message Protobuf_Room_Create_RESP +{ + Protobuf_Room_MiniInfo RoomMiniInfo = 1;//房间信息 +} + +message Protobuf_Room_Join +{ + int32 RoomID = 1;//房间ID + int32 PlayerNum = 2;//玩家编号 [0]1号玩家 [1]2号玩家 +} + +message Protobuf_Room_Join_RESP +{ + Protobuf_Room_MiniInfo RoomMiniInfo = 1;//房间信息 +} + +message Protobuf_Room_Leave +{ + int32 RoomID = 1;//离开的房间ID +} + +message Protobuf_Room_Leave_RESP +{ + int32 RoomID = 1;//离开的房间ID +} + +message Protobuf_Room_MyRoom_State_Change +{ + Protobuf_Room_MiniInfo RoomMiniInfo = 1;//更新房间信息 } \ No newline at end of file