Class SpendCurrenciesWithTagsGoal
A Goal that is complete when the player spends a certain amount of the
specified ICurrency.
The target ICurrencys are specified with one
or more Tag Ids via
TagConsumerData. At
runtime these Tag Ids are resolved into one or more
ICurrency. The TargetAll
flag is used to specify whether a target ICurrency needs to
contain all, or just one of the specified Tag Ids.
The total amount of ICurrency that the player must spend to
complete the Goal. If multiple ICurrency are specified via
the target Tag Ids then it is the cumulative spend between all of these
ICurrencys. Specified via
Amount.
Each time the player spends any of the target
ICurrency the progression is incremented by the number of
units of ICurrency spent.
Any ICurrency spent prior to the Goal becoming active will
not count toward it's completion.
Extends the base SpendGoal
by implementing SpendGoal.IsEligible
to
check for any currency contains the Tag Ids specified in
SpendCurrenciesWithTagsGoalData.
See SpendCurrenciesWithTagsGoalData
Inheritance
SpendCurrenciesWithTagsGoal
Assembly: cs.temp.dll.dll
public class SpendCurrenciesWithTagsGoal : SpendGoal<SpendCurrenciesWithTagsGoalData>, IGoal, IActivatable, IEntity, IInjectable
Constructors
Declaration
public SpendCurrenciesWithTagsGoal(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.SpendCurrenciesWithTagsGoalData>.Cleanup(IdleKit.Gameplay.IEntityLoaderService)
Declaration
public override void Inject(IResolver resolver)
Parameters
Type |
Name |
Description |
IResolver |
resolver |
|
Overrides
IdleKit.Gameplay.Goal<IdleKit.Gameplay.SpendCurrenciesWithTagsGoalData>.Inject(IResolver)
Declaration
protected override bool IsEligible(ICurrency currency)
Parameters
Returns
Overrides
IdleKit.Gameplay.CollectGoal<IdleKit.Gameplay.SpendCurrenciesWithTagsGoalData>.IsEligible(IdleKit.Gameplay.ICurrency)
Implements
IInjectable