Class AutomateGeneratorsGoal
A Goal that is complete when a player automates one or more IGeneratorEntity in the IStage.
This Goal is similar to the AutomateGeneratorTypeGoal but doesn't target a specific IGeneratorEntity.
Each automation of a Generator progresses the IGoal by 1 unit until the target Amount is reached at which point the IGoal is complete.
Any Generator in the Stage that is already automated prior to this Goal being activated will count towards the completion of the Goal.
Inherited Members
Namespace: IdleKit.Gameplay
Assembly: cs.temp.dll.dll
Syntax
public class AutomateGeneratorsGoal : Goal<AutomateGeneratorsGoalData>, IGoal, IActivatable, IEntity, IInjectable
Constructors
AutomateGeneratorsGoal(String)
Declaration
public AutomateGeneratorsGoal(string id)
Parameters
Type | Name | Description |
---|---|---|
String | id |
Methods
Activate()
Declaration
public override void Activate()
Overrides
IdleKit.Gameplay.Goal<IdleKit.Gameplay.AutomateGeneratorsGoalData>.Activate()
OnAutomateGenerator(AutomateGeneratorStateAction)
Declaration
protected virtual void OnAutomateGenerator(AutomateGeneratorStateAction stateAction)
Parameters
Type | Name | Description |
---|---|---|
AutomateGeneratorStateAction | stateAction |
SubscribeActionListener(IEntity)
Declaration
protected override void SubscribeActionListener(IEntity target)
Parameters
Type | Name | Description |
---|---|---|
IEntity | target |
Overrides
IdleKit.Gameplay.Goal<IdleKit.Gameplay.AutomateGeneratorsGoalData>.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.AutomateGeneratorsGoalData>.UnsubscribeActionListener(IdleKit.Gameplay.IEntity)
Implements
IInjectable