예제 #1
0
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            byte flag = reader.ReadByte();

            m_keyRingBonus      = BooleanByteWrapper.GetFlag(flag, 0);
            m_hasHardcoreDrop   = BooleanByteWrapper.GetFlag(flag, 1);
            m_hasAVARewardToken = BooleanByteWrapper.GetFlag(flag, 2);
            m_staticInfos       = ProtocolTypeManager.GetInstance <GroupMonsterStaticInformations>(reader.ReadUShort());
            m_staticInfos.Deserialize(reader);
            m_creationTime  = reader.ReadDouble();
            m_ageBonusRate  = reader.ReadInt();
            m_lootShare     = reader.ReadByte();
            m_alignmentSide = reader.ReadByte();
        }
예제 #2
0
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            int alternativesCount = reader.ReadUShort();
            int alternativesIndex;

            m_alternatives = new System.Collections.Generic.List <GroupMonsterStaticInformations>();
            for (alternativesIndex = 0; (alternativesIndex < alternativesCount); alternativesIndex = (alternativesIndex + 1))
            {
                GroupMonsterStaticInformations objectToAdd = ProtocolTypeManager.GetInstance <GroupMonsterStaticInformations>(reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                m_alternatives.Add(objectToAdd);
            }
            m_nbWaves = reader.ReadByte();
        }