StaticObject
classBase prototype for anything placeable in the world
- read-only Assigning to the field raises an error.
Fields
| Name | Type | Description | |
|---|---|---|---|
| item | StaticItem | Item this object is built from and mined into | |
| mined_item | read-only | StaticItem | Item mining returns and a decor build pays; nil when the object is not minable |
| mined_count | read-only | integer | How many of mined_item mining returns and a decor build pays; zero when the object is not minable |
Standard members (4)
Every class of this kind carries these.
| StaticObject.cast(object) | Trying to cast Object into StaticObject |
| StaticObject.get_class() | Return StaticObject class object |
| StaticObject.find(name) | Looks StaticObject up in db, nil when there is none |
| StaticObject.get(name) | Takes StaticObject from db, reports a miss to the log |
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