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 ExternalizableValue<long> initialBalance { get; }
Property Value
Type | Description |
---|---|
ExternalizableValue<Int64> |
maximumBalance
Declaration
public ExternalizableValue<long> maximumBalance { get; }
Property Value
Type | Description |
---|---|
ExternalizableValue<Int64> |
type
Declaration
public ExternalizableValue<CurrencyType> type { get; }
Property Value
Type | Description |
---|---|
ExternalizableValue<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. |
Overrides
OnAfterItemDeserialize()
Called at the end of OnAfterDeserialize. Enable inheritance to add specific deserialization process.
Declaration
protected override void OnAfterItemDeserialize()