Show / Hide Table of Contents

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

    Constructors

    CollectCurrenciesWithTagsGoal(String)

    Declaration
    public CollectCurrenciesWithTagsGoal(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.CollectCurrenciesWithTagsGoalData>.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.CollectCurrenciesWithTagsGoalData>.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.CollectCurrenciesWithTagsGoalData>.IsEligible(IdleKit.Gameplay.ICurrency)

    Implements

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