309
edits
Changes
Jump to navigation
Jump to search
Created page with "The '''cargo_def''' unit class is used to assign a cargo to be produced or accepted by a company. Units of this type are usually defined in '''/def/company/<company_name>..."
The '''cargo_def''' unit class is used to assign a cargo to be produced or accepted by a company. Units of this type are usually defined in '''/def/company/<company_name>/in/<cargo_name>.sii''' to mark a cargo the company accepts and '''/def/company/<company_name>/out/<cargo_name>.sii''' to mark a cargo the company produces.
== Attributes ==
{|class="wikitable"
!Name
![[Documentation/Engine/Units#Attribute_types|Type]]
!Default Value
!Description
|-
|'''cargo'''
|string
|
|The unit name of the cargo, corresponding to a [[Documentation/Engine/Units/cargo_data|cargo_data]] unit. For example: <code>cargo: "cargo.stolen_ducks"</code>
|}
== Related Units ==
*[[Documentation/Engine/Units/cargo_data|cargo_data]]
*[[Documentation/Engine/Units/company_permanent|company_permanent]]
== Attributes ==
{|class="wikitable"
!Name
![[Documentation/Engine/Units#Attribute_types|Type]]
!Default Value
!Description
|-
|'''cargo'''
|string
|
|The unit name of the cargo, corresponding to a [[Documentation/Engine/Units/cargo_data|cargo_data]] unit. For example: <code>cargo: "cargo.stolen_ducks"</code>
|}
== Related Units ==
*[[Documentation/Engine/Units/cargo_data|cargo_data]]
*[[Documentation/Engine/Units/company_permanent|company_permanent]]