Platformer Pro  2.3.2
A platform game kit for Unity.
PlatformerPro.ItemData Class Reference

Public Member Functions

 ItemData ()
 Initializes a new instance of the PlatformerPro.ItemData class. More...
 
virtual void AddItem (string key, int amount)
 Add the specified key and amount. More...
 
virtual bool ContainsKey (string key)
 Returns true if the key is found. More...
 
virtual int Consume (string key, int amount)
 Consume the item with specified key in the given amount. More...
 

Public Attributes

List< string > stackableItemCountsIds
 The stackable item counts identifiers. More...
 
List< int > stackableItemCountsCounts
 The stackable item counts counts. More...
 

Properties

virtual int this[string key] [get, set]
 Gets or sets the item data with the specified key. More...
 

Constructor & Destructor Documentation

◆ ItemData()

PlatformerPro.ItemData.ItemData ( )

Initializes a new instance of the PlatformerPro.ItemData class.

Member Function Documentation

◆ AddItem()

virtual void PlatformerPro.ItemData.AddItem ( string  key,
int  amount 
)
virtual

Add the specified key and amount.

Parameters
keyKey.
amountAmount.

◆ 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
keyKey.
amountAmount.

◆ 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
keyKey.

Member Data Documentation

◆ stackableItemCountsCounts

List<int> PlatformerPro.ItemData.stackableItemCountsCounts

The stackable item counts counts.

◆ stackableItemCountsIds

List<string> PlatformerPro.ItemData.stackableItemCountsIds

The stackable item counts identifiers.

Property Documentation

◆ this[string key]

virtual int PlatformerPro.ItemData.this[string key]
getset

Gets or sets the item data with the specified key.

Parameters
keyKey.

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