//登录服消息返回 private void SC_LoginRst(WfPacket packet) { //获取登录服务器信息 SC_LoginRst pak = PooledClassManagerHF <SC_LoginRst> .CreateClass(); pak.DeSerialize(packet); int result = pak.m_rst; if (result == 0) { m_Login.m_GameServers.Clear(); GameServerInfo info = new GameServerInfo(); info.m_szIp = m_Login.m_LoginInfo.m_szIp; info.m_iPort = 24000; info.m_SessionId = pak.m_sessionid; m_Login.m_GameServers.Add(info); Debug.Log("获取服务器信息成功:" + info.m_SessionId); m_LoginRst = emLoginResult.emLoginResult_OK; CGameProcedure.SetProcedureStatus((int)LoginStatus.LoginRst_Ok); //连接游戏服务器 //StartLoginGame(); } else { m_LoginRst = emLoginResult.emLoginResult_Failed; CGameProcedure.SetProcedureStatus((int)LoginStatus.LoginRst_Ok); Debug.LogError("登录失败"); } pak.DestroyClass(); }
public override void DestroyClass() { PooledClassManagerHF <SC_CommonNotice> .DeleteClass(this); }
public override void DestroyClass() { PooledClassManagerHF <SC_LoginRst> .DeleteClass(this); }
public override void DestroyClass() { PooledClassManagerHF <SC_PlayerInfo> .DeleteClass(this); }
public override void DestroyClass() { PooledClassManagerHF <CS_LoginGateWay> .DeleteClass(this); }
public override void DestroyClass() { PooledClassManagerHF <CS_Register> .DeleteClass(this); }