public override void Deserialize(ICustomDataInput reader)
        {
            int monstersCount = reader.ReadUShort();
            int monstersIndex;

            m_monsters = new System.Collections.Generic.List <MonsterInGroupLightInformations>();
            for (monstersIndex = 0; (monstersIndex < monstersCount); monstersIndex = (monstersIndex + 1))
            {
                MonsterInGroupLightInformations objectToAdd = new MonsterInGroupLightInformations();
                objectToAdd.Deserialize(reader);
                m_monsters.Add(objectToAdd);
            }
            m_playerCount = reader.ReadInt();
        }
Ejemplo n.º 2
0
        public override void Deserialize(ICustomDataInput reader)
        {
            m_mainCreatureLightInfos = new MonsterInGroupLightInformations();
            m_mainCreatureLightInfos.Deserialize(reader);
            int underlingsCount = reader.ReadUShort();
            int underlingsIndex;

            m_underlings = new System.Collections.Generic.List <MonsterInGroupInformations>();
            for (underlingsIndex = 0; (underlingsIndex < underlingsCount); underlingsIndex = (underlingsIndex + 1))
            {
                MonsterInGroupInformations objectToAdd = new MonsterInGroupInformations();
                objectToAdd.Deserialize(reader);
                m_underlings.Add(objectToAdd);
            }
        }