Ejemplo n.º 1
0
        public uint Execute(PacketDistributed ipacket)
        {
            GC_CHALLENGE_HISTORY packet = (GC_CHALLENGE_HISTORY )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            PVPData.UpdateChallengeHistory(packet);
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
Ejemplo n.º 2
0
 public static void UpdateChallengeHistory(GC_CHALLENGE_HISTORY data)
 {
     ChallengeHistory.Clear();
     for (int i = 0; i < data.userGuidCount; i++)
     {
         ChallengeHistory.Add(new HistroyData(data.GetUserGuid(i), data.GetRankPos(i), data.GetOccurTime(i), data.GetIsLose(i), data.GetIsActive(i), data.GetName(i)));
     }
     if (delegateUpdatePvPRecordList != null)
     {
         delegateUpdatePvPRecordList();
     }
 }