Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Container that holds resource as well with extra metadata.
During cast into the UnityEngine.Object returns the RootResoruce value;
Public Member Functions | |
ResourceContainer (Object resource) | |
Creates simple container with resource applied to the RootResoruce property. More... | |
ResourceContainer (Object resource, params IResourceFilter[] filters) | |
Created container with a resource with validating resources through the filters. More... | |
ResourceContainer (ResourceContainer resource, params IResourceFilter[] filters) | |
Cloning data from previous container and extends it with the new filters More... | |
Static Public Member Functions | |
static ResourceContainer[] | Cast (params Object[] array) |
Casting an array of object to array of ResourceContainers. More... | |
static | operator Object (ResourceContainer rc) |
static | operator ResourceContainer (Object obj) |
Properties | |
Object | RootResoruce [get] |
Main resource. | |
Object[] | FiltersRelatedResources [get] |
Objects selected by the filters during passing through. | |
IResourceFilter[] | AppliedFilters [get] |
Filters that was applied during init time. | |
Doloro.DataManagement.DynamicResources.ResourceContainer.ResourceContainer | ( | Object | resource | ) |
Creates simple container with resource applied to the RootResoruce property.
resource | Source resource. |
Doloro.DataManagement.DynamicResources.ResourceContainer.ResourceContainer | ( | Object | resource, |
params IResourceFilter[] | filters | ||
) |
Created container with a resource with validating resources through the filters.
resource | Asset that will be a RootResoruce. |
filters | Filters that must be passed by the resource with success result. |
FilterNotPassedException | Resource filtering failed. |
Doloro.DataManagement.DynamicResources.ResourceContainer.ResourceContainer | ( | ResourceContainer | resource, |
params IResourceFilter[] | filters | ||
) |
Cloning data from previous container and extends it with the new filters
resource | Source container. |
filters | Filters that must be passed by the resource with success result. |
FilterNotPassedException | Resource filtering failed. |
|
static |
Casting an array of object to array of ResourceContainers.
array | Source array. |