/// <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.DataLength = reader.ReadInt32(); this.DataPointer = reader.ReadInt64(); // read reference data this.Data = reader.ReadBlockAt <ResourceSimpleArray <byte_r> >( (ulong)this.DataPointer, // offset this.DataLength ); }
/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { // read structure data this.EnumNameHash = reader.ReadInt32(); this.EnumKey = reader.ReadInt32(); this.EntriesPointer = reader.ReadInt64(); this.EntriesCount = reader.ReadInt32(); this.Unknown_14h = reader.ReadInt32(); // read reference data this.Entries = reader.ReadBlockAt <ResourceSimpleArray <EnumEntryInfo> >( (ulong)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.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 ); }