This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
modding:constructiontypes [2021/01/13 09:54] yoshi [UpdateFn Return Properties] |
modding:constructiontypes [2023/02/04 14:32] yoshi [UpdateFn Return Properties] |
||
---|---|---|---|
Line 69: | Line 69: | ||
}, | }, | ||
... | ... | ||
- | }, | + | } |
</ | </ | ||
| | ||
Line 118: | Line 118: | ||
* '' | * '' | ||
* '' | * '' | ||
+ | ==== Events ==== | ||
+ | Depots support some [[modding: | ||
+ | * '' | ||
+ | * '' | ||
===== Industries ===== | ===== Industries ===== | ||
Industries are used for cargo production, conversion and consumption. Their '' | Industries are used for cargo production, conversion and consumption. Their '' | ||
Line 189: | Line 193: | ||
-- Specify the necessary cargo types and which edges are used for stock piling | -- Specify the necessary cargo types and which edges are used for stock piling | ||
result.stocks = { | result.stocks = { | ||
- | { cargoType = " | + | { cargoType = " |
{ cargoType = " | { cargoType = " | ||
}, | }, | ||
Line 224: | Line 228: | ||
result.rule = { input = { { 2, 2 } }, output = { STEEL = 1 }, capacity = 200 } | result.rule = { input = { { 2, 2 } }, output = { STEEL = 1 }, capacity = 200 } | ||
</ | </ | ||
+ | ==== Events ==== | ||
+ | Industries support some [[modding: | ||
+ | * '' | ||
+ | * '' | ||
===== Assets ===== | ===== Assets ===== | ||
Assets are generic constructions that are mainly used for decorative purposes. They may contain functional elements like edges though. | Assets are generic constructions that are mainly used for decorative purposes. They may contain functional elements like edges though. | ||
Line 239: | Line 247: | ||
autoRemovable = false, | autoRemovable = false, | ||
categories = { " | categories = { " | ||
+ | snapping = { | ||
+ | rail = true, | ||
+ | road = true, | ||
+ | water = false | ||
+ | }, | ||
... | ... | ||
</ | </ | ||
Line 250: | Line 263: | ||
To provide additional filter possibilities, | To provide additional filter possibilities, | ||
+ | To allow snapping along tracks, streets or the water surface, the appropriate flags can be set to true in the '' | ||
==== UpdateFn Parameters ==== | ==== UpdateFn Parameters ==== | ||
The available parameters for assets are: | The available parameters for assets are: | ||
Line 353: | Line 366: | ||
The '' | The '' | ||
- | ===== Street Constructions ===== | + | |
+ | ==== Events ==== | ||
+ | Town buildings support some [[modding: | ||
+ | * '' | ||
+ | ===== Street | ||
Street constructions can be used to provide street templates like larger intersections or roundabouts. To provide additional filter possibilities, | Street constructions can be used to provide street templates like larger intersections or roundabouts. To provide additional filter possibilities, | ||
Line 364: | Line 381: | ||
The constructions may either use models or not. See below for information about pure street and track construction templates. | The constructions may either use models or not. See below for information about pure street and track construction templates. | ||
+ | |||
+ | Track constructions work similar but for railway. They appear in the track construction tab in the rail menu. Without mods, this tab is not visible. | ||
+ | |||
+ | <div download 100%> | ||
+ | A track construction example is available for {{: | ||
+ | </ | ||
+ | |||
==== Build free streets and tracks ==== | ==== Build free streets and tracks ==== |