Dimensional Depot
Parent |
The dimensional depot, remote storage or also known as central storage.
Properties
Functions
canUploadItemsToCentralStorage (itemType : Class<ItemType>) → canUpload : Bool
Returns true if any items of the given type can be uploaded to the central storage.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Can upload Items to Central Storage |
| Name | Type | Description |
|---|---|---|
Item Type |
Class<ItemType> |
The type of the item you want to check if it can be uploaded. |
| Name | Type | Description |
|---|---|---|
Can Upload |
Bool |
True if the given item type can be uploaded to the central storage. |
getCentralStorageItemLimit (itemType : Class<ItemType>) → number : Int
Returns the maxiumum number of items of a given type you can upload to the central storage.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Get Central Storage Item Limit |
| Name | Type | Description |
|---|---|---|
Item Type |
Class<ItemType> |
The type of the item you want to check if it can be uploaded. |
| Name | Type | Description |
|---|---|---|
Number |
Int |
The maximum number of items you can upload. |
getItemCountFromCentralStorage (itemType : Class<ItemType>) → number : Int
Returns the number of items of a given type that is stored within the central storage.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Get Item Count from Central Storage |
| Name | Type | Description |
|---|---|---|
Item Type |
Class<ItemType> |
The type of the item you want to get the number of items in the central storage from. |
| Name | Type | Description |
|---|---|---|
Number |
Int |
The number of items in the central storage. |
getAllItemsFromCentralStorage () → items : Array<Struct<ItemAmount>>
Return a list of all items the central storage currently contains.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Get all Items from Cental Stroage |
| Name | Type | Description |
|---|---|---|
Items |
Array<Struct<ItemAmount>> |
The list of items that the central storage currently contains. |
Signals
ItemAmountUpdated (Class<ItemType> Item Type itemType, Int Item Amount itemAmount)
Gets triggered when the amount of item in the central storage changes.
Details
| Name | Type | Description |
|---|---|---|
Item Type |
Class<ItemType> |
The type of the item that got uploaded. |
Item Amount |
Int |
The new amount of items of the given type. |
ItemLimitReachedUpdated (Class<ItemType> Item Type itemType, Bool Reached reached)
Gets triggered when an item type reached maximum capacity, or when it now has again available space for new items.
Details
| Name | Type | Description |
|---|---|---|
Item Type |
Class<ItemType> |
The type of the item which changed if it has reached the limit or not. |
Reached |
Bool |
True if the given item type has reached the limit or not. |