User Tools

Site Tools


buildings

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
buildings [2018/08/17 00:14] – created polymorphgamesbuildings [2018/08/22 07:43] polymorphgames
Line 1: Line 1:
 ====== Buildings ====== ====== Buildings ======
 +Here is an example of how to declare a new fountain building.
  
-<code>+Buildings are an ensemble of building parts. Simple buildings have only one part. 
 + 
 +===== Scripts ===== 
 +Declare the building: 
 +<code lua>
 myMod:register({ myMod:register({
  DataType = "BUILDING",  DataType = "BUILDING",
Line 13: Line 18:
 </code> </code>
  
-<code>+Declare the building part: 
 +<code lua>
 myMod:register({ myMod:register({
  DataType = "BUILDING_PART",  DataType = "BUILDING_PART",
Line 35: Line 41:
 }) })
 </code> </code>
 +===== Data =====
 +TODO
 +
 +===== Link Data to Script =====
 +TODO
 +<code lua>
 +myMod:registerAssetId("models/fountain.fbx/Prefab/Fountain", "PREFAB_FOUNTAIN")
 +myMod:registerAssetId("models/fountain.fbx/Prefab/Fountain_Construction_Steps", "PREFAB_FOUNTAIN_CONSTRUCTION")
 +</code>
 +
 +===== Text and Localization =====
 +TODO
 +
 +===== Construction Steps =====
 +TODO

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki