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
buildings [2018/08/17 00:14] – created polymorphgamesbuildings [2021/10/21 13:28] (current) – removed maxime
Line 1: Line 1:
-====== Buildings ====== 
  
-<code> 
-myMod:register({ 
- DataType = "BUILDING", 
- Id = "FOUNTAIN", 
- Name = "MY_MOD_FOUNTAIN", 
- Description = "MY_MOD_FOUNTAIN", 
- BuildingType = "DECORATION", 
- BuildingPartList = { "FOUNTAIN_PART" }, 
- --VillagerRequired = { Status = "NEWCOMER", Quantity = 9 } 
-}) 
-</code> 
- 
-<code> 
-myMod:register({ 
- DataType = "BUILDING_PART", 
- Id = "FOUNTAIN_PART", 
- Description = "", 
- ConstructorData = { 
- DataType = "DEFAULT_BUILDING_CONSTRUCTOR", 
- CoreObjectPrefab = "PREFAB_FOUNTAIN" 
- }, 
- BuildingZone = { 5, 5 }, 
- ConstructionVisual = "PREFAB_FOUNTAIN_CONSTRUCTION", 
- Cost = { 
- UpkeepCost = { 
- { Resource = "GOLD", Quantity = 5 } 
- }, 
- RessourcesNeeded = { 
- { Resource = "WOOD", Quantity = 5 }, 
- { Resource = "STONE", Quantity = 10 } 
- } 
- } 
-}) 
-</code> 
buildings.1534479265.txt.gz · Last modified: 2018/08/17 00:14 by polymorphgames

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki