Instance List: Difference between revisions
Content added Content deleted
(Added editor details.) |
m (Made example image larger and updated description.) |
||
Line 1:
{{ParadiseResourceTypeInfobox
| name = InstanceList
| example = [[File:Paradise InstanceList Example.png|frameless|
| resourcenames = TRK_UNIT*_list<br /><sup><small>*Track unit ID</small></sup>
| id = 0x23
|
Latest revision as of 07:51, 4 October 2023
InstanceList | |||
---|---|---|---|
Track unit 203's InstanceList and its component models viewed in Blender. | |||
Resource names | TRK_UNIT*_list *Track unit ID | ||
Type ID | 0x23 | ||
Category | Generic | ||
Memory distribution |
Main Memory only | ||
Imports | 1 Model per instance | ||
Editor available? |
Viewer only Use Blender addons |
Instance lists are lists of models with their location in the world. It is the one of the top-level resource types used for track unit loading.
Structures
CgsGraphics::InstanceList
32-bit
Offset | Size | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | Instance* | mpaInstances | Instances | |
0x4 | 0x4 | uint32_t | muArraySize | Total number of Instance entries | |
0x8 | 0x4 | uint32_t | muNumInstances | Number of complete Instance entries | From 0, the Instances with valid Transform fields. |
0xC | 0x4 | uint32_t | muVersionNumber | Version number | Always 1 |
64-bit
Offset | Size | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x8 | Instance* | mpaInstances | Instances | |
0x8 | 0x4 | uint32_t | muArraySize | Total number of Instance entries | |
0xC | 0x4 | uint32_t | muNumInstances | Number of complete Instance entries | From 0, the Instances with valid Transform fields. |
0x10 | 0x4 | uint32_t | muVersionNumber | Version number | Always 1 |
CgsGraphics::Instance
32-bit
Offset | Size | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | Model* | mpModel | ||
0x4 | 0x2 | int16_t | mi16BackdropZoneID | ||
0x6 | 0x2 | uint16_t | mu16Pad | Padding | |
0x8 | 0x4 | uint32_t | mu32Pad | Padding | |
0xC | 0x4 | float32_t | mfMaxVisibleDistanceSquared | Unused? | |
0x10 | 0x40 | Matrix44Affine | mTransform |
64-bit
Offset | Size | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x8 | Model* | mpModel | ||
0x8 | 0x2 | int16_t | mi16BackdropZoneID | ||
0xA | 0x2 | uint16_t | mu16Pad | Padding | |
0xC | 0x4 | uint32_t | mu32Pad | Padding | |
0x10 | 0x4 | float32_t | mfMaxVisibleDistanceSquared | Unused? | |
0x14 | 0xC | Padding | |||
0x20 | 0x40 | Matrix44Affine | mTransform |