Class UpgradeAnyCurrencyGoal
A Goal that is complete when the player gets a certain number of upgrades for any IUpgradeableCurrency.
Targets any IUpgradeableCurrency. The number of upgrades the player must make to any IUpgradeableCurrency is specified via Amount.
Each time the player upgrades a IUpgradeableCurrency the progression is incremented by 1.
Any upgrades to IUpgradeableCurrency made prior to the Goal becoming active will not count toward it's completion.
Extends the base UpgradeGoal
by implementing UpgradeGoal.IsValid
to
check that an IUpgradeableCurrency can be upgraded.
Inheritance
UpgradeAnyCurrencyGoal
Inherited Members
Namespace: IdleKit.Gameplay
Assembly: cs.temp.dll.dll
Syntax
public class UpgradeAnyCurrencyGoal : UpgradeGoal<UpgradeAnyCurrencyGoalData>, IGoal, IActivatable, IEntity, IInjectable
Constructors
UpgradeAnyCurrencyGoal(String)
Declaration
public UpgradeAnyCurrencyGoal(string id)
Parameters
Type | Name | Description |
---|---|---|
String | id |
Methods
IsValid(IUpgradeableCurrency)
Declaration
protected override bool IsValid(IUpgradeableCurrency upgradeableCurrency)
Parameters
Type | Name | Description |
---|---|---|
IUpgradeableCurrency | upgradeableCurrency |
Returns
Type | Description |
---|---|
Boolean |
Overrides
IdleKit.Gameplay.UpgradeGoal<IdleKit.Gameplay.UpgradeAnyCurrencyGoalData>.IsValid(IdleKit.Gameplay.IUpgradeableCurrency)
Implements
IInjectable