Read and adjust player currency balances from the server.
Each player holds a Wallet with a balance per currency. From the server you can credit or debit balances directly — for example, awarding a kill bonus, deducting a crafting cost, or granting a battle-pass reward. See Currency for currency type definitions.
See the LootLocker documentation.
◆ CreditBalanceToWallet()
Credit (increase) the specified amount of the provided currency to the provided wallet.
- Parameters
-
| WalletID | Unique ID of the wallet to credit the given amount of the given currency to |
| CurrencyID | Unique ID of the currency to credit |
| Amount | The amount of the given currency to credit to the given wallet |
| OnComplete | Delegate for handling the server response |
- Returns
- A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound
◆ DebitBalanceToWallet()
Debit (decrease) the specified amount of the provided currency to the provided wallet.
- Parameters
-
| WalletID | Unique ID of the wallet to debit the given amount of the given currency from |
| CurrencyID | Unique ID of the currency to debit |
| Amount | The amount of the given currency to debit from the given wallet |
| OnComplete | Delegate for handling the server response |
- Returns
- A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound
◆ GetWalletByHolderID()
Get information about a wallet for a specified holder.
- Parameters
-
| HolderULID | ULID of the holder of the wallet you want to get information for |
| HolderType | The type of the holder to get the wallet for |
| OnComplete | Delegate for handling the server response |
- Returns
- A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound
◆ GetWalletByWalletID()
Get information about a specified wallet.
- Parameters
-
| WalletID | Unique ID of the wallet to get information for |
| OnComplete | Delegate for handling the server response |
- Returns
- A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound
◆ ListBalancesInWallet()
Get a list of balances in a specified wallet.
- Parameters
-
| WalletID | Unique ID of the wallet to get balances for |
| OnComplete | Delegate for handling the server response |
- Returns
- A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound
|
| static FString | ULootLockerServerForCpp::ListBalancesInWallet (const FString &WalletID, const FLootLockerServerListBalancesForWalletResponseDelegate &OnComplete) |
| | Get a list of balances in a specified wallet.
|
| |
| static FString | ULootLockerServerForCpp::GetWalletByWalletID (const FString &WalletID, const FLootLockerServerGetWalletResponseDelegate &OnComplete) |
| | Get information about a specified wallet.
|
| |
| static FString | ULootLockerServerForCpp::GetWalletByHolderID (const FString &HolderULID, const ELootLockerServerWalletHolderTypes &HolderType, const FLootLockerServerGetWalletResponseDelegate &OnComplete) |
| | Get information about a wallet for a specified holder.
|
| |
| static FString | ULootLockerServerForCpp::CreditBalanceToWallet (const FString &WalletID, const FString &CurrencyID, const FString &Amount, const FLootLockerServerCreditWalletResponseDelegate &OnComplete) |
| | Credit (increase) the specified amount of the provided currency to the provided wallet.
|
| |
| static FString | ULootLockerServerForCpp::DebitBalanceToWallet (const FString &WalletID, const FString &CurrencyID, const FString &Amount, const FLootLockerServerDebitWalletResponseDelegate &OnComplete) |
| | Debit (decrease) the specified amount of the provided currency to the provided wallet.
|
| |