|
| InventoryService (IPlatformService platform, IBeamableRequester requester) |
|
override Promise< InventoryView > | GetCurrent (string scope="") |
| Get the current data from the given scope. More...
|
|
| AbsInventoryApi (IBeamableRequester requester, IUserContext userContext) |
|
Promise< PreviewCurrencyGainResponse > | PreviewCurrencyGain (Dictionary< string, long > currencyIdsToAmount) |
| Players may sometimes receive additional currency as a result of qualifying for a VIP Tier This API previews what that amount of currency would be ahead of an update. More...
|
|
Promise< GetMultipliersResponse > | GetMultipliers () |
| Provides the VIP Bonus multipliers that are applicable for this player according to their tier. More...
|
|
Promise< long > | GetCurrency (CurrencyRef currency) |
| Gets the currency. More...
|
|
Promise< Unit > | AddItem (ItemRef itemRef, Dictionary< string, string > properties=null, string transaction=null) |
|
Promise< Unit > | AddItem (string contentId, Dictionary< string, string > properties=null, string transaction=null) |
|
Promise< Unit > | DeleteItem (string contentId, long itemId, string transaction=null) |
|
Promise< Unit > | UpdateItem (ItemRef itemRef, long itemId, Dictionary< string, string > properties, string transaction=null) |
|
Promise< Unit > | UpdateItem (string contentId, long itemId, Dictionary< string, string > properties, string transaction=null) |
|
Promise< Unit > | SetCurrency (CurrencyRef currency, long amount, string transaction=null) |
| Sets the currency. More...
|
|
Promise< Unit > | AddCurrency (string currencyId, long amount, string transaction=null) |
| Adds the currency More...
|
|
Promise< Unit > | AddCurrency (CurrencyRef currency, long amount, string transaction=null) |
| Adds the currency More...
|
|
Promise< Unit > | SetCurrencies (Dictionary< CurrencyRef, long > currencyToAmount, string transaction=null) |
|
Promise< Unit > | AddCurrencies (Dictionary< string, long > currencyIdsToAmount, string transaction=null) |
|
Promise< Unit > | AddCurrencies (Dictionary< CurrencyRef, long > currencyToAmount, string transaction=null) |
|
Promise< Unit > | SetCurrency (string currencyId, long amount, string transaction=null) |
| Sets the currency. More...
|
|
Promise< Unit > | SetCurrencies (Dictionary< string, long > currencyIdsToAmount, string transaction=null) |
|
Promise< Dictionary< string, long > > | GetCurrencies (string[] currencyIds) |
|
Promise< Dictionary< CurrencyRef, long > > | GetCurrencies (CurrencyRef[] currencyRefs) |
|
Promise< long > | GetCurrency (string currencyId) |
| Gets the currency. More...
|
|
Promise< Unit > | Update (Action< InventoryUpdateBuilder > action, string transaction=null) |
|
Promise< Unit > | Update (InventoryUpdateBuilder builder, string transaction=null) |
|
Promise< List< InventoryObject< TContent > > > | GetItems< TContent > () |
|
Promise< List< InventoryObject< TContent > > > | GetItems< TContent > (params ItemRef< TContent >[] itemReferences) |
|
Promise< TData > | GetCurrent (string scope="") |
|
This class defines the main entry point for the Inventory feature.
Related Links
Example
This demonstrates example usage.
private async void SetupBeamable()
{
beamableAPI.InventoryService.Subscribe("items", view =>
{
foreach (KeyValuePair<string, List<ItemView>> kvp in view.items)
{
string inventoryItemName = $"{kvp.Key} x {kvp.Value.Count}";
}
});
}