Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Class that handles assets collections. Guarantees the same order of resources then was during loading.
Public Member Functions | |
void | Add (string bundle, params ResourceContainer[] objects) |
Adding new resources to collection. More... | |
void | Add (AssetBundleDescriptor item) |
Adds bundle descriptor to the collection. More... | |
void | Clear () |
Clears entire collection. | |
bool | Contains (AssetBundleDescriptor item) |
Checks is the asset bundle descriptor registered among elements. More... | |
void | CopyTo (AssetBundleDescriptor[] array, int arrayIndex) |
Copies elements to another array. More... | |
IEnumerator< AssetBundleDescriptor > | GetEnumerator () |
Returns enumerator of the
items in collection. More... | |
bool | Remove (AssetBundleDescriptor item) |
Trying to remove item from collection. More... | |
Properties | |
ResourceContainer[] | this[object bundleKey] [get, set] |
Returns assets collection by the bundle key. More... | |
ResourceContainer[] | this[int bundleIdx] [get, set] |
Provides access to collection item by the index. More... | |
object[] | Keys [get] |
Array of bundle names. | |
object[] | Values [get] |
Returns asset collection along with bundles order. | |
int | Count [get] |
Returns count of elements at the collection. | |
bool | IsReadOnly [get] |
Always false. | |
void Doloro.DataManagement.DynamicResources.ResourcesCollection.AssetBundlesResourcesCollection.Add | ( | AssetBundleDescriptor | item | ) |
Adds bundle descriptor to the collection.
item | Descriptor to add. |
void Doloro.DataManagement.DynamicResources.ResourcesCollection.AssetBundlesResourcesCollection.Add | ( | string | bundle, |
params ResourceContainer[] | objects | ||
) |
Adding new resources to collection.
bundle | Bundle name. |
objects | Array of resource in container format.. |
bool Doloro.DataManagement.DynamicResources.ResourcesCollection.AssetBundlesResourcesCollection.Contains | ( | AssetBundleDescriptor | item | ) |
Checks is the asset bundle descriptor registered among elements.
item | Descriptor to check. |
void Doloro.DataManagement.DynamicResources.ResourcesCollection.AssetBundlesResourcesCollection.CopyTo | ( | AssetBundleDescriptor[] | array, |
int | arrayIndex | ||
) |
Copies elements to another array.
array | Target array. |
arrayIndex | Start index at the target array. |
IEnumerator< AssetBundleDescriptor > Doloro.DataManagement.DynamicResources.ResourcesCollection.AssetBundlesResourcesCollection.GetEnumerator | ( | ) |
Returns enumerator of the
items in collection.
bool Doloro.DataManagement.DynamicResources.ResourcesCollection.AssetBundlesResourcesCollection.Remove | ( | AssetBundleDescriptor | item | ) |
Trying to remove item from collection.
item | Item to remove. |
|
getset |
Provides access to collection item by the index.
bundleIdx | Index of registered assets bundle. |
|
getset |
Returns assets collection by the bundle key.
bundleKey | name of the bungle. |