buildings
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
buildings [2018/08/17 00:14] – created polymorphgames | buildings [2018/10/18 18:11] – [Construction Steps] polymorphgames | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Buildings ====== | ====== Buildings ====== | ||
+ | Here is an example of how to declare a new fountain building. | ||
- | < | + | Buildings are an ensemble of building parts. Simple buildings have only one part. |
+ | |||
+ | ===== Scripts ===== | ||
+ | Declare the building: | ||
+ | < | ||
myMod: | myMod: | ||
DataType = " | DataType = " | ||
Line 13: | Line 18: | ||
</ | </ | ||
- | < | + | Declare the building part: |
+ | < | ||
myMod: | myMod: | ||
DataType = " | DataType = " | ||
Line 35: | Line 41: | ||
}) | }) | ||
</ | </ | ||
+ | ===== Data ===== | ||
+ | TODO | ||
+ | |||
+ | ===== Link Data to Script ===== | ||
+ | TODO | ||
+ | <code lua> | ||
+ | myMod: | ||
+ | myMod: | ||
+ | </ | ||
+ | |||
+ | ===== Text and Localization ===== | ||
+ | TODO | ||
+ | |||
+ | ===== Construction Steps ===== | ||
+ | Buildings are built step by step. The construction system is based on naming. | ||
+ | |||
+ | You can specify a prefab to be used as construction visual. | ||
+ | |||
+ | The system will parse the prefab and search for objects with a name starting with '' | ||
+ | |||
+ | All nodes called '' | ||
+ | |||
+ | The rest of the nodes ('' | ||
+ | |||
+ | If more than one node have the same order number, they inner order will be randomized. For instance '' | ||
+ | |||
+ | Note that all children of a node starting with '' |