Class SpendCurrencyTypeGoal
A Goal that is complete when the player spends a certain amount of a specific ICurrency.
The Id
ICurrency must match the Id specified
via CurrencyId.
The amount of ICurrency that the player must spend to complete the Goal is specified via Amount.
Each time the player spends any of the target ICurrency the progression is incremented by the number of units of ICurrency spent.
Any ICurrency spent prior to the Goal becoming active will not count toward it's completion.
Extends the base SpendGoal
by implementing SpendGoal.IsEligible
to
check that a currency matches the Id
specified via
SpendCurrencyTypeGoalData.
Inheritance
SpendCurrencyTypeGoal
Inherited Members
Namespace: IdleKit.Gameplay
Assembly: cs.temp.dll.dll
Syntax
public class SpendCurrencyTypeGoal : SpendGoal<SpendCurrencyTypeGoalData>, IGoal, IActivatable, IEntity, IInjectable
Constructors
SpendCurrencyTypeGoal(String)
Declaration
public SpendCurrencyTypeGoal(string id)
Parameters
Type | Name | Description |
---|---|---|
String | id |
Methods
IsEligible(ICurrency)
Declaration
protected override bool IsEligible(ICurrency currency)
Parameters
Type | Name | Description |
---|---|---|
ICurrency | currency |
Returns
Type | Description |
---|---|
Boolean |
Overrides
IdleKit.Gameplay.CollectGoal<IdleKit.Gameplay.SpendCurrencyTypeGoalData>.IsEligible(IdleKit.Gameplay.ICurrency)
Implements
IInjectable