DB
classPrototype database filled by mods
- 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.
Functions
DB:remove(proto) load-only
Remove Prototype from DB
| proto | Prototype | Prototype to remove |
returns boolean was Prototype removed
DB:from_table(table) load-only
Register object with class "class" and name "name" from table, filling all other properties from that table too
| table | table | Object table |
Standard members (4)
Every class of this kind carries these.
| DB.cast(object) | Trying to cast Object into DB |
| DB.get_class() | Return DB class object |
| DB.new(parent, name) | Creates a new DB instance |
| DB.new_simple() | Creates a new DB instance |
Inherited from Instance (1)
- Instance:is_valid() Returns false once the underlying engine object has been destroyed
Inherited from Object (3)
- name read-only Object name
- Object.find(name) Find an already loaded object by name
- Object:get_class() Class of this object