예제 #1
0
        public static void HandleIslandCompleted(Packet packet)
        {
            packet.ReadInt32("MapID");
            packet.ReadInt32("Winner");
            var PlayerCount = packet.ReadUInt32("GroupTeamSize");

            for (int j = 0; j < PlayerCount; j++)
            {
                CharacterHandler.ReadPlayerModelDisplayInfo(packet, "DisplayInfo", j);
            }
        }
        public static void ReadWhoEntry(Packet packet, params object[] idx)
        {
            CharacterHandler.ReadPlayerGuidLookupData(packet, idx);

            packet.ReadPackedGuid128("GuildGUID", idx);

            packet.ReadUInt32("GuildVirtualRealmAddress", idx);
            packet.ReadInt32 <AreaId>("AreaID", idx);

            packet.ResetBitReader();
            var guildNameLen = packet.ReadBits(7);

            packet.ReadBit("IsGM", idx);

            packet.ReadWoWString("GuildName", guildNameLen, idx);
        }