Esempio n. 1
0
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            var presetsCount = reader.ReadUShort();

            Presets = new List <Types.Game.Inventory.Preset.Preset>();
            for (var presetsIndex = 0; presetsIndex < presetsCount; presetsIndex++)
            {
                var objectToAdd = new Types.Game.Inventory.Preset.Preset();
                objectToAdd.Deserialize(reader);
                Presets.Add(objectToAdd);
            }
            var idolsPresetsCount = reader.ReadUShort();

            IdolsPresets = new List <IdolsPreset>();
            for (var idolsPresetsIndex = 0; idolsPresetsIndex < idolsPresetsCount; idolsPresetsIndex++)
            {
                var objectToAdd = new IdolsPreset();
                objectToAdd.Deserialize(reader);
                IdolsPresets.Add(objectToAdd);
            }
        }
 public override void Deserialize(IDataReader reader)
 {
     Preset = new Types.Game.Inventory.Preset.Preset();
     Preset.Deserialize(reader);
 }
 public override void Deserialize(BigEndianReader reader)
 {
     Preset = new Types.Game.Inventory.Preset.Preset();
     Preset.Deserialize(reader);
 }