Documentation/Engine/Units/accessory data
< Documentation | Engine | UnitsRevision as of 21:51, 17 February 2017 by Smarty (talk | contribs) (WIP. Resurrecting from the dead.)
The accessory_data unit class is the superclass for all accessory_*_data classes and defines basic UI attributes and compatibility/interactions between accessories. It is generally not used explicitly
Attributes
Name | Type | Default Value | Description |
---|---|---|---|
name | string | Full name of the accessory for UI display. | |
short_name | string | Condensed name of the accessory for UI display in contexts with limited space. | |
icon | string | ||
info | string_array | ||
price | s64 | ||
unlock | uint | 0 | |
suitable_for | string_array | ||
conflict_with | string_array | ||
defaults | string_array | ||
require | token_array |
Subclasses
- accessory_addon_data
- accessory_cabin_data
- accessory_cargo_data
- accessory_chassis_data
- accessory_engine_data
- accessory_head_lights_data
- accessory_hookup_data
- accessory_interior_data
- accessory_paint_job_data
- accessory_sound_data
- accessory_transmission_data
- accessory_truck_data
- accessory_rim_data
- accessory_wheel_data
Raw Unit Definition
"accessory_data":{ "superclass":"unit", "attrs":{ "name":{ "type": "string" }, "short_name":{ "type": "string" }, "icon":{ "type": "string" }, "info":{ "type": "string_array" }, "price":{ "type": "s64" }, "unlock":{ "type": "uint" }, "suitable_for":{ "type": "string_array" }, "conflict_with":{ "type": "string_array" }, "defaults":{ "type": "string_array" }, "require":{ "type": "token_array" } } },