Open main menu

Changes

Documentation/Engine/Units/company permanent

1,725 bytes added, 03:30, 22 June 2017
Created page with "The '''company_permanent''' unit class is used to define non-instance-specific data for company depots. Units of this type are usually defined in '''/def/company/<company_n..."
The '''company_permanent''' unit class is used to define non-instance-specific data for company depots. Units of this type are usually defined in '''/def/company/&lt;company_name&gt;.sii'''.

== Attributes ==
{|class="wikitable"
!Name
![[Documentation/Engine/Units#Attribute_types|Type]]
!Default Value
!Description
|-
|name
|string
|
|The name of the company for UI display.
|-
|sort_name
|string
|
|A simplified version of the company name for sorting in lists.
|-
|trailer_look
|token
|
|When generating a job, if the trailer configuration has a paint job accessory, an attempt will be made to match this token with a paint job accessory in '''/def/vehicle/trailer/&lt;trailer_name&gt;/company_paint_job/''' to display a company-specific look.
<!-- Deprecated attribute due to the wonders of sound hookups
|-
|sound
|array&lt;string&gt;
|
|
-->
|-
|out_cargo
|array&lt;link_ptr&gt;
|
|Do not use this attribute in definitions. It is generated "on the fly" from any cargo_def units in '''/def/company/&lt;company_name&gt;/out/'''.
|-
|in_cargo
|array&lt;link_ptr&gt;
|
|Do not use this attribute in definitions. It is generated "on the fly" from any cargo_def units in '''/def/company/&lt;company_name&gt;/in/'''.
|-
|city_names
|array&lt;token&gt;
|
|Do not use this attribute in definitions. It is generated "on the fly" from any company_def units in '''/def/company/&lt;company_name&gt;/editor/'''.
|-
|prefab_names
|array&lt;token&gt;
|
|Do not use this attribute in definitions. It is generated "on the fly" from any company_def units in '''/def/company/&lt;company_name&gt;/editor/'''.
|}

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