Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Provides common API for handling resources.
Public Member Functions | |
delegate void | CollectionHandler (ResourcesCollection collection) |
Delegate using for ResourcesCollection handlers. More... | |
delegate void | CollectionPairHandler (System.Type origineObjectType, ResourcesCollection collection) |
Delegate for pair data sets handlers. More... | |
delegate void | FilteredCollectionPairHandler (System.Type origineObjectType, IResourceFilter[] filters, ResourcesCollection collection) |
Delegate for pair data sets handlers. More... | |
Static Public Member Functions | |
static string | GenerateRCKey< T > () |
Generates the value for the ResourcesCollection.Key property. More... | |
static string | GenerateRCKey< T > (params IResourceFilter[] filters) |
Generates the value for the ResourcesCollection.Key property. More... | |
static void | DropRegisteredCollection (ResourcesCollection collection) |
Call when you affect the loaded resources outside form the system. I will drops hashed data and inform internal services about. More... | |
static void | DropRegisteredCollection (string searchKey) |
Call when you affect the loaded resources outside form the system. I will drops hashed data and inform internal services about. More... | |
static ResourcesCollection | FindCached (string key) |
Looking for the previous loaded ResourcesCollection by the collection key. More... | |
static void | ForceCollectionToCache (ResourcesCollection collection) |
Forcing some ResourcesCollection to be added into the search results. More... | |
static void | FindAllResourcesAsync< T > (CollectionHandler handler, string localResourcesPath="") |
Asynchronicity looks for resources of the certain type More... | |
static void | FindAllResourcesAsync< T > (CollectionPairHandler handler, string localResourcesPath="") |
Asynchronicity looks for resources of the certain type More... | |
static void | FindAllResourcesAsync< T > (CollectionHandler handler, params IResourceFilter[] filters) |
Looking for resources with content filter. More... | |
static void | FindAllResourcesAsync< T > (FilteredCollectionPairHandler handler, params IResourceFilter[] filters) |
Looking for resources with content filter. More... | |
Properties | |
static int | ScannedCollections [get] |
Count of search requests hashed at the moment. | |
static int | SearchesInProcessing [get] |
How many search requests started at the moment. | |
Events | |
static CollectionPairHandler | NewResourcesSearchFinished |
Occurs when FindAllResourcesAsync<T>(CollectionPairHandler, string) or similar search operation for type not searched before is finished. Allows to ignore async architecture of framework and use it with event-based architecture. | |
static FilteredCollectionPairHandler | NewFilteredResourcesSearchFinished |
Occurs when FindAllResourcesAsync<T>(CollectionPairHandler, string) or similar search operation for type with filters not searched before is finished. Allows to ignore async architecture of framework and use it with event-based architecture. | |
delegate void Doloro.DataManagement.DynamicResources.ResourcesManager.CollectionHandler | ( | ResourcesCollection | collection | ) |
Delegate using for ResourcesCollection handlers.
collection | Collection in resources in processing. |
delegate void Doloro.DataManagement.DynamicResources.ResourcesManager.CollectionPairHandler | ( | System.Type | origineObjectType, |
ResourcesCollection | collection | ||
) |
Delegate for pair data sets handlers.
origineObjectType | Type of origin object handled withing the collection. |
collection | Collection of resources related to the type. |
|
static |
Call when you affect the loaded resources outside form the system. I will drops hashed data and inform internal services about.
collection | Collection to drop from registration. |
|
static |
Call when you affect the loaded resources outside form the system. I will drops hashed data and inform internal services about.
searchKey | Signature of the resources collection that was updated. |
In the case of manual resources unload out of RAM the references into catalogs will be loosed.
delegate void Doloro.DataManagement.DynamicResources.ResourcesManager.FilteredCollectionPairHandler | ( | System.Type | origineObjectType, |
IResourceFilter[] | filters, | ||
ResourcesCollection | collection | ||
) |
Delegate for pair data sets handlers.
origineObjectType | Type of origin object handled withing the collection. |
filters | Filters applied to base collection of origin type resources. |
collection | Collection of resources related to the type. |
|
static |
Looking for resources with content filter.
T | Type of the resources. |
In case if subclass of the MonoBehaviour then system automatically reassemble the search query with extra filters to searching the type among components.
handler | Handler that will called when search will be finished. |
filters | Filters that checking is the content passing through the request or not. |
T | : | Object |
|
static |
Asynchronicity looks for resources of the certain type
T | Type of resource. |
In case if subclass of the MonoBehaviour then system automatically reassemble the search query with extra filters to searching the type among components.
handler | Handler that will be called after resources loading to process the data. |
localResourcesPath | Path to resources from the local resources. |
T | : | Object |
|
static |
Asynchronicity looks for resources of the certain type
T | Type of resource. |
In case if subclass of the MonoBehaviour then system automatically reassemble the search query with extra filters to searching the type among components.
handler | Handler that will be called after resources loading to process the data. |
localResourcesPath | Path to resources from the local resources. |
T | : | Object |
|
static |
Looking for resources with content filter.
T | Type of the resources. |
In case if subclass of the MonoBehaviour then system automatically reassemble the search query with extra filters to searching the type among components.
handler | Handler that will called when search will be finished. |
filters | Filters that checking is the content passing through the request or not. |
T | : | Object |
|
static |
Looking for the previous loaded ResourcesCollection by the collection key.
key | ResourcesCollection.Key value. |
null
if not found. GenerateRCKey<T>() GenerateRCKey<T>(IResourceFilter[])
|
static |
Forcing some ResourcesCollection to be added into the search results.
collection |
System.NullReferenceException | collection is null. |
System.ArgumentException | ResourcesCollection.Key is null, empty or whitespace. |
Use it when you somehow filtering or gathering resources outside of common handlers.
The call will override existing entry with the same ResourcesCollection.Key value if exists.
|
static |
Generates the value for the ResourcesCollection.Key property.
T | Resources type. |
|
static |
Generates the value for the ResourcesCollection.Key property.
T | Resources type. |
filters | Filters applied to the collection. |