/// <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.ChildrenPointer = reader.ReadUInt64();
            this.ChildrenTransformation1Pointer = reader.ReadUInt64();
            this.ChildrenTransformation2Pointer = reader.ReadUInt64();
            this.ChildrenBoundingBoxesPointer   = reader.ReadUInt64();
            this.Unknown_90h_Pointer            = reader.ReadUInt64();
            this.Unknown_98h_Pointer            = reader.ReadUInt64();
            this.ChildrenCount1 = reader.ReadUInt16();
            this.ChildrenCount2 = reader.ReadUInt16();
            this.Unknown_A4h    = reader.ReadUInt32();
            this.BVHPointer     = reader.ReadUInt64();

            // read reference data
            this.Children = reader.ReadBlockAt <ResourcePointerArray64 <Bound_GTA5_pc> >(
                this.ChildrenPointer, // offset
                this.ChildrenCount1
                );
            this.ChildrenTransformation1 = reader.ReadBlockAt <ResourceSimpleArray <RAGE_Matrix4> >(
                this.ChildrenTransformation1Pointer, // offset
                this.ChildrenCount1
                );
            this.ChildrenTransformation2 = reader.ReadBlockAt <ResourceSimpleArray <RAGE_Matrix4> >(
                this.ChildrenTransformation2Pointer, // offset
                this.ChildrenCount1
                );
            this.ChildrenBoundingBoxes = reader.ReadBlockAt <ResourceSimpleArray <RAGE_AABB> >(
                this.ChildrenBoundingBoxesPointer, // offset
                this.ChildrenCount1
                );
            this.Unknown_90h_Data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_B_002> >(
                this.Unknown_90h_Pointer, // offset
                this.ChildrenCount1
                );
            this.Unknown_98h_Data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_B_002> >(
                this.Unknown_98h_Pointer, // offset
                this.ChildrenCount1
                );
            this.BVH = reader.ReadBlockAt <BVH_GTA5_pc>(
                this.BVHPointer // offset
                );
        }
        /// <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.BvhPointer   = reader.ReadUInt64();
            this.Unknown_138h = reader.ReadUInt32();
            this.Unknown_13Ch = reader.ReadUInt32();
            this.Unknown_140h = reader.ReadUInt16();
            this.Unknown_142h = reader.ReadUInt16();
            this.Unknown_144h = reader.ReadUInt32();
            this.Unknown_148h = reader.ReadUInt32();
            this.Unknown_14Ch = reader.ReadUInt32();

            // read reference data
            this.BVH = reader.ReadBlockAt <BVH_GTA5_pc>(
                this.BvhPointer // offset
                );
        }
Example #3
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_130h_Pointer = reader.ReadUInt64();
            this.Unknown_138h = reader.ReadUInt32();
            this.Unknown_13Ch = reader.ReadUInt32();
            this.Unknown_140h = reader.ReadUInt16();
            this.Unknown_142h = reader.ReadUInt16();
            this.Unknown_144h = reader.ReadUInt32();
            this.Unknown_148h = reader.ReadUInt32();
            this.Unknown_14Ch = reader.ReadUInt32();

            // read reference data
            this.Unknown_130h_Data = reader.ReadBlockAt<BVH_GTA5_pc>(
                this.Unknown_130h_Pointer // offset
            );
        }
        /// <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.ChildrenPointer = reader.ReadUInt64();
            this.Unknown_78h_Pointer = reader.ReadUInt64();
            this.Unknown_80h_Pointer = reader.ReadUInt64();
            this.Unknown_88h_Pointer = reader.ReadUInt64();
            this.Unknown_90h_Pointer = reader.ReadUInt64();
            this.Unknown_98h_Pointer = reader.ReadUInt64();
            this.ChildrenCount1 = reader.ReadUInt16();
            this.ChildrenCount2 = reader.ReadUInt16();
            this.Unknown_A4h = reader.ReadUInt32();
            this.Unknown_A8h_Pointer = reader.ReadUInt64();

            // read reference data
            this.Children = reader.ReadBlockAt<ResourcePointerArray64<Bound_GTA5_pc>>(
                this.ChildrenPointer, // offset
                this.ChildrenCount1
            );
            this.Unknown_78h_Data = reader.ReadBlockAt<ResourceSimpleArray<RAGE_Matrix4>>(
                this.Unknown_78h_Pointer, // offset
                this.ChildrenCount1
            );
            this.Unknown_80h_Data = reader.ReadBlockAt<ResourceSimpleArray<RAGE_Matrix4>>(
                this.Unknown_80h_Pointer, // offset
                this.ChildrenCount1
            );
            this.Unknown_88h_Data = reader.ReadBlockAt<ResourceSimpleArray<RAGE_AABB>>(
                this.Unknown_88h_Pointer, // offset
                this.ChildrenCount1
            );
            this.Unknown_90h_Data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_B_002>>(
                this.Unknown_90h_Pointer, // offset
                this.ChildrenCount1
            );
            this.Unknown_98h_Data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_B_002>>(
                this.Unknown_98h_Pointer, // offset
                this.ChildrenCount1
            );
            this.Unknown_A8h_Data = reader.ReadBlockAt<BVH_GTA5_pc>(
                this.Unknown_A8h_Pointer // offset
            );
        }