Prototype/MapGenPresets: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(remove ambiguous `default`)
(Undo revision 172584 by Sparr (talk) The example is copied from the base game, and should not be changed to something that cannot be found in base game code)
Tag: Undo
Line 21: Line 21:
Example:
Example:


<syntaxhighlight lang="lua">somepreset =
<syntaxhighlight lang="lua">default =
   {
   {
     default = true,
     default = true,
     order = "a"
     order = "a"
   },</syntaxhighlight>
   },</syntaxhighlight>

Revision as of 20:31, 20 April 2019

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.

the name of a preset

Type: Types/MapGenPreset

Example:

default =
  {
    default = true,
    order = "a"
  },