/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { // read structure data this.RotationX = reader.ReadSingle(); this.RotationY = reader.ReadSingle(); this.RotationZ = reader.ReadSingle(); this.RotationW = reader.ReadSingle(); this.TranslationX = reader.ReadSingle(); this.TranslationY = reader.ReadSingle(); this.TranslationZ = reader.ReadSingle(); this.Unknown_1Ch = reader.ReadUInt32(); this.ScaleX = reader.ReadSingle(); this.ScaleY = reader.ReadSingle(); this.ScaleZ = reader.ReadSingle(); this.Unknown_2Ch = reader.ReadSingle(); this.NextSiblingIndex = reader.ReadInt16(); this.ParentIndex = reader.ReadInt16(); this.Unknown_34h = reader.ReadUInt32(); this.NamePointer = reader.ReadUInt64(); this.Flags = reader.ReadUInt16(); this.Unknown_42h = reader.ReadUInt16(); this.Id = reader.ReadUInt16(); this.Unknown_46h = reader.ReadUInt16(); this.Unknown_48h = reader.ReadUInt32(); this.Unknown_4Ch = reader.ReadUInt32(); // read reference data this.Name = reader.ReadBlockAt <string_r>( this.NamePointer // offset ); }
/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { // read structure data this.X = reader.ReadInt16(); this.Y = reader.ReadInt16(); this.Z = reader.ReadInt16(); }
/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { base.Read(reader, parameters); // read structure data this.Unknown_10h = reader.ReadInt32(); this.Unknown_14h = reader.ReadInt16(); this.HasUselessData = reader.ReadByte(); this.Unknown_17h = reader.ReadByte(); this.Unknown_18h = reader.ReadInt32(); this.RootBlockIndex = reader.ReadInt32(); this.StructureInfosPointer = reader.ReadInt64(); this.EnumInfosPointer = reader.ReadInt64(); this.DataBlocksPointer = reader.ReadInt64(); this.NamePointer = reader.ReadInt64(); this.UselessPointer = reader.ReadInt64(); this.StructureInfosCount = reader.ReadInt16(); this.EnumInfosCount = reader.ReadInt16(); this.DataBlocksCount = reader.ReadInt16(); this.Unknown_4Eh = reader.ReadInt16(); this.Unknown_50h = reader.ReadInt32(); this.Unknown_54h = reader.ReadInt32(); this.Unknown_58h = reader.ReadInt32(); this.Unknown_5Ch = reader.ReadInt32(); this.Unknown_60h = reader.ReadInt32(); this.Unknown_64h = reader.ReadInt32(); this.Unknown_68h = reader.ReadInt32(); this.Unknown_6Ch = reader.ReadInt32(); // read reference data this.StructureInfos = reader.ReadBlockAt <ResourceSimpleArray <StructureInfo> >( (ulong)this.StructureInfosPointer, // offset this.StructureInfosCount ); this.EnumInfos = reader.ReadBlockAt <ResourceSimpleArray <EnumInfo> >( (ulong)this.EnumInfosPointer, // offset this.EnumInfosCount ); this.DataBlocks = reader.ReadBlockAt <ResourceSimpleArray <DataBlock> >( (ulong)this.DataBlocksPointer, // offset this.DataBlocksCount ); this.Name = reader.ReadBlockAt <string_r>( (ulong)this.NamePointer // offset ); }
/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { // read structure data this.StructureNameHash = reader.ReadInt32(); this.StructureKey = reader.ReadInt32(); this.Unknown_8h = reader.ReadInt32(); this.Unknown_Ch = reader.ReadInt32(); this.EntriesPointer = reader.ReadInt64(); this.StructureLength = reader.ReadInt32(); this.Unknown_1Ch = reader.ReadInt16(); this.EntriesCount = reader.ReadInt16(); // read reference data this.Entries = reader.ReadBlockAt <ResourceSimpleArray <StructureEntryInfo> >( (uint)this.EntriesPointer, // offset this.EntriesCount ); }
/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { // read structure data this.EntryNameHash = reader.ReadInt32(); this.DataOffset = reader.ReadInt32(); this.DataType = (StructureEntryDataType)reader.ReadByte(); this.Unknown_9h = reader.ReadByte(); this.ReferenceTypeIndex = reader.ReadInt16(); this.ReferenceKey = reader.ReadInt32(); }
/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { // read structure data this.MaterialIndex = reader.ReadByte(); this.ProcId = reader.ReadByte(); this.RoomId_And_PedDensity = reader.ReadByte(); this.Unknown_3h = reader.ReadByte(); this.Unknown_4h = reader.ReadByte(); this.MaterialColorIndex = reader.ReadByte(); this.Unknown_6h = reader.ReadInt16();; }