Class RewardConfig
Configurator for a RewardDefinition instance.
Inherited Members
Namespace: UnityEngine.GameFoundation.Configs
Syntax
public sealed class RewardConfig : CatalogItemConfig<RewardDefinition>
Fields
cooldownSeconds
The amount of time, in seconds, between when a RewardItem is claimed and when the next one will become available.
Declaration
public int cooldownSeconds
Field Value
Type | Description |
---|---|
Int32 |
expirationSeconds
The amount of time, in seconds, that a RewardItem will be claimable before either moving on to the next RewardItem, or resetting back to the first RewardItem.
Declaration
public int expirationSeconds
Field Value
Type | Description |
---|---|
Int32 |
resetIfExpired
If a RewardItem expires, this determines whether the next RewardItem will become available, or if the Reward is reset back to the first RewardItem.
Declaration
public bool resetIfExpired
Field Value
Type | Description |
---|---|
Boolean |
rewardItemConfigs
The reward items to add to the resulting RewardDefinition.
Declaration
public readonly List<RewardItemConfig> rewardItemConfigs
Field Value
Type | Description |
---|---|
List<RewardItemConfig> |
Methods
CompileItem()
Checks the configuration and builds the
TRuntimeItem
instance.
Declaration
protected override RewardDefinition CompileItem()
Returns
Type | Description |
---|---|
RewardDefinition |
Overrides
LinkItem(CatalogBuilder)
Resolves the possible referenes the
TRuntimeItem
instance may contain.
Declaration
protected override void LinkItem(CatalogBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
CatalogBuilder | builder | The builder where the references can be found |