public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            byte box0 = reader.ReadByte();

            KeyRingBonus      = BooleanByteWrapper.GetFlag(box0, 1);
            HasHardcoreDrop   = BooleanByteWrapper.GetFlag(box0, 2);
            HasAVARewardToken = BooleanByteWrapper.GetFlag(box0, 3);
            var staticInfosTypeId = reader.ReadShort();

            StaticInfos = new GroupMonsterStaticInformations();
            StaticInfos.Deserialize(reader);
            LootShare     = reader.ReadByte();
            AlignmentSide = reader.ReadByte();
        }
Ejemplo n.º 2
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            NbWaves = reader.ReadByte();
            var countAlternatives = reader.ReadShort();

            Alternatives = new List <GroupMonsterStaticInformations>();
            for (short i = 0; i < countAlternatives; i++)
            {
                var alternativestypeId = reader.ReadShort();
                GroupMonsterStaticInformations type = new GroupMonsterStaticInformations();
                type.Deserialize(reader);
                Alternatives.Add(type);
            }
        }