|
int | amount |
| Amount stored in the inventory. More...
|
|
int | durability |
| Amount of durability (health) remaining. Durability starts at max durability and is reduced as an item is Damaged. More...
|
|
int | xp |
| Store experience against this object. Can be used to allow items to level up. More...
|
|
◆ ItemInstanceData() [1/3]
PlatformerPro.ItemInstanceData.ItemInstanceData |
( |
| ) |
|
◆ ItemInstanceData() [2/3]
◆ ItemInstanceData() [3/3]
PlatformerPro.ItemInstanceData.ItemInstanceData |
( |
string |
itemId, |
|
|
int |
amount |
|
) |
| |
◆ Damage()
virtual int PlatformerPro.ItemInstanceData.Damage |
( |
int |
amount | ) |
|
|
virtual |
Damage the item by the specified amount and return amount of damage done, or -1 if item destroyed.
- Parameters
-
◆ Repair()
virtual void PlatformerPro.ItemInstanceData.Repair |
( |
int |
amount | ) |
|
|
virtual |
Repairs an item so its durability goes back to max.
- Parameters
-
◆ RepairToMax()
virtual void PlatformerPro.ItemInstanceData.RepairToMax |
( |
| ) |
|
|
virtual |
Repairs an item so its durability goes back to max.
◆ amount
int PlatformerPro.ItemInstanceData.amount |
Amount stored in the inventory.
◆ data
Cache item data, we need this a lot.
◆ durability
int PlatformerPro.ItemInstanceData.durability |
Amount of durability (health) remaining. Durability starts at max durability and is reduced as an item is Damaged.
◆ itemId
string PlatformerPro.ItemInstanceData.itemId |
|
protected |
◆ xp
int PlatformerPro.ItemInstanceData.xp |
Store experience against this object. Can be used to allow items to level up.
◆ Data
◆ ItemId
string PlatformerPro.ItemInstanceData.ItemId |
|
getset |
The documentation for this class was generated from the following file: