Пример #1
0
        public CharacterListUpdatePacket(PacketReader reader)
            : base(0x86, "Character List Update")
        {
            // Documented at http://docs.polserver.com/packets/index.php?Packet=0xA8
            int characterCount = reader.ReadByte();
            m_characters = new CharacterListEntry[characterCount];

            for (int i = 0; i < characterCount; i++)
            {
                m_characters[i] = new CharacterListEntry(reader);
            }
        }
        public CharacterCityListPacket(PacketReader reader)
            : base(0xA9, "Char/City List")
        {
            int characterCount = reader.ReadByte();
            m_characters = new CharacterListEntry[characterCount];

            for (int i = 0; i < characterCount; i++)
            {
                m_characters[i] = new CharacterListEntry(reader);
            }

            int locationCount = reader.ReadByte();
            m_locations = new StartingLocation[locationCount];

            for (int i = 0; i < locationCount; i++)
            {
                m_locations[i] = new StartingLocation(reader);
            }
        }
Пример #3
0
 public static void SetCharacterList(CharacterListEntry[] list)
 {
     m_characters = list;
     m_updateValue++;
 }