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)

Every class of this kind carries these.

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) load-only Register a new StaticStructure static object
Inherited from Prototype (2)
Inherited from Object (1)

Used by