Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabaseUtils Class Reference

Detailed Description

Provides utilities for handling tags databases.

Static Public Member Functions

static void DropMergedDatabase ()
 Dropping MergedDatabase value to null.
 
static void Reload ()
 Reloading databases.
 
static Tag FindByKey (string key)
 Looking for the tag among the MergedDatabase. More...
 
static TagsDatabase CreateNewDataBase (string name, bool addToDetected=false)
 Creating RAM-only instance of the tags database. More...
 
static bool ContainsKey (this ITagsCollection source, string key)
 Checking is the tag included to the collection. More...
 

Properties

static bool IsLoaded [get]
 True in case if resources already loaded.
 
static bool IsLoading [get]
 True in case if database currently during loading process.
 
static TagsDatabase MergedDatabase [get]
 A database with tags merged from DetectedDatabases to a single data structure. More...
 
static TagsDatabase[] DetectedDatabases [get]
 Array with detected databases. More...
 

Events

static Action DetectedDatabasesChaged
 Occurs when internal processes affecting the DetectedDatabases collection.
 
static Action Loaded
 Event that occurs when all the resources are loaded.
 

Member Function Documentation

◆ ContainsKey()

static bool Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabaseUtils.ContainsKey ( this ITagsCollection  source,
string  key 
)
static

Checking is the tag included to the collection.

Parameters
sourceSource collection.
keyTag.Key to search.
Returns
Is the tag has been found.

◆ CreateNewDataBase()

static TagsDatabase Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabaseUtils.CreateNewDataBase ( string  name,
bool  addToDetected = false 
)
static

Creating RAM-only instance of the tags database.

Parameters
nameName of the asset.
addToDetectedIf true then database will be registered int the DetectedDatabases collection.
Returns
Database instance.

Features related to the AssetDatabase available only in editor.

In compiled game works the same as CreateNewDataBase(string, bool).

◆ FindByKey()

static Tag Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabaseUtils.FindByKey ( string  key)
static

Looking for the tag among the MergedDatabase.

Parameters
keyTag's key for search.
Returns
Tag if found. Null otherwise.
Exceptions
TagsDatabaseNotLoadedYetExceptionResources still not loaded.
See also
IsLoaded, Loaded

Property Documentation

◆ DetectedDatabases

TagsDatabase [] Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabaseUtils.DetectedDatabases
staticget

Array with detected databases.

Exceptions
TagsDatabaseNotLoadedYetExceptionResources still not loaded.
See also
IsLoaded, Loaded

◆ MergedDatabase

TagsDatabase Doloro.DataManagement.DynamicResources.Modules.TagsTool.TagsDatabaseUtils.MergedDatabase
staticget

A database with tags merged from DetectedDatabases to a single data structure.

Exceptions
TagsDatabaseNotLoadedYetExceptionResources still not loaded.
See also
IsLoaded, Loaded

The documentation for this class was generated from the following file: