/// <summary>
		/// Reads the data-block from a stream.
		/// </summary>
		public override void Read(ResourceDataReader reader, params object[] parameters)
		{
			// read structure data
			this.VFT = reader.ReadUInt32();
			this.Unknown_4h = reader.ReadUInt32();
			this.Unknown_8h = reader.ReadUInt32();
			this.Unknown_Ch = reader.ReadUInt32();
			this.PhysicsLOD1Pointer = reader.ReadUInt64();
			this.PhysicsLOD2Pointer = reader.ReadUInt64();
			this.PhysicsLOD3Pointer = reader.ReadUInt64();
			this.Unknown_28h = reader.ReadUInt32();
			this.Unknown_2Ch = reader.ReadUInt32();

			// read reference data
			this.PhysicsLOD1 = reader.ReadBlockAt<FragPhysicsLOD_GTA5_pc>(
				this.PhysicsLOD1Pointer // offset
			);
			this.PhysicsLOD2 = reader.ReadBlockAt<FragPhysicsLOD_GTA5_pc>(
				this.PhysicsLOD2Pointer // offset
			);
			this.PhysicsLOD3 = reader.ReadBlockAt<FragPhysicsLOD_GTA5_pc>(
				this.PhysicsLOD3Pointer // offset
			);
		}
Exemplo n.º 2
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.VFT                = reader.ReadUInt32();
            this.Unknown_4h         = reader.ReadUInt32();
            this.Unknown_8h         = reader.ReadUInt32();
            this.Unknown_Ch         = reader.ReadUInt32();
            this.PhysicsLOD1Pointer = reader.ReadUInt64();
            this.PhysicsLOD2Pointer = reader.ReadUInt64();
            this.PhysicsLOD3Pointer = reader.ReadUInt64();
            this.Unknown_28h        = reader.ReadUInt32();
            this.Unknown_2Ch        = reader.ReadUInt32();

            // read reference data
            this.PhysicsLOD1 = reader.ReadBlockAt <FragPhysicsLOD_GTA5_pc>(
                this.PhysicsLOD1Pointer // offset
                );
            this.PhysicsLOD2 = reader.ReadBlockAt <FragPhysicsLOD_GTA5_pc>(
                this.PhysicsLOD2Pointer // offset
                );
            this.PhysicsLOD3 = reader.ReadBlockAt <FragPhysicsLOD_GTA5_pc>(
                this.PhysicsLOD3Pointer // offset
                );
        }