Common Data Types: Difference between revisions

Content added Content deleted
(Update and normalize information.)
(Added axis aligned box.)
Line 3: Line 3:
Data types used commonly by the pre-Paradise Burnout games.
Data types used commonly by the pre-Paradise Burnout games.


= Vectors =
= Shared data types =
=== CGtV3d ===
=== CGtV3d ===
A structure containing a vector of type <code>RwV3d</code>.
A structure containing a vector of type <code>RwV3d</code>.
Line 10: Line 10:
|-
|-
| 0x0 || 0x10 || u_long128 || mData || 16-byte integer holding an [[#RwV3d|RwV3d]] object ||
| 0x0 || 0x10 || u_long128 || mData || 16-byte integer holding an [[#RwV3d|RwV3d]] object ||
|}

= Matrices =
=== CGtAxisAlignedBox ===
{| class="wikitable"
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
| 0x0 || 0x10 || [[#CGtV3d|CGtV3d]] || mSup || Supremum vertex ||
|-
| 0x10 || 0x10 || [[#CGtV3d|CGtV3d]] || mInf || Infimum vertex ||
|}
|}


Line 44: Line 54:
|}
|}


= Hashes =
=== CGtHash ===
=== CGtHash ===
<code>CGtHash</code> is a derivative of CRC-32—a 32-bit value storing the hash of a given string, generated via a custom hash function. These hashes are used by the Takedown-era games to identify and properly assign values within files such as the [[Value Database]].
<code>CGtHash</code> is a derivative of CRC-32—a 32-bit value storing the hash of a given string, generated via a custom hash function. These hashes are used by the Takedown-era games to identify and properly assign values within files such as the [[Value Database]].