빠른 참조
다음 내용은 SDK에서 사용할 수 있는 메서드의 빠른 참조를 보여 줍니다. 더 자세히 알아보려면 각 네임스페이스에 관한 기술 자료를 참고하십시오.
구성
Configuration
네임스페이스에서 메서드를 사용하면 전체 경제 구성에서 아이템을 가져올 수 있습니다.
이 메서드에 관한 자세한 내용은 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)