Show / Hide Table of Contents

    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
    Object
    Goal<SpendCurrenciesWithTagsGoalData>
    CollectGoal<SpendCurrenciesWithTagsGoalData>
    SpendGoal<SpendCurrenciesWithTagsGoalData>
    SpendCurrenciesWithTagsGoal
    Implements
    IGoal
    IActivatable
    IEntity
    IInjectable
    Inherited Members
    SpendGoal<SpendCurrenciesWithTagsGoalData>.OnCurrencyChanged(CurrencyChangedAction)
    CollectGoal<SpendCurrenciesWithTagsGoalData>.Activate()
    CollectGoal<SpendCurrenciesWithTagsGoalData>.SubscribeActionListener(IEntity)
    CollectGoal<SpendCurrenciesWithTagsGoalData>.UnsubscribeActionListener(IEntity)
    Goal<SpendCurrenciesWithTagsGoalData>._id
    Goal<SpendCurrenciesWithTagsGoalData>.Id
    Goal<SpendCurrenciesWithTagsGoalData>.GoalData
    Goal<SpendCurrenciesWithTagsGoalData>.GoalSavedData
    Goal<SpendCurrenciesWithTagsGoalData>.ActivatableData
    Goal<SpendCurrenciesWithTagsGoalData>.CurrentProgression
    Goal<SpendCurrenciesWithTagsGoalData>.TargetProgression
    Goal<SpendCurrenciesWithTagsGoalData>.NormalizedProgress
    Goal<SpendCurrenciesWithTagsGoalData>.CanClaim
    Goal<SpendCurrenciesWithTagsGoalData>.IsActive
    Goal<SpendCurrenciesWithTagsGoalData>._goalData
    Goal<SpendCurrenciesWithTagsGoalData>._goalSavedData
    Goal<SpendCurrenciesWithTagsGoalData>._actionService
    Goal<SpendCurrenciesWithTagsGoalData>._entityResolver
    Goal<SpendCurrenciesWithTagsGoalData>._dataService
    Goal<SpendCurrenciesWithTagsGoalData>._targets
    Goal<SpendCurrenciesWithTagsGoalData>.Initialize()
    Goal<SpendCurrenciesWithTagsGoalData>.Deactivate()
    Goal<SpendCurrenciesWithTagsGoalData>.Reset()
    Goal<SpendCurrenciesWithTagsGoalData>.SendGoalActivatedAction()
    Goal<SpendCurrenciesWithTagsGoalData>.CleanupSubscriptions()
    Goal<SpendCurrenciesWithTagsGoalData>.SetProgressGoal(Double)
    Goal<SpendCurrenciesWithTagsGoalData>.ProgressGoal(Double)
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ToString()
    Object.ReferenceEquals(Object, Object)
    Namespace: IdleKit.Gameplay
    Assembly: cs.temp.dll.dll
    Syntax
    public class SpendCurrenciesWithTagsGoal : SpendGoal<SpendCurrenciesWithTagsGoalData>, IGoal, IActivatable, IEntity, IInjectable

    Constructors

    SpendCurrenciesWithTagsGoal(String)

    Declaration
    public SpendCurrenciesWithTagsGoal(string id)
    Parameters
    Type Name Description
    String id

    Fields

    _tagService

    Declaration
    protected ITagService _tagService
    Field Value
    Type Description
    ITagService

    Properties

    TargetAllTags

    Declaration
    public virtual bool TargetAllTags { get; }
    Property Value
    Type Description
    Boolean

    Methods

    Cleanup(IEntityLoaderService)

    Declaration
    public override void Cleanup(IEntityLoaderService entityLoaderService)
    Parameters
    Type Name Description
    IEntityLoaderService entityLoaderService
    Overrides
    IdleKit.Gameplay.Goal<IdleKit.Gameplay.SpendCurrenciesWithTagsGoalData>.Cleanup(IdleKit.Gameplay.IEntityLoaderService)

    Inject(IResolver)

    Declaration
    public override void Inject(IResolver resolver)
    Parameters
    Type Name Description
    IResolver resolver
    Overrides
    IdleKit.Gameplay.Goal<IdleKit.Gameplay.SpendCurrenciesWithTagsGoalData>.Inject(IResolver)

    IsEligible(ICurrency)

    Declaration
    protected override bool IsEligible(ICurrency currency)
    Parameters
    Type Name Description
    ICurrency currency
    Returns
    Type Description
    Boolean
    Overrides
    IdleKit.Gameplay.CollectGoal<IdleKit.Gameplay.SpendCurrenciesWithTagsGoalData>.IsEligible(IdleKit.Gameplay.ICurrency)

    Implements

    IGoal
    IActivatable
    IEntity
    IInjectable
    Back to top Copyright © 2020 East Side Games Inc.