Class AutomateGeneratorTypeGoal
A Goal that is complete when a player automates one or more instances of a specified IGeneratorEntity.
Any IGeneratorEntity with a Id that matches the GeneratorId will be targeted by the Goal. This is opposed to the AutomateGeneratorsGoal which does not target any specific IGeneratorEntity.
Each automation of a target IGeneratorEntity progresses the IGoal by 1 until the target Amount is reached at which point the Goal is complete.
Any target IGeneratorEntity 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 AutomateGeneratorTypeGoal : Goal<AutomateGeneratorTypeGoalData>, IGoal, IActivatable, IEntity, IInjectable
Constructors
AutomateGeneratorTypeGoal(String)
Declaration
public AutomateGeneratorTypeGoal(string id)
Parameters
Type | Name | Description |
---|---|---|
String | id |
Methods
Activate()
Declaration
public override void Activate()
Overrides
IdleKit.Gameplay.Goal<IdleKit.Gameplay.AutomateGeneratorTypeGoalData>.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.AutomateGeneratorTypeGoalData>.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.AutomateGeneratorTypeGoalData>.UnsubscribeActionListener(IdleKit.Gameplay.IEntity)
Implements
IInjectable