|
Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Implements conception of the in-game storage.


Public Member Functions | |
| delegate void | StorageDelegate (Storage storage) |
| Delegate using in storage related events. More... | |
| bool | SaveItemState (string bundle, string key) |
| Saves item session data to the storage container. More... | |
| void | SaveFeatureState (AStorageFeature source) |
| Saves feature's cross-session data to the database. More... | |
| void | LoadFeatureState (AStorageFeature destination) |
| Loads feature's cross-session data from the database. More... | |
| void | Dispose () |
| Releases entire on-scene temporal resources. | |
Protected Member Functions | |
| virtual void | Awake () |
| Occurs when instance created in the world. | |
| virtual void | OnDestroy () |
| Release instance from external events. | |
| virtual void | OnDestory () |
| Overs the rent. | |
| virtual void | OnRentOver () |
| Occurs each time when source changed for entity that had been renting. | |
| virtual void | OnRentStarted () |
| Occurs each time when source changed for entity that has been renting. | |
| virtual void | Dispose (bool disposing) |
Properties | |
| StoragesDatabase.StorageContainer | source [get, set] |
| Source database entry binded to the storage. | |
| IEnumerable< FeatureType > | features [get] |
| Collection of features applied to the resource instance. | |
Events | |
| static StorageDelegate | NewStorage |
| Occurs when new storage instantiate at the world. | |
| StorageDelegate | RentStarted |
| Occurs after OnRentStarted execution. | |
| StorageDelegate | RentOver |
| Occurs after OnRentOver execution. | |
| void Doloro.InvetorySystem.Storage.LoadFeatureState | ( | AStorageFeature | destination | ) |
Loads feature's cross-session data from the database.
| destination | Destination feature instance to data restore. |
| void Doloro.InvetorySystem.Storage.SaveFeatureState | ( | AStorageFeature | source | ) |
Saves feature's cross-session data to the database.
| source | Property to save. |
| bool Doloro.InvetorySystem.Storage.SaveItemState | ( | string | bundle, |
| string | key | ||
| ) |
Saves item session data to the storage container.
| bundle | Target item resource bundle to search. |
| key | Target item resource key in the bundler to search. |
| delegate void Doloro.InvetorySystem.Storage.StorageDelegate | ( | Storage | storage | ) |
Delegate using in storage related events.
| storage | Target storage instance. |