Platformer Pro  2.3.2
A platform game kit for Unity.
PlatformerPro.ShopItemData Class Reference
Inheritance diagram for PlatformerPro.ShopItemData:
PlatformerPro.ItemInstanceData

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...
 
- Public Member Functions inherited from PlatformerPro.ItemInstanceData
 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...
 
- Public Attributes inherited from PlatformerPro.ItemInstanceData
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

- Protected Attributes inherited from PlatformerPro.ItemInstanceData
string itemId
 Id of the item. More...
 
ItemTypeData data
 Cache item data, we need this a lot. More...
 
- Properties inherited from PlatformerPro.ItemInstanceData
string ItemId [get, set]
 
ItemTypeData Data [get]
 Gets the ItemTypeData backing this item. More...
 

Constructor & Destructor Documentation

◆ ShopItemData() [1/4]

PlatformerPro.ShopItemData.ShopItemData ( )

◆ ShopItemData() [2/4]

PlatformerPro.ShopItemData.ShopItemData ( string  itemType,
int  amount 
)

◆ ShopItemData() [3/4]

PlatformerPro.ShopItemData.ShopItemData ( string  itemType,
int  amount,
System.DateTime  lastRestockTime 
)

◆ ShopItemData() [4/4]

PlatformerPro.ShopItemData.ShopItemData ( ShopItemData  source)

Initializes a new instance of the PlatformerPro.ShopItemData class by cloning another one.

Member Data Documentation

◆ lastRestockTime

System.DateTime PlatformerPro.ShopItemData.lastRestockTime

When was the item last restocked.


The documentation for this class was generated from the following file: