DB

DB

class

Prototype database filled by mods

Functions

DB:reg(proto)

Register Prototype in DB

proto Prototype Prototype to register

DB:remove(proto)

Remove Prototype from DB

proto Prototype Prototype to remove

returns boolean was Prototype removed

DB:from_table(table)

Register object with class "class" and name "name" from table, filling all other properties from that table too

table table Object table

DB:mod(table)

Register mod table

table table Mod table

DB:objects()

Return all registered objects

returns Object[]

Standard members (4)

Generated for every class of this kind by the game's codegen, not written for DB.

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