Class CollectUpgradeableCurrencyTypeGoal
A IGoal that is complete when the player accumulates a certain number of units of one or more instances of a specified IUpgradeableCurrency type. This is the same as CollectCurrencyTypeGoal but must target an IUpgradeableCurrency.
Any IUpgradeableCurrency 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 IUpgradeableCurrency the IGoal is progressed by the number of collected units. For example, if the player collected 10 units of a Character IUpgradeableCurrency, and the IGoal was targeting instances of that IUpgradeableCurrency type, the progress would be incremented by 10. This continues until the target amount has been reached at which point the IGoal is complete.
Only IUpgradeableCurrency collected after the IGoal has become active counts towards the progression of the Goal.
Inheritance
Inherited Members
Namespace: IdleKit.Gameplay
Assembly: cs.temp.dll.dll
Syntax
public class CollectUpgradeableCurrencyTypeGoal : CollectGoal<CollectUpgradeableCurrencyTypeGoalData>, IGoal, IActivatable, IEntity, IInjectable
Constructors
CollectUpgradeableCurrencyTypeGoal(String)
Declaration
public CollectUpgradeableCurrencyTypeGoal(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 |