StaticObject

StaticObject

class

Base prototype for anything placeable in the world

  • read-only Assigning to the field raises an error.

Fields

NameTypeDescription
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)
Inherited from Object (1)

Subclasses