Class CurrencyDefinition
Represents a single currency configuration.
Inherited Members
Namespace: Unity.Services.Economy.Model
Assembly: solution.dll
Syntax
[Preserve]
public class CurrencyDefinition : ConfigurationItemDefinition
Constructors
Name | Description |
---|---|
CurrencyDefinition() |
Fields
Name | Description |
---|---|
Initial | The amount of currency a player initially is given. |
Max | (Optional, a value of 0 indicates no maximum) The maximum amount of this currency a player can own. |
Methods
Name | Description |
---|---|
GetPlayerBalanceAsync() | Gets the current balance of this currency for the currently signed in player. It is equivalent to the balance for this currency retrieved from EconomyService.Internal.PlayerBalances.GetBalancesAsync() |