Class CollectRewardTypeGoal
A IGoal that is completed once the player is granted one or more instances of a specific IReward.
Any IReward with a Id
that matches the Id specified on the
TargetRewardId.
The IGoal progresses by 1 every time a target IReward is granted to the player until the target amount is reached at which point the IGoal is complete.
Only IReward granted 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 CollectRewardTypeGoal : Goal<CollectRewardTypeGoalData>, IGoal, IActivatable, IEntity, IInjectable
Constructors
CollectRewardTypeGoal(String)
Declaration
public CollectRewardTypeGoal(string id)
Parameters
Type | Name | Description |
---|---|---|
String | id |
Methods
Activate()
Declaration
public override void Activate()
Overrides
IdleKit.Gameplay.Goal<IdleKit.Gameplay.CollectRewardTypeGoalData>.Activate()
OnGrantReward(RewardGrantedAction)
Declaration
protected virtual void OnGrantReward(RewardGrantedAction rewardAction)
Parameters
Type | Name | Description |
---|---|---|
RewardGrantedAction | rewardAction |
SubscribeActionListener(IEntity)
Declaration
protected override void SubscribeActionListener(IEntity target)
Parameters
Type | Name | Description |
---|---|---|
IEntity | target |
Overrides
IdleKit.Gameplay.Goal<IdleKit.Gameplay.CollectRewardTypeGoalData>.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.CollectRewardTypeGoalData>.UnsubscribeActionListener(IdleKit.Gameplay.IEntity)
Implements
IInjectable