Class CollectFromCollectorTypeGoal
A IGoal that is complete when the player collects from one or more instances of a specified ICollectorEntity.
This IGoal targets all ICollectorEntitys if the Any
flag is set to true. Otherwise, it targets the ICollectorEntitys with a id
that matches the
ICollectorEntity Id specified on the CollectorId.
The IGoal progresses by 1 unit every time a targeted ICollectorEntity 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 CollectFromCollectorTypeGoal : Goal<CollectFromCollectorTypeGoalData>, IGoal, IActivatable, IEntity, IInjectable
Constructors
CollectFromCollectorTypeGoal(String)
Declaration
public CollectFromCollectorTypeGoal(string id)
Parameters
Type | Name | Description |
---|---|---|
String | id |
Methods
Activate()
Declaration
public override void Activate()
Overrides
IdleKit.Gameplay.Goal<IdleKit.Gameplay.CollectFromCollectorTypeGoalData>.Activate()
OnCollectFromCollector(CollectFromCollectorStateAction)
Declaration
protected virtual void OnCollectFromCollector(CollectFromCollectorStateAction stateAction)
Parameters
Type | Name | Description |
---|---|---|
CollectFromCollectorStateAction | stateAction |
SubscribeActionListener(IEntity)
Declaration
protected override void SubscribeActionListener(IEntity target)
Parameters
Type | Name | Description |
---|---|---|
IEntity | target |
Overrides
IdleKit.Gameplay.Goal<IdleKit.Gameplay.CollectFromCollectorTypeGoalData>.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.CollectFromCollectorTypeGoalData>.UnsubscribeActionListener(IdleKit.Gameplay.IEntity)
Implements
IInjectable