クイックリファレンス
View a quick reference guide for all available Economy SDK methods.
読み終わるまでの所要時間 1 分最終更新 21日前
以下に、SDK で提供されるメソッドのクイックリファレンスを示します。詳細については、個々の名前空間のドキュメントを参照してください。
設定
Configurationpublic 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)
プレイヤーの残高
PlayerBalancespublic 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)
プレイヤーのインベントリ
PlayerInventorypublic 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)
購入
Purchasespublic async Task<MakeVirtualPurchaseResult> MakeVirtualPurchaseAsync(string virtualPurchaseId, MakeVirtualPurchaseOptions options = null)public async Task<RedeemAppleAppStorePurchaseResult> RedeemAppleAppStorePurchaseAsync(RedeemAppleAppStorePurchaseArgs args)public async Task<RedeemGooglePlayPurchaseResult> RedeemGooglePlayPurchaseAsync(RedeemGooglePlayStorePurchaseArgs args)