Beispiel #1
0
        //踢出某个会员
        public void ReqKickMasterMember(UInt64 kickedGuid)
        {
            if (kickedGuid == GlobeVar.INVALID_GUID || kickedGuid == 0)
            {
                return;
            }

            //无师门无法申请
            if (GameManager.gameManager.PlayerDataPool.MasterInfo.MasterGuid == GlobeVar.INVALID_GUID)
            {
                return;
            }

            //非掌门不能申请
            if (GameManager.gameManager.PlayerDataPool.IsMasterChief() == false)
            {
                return;
            }

            if (kickedGuid == GUID)
            {
                return;
            }

            CG_MASTER_KICK msg = (CG_MASTER_KICK)PacketDistributed.CreatePacket(MessageID.PACKET_CG_MASTER_KICK);

            msg.Kicked = kickedGuid;
            msg.SendPacket();
        }
        public uint Execute(PacketDistributed ipacket)
        {
            CG_MASTER_KICK packet = (CG_MASTER_KICK )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }