private void HandleReplyRegisterRoomServer(Msg_LR_ReplyRegisterRoomServer msg, PBChannel channel, int handle, uint seq) { if (msg.IsOk == true) { is_continue_register_ = false; } }
internal void RegisterRoomServer(RoomServerInfo info) { if (!m_LobbyInfo.RoomServerInfos.ContainsKey(info.RoomServerName)) { m_LobbyInfo.RoomServerInfos.Add(info.RoomServerName, info); } else { RoomServerInfo info_ = m_LobbyInfo.RoomServerInfos[info.RoomServerName]; info_.RoomServerName = info.RoomServerName; info_.ServerIp = info.ServerIp; info_.ServerPort = info.ServerPort; info_.MaxRoomNum = info.MaxRoomNum; } Msg_LR_ReplyRegisterRoomServer resultBuilder = new Msg_LR_ReplyRegisterRoomServer(); resultBuilder.IsOk = true; LobbyServer.Instance.RoomSvrChannel.Send(info.RoomServerName, resultBuilder); LogSys.Log(LOG_TYPE.DEBUG, "RegisterRoomServer,name:{0},ip:{1},port:{2},max room num:{3}", info.RoomServerName, info.ServerIp, info.ServerPort, info.MaxRoomNum); }