StaticObject
classBase prototype for anything placeable in the world
Fields
| Name | Type | Description | |
|---|---|---|---|
| item | StaticItem | Item this object is built from and mined into | |
| mined_item | StaticItem | Item a build pays and mining returns; nil when the object is not minable | |
| mined_count | integer | How many of mined_item a build pays and mining returns; zero when the object is not minable | |
Standard members (4)
These members are available on all classes of this kind.
| 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