Show / Hide Table of Contents

    Class SpendCurrencyTypeGoal

    A Goal that is complete when the player spends a certain amount of a specific ICurrency.

    The Id ICurrency must match the Id specified via CurrencyId.

    The amount of ICurrency that the player must spend to complete the Goal is 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 that a currency matches the Id specified via SpendCurrencyTypeGoalData.

    See SpendCurrencyTypeGoalData

    Inheritance
    Object
    Goal<SpendCurrencyTypeGoalData>
    CollectGoal<SpendCurrencyTypeGoalData>
    SpendGoal<SpendCurrencyTypeGoalData>
    SpendCurrencyTypeGoal
    Implements
    IGoal
    IActivatable
    IEntity
    IInjectable
    Inherited Members
    SpendGoal<SpendCurrencyTypeGoalData>.OnCurrencyChanged(CurrencyChangedAction)
    CollectGoal<SpendCurrencyTypeGoalData>.Activate()
    CollectGoal<SpendCurrencyTypeGoalData>.SubscribeActionListener(IEntity)
    CollectGoal<SpendCurrencyTypeGoalData>.UnsubscribeActionListener(IEntity)
    Goal<SpendCurrencyTypeGoalData>._id
    Goal<SpendCurrencyTypeGoalData>.Id
    Goal<SpendCurrencyTypeGoalData>.GoalData
    Goal<SpendCurrencyTypeGoalData>.GoalSavedData
    Goal<SpendCurrencyTypeGoalData>.ActivatableData
    Goal<SpendCurrencyTypeGoalData>.CurrentProgression
    Goal<SpendCurrencyTypeGoalData>.TargetProgression
    Goal<SpendCurrencyTypeGoalData>.NormalizedProgress
    Goal<SpendCurrencyTypeGoalData>.CanClaim
    Goal<SpendCurrencyTypeGoalData>.IsActive
    Goal<SpendCurrencyTypeGoalData>._goalData
    Goal<SpendCurrencyTypeGoalData>._goalSavedData
    Goal<SpendCurrencyTypeGoalData>._actionService
    Goal<SpendCurrencyTypeGoalData>._entityResolver
    Goal<SpendCurrencyTypeGoalData>._dataService
    Goal<SpendCurrencyTypeGoalData>._targets
    Goal<SpendCurrencyTypeGoalData>.Inject(IResolver)
    Goal<SpendCurrencyTypeGoalData>.Cleanup(IEntityLoaderService)
    Goal<SpendCurrencyTypeGoalData>.Initialize()
    Goal<SpendCurrencyTypeGoalData>.Deactivate()
    Goal<SpendCurrencyTypeGoalData>.Reset()
    Goal<SpendCurrencyTypeGoalData>.SendGoalActivatedAction()
    Goal<SpendCurrencyTypeGoalData>.CleanupSubscriptions()
    Goal<SpendCurrencyTypeGoalData>.SetProgressGoal(Double)
    Goal<SpendCurrencyTypeGoalData>.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 SpendCurrencyTypeGoal : SpendGoal<SpendCurrencyTypeGoalData>, IGoal, IActivatable, IEntity, IInjectable

    Constructors

    SpendCurrencyTypeGoal(String)

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

    Methods

    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.SpendCurrencyTypeGoalData>.IsEligible(IdleKit.Gameplay.ICurrency)

    Implements

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