Example #1
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.ReadUInt32();
            this.Unknown_14h = reader.ReadUInt32();
            this.Unknown_18h = reader.ReadUInt32();
            this.Unknown_1Ch = reader.ReadUInt32();
            this.ptr2        = reader.ReadUInt64();
            this.ptr3        = reader.ReadUInt64();
            this.ptr4        = reader.ReadUInt64();
            this.Unknown_38h = reader.ReadUInt32();
            this.Unknown_3Ch = reader.ReadUInt32();
            this.ptr5        = reader.ReadUInt64();
            this.c1          = reader.ReadUInt16();
            this.c2          = reader.ReadUInt16();
            this.c3          = reader.ReadUInt32();
            this.Unknown_50h = reader.ReadUInt32();
            this.Unknown_54h = reader.ReadUInt32();
            this.Unknown_58h = reader.ReadUInt32();
            this.Unknown_5Ch = reader.ReadUInt32();
            this.Unknown_60h = reader.ReadUInt32();
            this.Unknown_64h = reader.ReadUInt32();
            this.Unknown_68h = reader.ReadUInt32();
            this.Unknown_6Ch = reader.ReadUInt32();

            // read reference data
            this.ptr2data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_M_001> >(
                this.ptr2, // offset
                this.c1
                );
            this.ptr3data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_M_002> >(
                this.ptr3, // offset
                this.c2
                );
            this.ptr4data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_M_003> >(
                this.ptr4, // offset
                this.c3
                );
            this.ptr5data = reader.ReadBlockAt <Unknown_M_004>(
                this.ptr5 // offset
                );
        }
Example #2
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.ReadUInt32();
            this.Unknown_14h = reader.ReadUInt32();
            this.Unknown_18h = reader.ReadUInt32();
            this.Unknown_1Ch = reader.ReadUInt32();
            this.ptr2 = reader.ReadUInt64();
            this.ptr3 = reader.ReadUInt64();
            this.ptr4 = reader.ReadUInt64();
            this.Unknown_38h = reader.ReadUInt32();
            this.Unknown_3Ch = reader.ReadUInt32();
            this.ptr5 = reader.ReadUInt64();
            this.c1 = reader.ReadUInt16();
            this.c2 = reader.ReadUInt16();
            this.c3 = reader.ReadUInt32();
            this.Unknown_50h = reader.ReadUInt32();
            this.Unknown_54h = reader.ReadUInt32();
            this.Unknown_58h = reader.ReadUInt32();
            this.Unknown_5Ch = reader.ReadUInt32();
            this.Unknown_60h = reader.ReadUInt32();
            this.Unknown_64h = reader.ReadUInt32();
            this.Unknown_68h = reader.ReadUInt32();
            this.Unknown_6Ch = reader.ReadUInt32();

            // read reference data
            this.ptr2data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_M_001>>(
                this.ptr2, // offset
                this.c1
            );
            this.ptr3data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_M_002>>(
                this.ptr3, // offset
                this.c2
            );
            this.ptr4data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_M_003>>(
                this.ptr4, // offset
                this.c3
            );
            this.ptr5data = reader.ReadBlockAt<Unknown_M_004>(
                this.ptr5 // offset
            );
        }