public override void Read(Vault vault, BinaryReader br) { HAL_ID = br.ReadUInt32(); CF_HAL_ID = br.ReadUInt32(); Price = br.ReadInt32(); Drift = br.ReadBoolean(); Drag = br.ReadBoolean(); Grip = br.ReadBoolean(); Speed = br.ReadBoolean(); Tier = br.ReadUInt32(); BrandHALId = br.ReadUInt32(); LogoTextureId = br.ReadUInt32(); AutoSculptCamera1 = new VLTListContainer <RefSpec>(Class, Field, Collection, br.ReadByte()); AutoSculptCamera2 = new VLTListContainer <RefSpec>(Class, Field, Collection, br.ReadByte()); AutoSculptCamera3 = new VLTListContainer <RefSpec>(Class, Field, Collection, br.ReadByte()); byte b = br.ReadByte(); if (b != 0) { throw new InvalidDataException(); } AutoSculptCamera1.Read(vault, br); AutoSculptCamera2.Read(vault, br); AutoSculptCamera3.Read(vault, br); DetailHash = br.ReadUInt32(); PartDetails = new VLTPointerContainer <FEPartDetail>(Class, Field, Collection); PartDetails.Read(vault, br); _offerIdText = new Text(Class, Field, Collection); _offerIdText.Read(vault, br); }
public override void Read(Vault vault, BinaryReader br) { HAL_ID = br.ReadUInt32(); CF_HAL_ID = br.ReadUInt32(); Price = br.ReadInt32(); ShowroomUnlock = br.ReadInt32(); Tier1Price = br.ReadInt32(); Tier2Price = br.ReadInt32(); Tier3Price = br.ReadInt32(); Tier4Price = br.ReadInt32(); Tier = br.ReadByte(); Tier1ShowroomUnlock = br.ReadByte(); Tier2ShowroomUnlock = br.ReadByte(); Tier3ShowroomUnlock = br.ReadByte(); Tier4ShowroomUnlock = br.ReadByte(); br.AlignReader(4); BrandHALId = br.ReadUInt32(); LogoTextureId = br.ReadUInt32(); DetailHash = br.ReadUInt32(); PartDetails = new VLTPointerContainer <FEPartDetail>(Class, Field, Collection); PartDetails.Read(vault, br); _offerIdText = new Text(Class, Field, Collection); _offerIdText.Read(vault, br); IsOnlineLockable = br.ReadBoolean(); br.AlignReader(4); }