Пример #1
0
    public static void ShowWorldBossList(GC_WORLDBOSS_TEAMLIST msg)
    {
        WorldBossList.Clear();

        //...
        WorldBossCurPage   = msg.Curpage;
        WorldBossTotalPage = msg.Totalpage;
        for (int i = 0; i < msg.teamIdCount; i++)
        {
            WorldBossList.Add(new WorldBossTeamInfo(
                                  msg.GetTeamId(i), msg.GetLeadername(i),
                                  msg.GetScore(i), msg.GetPos(i), msg.GetCd(i), msg.GetSceneClassId(i), msg.GetSceneInstId(i)));
        }

        if (WorldBossWindow.Instance() != null)
        {
            CallShowWorldBossList();
        }
        else
        {
            if (IsClickWorldBossUI == 1)
            {
                IsClickWorldBossUI = 0;
                UIManager.ShowUI(UIInfo.WorldBossWindowRoot, OnShowWorldBossMemberRoot);
            }
        }
    }
        public uint Execute(PacketDistributed ipacket)
        {
            GC_WORLDBOSS_TEAMLIST packet = (GC_WORLDBOSS_TEAMLIST )ipacket;

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