Class GetUpgradesForCurrencyTypeGoal
A IGoal that is complete when the player upgrades any instances of a
IUpgradeableCurrency with a specific Id.
The target IUpgradeableCurrency is specified by it's Id
via GetUpgradesForCurrencyTypeGoalData.currencyId
Each time the player upgrades the target IUpgradeableCurrency the progress of the IGoal will be set to the level of the IUpgradeableCurrency. Once the target amount is met, the IGoal is complete.
Levels of IUpgradeableCurrency that have been reached due to upgrades prior to the IGoal becoming active will still count towards the IGoal progress.
Inheritance
GetUpgradesForCurrencyTypeGoal
Inherited Members
Namespace: IdleKit.Gameplay
Assembly: cs.temp.dll.dll
Syntax
public class GetUpgradesForCurrencyTypeGoal : UpgradeGoal<GetUpgradesForCurrencyTypeGoalData>, IGoal, IActivatable, IEntity, IInjectable
Constructors
GetUpgradesForCurrencyTypeGoal(String)
Declaration
public GetUpgradesForCurrencyTypeGoal(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| String | id |
Fields
_mostUpgradedCurrency
Declaration
protected IUpgradeableCurrency _mostUpgradedCurrency
Field Value
| Type | Description |
|---|---|
| IUpgradeableCurrency |
Methods
AddTargetedCurrencies()
Declaration
protected override void AddTargetedCurrencies()
Overrides
IdleKit.Gameplay.UpgradeGoal<IdleKit.Gameplay.GetUpgradesForCurrencyTypeGoalData>.AddTargetedCurrencies()
Cleanup(IEntityLoaderService)
Declaration
public override void Cleanup(IEntityLoaderService entityLoaderService)
Parameters
| Type | Name | Description |
|---|---|---|
| IEntityLoaderService | entityLoaderService |
Overrides
IdleKit.Gameplay.Goal<IdleKit.Gameplay.GetUpgradesForCurrencyTypeGoalData>.Cleanup(IdleKit.Gameplay.IEntityLoaderService)
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.GetUpgradesForCurrencyTypeGoalData>.IsValid(IdleKit.Gameplay.IUpgradeableCurrency)
OnUpgradeCurrency(UpgradeCurrencyStateAction)
Declaration
protected override void OnUpgradeCurrency(UpgradeCurrencyStateAction stateAction)
Parameters
| Type | Name | Description |
|---|---|---|
| UpgradeCurrencyStateAction | stateAction |
Overrides
IdleKit.Gameplay.UpgradeGoal<IdleKit.Gameplay.GetUpgradesForCurrencyTypeGoalData>.OnUpgradeCurrency(IdleKit.Gameplay.UpgradeCurrencyStateAction)
Implements
IInjectable