Exemplo n.º 1
0
    public static void ShowRegisterMemberList(GC_HUASHAN_PVP_MEMBERLIST msg)
    {
        RegisterMemberList.Clear();
        HuaShanPosition = msg.SelfPos;
        //
        if (msg.guidCount <= 0)
        {
            if (null != ActivityController.Instance())
            {
                ActivityController.Instance().ChangeToHSPvPShowDefault();
            }
        }
        else
        {
            if (null != ActivityController.Instance())
            {
                ActivityController.Instance().ChangeToHSPvPShowMemberList();
            }

            for (int i = 0; i < msg.guidCount; i++)
            {
                RegisterMemberList.Add(new RegisterMemberInfo(
                                           msg.GetGuid(i), msg.GetName(i),
                                           (CharacterDefine.PROFESSION)msg.GetProfession(i),
                                           msg.GetLevel(i), msg.GetCombatnum(i), msg.GetPos(i)));
            }

            // ....
            if (null != delegateShowRegisterMemberList)
            {
                delegateShowRegisterMemberList();
            }
        }
    }
Exemplo n.º 2
0
        public uint Execute(PacketDistributed ipacket)
        {
            GC_HUASHAN_PVP_MEMBERLIST packet = (GC_HUASHAN_PVP_MEMBERLIST )ipacket;

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