Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
A collection of custom properties related to some asset.
Classes | |
class | ProperiesDomain |
Implements API for the layer relayed features. More... | |
Public Member Functions | |
void | Add (AssetProperty property) |
Adds property to the register. More... | |
void | Clear () |
Clears entire register. | |
bool | Contains (string propertyPath) |
Checks is the property by the path exists. More... | |
bool | Contains (AssetProperty property) |
Checks is the property by the path exists. More... | |
void | CopyTo (AssetProperty[] array, int arrayIndex) |
Copying properties to array. More... | |
IEnumerator< AssetProperty > | GetEnumerator () |
Returns enumerator of entire asset properties. More... | |
IEnumerator< AssetProperty > | GetDomainEnumerator (ProperiesDomain domain) |
Returns enumerator of properties placed to the certain domain layer. More... | |
bool | Remove (string propertyPath) |
Removes property from the register. More... | |
bool | Remove (AssetProperty property) |
Removes property from the register. More... | |
ProperiesDomain | FindDomain (string domainPath) |
Looking for domain by the path. More... | |
ProperiesDomain | FindPropertyDomain (string propertyPath, out string propertyKey) |
Looking for layer by the full property path. More... | |
void | SetDirty () |
Bakes runtime data from the Register property to the serializable binaryRegister. More... | |
bool | TryReadFromBinary (byte[] data) |
Attempts to read the binary as ProperiesDomain. Applies result to Register in case is operation has been successful. More... | |
void | ReadFromBinary (byte[] data) |
Drops current Register and loads new one from the binary data. More... | |
byte[] | ToBinary () |
Converts Register to binary view. More... | |
object | Clone () |
Creates new game object with cloned properties. More... | |
Properties | |
int | Count [get] |
Elements in register's hierarchy. | |
bool | IsReadOnly [get] |
Always false. | |
ProperiesDomain | Register [get, set] |
Ground properties layer. | |
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.AssetPropertiesCollection.Add | ( | AssetProperty | property | ) |
Adds property to the register.
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. |
object Doloro.DataManagement.AssetPropertiesSystem.AssetPropertiesCollection.Clone | ( | ) |
Creates new game object with cloned properties.
bool Doloro.DataManagement.AssetPropertiesSystem.AssetPropertiesCollection.Contains | ( | AssetProperty | property | ) |
Checks is the property by the path exists.
property | Property instance to check. |
bool Doloro.DataManagement.AssetPropertiesSystem.AssetPropertiesCollection.Contains | ( | string | propertyPath | ) |
Checks is the property by the path exists.
propertyPath | Full path of the a property. |
Implements Doloro.DataManagement.AssetPropertiesSystem.IPropertiesProvider.
void Doloro.DataManagement.AssetPropertiesSystem.AssetPropertiesCollection.CopyTo | ( | AssetProperty[] | array, |
int | arrayIndex | ||
) |
Copying properties to array.
array | Destination array. |
arrayIndex | Start index at the destination array. |
ProperiesDomain Doloro.DataManagement.AssetPropertiesSystem.AssetPropertiesCollection.FindDomain | ( | string | domainPath | ) |
Looking for domain by the path.
domainPath | Domains splitted with the dot char. |
ProperiesDomain Doloro.DataManagement.AssetPropertiesSystem.AssetPropertiesCollection.FindPropertyDomain | ( | string | propertyPath, |
out string | propertyKey | ||
) |
Looking for layer by the full property path.
propertyPath | Full property path. |
propertyKey | Property key detected from the path. |
IEnumerator< AssetProperty > Doloro.DataManagement.AssetPropertiesSystem.AssetPropertiesCollection.GetDomainEnumerator | ( | ProperiesDomain | domain | ) |
Returns enumerator of properties placed to the certain domain layer.
domain | Domain to properties search. |
IEnumerator< AssetProperty > Doloro.DataManagement.AssetPropertiesSystem.AssetPropertiesCollection.GetEnumerator | ( | ) |
Returns enumerator of entire asset properties.
void Doloro.DataManagement.AssetPropertiesSystem.AssetPropertiesCollection.ReadFromBinary | ( | byte[] | data | ) |
Drops current Register and loads new one from the binary data.
data | Binary source generated with the SetDirty handler. |
Implements Doloro.DataManagement.Serialization.IBinaryDataProvider.
bool Doloro.DataManagement.AssetPropertiesSystem.AssetPropertiesCollection.Remove | ( | AssetProperty | property | ) |
Removes property from the register.
property | Property to remove. |
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. |
bool Doloro.DataManagement.AssetPropertiesSystem.AssetPropertiesCollection.Remove | ( | string | propertyPath | ) |
Removes property from the register.
propertyPath | Full path to property. |
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.AssetPropertiesCollection.SetDirty | ( | ) |
byte[] Doloro.DataManagement.AssetPropertiesSystem.AssetPropertiesCollection.ToBinary | ( | ) |
Converts Register to binary view.
Implements Doloro.DataManagement.Serialization.IBinaryDataProvider.
bool Doloro.DataManagement.AssetPropertiesSystem.AssetPropertiesCollection.TryReadFromBinary | ( | byte[] | data | ) |
Attempts to read the binary as ProperiesDomain. Applies result to Register in case is operation has been successful.
data | Binary data to read. |
true
in case if data has been restored to objects without exceptions.Implements Doloro.DataManagement.Serialization.IBinaryDataProvider.
|
get |
Provides access to property by path.
path | Path to property in internal hierarchy. |
Implements Doloro.DataManagement.AssetPropertiesSystem.IPropertiesProvider.