Class ExchangeDefinitionConfig
Configurator for a ExchangeDefinition
Namespace: UnityEngine.GameFoundation.Configs
Syntax
public sealed class ExchangeDefinitionConfig : IBuildable<ExchangeDefinition>
Constructors
ExchangeDefinitionConfig()
Create an empty ExchangeDefinitionConfig.
Declaration
public ExchangeDefinitionConfig()
ExchangeDefinitionConfig(String, Int64)
Create a ExchangeDefinitionConfig with the given data.
Declaration
public ExchangeDefinitionConfig(string tradableKey, long amount)
Parameters
Type | Name | Description |
---|---|---|
String | tradableKey | The key of the TradableDefinition traded by the exchanges issued from this config. |
Int64 | amount | The number of TradableDefinition traded by the exchanges issued from this config. |
Properties
amount
The amount of tradable to exchange.
Declaration
public long amount { get; }
Property Value
Type | Description |
---|---|
Int64 |
tradableKey
The identifier of the tradable definition.
Declaration
public string tradableKey { get; }
Property Value
Type | Description |
---|---|
String |
Methods
Compile()
Create a new TRuntimeObject
.
Declaration
public Deferred<ExchangeDefinition> Compile()
Returns
Type | Description |
---|---|
Deferred<ExchangeDefinition> | Return a promise handle to report how the operation went. The handle's result is the compiled item if the compilation was successful. |
Implements
Link(ExchangeDefinition, Dictionary<String, CatalogItem>)
Resolves the references from the given runtimeObject
using the given compiledItems
.
Declaration
public Deferred Link(ExchangeDefinition runtimeObject, Dictionary<string, CatalogItem> compiledItems)
Parameters
Type | Name | Description |
---|---|---|
ExchangeDefinition | runtimeObject | |
Dictionary<String, CatalogItem> | compiledItems | The collection of existing catalog items where references can be found. |
Returns
Type | Description |
---|---|
Deferred | Return a promise handle to report how the operation went. |