Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.DataManagement.DynamicResources.ResourceContainer Class Reference

Detailed Description

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.
 

Constructor & Destructor Documentation

◆ ResourceContainer() [1/3]

Doloro.DataManagement.DynamicResources.ResourceContainer.ResourceContainer ( Object  resource)

Creates simple container with resource applied to the RootResoruce property.

Parameters
resourceSource resource.

◆ ResourceContainer() [2/3]

Doloro.DataManagement.DynamicResources.ResourceContainer.ResourceContainer ( Object  resource,
params IResourceFilter[]  filters 
)

Created container with a resource with validating resources through the filters.

Parameters
resourceAsset that will be a RootResoruce.
filtersFilters that must be passed by the resource with success result.
Exceptions
FilterNotPassedExceptionResource filtering failed.

◆ ResourceContainer() [3/3]

Doloro.DataManagement.DynamicResources.ResourceContainer.ResourceContainer ( ResourceContainer  resource,
params IResourceFilter[]  filters 
)

Cloning data from previous container and extends it with the new filters

Parameters
resourceSource container.
filtersFilters that must be passed by the resource with success result.
Exceptions
FilterNotPassedExceptionResource filtering failed.

Member Function Documentation

◆ Cast()

static ResourceContainer[] Doloro.DataManagement.DynamicResources.ResourceContainer.Cast ( params Object[]  array)
static

Casting an array of object to array of ResourceContainers.

Parameters
arraySource array.
Returns
Collection of the ResourceContainer.

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