Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Implements the slots limit to the storage.
Public Member Functions | |
override bool | OnTrasactionMask (TransactionService.TransactionOrder order) |
Checks is the storage slots limiter allows to place entire objects along with them stack size. More... | |
void | Reserve (TransactionService.TransactionOrder order) |
Reserves internal capacity for possible transaction. More... | |
void | CancelReservation (TransactionService.TransactionOrder order) |
Releases reservation holdings. More... | |
void | ConfirmReservation (TransactionService.TransactionOrder order) |
Changes reservation holdings state to permanent. More... | |
override void | OnStorageRented () |
Drops a data related to certain database instance. More... | |
void | DropPrecomputedData () |
Drops precomputed data. | |
virtual void | OnStorageRentOver () |
Occurs when rented storage released from the rent. More... | |
virtual byte[] | SaveSession () |
Converting property session data to the binary formated. More... | |
virtual void | SetDefault () |
Sets default property values. More... | |
virtual void | LoadSession (byte[] data) |
Loading session data in binary format to the instance. More... | |
Protected Member Functions | |
virtual void | OnModified () |
Handler that should be called each time when property values have been modified. More... | |
Properties | |
float | FilledSlots [get] |
Current filled slots for current content of the storage content. More... | |
float | Limit [get, set] |
Slots allowed to be filled in the storage. More... | |
string | message [get, protected set] |
Message generated to the order during validation precess. | |
Storage | storage [get] |
Binded storage source. | |
Events | |
Action< AEntityFeature > | Modified |
Occurs when internal systems calling the OnModified handler. | |
void Doloro.InvetorySystem.Features.StorageSlotsLimiter.CancelReservation | ( | TransactionService.TransactionOrder | order | ) |
Releases reservation holdings.
order | Order requested reservation previously. |
Implements Doloro.InvetorySystem.IReservationAgent.
void Doloro.InvetorySystem.Features.StorageSlotsLimiter.ConfirmReservation | ( | TransactionService.TransactionOrder | order | ) |
Changes reservation holdings state to permanent.
order | Order requested reservation previously. |
Implements Doloro.InvetorySystem.IReservationAgent.
|
virtualinherited |
Loading session data in binary format to the instance.
data | Property related data received via the SaveSession handler. |
data
as null
must be considered as a clear session.
Reimplemented in Doloro.InvetorySystem.Modules.Shops.ShopFeature, Doloro.InvetorySystem.Features.VolumetricSpace.StorageVolume, Doloro.InvetorySystem.Features.StorageContentSpawner, Doloro.InvetorySystem.Features.StorageInfo, and Doloro.InvetorySystem.Features.StorageLock.
|
protectedvirtualinherited |
Handler that should be called each time when property values have been modified.
Reimplemented in Doloro.InvetorySystem.Features.VolumetricSpace.StorageVolume.
|
virtual |
Drops a data related to certain database instance.
Reimplemented from Doloro.InvetorySystem.AStorageFeature.
|
virtualinherited |
Occurs when rented storage released from the rent.
Use to clear entire members related to the certain source StoragesDatabase.StorageContainer binded to the storage.
Reimplemented in Doloro.InvetorySystem.Modules.Shops.ShopFeature, Doloro.InvetorySystem.Features.StorageInfo, and Doloro.InvetorySystem.Features.StorageLock.
|
virtual |
Checks is the storage slots limiter allows to place entire objects along with them stack size.
order | Transaction order that contains meta description of sharing operation. |
true
in case if item passing the filter. false
otherwise. Implements Doloro.InvetorySystem.AMaskStorageFeature.
void Doloro.InvetorySystem.Features.StorageSlotsLimiter.Reserve | ( | TransactionService.TransactionOrder | order | ) |
Reserves internal capacity for possible transaction.
order | Order that defines resources that could be transfered to the agent. |
Implements Doloro.InvetorySystem.IReservationAgent.
|
virtualinherited |
Converting property session data to the binary formated.
Reimplemented in Doloro.InvetorySystem.Modules.Shops.ShopFeature, Doloro.InvetorySystem.Features.VolumetricSpace.StorageVolume, Doloro.InvetorySystem.Features.StorageContentSpawner, Doloro.InvetorySystem.Features.StorageInfo, and Doloro.InvetorySystem.Features.StorageLock.
|
virtualinherited |
Sets default property values.
Reimplemented in Doloro.InvetorySystem.Modules.Shops.ShopFeature, Doloro.InvetorySystem.Features.StorageInfo, and Doloro.InvetorySystem.Features.StorageLock.
|
get |
Current filled slots for current content of the storage content.
>
Not includes reservation.
|
getset |
Slots allowed to be filled in the storage.
Can't be lesser then 0.