Class CurrencyAsset
Stores the information of a currency in a ScriptableObject.
Inherited Members
Namespace: UnityEngine.GameFoundation.DefaultCatalog
Syntax
public class CurrencyAsset : TradableDefinitionAsset, ISerializationCallbackReceiver
Properties
initialBalance
Declaration
public long initialBalance { get; }
Property Value
Type | Description |
---|---|
Int64 |
maximumBalance
Declaration
public long maximumBalance { get; }
Property Value
Type | Description |
---|---|
Int64 |
type
Declaration
public CurrencyType type { get; }
Property Value
Type | Description |
---|---|
CurrencyType |
Methods
ConfigureItem(CatalogBuilder, IExternalValueProvider)
Configures a specified builder
with the specifics
of this item.
Declaration
protected override CatalogItemConfig ConfigureItem(CatalogBuilder builder, IExternalValueProvider valueProvider)
Parameters
Type | Name | Description |
---|---|---|
CatalogBuilder | builder | The target builder. |
IExternalValueProvider | valueProvider | A value provider to override some catalog item's data with an external source. |
Returns
Type | Description |
---|---|
CatalogItemConfig | The item config. |