Open main menu

Changes

Documentation/Engine/Units/company def

900 bytes added, 03:52, 22 June 2017
Created page with "The '''company_def''' unit class is used to assign a prefab to a company_permanent unit. Units of this type are usually define..."
The '''company_def''' unit class is used to assign a prefab to a [[Documentation/Engine/Units/company_permanent|company_permanent]] unit. Units of this type are usually defined in '''/def/company/<company_name>/editor/<city_name>.sii'''.

== Attributes ==
{|class="wikitable"
!Name
![[Documentation/Engine/Units#Attribute_types|Type]]
!Default Value
!Description
|-
|'''city'''
|token
|
|The tokenized name of the city in which the prefab is located. In the case of ''city.san_francisc'', this would appear as <code>city: san_francisc</code>
|-
|'''prefab'''
|token
|
|The tokenized name of the prefab to be linked. In the case of ''prefab.d_port_sf'', this would appear as <code>prefab: d_port_sf</code>
{{Note|This implementation requires that each depot prefab may only appear once per city.}}
|}

== Related Units ==
*[[Documentation/Engine/Units/company_permanent|company_permanent]]
309
edits