Show / Hide Table of Contents

    Class HitGeneratorUnitTargetsGoal

    A Goal that is complete when a specified number of IGeneratorUnitTargetData have been hit by the player.

    Any IGeneratorEntity within the current IStage will be targeted.

    Each time the player hits a IGeneratorUnitTargetData the progress will be incremented. If the player hits multiple IGeneratorUnitTargetData in one purchase, the progress will be incremented by the number of targets hit. Once the target amount is met, the Goal is complete.

    The target amount is relative to the current IGeneratorUnitTargetData of a IGeneratorEntity when the Goal becomes active. For example, if the player has one active IGeneratorEntity at a IGeneratorUnitTargetData level of 5, getting to level 6 would complete a Goal with a target amount of 1.

    Only IGeneratorUnitTargetData levels hit after the Goal becomes active will count towards the target progress.

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

    Constructors

    HitGeneratorUnitTargetsGoal(String)

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

    Properties

    TargetProgression

    Declaration
    public override double TargetProgression { get; }
    Property Value
    Type Description
    Double
    Overrides
    IdleKit.Gameplay.Goal<IdleKit.Gameplay.HitGeneratorUnitTargetsGoalData>.TargetProgression

    Methods

    Activate()

    Declaration
    public override void Activate()
    Overrides
    IdleKit.Gameplay.Goal<IdleKit.Gameplay.HitGeneratorUnitTargetsGoalData>.Activate()

    GetAvailableUnitTargets(IGeneratorEntity)

    Declaration
    protected virtual int GetAvailableUnitTargets(IGeneratorEntity generatorEntity)
    Parameters
    Type Name Description
    IGeneratorEntity generatorEntity
    Returns
    Type Description
    Int32

    OnGeneratorUnitTargetHit(GeneratorUnitTargetHitStateAction)

    Declaration
    protected virtual void OnGeneratorUnitTargetHit(GeneratorUnitTargetHitStateAction generatorStateAction)
    Parameters
    Type Name Description
    GeneratorUnitTargetHitStateAction generatorStateAction

    SubscribeActionListener(IEntity)

    Declaration
    protected override void SubscribeActionListener(IEntity target)
    Parameters
    Type Name Description
    IEntity target
    Overrides
    IdleKit.Gameplay.Goal<IdleKit.Gameplay.HitGeneratorUnitTargetsGoalData>.SubscribeActionListener(IdleKit.Gameplay.IEntity)

    UnsubscribeActionListener(IEntity)

    Declaration
    protected override void UnsubscribeActionListener(IEntity target)
    Parameters
    Type Name Description
    IEntity target
    Overrides
    IdleKit.Gameplay.Goal<IdleKit.Gameplay.HitGeneratorUnitTargetsGoalData>.UnsubscribeActionListener(IdleKit.Gameplay.IEntity)

    Implements

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