preview:workplaces
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
preview:workplaces [2019/05/02 14:48] – polymorphgames | preview:workplaces [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Workplaces ====== | ||
- | A workplace is a building containing a [[preview: | ||
- | |||
- | ===== Example of declaring a workplace building function ===== | ||
- | |||
- | <file lua> | ||
- | -- Register the mithril factory extension B part | ||
- | mod: | ||
- | DataType = " | ||
- | Id = " | ||
- | -- [...] | ||
- | BuildingFunction = { | ||
- | DataType = " | ||
- | WorkerCapacity = 1, | ||
- | RelatedJob = { Job = " | ||
- | InputInventoryCapacity = {{ Resource = " | ||
- | ResourceListNeeded = {{ Resource = " | ||
- | ResourceProduced = {{ Resource = " | ||
- | }, | ||
- | -- [...] | ||
- | }) | ||
- | </ | ||
- | |||
- | This example assume the mod already declared a '' | ||
- | |||
- | See mod Example 02 for complete examples. | ||
- | |||
- | More info on buildings [[preview: |
preview/workplaces.1556822923.txt.gz · Last modified: 2019/05/02 14:48 by polymorphgames