industries¶
Source: base/tealdef/game_mechanics/industries/industries.d.tl
Notes
State and config of the industries game script (expansion and closure of industries).
IndustriesState¶
record global base/tealdef/game_mechanics/industries/industries.d.tl:3
global record IndustriesState
Notes
State of the industries game script.
Fields
| Name | Type | Description |
|---|---|---|
toSpawn |
integer |
|
industryFailedExtensions |
{Engine.Entity : FailedExpansion} |
Industry -> last failed expansion. |
pauseIndustryClosure |
boolean |
While true, industries without depots do not start their closure countdown, and running countdowns of unowned industries are reset. The tutorial turns it on through the setPauseIndustryClosure event of the Industries script and turns it off when it ends. |
version |
integer |
Version of the saved state (1 at present). handleLegacy upgrades older saves; a save without a version counts as 0 and pauses the industry closure if the tutorial is active. |
IndustriesState.FailedExpansion¶
record base/tealdef/game_mechanics/industries/industries.d.tl:4
record FailedExpansion
Notes
A failed expansion of an industry.
Used in the base game: 2 times in 1 file
base/content/gui/gui/entity_window/industry/industry.tl:55
Fields
| Name | Type | Description |
|---|---|---|
triangles |
{{Vec2f, Vec2f, Vec2f}} |
Triangles of the area that blocked the expansion. |
tick |
integer |
Update count at which the expansion failed. |
IndustriesConfig¶
record global base/tealdef/game_mechanics/industries/industries.d.tl:14
global record IndustriesConfig
Notes
Config of the industries game script (game_script_config resource industries_config.res).
Fields