Show / Hide Table of Contents

    Class GetGeneratorUnitsForAllGeneratorsGoal

    A IGoal that is complete when the player buys a specified number of units for a certain number of IGeneratorEntity within the IStage.

    The IGoal progresses by 1 whenever a IGeneratorEntity reaches the target number of units specified via Amount. For example, a IGoal could be authored that requires the player to get all 5 IGeneratorEntity within the IGeneratorEntity to 100 units/customers.

    IGeneratorEntity units that have been accumulated before the IGoal becomes active will count towards the target. IGeneratorEntitys that are purchased by the player after the IGoal becomes active will also still be eligible for contribution toward the target.

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

    Constructors

    GetGeneratorUnitsForAllGeneratorsGoal(String)

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

    Fields

    _targetProgression

    Declaration
    protected double _targetProgression
    Field Value
    Type Description
    Double

    Properties

    TargetProgression

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

    Methods

    Activate()

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

    GeneratorUnitIncreased(IGeneratorEntity)

    Declaration
    protected virtual void GeneratorUnitIncreased(IGeneratorEntity generatorEntity)
    Parameters
    Type Name Description
    IGeneratorEntity generatorEntity

    OnBuyGenerator(BuyGeneratorStateAction)

    Declaration
    protected virtual void OnBuyGenerator(BuyGeneratorStateAction stateAction)
    Parameters
    Type Name Description
    BuyGeneratorStateAction stateAction

    OnIncrementGeneratorUnit(IncrementGeneratorUnitStateAction)

    Declaration
    protected virtual void OnIncrementGeneratorUnit(IncrementGeneratorUnitStateAction stateAction)
    Parameters
    Type Name Description
    IncrementGeneratorUnitStateAction stateAction

    SubscribeActionListener(IEntity)

    We need to listen to both BuyGeneratorStateAction and IncrementGeneratorUnitStateAction actions as both actions can increase the progress.

    Declaration
    protected override void SubscribeActionListener(IEntity target)
    Parameters
    Type Name Description
    IEntity target
    Overrides
    IdleKit.Gameplay.Goal<IdleKit.Gameplay.GetGeneratorUnitsForAllGeneratorsGoalData>.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.GetGeneratorUnitsForAllGeneratorsGoalData>.UnsubscribeActionListener(IdleKit.Gameplay.IEntity)

    Implements

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