Factorio Prototype DocsVersion 2.0.55

Settings :: struct - abstract Example code

A struct that provides access to the user-set values of startup mod settings. It is accessible through the global object named settings.

Properties

startup :: dictionary[string → ModSetting]

All startup mod settings, indexed by the name of the setting.

All startup mod settings, indexed by the name of the setting.

Properties

startup :: dictionary[string → ModSetting]

All startup mod settings, indexed by the name of the setting.

Example

-- Accessing the value of a mod setting
local val = settings.startup["my-mod-setting-name"].value

Prototypes

Types

Defines