![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
Public Member Functions | |
ShopItemData () | |
ShopItemData (string itemType, int amount) | |
ShopItemData (string itemType, int amount, System.DateTime lastRestockTime) | |
ShopItemData (ShopItemData source) | |
Initializes a new instance of the PlatformerPro.ShopItemData class by cloning another one. More... | |
![]() | |
ItemInstanceData () | |
Initializes a new instance of the PlatformerPro.ItemInstanceData class. More... | |
ItemInstanceData (ItemInstanceData source) | |
Initializes a new instance of the PlatformerPro.ItemInstanceData class by cloning another one then updating the amount. More... | |
ItemInstanceData (string itemId, int amount) | |
Initializes a new instance of the PlatformerPro.ItemInstanceData class. More... | |
virtual int | Damage (int amount) |
Damage the item by the specified amount and return amount of damage done, or -1 if item destroyed. More... | |
virtual void | RepairToMax () |
Repairs an item so its durability goes back to max. More... | |
virtual void | Repair (int amount) |
Repairs an item so its durability goes back to max. More... | |
Public Attributes | |
System.DateTime | lastRestockTime |
When was the item last restocked. More... | |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
string | itemId |
Id of the item. More... | |
ItemTypeData | data |
Cache item data, we need this a lot. More... | |
![]() | |
string | ItemId [get, set] |
ItemTypeData | Data [get] |
Gets the ItemTypeData backing this item. More... | |
PlatformerPro.ShopItemData.ShopItemData | ( | ) |
PlatformerPro.ShopItemData.ShopItemData | ( | string | itemType, |
int | amount | ||
) |
PlatformerPro.ShopItemData.ShopItemData | ( | string | itemType, |
int | amount, | ||
System.DateTime | lastRestockTime | ||
) |
PlatformerPro.ShopItemData.ShopItemData | ( | ShopItemData | source | ) |
Initializes a new instance of the PlatformerPro.ShopItemData class by cloning another one.
System.DateTime PlatformerPro.ShopItemData.lastRestockTime |
When was the item last restocked.