クイックリファレンス
以下に、SDK で提供されるメソッドのクイックリファレンスを示します。詳細については、個々の名前空間のドキュメントを参照してください。
設定
Configuration
名前空間のメソッドを使用すると、グローバル Economy 設定からアイテムを取得できます。
これらのメソッドの詳細については、SDK の設定 を参照してください。
使用可能なメソッドは以下のとおりです。
C#
public async Task<List<ConfigurationItemDefinition>> SyncConfigurationAsync();
public List<CurrencyDefinition> GetCurrencies()
public CurrencyDefinition GetCurrency(string id)
public List<InventoryItemDefinition> GetInventoryItems()
public InventoryItemDefinition GetInventoryItem(string id)
public List<VirtualPurchaseDefinition> GetVirtualPurchases()
public VirtualPurchaseDefinition GetVirtualPurchase(string id)
public List<RealMoneyPurchaseDefinition> GetRealMoneyPurchases()
public RealMoneyPurchaseDefinition GetRealMoneyPurchase(string id)
プレイヤーの残高
PlayerBalances
名前空間のメソッドを使用して、ユーザーの通貨残高の取得と更新を行うことができます。これらのメソッドは、Authentication SDK から、現在サインインしているプレイヤーの残高を返します。
これらのメソッドの詳細については、プレイヤーの残高 を参照してください。
使用可能なメソッドは以下のとおりです。
C#
public async Task<GetBalanceResponse> GetBalancesAsync(GetBalancesOptions options = null)
public async Task<PlayerBalanceDefinition> SetBalanceAsync(string currencyId, int balance, SetBalanceOptions options = null)
public async Task<PlayerBalanceDefinition> IncrementBalanceAsync(string currencyId, int amount, IncrementBalanceOptions options = null)
public async Task<PlayerBalanceDefinition> DecrementBalanceAsync(string currencyId, int amount, DecrementBalanceOptions options = null)
プレイヤーのインベントリ
PlayerInventory
名前空間のメソッドを使用して、プレイヤーのインベントリインスタンスの取得と更新を行うことができます。これらのメソッドは、Authentication SDK から、現在サインインしているプレイヤーのインベントリデータを返します。
これらのメソッドの詳細については、プレイヤーのインベントリ を参照してください。
使用可能なメソッドは以下のとおりです。
C#
public async Task<GetInventoryResult> GetInventoryAsync(GetInventoryOptions options = null)
public async Task<PlayerInventoryInstance> AddInventoryItemAsync(string inventoryItemId, AddInventoryItemOptions options = null)
public async Task<PlayerInventoryInstance> UpdateInventoryInstanceAsync(string playersInventoryItemId, Dictionary<string, object> instanceData, UpdatePlayersInventoryItemOptions options = null)
public async Task DeleteInventoryInstanceAsync(string playersInventoryItemId, DeletePlayersInventoryItemOptions options = null)
購入
Purchases
名前空間のメソッドを使用すると、プレイヤーのために仮想購入を行ったり、リアルマネーでの購入に対してアイテム授受を行ったりすることができます。これらのメソッドは、Authentication SDK を使用して現在サインインしているプレイヤーのために購入を行います。
これらのメソッドの詳細については、購入 を参照してください。
使用可能なメソッドは以下のとおりです。
C#
public async Task<MakeVirtualPurchaseResult> MakeVirtualPurchaseAsync(string virtualPurchaseId, MakeVirtualPurchaseOptions options = null)
public async Task<RedeemAppleAppStorePurchaseResult> RedeemAppleAppStorePurchaseAsync(RedeemAppleAppStorePurchaseArgs args)
public async Task<RedeemGooglePlayPurchaseResult> RedeemGooglePlayPurchaseAsync(RedeemGooglePlayStorePurchaseArgs args)