Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Container that using as data entry for the StoragesDatabase.
Contains meta data related to the in-game storage instance that describes how to recreate it.
Used Storage prefab resource defined with the ISignedResource properties.
Not allows direct access to the items. Use TransactionService to handle items transfer.
Public Member Functions | |
StorageContainer () | |
Empty constructor. | |
StorageContainer (Guid id) | |
Creates storage with predefined id. More... | |
StorageContainer (SerializationInfo info, StreamingContext context) | |
Allows to binary serializer instantiate the object from binary. More... | |
ItemContainer | Find (Item item) |
Looks for entry related to the source item. More... | |
ItemContainer | Find (string bundle, string key) |
Looks for storage entry related to the resource. More... | |
IEnumerator< ItemContainer > | GetEnumerator () |
Returns enumerator of stored items. More... | |
void | Dispose () |
Releases entire on-scene temporal resources. | |
void | SetFeatureState (FeatureType prop) |
Collects session data from the property and stores it in container. More... | |
void | SetFeatureState (Type propType, byte[] data) |
Collects session data from the property and stores it in container. More... | |
void | SetFeatureState (string propFullType, byte[] data) |
Collects session data from the property and stores it in container. More... | |
bool | ContainsFeatureState (FeatureType prop) |
Checks is the container contains binary data related to the property. More... | |
bool | ContainsFeatureState (Type prop) |
Checks is the container contains binary data related to the property. More... | |
bool | ContainsFeatureState (string prop) |
Checks is the container contains binary data related to the property. More... | |
bool | DropFeatureState (Type prop) |
Drops property related data. More... | |
bool | DropFeatureState (string prop) |
Drops property data. More... | |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
Protected Attributes | |
List< ItemContainer > | entries = new List<ItemContainer>() |
Entries registered inside the storage. | |
Package Functions | |
virtual void | Add (ItemContainer item) |
Adding container for the entries. More... | |
virtual bool | Remove (ItemContainer item) |
Removes container from internal entries. More... | |
void | OnChangeInternal () |
Allows to access ADataContainer.Changed handler. | |
Properties | |
string | Bundle [get, set] |
Resource bundle key related to the Storage resource binded to the data set. More... | |
string | Key [get, set] |
Resource key related to the Storage resource binded to the data set. More... | |
FeatureContainer | this[Type type] [get] |
Returns FeatureContainer by type in string format in case if it exists. More... | |
FeatureContainer | this[string type] [get] |
Returns FeatureContainer by type in string format in case if it exists. More... | |
Dictionary< string, FeatureContainer > | features [get] |
Collection of FeatureType related cross-session data in binary format. | |
Doloro.InvetorySystem.StoragesDatabase.StorageContainer.StorageContainer | ( | Guid | id | ) |
Creates storage with predefined id.
id | Id to set. |
Doloro.InvetorySystem.StoragesDatabase.StorageContainer.StorageContainer | ( | SerializationInfo | info, |
StreamingContext | context | ||
) |
Allows to binary serializer instantiate the object from binary.
info | |
context |
|
packagevirtual |
|
inherited |
Checks is the container contains binary data related to the property.
prop | Property to check. |
true
in case if there is stored property data.
|
inherited |
Checks is the container contains binary data related to the property.
prop | Property to check. |
true
in case if there is stored property data.
|
inherited |
Checks is the container contains binary data related to the property.
prop | Property to check. |
true
in case if there is stored property data.
|
inherited |
Drops property data.
prop | Property name to release. |
|
inherited |
Drops property related data.
prop | Type of the FeatureType to data release. |
ItemContainer Doloro.InvetorySystem.StoragesDatabase.StorageContainer.Find | ( | Item | item | ) |
Looks for entry related to the source item.
item | item resource that contains meta data. |
null
otherwise. ItemContainer Doloro.InvetorySystem.StoragesDatabase.StorageContainer.Find | ( | string | bundle, |
string | key | ||
) |
Looks for storage entry related to the resource.
bundle | Resources bundle key related to the resource. |
key | Resource key. |
null
otherwise. IEnumerator< ItemContainer > Doloro.InvetorySystem.StoragesDatabase.StorageContainer.GetEnumerator | ( | ) |
Returns enumerator of stored items.
|
packagevirtual |
Removes container from internal entries.
item | Container to remove. |
true
in case if successfully removed from the storage. false
in case if not found.
|
inherited |
Collects session data from the property and stores it in container.
prop | Property to data save. |
|
inherited |
Collects session data from the property and stores it in container.
propFullType | Full name of property's type related to the data. |
data | Binary data related to the property. |
|
inherited |
Collects session data from the property and stores it in container.
propType | Property type related to the data. |
data | Binary data related to the property. |
|
getset |
Resource bundle key related to the Storage resource binded to the data set.
default
in case if not defined.
Implements Doloro.DataManagement.DynamicResources.ISignedResource.
|
getset |
Resource key related to the Storage resource binded to the data set.
storage
in case if not defined.
Implements Doloro.DataManagement.DynamicResources.ISignedResource.
|
getinherited |
Returns FeatureContainer by type in string format in case if it exists.
type | Type in string format received with the Type.FullName |
null
in case if not found.
|
getinherited |
Returns FeatureContainer by type in string format in case if it exists.
type | Type of the FeatureType instance. |
null
in case if not found.