Class CollectCurrencyTypeGoal
A IGoal that is complete when the player accumulates a certain number of units of one or more instances of a specified ICurrency type.
Any ICurrency with a Id
that matches the Id specified via
CurrencyId will be targeted by the Goal.
Each time the player collects units of the target ICurrency the IGoal is progressed by the number of collected units. For example, if the player collected 100 units of Soft ICurrency, and the IGoal was targeting instances of that ICurrency type, the progress would be incremented by 100. This continues until the target amount has been reached at which point the IGoal is complete.
Only ICurrency collected after the IGoal has become active counts towards the progression of the IGoal.
Inheritance
CollectCurrencyTypeGoal
Inherited Members
Namespace: IdleKit.Gameplay
Assembly: cs.temp.dll.dll
Syntax
public class CollectCurrencyTypeGoal : CollectGoal<CollectCurrencyTypeGoalData>, IGoal, IActivatable, IEntity, IInjectable
Constructors
CollectCurrencyTypeGoal(String)
Declaration
public CollectCurrencyTypeGoal(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.CollectCurrencyTypeGoalData>.IsEligible(IdleKit.Gameplay.ICurrency)
Implements
IInjectable