Prototype/AutoplaceControl: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (→‎order: fixed type)
(overhaul to include Prototype)
Line 3: Line 3:


== Properties ==
== Properties ==
=== type ===
Inherits all properties from [[Prototype]].
Type: [[Types/string]]


Must be "autoplace-control".
Controls are sorted in the map creation GUI according to their order field.


=== name ===
=== richness ===
Type: [[Types/string]]
'''Type''': [[Types/bool]]


The unique name of this autoplace control.
'''Default''': false
 
=== order ===
Type: [[Types/Order]]
 
Controls are sorted in the map creation GUI according to their order field. A control with order="a" will always come before a control with order="b".
 
=== richness ===
Type: [[Types/bool]]


Optional. Sets whether this control's richness can be set by the player or not. Default is false.
Optional. 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.

Revision as of 12:52, 23 January 2018

Basics

A setting in the map creation GUI. Used by the autoplace system.

Properties

Inherits all properties from Prototype.

Controls are sorted in the map creation GUI according to their order field.

richness

Type: Types/bool

Default: false

Optional. 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.