Manages a master DialogueDatabase and associated Lua environment.
More...
Manages a master DialogueDatabase and associated Lua environment.
◆ DatabaseManager()
PixelCrushers.DialogueSystem.DatabaseManager.DatabaseManager |
( |
DialogueDatabase |
defaultDatabase = null | ) |
|
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.
- Parameters
-
defaultDatabase | (Optional) The default database. |
◆ Add()
void PixelCrushers.DialogueSystem.DatabaseManager.Add |
( |
DialogueDatabase |
database | ) |
|
Adds a database to the master database, and updates the Lua environment.
- Parameters
-
database | The database to add. |
◆ Clear()
void PixelCrushers.DialogueSystem.DatabaseManager.Clear |
( |
| ) |
|
Removes all loaded databases from the master database and clears the Lua environment.
◆ Remove()
void PixelCrushers.DialogueSystem.DatabaseManager.Remove |
( |
DialogueDatabase |
database | ) |
|
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.
- Parameters
-
database | The database to remove. |
◆ Reset()
Resets the master database using the specified DatabaseResetOptions.
- Parameters
-
databaseResetOptions | Database reset options.
|
◆ DefaultDatabase
Gets or sets the default database.
The default database to use at startup or when resetting the database manager.
◆ MasterDatabase
Gets the master database.
The master database.
The documentation for this class was generated from the following file:
- D:/Documents/Unity Projects/Dialogue System/Dev/Source/Assets/Dialogue System/Scripts/Core/Model-View-Controller/Model/Logic/Database Manager/DatabaseManager.cs