Esempio n. 1
0
        public uint Execute(PacketDistributed ipacket)
        {
            CG_REQ_TEAM_CHANGE_LEADER packet = (CG_REQ_TEAM_CHANGE_LEADER )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 ReqChangeTeamLeader(UInt64 teamMemberGuid)
        {
            if (GlobeVar.INVALID_GUID == teamMemberGuid)
            {
                return;
            }

            CG_REQ_TEAM_CHANGE_LEADER msg = (CG_REQ_TEAM_CHANGE_LEADER)PacketDistributed.CreatePacket(MessageID.PACKET_CG_REQ_TEAM_CHANGE_LEADER);

            msg.SetTeamMemberGuid(teamMemberGuid);
            msg.SendPacket();
        }