◆ ItemData()
PlatformerPro.ItemData.ItemData |
( |
| ) |
|
◆ AddItem()
virtual void PlatformerPro.ItemData.AddItem |
( |
string |
key, |
|
|
int |
amount |
|
) |
| |
|
virtual |
Add the specified key and amount.
- Parameters
-
◆ Consume()
virtual int PlatformerPro.ItemData.Consume |
( |
string |
key, |
|
|
int |
amount |
|
) |
| |
|
virtual |
Consume the item with specified key in the given amount.
- Returns
- The actual number consumed.
- Parameters
-
◆ ContainsKey()
virtual bool PlatformerPro.ItemData.ContainsKey |
( |
string |
key | ) |
|
|
virtual |
Returns true if the key is found.
- Returns
true
, if key was found, false
otherwise.
- Parameters
-
◆ stackableItemCountsCounts
List<int> PlatformerPro.ItemData.stackableItemCountsCounts |
The stackable item counts counts.
◆ stackableItemCountsIds
List<string> PlatformerPro.ItemData.stackableItemCountsIds |
The stackable item counts identifiers.
◆ this[string key]
virtual int PlatformerPro.ItemData.this[string key] |
|
getset |
Gets or sets the item data with the specified key.
- Parameters
-
The documentation for this class was generated from the following file:
- D:/Projects/platformer-pro-2019.3/Assets/PlatformerPro/Scripts/Items/ItemData.cs