Method | Description | |
---|---|---|
BuyItem ( string itemId ) : void |
Buys the item with the given
|
|
BuyItem ( string itemId, string payload ) : void |
Buys the item with the given
|
|
CanAfford ( string itemId ) : bool |
Checks if there is enough funds to afford
|
|
EquipVirtualGood ( string goodItemId ) : void |
Equips the virtual good with the given
|
|
GetEquippedVirtualGood ( Soomla.Store.VirtualCategory category ) : Soomla.Store.EquippableVG |
Checks currently equipped good in given
|
|
GetEquippedVirtualGood ( string categoryName ) : Soomla.Store.EquippableVG |
Checks currently equipped good in given
|
|
GetGoodCurrentUpgrade ( string goodItemId ) : string |
Retrieves the current upgrade of the good with the given id.
|
|
GetGoodUpgradeLevel ( string goodItemId ) : int |
Retrieves the upgrade level of the virtual good with the given
|
|
GetItemBalance ( string itemId ) : int |
Retrieves the balance of the virtual item with the given
|
|
GiveItem ( string itemId, int amount ) : void |
Gives your user the given amount of the virtual item with the given
|
|
IsVirtualGoodEquipped ( string goodItemId ) : bool |
Checks if the virtual good with the given
|
|
RefreshLocalInventory ( ) : void |
This function refreshes a local set of objects that will hold your user's balances in memory for quick and more efficient fetching for your game UI. This way, we save many JNI or static calls to native platforms. NOTE: You don't need to call this function as it's automatically called when the game initializes. NOTE: This is less useful when you work in editor.
|
|
RefreshOnCurrencyBalanceChanged ( Soomla.Store.VirtualCurrency virtualCurrency, int balance, int amountAdded ) : void | ||
RefreshOnGoodBalanceChanged ( Soomla.Store.VirtualGood good, int balance, int amountAdded ) : void | ||
RefreshOnGoodEquipped ( Soomla.Store.EquippableVG equippable ) : void | ||
RefreshOnGoodUnEquipped ( Soomla.Store.EquippableVG equippable ) : void | ||
RefreshOnGoodUpgrade ( Soomla.Store.VirtualGood vg, |
||
RemoveGoodUpgrades ( string goodItemId ) : void |
Removes all upgrades from the virtual good with the given
|
|
TakeItem ( string itemId, int amount ) : void |
Takes from your user the given amount of the virtual item with the given
|
|
UnEquipVirtualGood ( string goodItemId ) : void |
Unequips the virtual good with the given
|
|
UpgradeGood ( string goodItemId ) : void |
Upgrades the virtual good with the given
|
Method | Description | |
---|---|---|
UpdateLocalBalance ( string itemId, int balance ) : void |
public static BuyItem ( string itemId ) : void | ||
itemId | string | id of item to be bought |
return | void |
public static BuyItem ( string itemId, string payload ) : void | ||
itemId | string | id of item to be bought |
payload | string | a string you want to be assigned to the purchase. This string /// is saved in a static variable and will be given bacl to you when the purchase is completed. |
return | void |
public static CanAfford ( string itemId ) : bool | ||
itemId | string | id of item to be checked |
return | bool |
public static EquipVirtualGood ( string goodItemId ) : void | ||
goodItemId | string | Id of the good to be equipped. |
return | void |
public static GetEquippedVirtualGood ( Soomla.Store.VirtualCategory category ) : Soomla.Store.EquippableVG | ||
category | Soomla.Store.VirtualCategory | Category we want to check |
return | Soomla.Store.EquippableVG |
public static GetEquippedVirtualGood ( string categoryName ) : Soomla.Store.EquippableVG | ||
categoryName | string | |
return | Soomla.Store.EquippableVG |
public static GetGoodCurrentUpgrade ( string goodItemId ) : string | ||
goodItemId | string | Id of the good whose upgrade we want to fetch. |
return | string |
public static GetGoodUpgradeLevel ( string goodItemId ) : int | ||
goodItemId | string | Good item identifier. |
return | int |
public static GetItemBalance ( string itemId ) : int | ||
itemId | string | Id of the virtual item to be fetched. |
return | int |
public static GiveItem ( string itemId, int amount ) : void | ||
itemId | string | Id of the item to be given. |
amount | int | Amount of the item to be given. |
return | void |
public static IsVirtualGoodEquipped ( string goodItemId ) : bool | ||
goodItemId | string | Id of the virtual good who we want to know if is equipped. |
return | bool |
public static RefreshLocalInventory ( ) : void | ||
return | void |
public static RefreshOnCurrencyBalanceChanged ( Soomla.Store.VirtualCurrency virtualCurrency, int balance, int amountAdded ) : void | ||
virtualCurrency | Soomla.Store.VirtualCurrency | |
balance | int | |
amountAdded | int | |
return | void |
public static RefreshOnGoodBalanceChanged ( Soomla.Store.VirtualGood good, int balance, int amountAdded ) : void | ||
good | Soomla.Store.VirtualGood | |
balance | int | |
amountAdded | int | |
return | void |
public static RefreshOnGoodEquipped ( Soomla.Store.EquippableVG equippable ) : void | ||
equippable | Soomla.Store.EquippableVG | |
return | void |
public static RefreshOnGoodUnEquipped ( Soomla.Store.EquippableVG equippable ) : void | ||
equippable | Soomla.Store.EquippableVG | |
return | void |
public static RefreshOnGoodUpgrade ( Soomla.Store.VirtualGood vg, |
||
vg | Soomla.Store.VirtualGood | |
uvg | ||
return | void |
public static RemoveGoodUpgrades ( string goodItemId ) : void | ||
goodItemId | string | Id of the good whose upgrades are to be removed. |
return | void |
public static TakeItem ( string itemId, int amount ) : void | ||
itemId | string | Item identifier. |
amount | int | Amount. |
return | void |
public static UnEquipVirtualGood ( string goodItemId ) : void | ||
goodItemId | string | Id of the good to be unequipped. |
return | void |
public static UpgradeGood ( string goodItemId ) : void | ||
goodItemId | string | Good item identifier. |
return | void |