public uint Execute(PacketDistributed ipacket) { CG_MASTER_REQ_LIST packet = (CG_MASTER_REQ_LIST )ipacket; if (null == packet) { return((uint)PACKET_EXE.PACKET_EXE_ERROR); } //enter your logic return((uint)PACKET_EXE.PACKET_EXE_CONTINUE); }
//申请全服师门列表 public void ReqMasterList() { if (null != GameManager.gameManager.PlayerDataPool.MasterPreList) { GameManager.gameManager.PlayerDataPool.MasterPreList.CleanUp(); } CG_MASTER_REQ_LIST msg = (CG_MASTER_REQ_LIST)PacketDistributed.CreatePacket(MessageID.PACKET_CG_MASTER_REQ_LIST); msg.Requester = GUID; msg.SendPacket(); m_bNeedRequestMasterList = false; StartCoroutine(ResetMasterListFlag()); }