309
edits
Changes
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/<company_name>.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/<trailer_name>/company_paint_job/''' to display a company-specific look.
<!-- Deprecated attribute due to the wonders of sound hookups
|-
|sound
|array<string>
|
|
-->
|-
|out_cargo
|array<link_ptr>
|
|Do not use this attribute in definitions. It is generated "on the fly" from any cargo_def units in '''/def/company/<company_name>/out/'''.
|-
|in_cargo
|array<link_ptr>
|
|Do not use this attribute in definitions. It is generated "on the fly" from any cargo_def units in '''/def/company/<company_name>/in/'''.
|-
|city_names
|array<token>
|
|Do not use this attribute in definitions. It is generated "on the fly" from any company_def units in '''/def/company/<company_name>/editor/'''.
|-
|prefab_names
|array<token>
|
|Do not use this attribute in definitions. It is generated "on the fly" from any company_def units in '''/def/company/<company_name>/editor/'''.
|}
== Related Units ==
*[[Documentation/Engine/Units/cargo_def|cargo_def]]
*[[Documentation/Engine/Units/company_def|company_def]]
== 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/<trailer_name>/company_paint_job/''' to display a company-specific look.
<!-- Deprecated attribute due to the wonders of sound hookups
|-
|sound
|array<string>
|
|
-->
|-
|out_cargo
|array<link_ptr>
|
|Do not use this attribute in definitions. It is generated "on the fly" from any cargo_def units in '''/def/company/<company_name>/out/'''.
|-
|in_cargo
|array<link_ptr>
|
|Do not use this attribute in definitions. It is generated "on the fly" from any cargo_def units in '''/def/company/<company_name>/in/'''.
|-
|city_names
|array<token>
|
|Do not use this attribute in definitions. It is generated "on the fly" from any company_def units in '''/def/company/<company_name>/editor/'''.
|-
|prefab_names
|array<token>
|
|Do not use this attribute in definitions. It is generated "on the fly" from any company_def units in '''/def/company/<company_name>/editor/'''.
|}
== Related Units ==
*[[Documentation/Engine/Units/cargo_def|cargo_def]]
*[[Documentation/Engine/Units/company_def|company_def]]