Esempio n. 1
0
        public uint Execute(PacketDistributed ipacket)
        {
            CG_MASTER_JOIN packet = (CG_MASTER_JOIN )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
Esempio n. 2
0
        //申请加入师门
        public void ReqJoinMaster(UInt64 MasterGuid)
        {
            //师门Guid判断
            if (MasterGuid == GlobeVar.INVALID_GUID || MasterGuid == 0)
            {
                return;
            }

            //有师门无法申请
            if (GameManager.gameManager.PlayerDataPool.MasterInfo.MasterGuid != GlobeVar.INVALID_GUID &&
                GameManager.gameManager.PlayerDataPool.IsMasterReserveMember() == false)
            {
                Singleton <ObjManager> .GetInstance().MainPlayer.SendNoticMsg(false, "#{3324}");

                return;
            }

            CG_MASTER_JOIN msg = (CG_MASTER_JOIN)PacketDistributed.CreatePacket(MessageID.PACKET_CG_MASTER_JOIN);

            msg.MasterGuid = MasterGuid;
            msg.SendPacket();
        }