Show / Hide Table of Contents

    Class SpendGoal<TGoalData>

    An abstract base type that extends CollectGoal<TGoalData> and should be used for all IGoals related to spending ICurrency.

    The target is specified by the derived implementation of IsEligible(ICurrency). The target amount is specified via the derived implementation of Amount`. The Goal will be progressed by the amount of target ICurrency spent by the player.

    The SpendGoal extends the CollectGoal<TGoalData> by overriding the behaviour of OnCurrencyChanged(CurrencyChangedAction) to progress the Goal based on the spending (rather than collecting) of ICurrency.

    Inheritance
    Object
    Goal<TGoalData>
    CollectGoal<TGoalData>
    SpendGoal<TGoalData>
    SpendCurrenciesWithTagsGoal
    SpendCurrencyTypeGoal
    Implements
    IGoal
    IActivatable
    IEntity
    IInjectable
    Inherited Members
    CollectGoal<TGoalData>.IsEligible(ICurrency)
    CollectGoal<TGoalData>.Activate()
    CollectGoal<TGoalData>.SubscribeActionListener(IEntity)
    CollectGoal<TGoalData>.UnsubscribeActionListener(IEntity)
    Goal<TGoalData>._id
    Goal<TGoalData>.Id
    Goal<TGoalData>.GoalData
    Goal<TGoalData>.GoalSavedData
    Goal<TGoalData>.ActivatableData
    Goal<TGoalData>.CurrentProgression
    Goal<TGoalData>.TargetProgression
    Goal<TGoalData>.NormalizedProgress
    Goal<TGoalData>.CanClaim
    Goal<TGoalData>.IsActive
    Goal<TGoalData>._goalData
    Goal<TGoalData>._goalSavedData
    Goal<TGoalData>._actionService
    Goal<TGoalData>._entityResolver
    Goal<TGoalData>._dataService
    Goal<TGoalData>._targets
    Goal<TGoalData>.Inject(IResolver)
    Goal<TGoalData>.Cleanup(IEntityLoaderService)
    Goal<TGoalData>.Initialize()
    Goal<TGoalData>.Deactivate()
    Goal<TGoalData>.Reset()
    Goal<TGoalData>.SendGoalActivatedAction()
    Goal<TGoalData>.CleanupSubscriptions()
    Goal<TGoalData>.SetProgressGoal(Double)
    Goal<TGoalData>.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 abstract class SpendGoal<TGoalData> : CollectGoal<TGoalData>, IGoal, IActivatable, IEntity, IInjectable where TGoalData : class, IGoalData
    Type Parameters
    Name Description
    TGoalData

    Constructors

    SpendGoal(String)

    Declaration
    protected SpendGoal(string id)
    Parameters
    Type Name Description
    String id

    Methods

    OnCurrencyChanged(CurrencyChangedAction)

    Declaration
    protected override void OnCurrencyChanged(CurrencyChangedAction currencyAction)
    Parameters
    Type Name Description
    CurrencyChangedAction currencyAction
    Overrides
    IdleKit.Gameplay.CollectGoal<TGoalData>.OnCurrencyChanged(IdleKit.Gameplay.CurrencyChangedAction)

    Implements

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