Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Component that allows to aggregate the IPropertiesProvider in a single source without destroying their individuality.
Literally just references them.
Public Member Functions | |
void | Add (IPropertiesProvider item) |
Aggregates the collection. More... | |
void | Clear () |
Releases entire aggregated collections. | |
bool | Contains (IPropertiesProvider item) |
Checks is the collection instance is already has been aggregated. More... | |
void | CopyTo (IPropertiesProvider[] array, int arrayIndex) |
Copying aggregated collections references to destination array. More... | |
IEnumerator< IPropertiesProvider > | GetEnumerator () |
Enumerates entire aggregated collections. More... | |
bool | Remove (IPropertiesProvider item) |
Removes collection from the register. More... | |
void | Add (AssetProperty property) |
Adding property to the first registered collection More... | |
bool | Contains (string propertyPath) |
Checks is the property by path exists. More... | |
bool | Contains (AssetProperty property) |
Checks is the property contains in any child IPropertiesProvider. More... | |
void | CopyTo (AssetProperty[] array, int arrayIndex) |
Copies child properties to array. More... | |
bool | Remove (AssetProperty property) |
Removes property from first faced child IPropertiesProvider. More... | |
Protected Member Functions | |
virtual void | Start () |
Loading the entire daughter IPropertiesProvider components from the child hierarchy. | |
virtual void | OnDestroy () |
Releases itself from child collections' events persistence. | |
Properties | |
int | Count [get] |
Count of aggregated collections. More... | |
bool | IsReadOnly [get] |
Always false. | |
AssetProperty | this[string path] [get] |
Provides access to property by path. More... | |
Events | |
Action< AssetProperty > | PropertyAdded |
Occurs when new property added. | |
Action< AssetProperty > | PropertyRemoved |
Occurs when property removed. | |
void Doloro.DataManagement.AssetPropertiesSystem.PropertiesAggregator.Add | ( | AssetProperty | property | ) |
Adding property to the first registered collection
property | Property to add. |
ArgumentNullException | property is null. |
ArgumentException | property .FullPath is null of white space. |
EntryAlreadyExistsException | Occurs when you try to add property to the path that already exist or can't be expanded. |
void Doloro.DataManagement.AssetPropertiesSystem.PropertiesAggregator.Add | ( | IPropertiesProvider | item | ) |
Aggregates the collection.
item | Item to register add. |
ArgumentNullException | item is null. |
bool Doloro.DataManagement.AssetPropertiesSystem.PropertiesAggregator.Contains | ( | AssetProperty | property | ) |
Checks is the property contains in any child IPropertiesProvider.
property | Property to contains check. |
true
in case if the property has been found among child registry.bool Doloro.DataManagement.AssetPropertiesSystem.PropertiesAggregator.Contains | ( | IPropertiesProvider | item | ) |
Checks is the collection instance is already has been aggregated.
item | Collection to check. |
bool Doloro.DataManagement.AssetPropertiesSystem.PropertiesAggregator.Contains | ( | string | propertyPath | ) |
Checks is the property by path exists.
propertyPath | Full path to the property. |
true
in case if property has been found. false
otherwise. Implements Doloro.DataManagement.AssetPropertiesSystem.IPropertiesProvider.
void Doloro.DataManagement.AssetPropertiesSystem.PropertiesAggregator.CopyTo | ( | AssetProperty[] | array, |
int | arrayIndex | ||
) |
Copies child properties to array.
array | Destination array. |
arrayIndex | Start index in destination array. |
void Doloro.DataManagement.AssetPropertiesSystem.PropertiesAggregator.CopyTo | ( | IPropertiesProvider[] | array, |
int | arrayIndex | ||
) |
Copying aggregated collections references to destination array.
array | Destination of copying. |
arrayIndex | Start index at the destination array. |
IEnumerator< IPropertiesProvider > Doloro.DataManagement.AssetPropertiesSystem.PropertiesAggregator.GetEnumerator | ( | ) |
Enumerates entire aggregated collections.
bool Doloro.DataManagement.AssetPropertiesSystem.PropertiesAggregator.Remove | ( | AssetProperty | property | ) |
Removes property from first faced child IPropertiesProvider.
property | Property to release. |
true
in case if property has been found and released. false
otherwise.bool Doloro.DataManagement.AssetPropertiesSystem.PropertiesAggregator.Remove | ( | IPropertiesProvider | item | ) |
Removes collection from the register.
item | Entry to remove. |
|
get |
Count of aggregated collections.
Counts the destroyed in case if them not unregistered from the component via the Remove(IPropertiesProvider) handler.
|
get |
Provides access to property by path.
path | Path to property in internal hierarchy. |
In case if aggregated collections contain colliding properties then returns the first detected.
Implements Doloro.DataManagement.AssetPropertiesSystem.IPropertiesProvider.