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

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            PVPData.UpdatePvPRankList(packet);
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
Esempio n. 2
0
 public static void UpdatePvPRankList(GC_CHALLENGERANKLIST packet)
 {
     PvPRankList.Clear();
     PvPRankCurPage   = packet.Page;
     PvPRankTotalPage = packet.Totalpage;
     for (int i = 0; i < packet.userGuidCount; i++)
     {
         PvPRankList.Add(new PvPRankListItemInfo(
                             packet.GetUserGuid(i), packet.GetName(i), packet.GetPos(i),
                             packet.GetCombatNum(i), packet.GetLevel(i), packet.GetProfession(i), packet.GetZhenqi(i)));
     }
     if (delegateUpdatePvPRankList != null)
     {
         delegateUpdatePvPRankList();
     }
 }