Documentation/Engine/Units/accessory data

From SCS Modding Wiki
< Documentation‎ | Engine‎ | Units
Revision as of 21:51, 17 February 2017 by Smarty (talk | contribs) (WIP. Resurrecting from the dead.)

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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


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"
    }
   }
  },