Factorio Prototype DocsVersion 1.1.107

NoiseLiteralObject :: struct Example code

Evaluates to the same object every time, given by the literal_value property. Since the noise generation runtime has no notion of objects or use for them, this is useful only in constant contexts, such as the argument of the autoplace-probability function (where the 'literal object' is an AutoplaceSpecification).

Properties

type :: "literal-object"
literal_value :: AutoplaceSpecification

Properties

type :: "literal-object"

literal_value :: AutoplaceSpecification

Example

{
  type = "literal-object",
  literal_value = {
    name = "Bob Hope",
    birth_date = {
      year = 1903,
      month = 5,
      day_of_month = 29
    }
  }
}

Prototypes

Types