Prototype/AutoplaceControl: Difference between revisions
Jump to navigation
Jump to search
(overhaul to include Prototype) |
(0.16) |
||
Line 2: | Line 2: | ||
A setting in the map creation GUI. Used by the [[Types/AutoplaceSpecification#control|autoplace system]]. | A setting in the map creation GUI. Used by the [[Types/AutoplaceSpecification#control|autoplace system]]. | ||
== | == Mandatory properties == | ||
Inherits all properties from [[Prototype]]. | Inherits all properties from [[Prototype]]. | ||
=== category === | |||
'''Type''': [[Types/string]] | |||
Either "resource" or "terrain". | |||
== Optional properties == | |||
=== richness === | === richness === | ||
Line 12: | Line 17: | ||
'''Default''': false | '''Default''': false | ||
Sets whether this control's richness can be set by the player or not. | |||
If your autoplace control is used to generate ores, you probably want this to be true. | If your autoplace control is used to generate ores, you probably want this to be true. | ||
== Differing defaults == | |||
=== order === | |||
:''See [[Prototype#order]]'' | |||
'''Default''': "" | |||
Controls are sorted in the map creation GUI according to this property. |
Revision as of 20:50, 28 May 2018
Basics
A setting in the map creation GUI. Used by the autoplace system.
Mandatory properties
Inherits all properties from Prototype.
category
Type: Types/string
Either "resource" or "terrain".
Optional properties
richness
Type: Types/bool
Default: false
Sets whether this control's richness can be set by the player or not.
If your autoplace control is used to generate ores, you probably want this to be true.
Differing defaults
order
- See Prototype#order
Default: ""
Controls are sorted in the map creation GUI according to this property.