Prototype/MapGenPresets

From Official Factorio Wiki
Revision as of 20:49, 20 April 2019 by Muppet9010 (talk | contribs) (→‎Presets: add Example)
Jump to navigation Jump to search

Basics

Prototype type: map-gen-presets

The available map gen presets.

Mandatory properties

type

Type: Types/string

Must be "map-gen-presets".

name

Type: Types/string

Name of the map-gen-presets. Must be "default" since only one instances of this prototype can be defined.

Presets

Presets are defined as uniquely named properties of the prototype with a value of Types/MapGenPreset.

Example:

{
  type = "map-gen-presets",
  name = "default",
  ["PRESET NAME 1"] = {
    order = "a",
    water = "none"
  },
  ["PRESET NAME 2"] = {
    order = "b",
    water = "high"
  }
}