decor - OpenPerpetuum/OPDB GitHub Wiki
Description
This is a list of all decorations that are on the field.
These include the terminals (actual structure, rather than function), mining outposts, buildings, highway towers, etc.
Table Structure
ID | Type | Name | Description | Properties | Links |
---|---|---|---|---|---|
1 | Number | id | The index of the entry in the table | PRIMARY | |
2 | Number | definition | The ID of the structure that is placed; prop ID. ??? | ||
3 | Number | quaternionx | The x-axis of the Quaternion describing the prop's rotation. | FOREIGN | |
4 | Number | quaterniony | The y-axis of the Quaternion describing the prop's rotation. | FOREIGN | |
5 | Number | quaternionz | The z-axis of the Quaternion describing the prop's rotation. | FOREIGN | |
6 | Number | quaternionw | The w-axis of the Quaternion describing the prop's rotation. | FOREIGN | |
7 | Number | zoneid | The zone where this prop is located on. | zones.id | |
8 | Number | x | The x-axis position of the prop on the map. | ||
9 | Number | y | The y-axis position of the prop on the map. | ||
10 | Number | z | The z-axis position of hte prop on the map. | ||
11 | Number | scale | What it says on the tin. Uniform scaling. | FOREIGN | |
12 | Boolean | changed | ??? | ||
13 | Number | fadedistance | z-buffer? Draw distance? ??? | FOREIGN | |
14 | Number | category | The category ID of the object. | decorecategories.id | |
15 | Boolean | locked | Is the object fixed? ??? |
Notes
definition
Refers to an object ID that is stored within the client.
// todo: Find out where this is within the client.