Class BuyGeneratorTypeGoal
A Goal which is complete when one or more instances of a specific IGeneratorEntity type are purchased by the player.
Any IGeneratorEntity with a Id that matches the
IGeneratorEntity Id specified on the BuyGeneratorTypeGoalData
will be targeted
by the Goal.
Each purchase of a targeted IGeneratorEntity will progress the Goal by 1 unit up until the target Amount is met at which point the Goal is complete.
Any target IGeneratorEntity that is purchased prior to this Goal being activated will count towards the target Amount.
Inherited Members
Namespace: IdleKit.Gameplay
Assembly: cs.temp.dll.dll
Syntax
public class BuyGeneratorTypeGoal : Goal<BuyGeneratorTypeGoalData>, IGoal, IActivatable, IEntity, IInjectable
Constructors
BuyGeneratorTypeGoal(String)
Declaration
public BuyGeneratorTypeGoal(string id)
Parameters
Type | Name | Description |
---|---|---|
String | id |
Methods
Activate()
Declaration
public override void Activate()
Overrides
IdleKit.Gameplay.Goal<IdleKit.Gameplay.BuyGeneratorTypeGoalData>.Activate()
OnBuyGenerator(BuyGeneratorStateAction)
Declaration
protected virtual void OnBuyGenerator(BuyGeneratorStateAction stateAction)
Parameters
Type | Name | Description |
---|---|---|
BuyGeneratorStateAction | stateAction |
SubscribeActionListener(IEntity)
Declaration
protected override void SubscribeActionListener(IEntity target)
Parameters
Type | Name | Description |
---|---|---|
IEntity | target |
Overrides
IdleKit.Gameplay.Goal<IdleKit.Gameplay.BuyGeneratorTypeGoalData>.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.BuyGeneratorTypeGoalData>.UnsubscribeActionListener(IdleKit.Gameplay.IEntity)
Implements
IInjectable