![]() |
Combu
3.2.2
Unity API Documentation
|
Public Member Functions | |
| Inventory () | |
| Initializes a new instance of the Inventory class. More... | |
| Inventory (string jsonString) | |
| Initializes a new instance of the Inventory class from a JSON formatted string. More... | |
| Inventory (Hashtable hash) | |
| Initializes a new instance of the Inventory class from a Hashtable. More... | |
| virtual void | FromJson (string jsonString) |
| Initialize the object from a JSON formatted string. More... | |
| virtual void | FromHashtable (Hashtable hash) |
| Initialize the object from a hashtable. More... | |
| virtual void | Update (System.Action< bool, string > callback) |
| Update this inventory item to server. More... | |
| virtual void | Delete (System.Action< bool, string > callback) |
| Delete this inventory item from server. More... | |
Static Public Member Functions | |
| static void | Load (string userId, System.Action< Inventory[], string > callback) |
| Load the inventory items of a User. More... | |
| static void | Load< T > (string userId, System.Action< T[], string > callback) |
| Load the inventory of a User. More... | |
| static void | Delete (long idInventory, System.Action< bool, string > callback) |
| Delete the specified inventory item from server. More... | |
Public Attributes | |
| string | name = "" |
| int | quantity = 0 |
| Hashtable | customData = new Hashtable() |
Properties | |
| long | id [get] |
| Combu.Inventory.Inventory | ( | ) |
Initializes a new instance of the Inventory class.
| Combu.Inventory.Inventory | ( | string | jsonString | ) |
Initializes a new instance of the Inventory class from a JSON formatted string.
| jsonString | JSON formatted string. |
| Combu.Inventory.Inventory | ( | Hashtable | hash | ) |
Initializes a new instance of the Inventory class from a Hashtable.
| hash | Hash. |
|
static |
Delete the specified inventory item from server.
| idInventory | Identifier inventory. |
| callback | Callback. |
|
virtual |
Delete this inventory item from server.
| callback | Callback. |
|
virtual |
Initialize the object from a hashtable.
| hash | Hash. |
|
virtual |
Initialize the object from a JSON formatted string.
| jsonString | Json string. |
|
static |
|
static |
|
virtual |
Update this inventory item to server.
| callback | Callback. |