StaticStructure
classMap 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
| Name | Type | Description | |
|---|---|---|---|
| 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)
- name read-only Object name
- Prototype:is_valid() Returns false once the underlying engine object has been destroyed
Inherited from Object (1)
- Object:get_class() Class of this object
Used by
- MapStructure.structure field