Changes

Jump to navigation Jump to search

Documentation/Engine/Units/cargo def

808 bytes added, 00:47, 22 June 2017
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&gt..."
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/&lt;company_name&gt;/in/&lt;cargo_name&gt;.sii''' to mark a cargo the company accepts and '''/def/company/&lt;company_name&gt;/out/&lt;cargo_name&gt;.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]]
309
edits

Navigation menu