Class CollectCurrenciesWithTagsGoal
A IGoal which is complete when a certain amount of one or more target
ICurrency have been collected by the player.
The target ICurrency are specified via one or more Tag Ids. At runtime these Tag Ids are
resolved into one or more ICurrency. The TargetAllTags
is used to specify whether a target ICurrency needs to contain all, or just one of the
Tag Ids specified in TargetTagIds.
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 that ICurrency, 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.
See CollectCurrenciesWithTagsGoalData
Inheritance
CollectCurrenciesWithTagsGoal
Assembly: cs.temp.dll.dll
public class CollectCurrenciesWithTagsGoal : CollectGoal<CollectCurrenciesWithTagsGoalData>, IGoal, IActivatable, IEntity, IInjectable
Constructors
Declaration
public CollectCurrenciesWithTagsGoal(string id)
Parameters
Type |
Name |
Description |
String |
id |
|
Fields
Declaration
protected ITagService _tagService
Field Value
Properties
Declaration
public virtual bool TargetAllTags { get; }
Property Value
Methods
Declaration
public override void Cleanup(IEntityLoaderService entityLoaderService)
Parameters
Overrides
IdleKit.Gameplay.Goal<IdleKit.Gameplay.CollectCurrenciesWithTagsGoalData>.Cleanup(IdleKit.Gameplay.IEntityLoaderService)
Declaration
public override void Inject(IResolver resolver)
Parameters
Type |
Name |
Description |
IResolver |
resolver |
|
Overrides
IdleKit.Gameplay.Goal<IdleKit.Gameplay.CollectCurrenciesWithTagsGoalData>.Inject(IResolver)
Declaration
protected override bool IsEligible(ICurrency currency)
Parameters
Returns
Overrides
IdleKit.Gameplay.CollectGoal<IdleKit.Gameplay.CollectCurrenciesWithTagsGoalData>.IsEligible(IdleKit.Gameplay.ICurrency)
Implements
IInjectable