Class RewardItemConfig
Base configurator for a RewardItemDefinition instance.
Namespace: UnityEngine.GameFoundation.Configs
Syntax
public sealed class RewardItemConfig : IBuildable<RewardItemDefinition>
Properties
key
A globally-unique identifier of this reward item.
Declaration
public string key { get; }
Property Value
Type | Description |
---|---|
String |
payout
The currencies and inventory items to be granted by this reward item.
Declaration
public TransactionExchangeDefinitionConfig payout { get; }
Property Value
Type | Description |
---|---|
TransactionExchangeDefinitionConfig |
Methods
Compile()
Create a new TRuntimeObject
.
Declaration
public Deferred<RewardItemDefinition> Compile()
Returns
Type | Description |
---|---|
Deferred<RewardItemDefinition> | 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(RewardItemDefinition, Dictionary<String, CatalogItem>)
Resolves the references from the given runtimeObject
using the given compiledItems
.
Declaration
public Deferred Link(RewardItemDefinition runtimeObject, Dictionary<string, CatalogItem> compiledItems)
Parameters
Type | Name | Description |
---|---|---|
RewardItemDefinition | 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. |