示例#1
0
 /// <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();
 }
示例#2
0
        /// <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
                );
        }
示例#3
0
        /// <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
                );
        }
示例#4
0
        /// <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
                );
        }
        public uint Unknown_2Ch; // 0x00000000

        /// <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.Value       = reader.ReadInt32();
            this.Unknown_24h = reader.ReadUInt32();
            this.Unknown_28h = reader.ReadUInt32();
            this.Unknown_2Ch = reader.ReadUInt32();
        }
示例#6
0
        /// <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
                );
        }
示例#7
0
 /// <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.EntryValue    = reader.ReadInt32();
 }