Common Data Types: Difference between revisions
Update and normalize information.
(→GtHash: mention of it being basically CRC32 but with some int<->uint nonsense) |
(Update and normalize information.) |
||
Line 1:
{{hatnote|This page is for types used in Takedown-era games. For types used in Paradise, see [[Common Data Types (Burnout Paradise)]]. For types used in Criterion NFS games, see [[Common Data Types (Need for Speed)]].}}
Data types used commonly by the pre-Paradise Burnout games.
= Shared data types =
===
A structure containing a vector of type <code>RwV3d</code>.
{| class="wikitable"
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
| 0x0 || 0x10 || u_long128 || mData || 16-byte integer holding an [[#RwV3d|RwV3d]] object ||
|-▼
|}
===
A structure comprised of two vectors, used to represent a line in 3D space.
{| class="wikitable"
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
| 0x0 || 0x10 || [[#CGtV3d|CGtV3d]] || mEndPoint || Start point ||
|-
|
|-▼
|}
===
A structure comprised of four vectors.
{| class="wikitable"
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
| 0x0 || 0x10 || [[#CGtV3d|CGtV3d]] || mRight || Right ||
|-
| 0x10 || 0x10 || [[#CGtV3d|CGtV3d]] || mUp || Up ||
|-
| 0x20 || 0x10 ||
|-
| 0x30 || 0x10 || [[#CGtV3d|CGtV3d]] || mPos || Position ||
|}
===
A
{| class="wikitable"
! Name !! Type !! Length !! Comments
|-
| CGtRGB || [[#CGtV3d|CGtV3d]] || 0x10 || Red, green, and blue additives, respectively
|}
===
<code>
=== GtID ===
Line 66 ⟶ 51:
For example, the string <code>BURNOUT</code> would be represented by the GtID <code>6226094955724800000</code>.
{| class="wikitable"
! Name !! Type !! Length !! Comments
▲|-
| GtID || RwUInt64 || 0x8 ||
= RenderWare data types =
Line 72 ⟶ 63:
=== RwV3d ===
A structure comprised of three floats, mainly used to represent the location of a point in 3D space.
{| class="wikitable"
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
| 0x0 || 0x4 || RwReal || x || X value ||
|-
|
|-
|
|}
=== RwBBox ===
A structure defining the [https://en.wikipedia.org/wiki/Infimum_and_supremum supremum and infimum] vertices of a bounding box.
{| class="wikitable"
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
|
|-
|
|}
|