Manages a master DialogueDatabase and its data in the global Lua environment. More...
Public Member Functions | |
DatabaseManager (DialogueDatabase defaultDatabase=null) | |
Initializes a new DatabaseManager. | |
void | Add (DialogueDatabase database) |
Adds a database to the master database, and updates the Lua environment. | |
void | Remove (DialogueDatabase database) |
Removes a database from the master database, and updates the Lua environment. | |
void | Clear () |
Removes all loaded databases from the master database and clears the Lua environment. | |
void | Reset (DatabaseResetOptions databaseResetOptions=DatabaseResetOptions.RevertToDefault) |
Resets the master database using the specified DatabaseResetOptions. | |
Properties | |
DialogueDatabase | defaultDatabase [get, set] |
The default database to use at startup or when resetting the database manager. | |
DialogueDatabase | masterDatabase [get] |
The master database containing the assets of all loaded databases. | |
List< DialogueDatabase > | loadedDatabases [get] |
The list of databases currently loaded into the masterDatabase. | |
Manages a master DialogueDatabase and its data in the global Lua environment.
|
inline |
Initializes a new DatabaseManager.
Loading of the default database is delayed until the first time the database is accessed. If you want to manually load the database, you can reset it or add a database to it.
defaultDatabase | (Optional) The default database. |
|
inline |
Adds a database to the master database, and updates the Lua environment.
database | The database to add. |
|
inline |
Removes all loaded databases from the master database and clears the Lua environment.
|
inline |
Removes a database from the master database, and updates the Lua environment.
Does not remove any assets that are also defined in other loaded databases.
database | The database to remove. |
|
inline |
Resets the master database using the specified DatabaseResetOptions.
databaseResetOptions | Database reset options.
|
|
getset |
The default database to use at startup or when resetting the database manager.
|
get |
The list of databases currently loaded into the masterDatabase.
|
get |
The master database containing the assets of all loaded databases.