public void OnMsg_X2Y_ReqMasterInfo(IDaemonProxy net, Deserializer reader) { var serverInfo = reader.Parse <Msg_ReqMasterInfo>().serverInfo; Debug.Log("OnMsg_X2Y_ReqMasterInfo " + serverInfo.ToString()); var type = (EServerType)serverInfo.serverType; if (serverInfo.isMaster) { _type2MasterInfo[type] = serverInfo; _netServerYX.Border(EMsgYX.Y2X_BorderMasterInfo, new Msg_BorderMasterInfo() { serverInfo = serverInfo }); } if (_type2MasterInfo.Count > 0) { var infos = _type2MasterInfo.Values.ToArray(); net.SendMsg(EMsgYX.Y2X_RepMasterInfo, new Msg_RepMasterInfo() { serverInfos = infos }); } }
public void OnMsg_X2Y_RegisterDaemon(IDaemonProxy net, Deserializer reader) { var msg = reader.Parse <Msg_RegisterDaemon>(); Debug.Log("OnMsg_X2Y_RegisterDaemon " + msg.ToString()); //_netServerXS.Border(EMsgXS.X2S_RepMasterInfo, msg); }