Class CollectFromGeneratorTypeGoal
A IGoal that is complete when the player collects from one or more instances of a specified IGeneratorEntity.
This IGoal targets all IGeneratorEntitys if the Any
flag is set to true. Otherwise, it targets the IGeneratorEntitys with a id
that matches the
IGeneratorEntity Id specified on the GeneratorId.
The IGoal progresses by 1 unit every time a targeted IGeneratorEntity is collected from until the target amount is reached at which point the Goal is complete.
Only collections that occur after the IGoal becomes active will count towards progress of the IGoal.
Inherited Members
Namespace: IdleKit.Gameplay
Assembly: cs.temp.dll.dll
Syntax
public class CollectFromGeneratorTypeGoal : Goal<CollectFromGeneratorTypeGoalData>, IGoal, IActivatable, IEntity, IInjectable
Constructors
CollectFromGeneratorTypeGoal(String)
Declaration
public CollectFromGeneratorTypeGoal(string id)
Parameters
Type | Name | Description |
---|---|---|
String | id |
Methods
Activate()
Declaration
public override void Activate()
Overrides
IdleKit.Gameplay.Goal<IdleKit.Gameplay.CollectFromGeneratorTypeGoalData>.Activate()
OnCollectFromGenerator(CollectFromGeneratorStateAction)
Declaration
protected virtual void OnCollectFromGenerator(CollectFromGeneratorStateAction stateAction)
Parameters
Type | Name | Description |
---|---|---|
CollectFromGeneratorStateAction | stateAction |
SubscribeActionListener(IEntity)
Declaration
protected override void SubscribeActionListener(IEntity target)
Parameters
Type | Name | Description |
---|---|---|
IEntity | target |
Overrides
IdleKit.Gameplay.Goal<IdleKit.Gameplay.CollectFromGeneratorTypeGoalData>.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.CollectFromGeneratorTypeGoalData>.UnsubscribeActionListener(IdleKit.Gameplay.IEntity)
Implements
IInjectable