StaticStructure

StaticStructure

class

Map generation script object with a footprint

  • load-only Usable only while mods load. The game seals these members once loading finishes, so a call or a write from a running world raises an error.

Fields

NameTypeDescription
generate function Callback invoked to emit the structure
size Vec2i Footprint of the structure in blocks
Standard members (5)

These members are available on all classes of this kind.

StaticStructure.cast(object) Trying to cast Object into StaticStructure
StaticStructure.get_class() Return StaticStructure class object
StaticStructure.find(name) Looks StaticStructure up in db, nil when there is none
StaticStructure.get(name) Takes StaticStructure from db, reports a miss to the log
StaticStructure.reg(name, spec) load-only Register a new StaticStructure static object, or take the registered one of that name
Inherited from Prototype (2)
Inherited from Object (1)

Used by