Class MakeAnyTradeGoal
A IGoal that is complete when a specified number of ITrade have been made by the player.
Any ITrade that is made while the IGoal is active is targeted by the IGoal.
The number of ITrade that must be made by the player to
complete the IGoal, specified via MakeAnyTradeGoalData.amount
.
Each time the player accepts a ITrade the progression will be incremented by 1. Once the target amount is met, the IGoal is complete.
Any ITrade that is made available to the player after the IGoal becomes active will still contribute to the progression.
Extends the base MakeTradeGoal<TGoalData> by overriding IsEligible(ITrade) to always return true. This makes the IGoal target all ITrades.
Inherited Members
Namespace: IdleKit.Gameplay
Assembly: cs.temp.dll.dll
Syntax
public class MakeAnyTradeGoal : MakeTradeGoal<MakeAnyTradeGoalData>, IGoal, IActivatable, IEntity, IInjectable
Constructors
MakeAnyTradeGoal(String)
Declaration
public MakeAnyTradeGoal(string id)
Parameters
Type | Name | Description |
---|---|---|
String | id |
Methods
IsEligible(ITrade)
Declaration
protected override bool IsEligible(ITrade trade)
Parameters
Type | Name | Description |
---|---|---|
ITrade | trade |
Returns
Type | Description |
---|---|
Boolean |
Overrides
IdleKit.Gameplay.MakeTradeGoal<IdleKit.Gameplay.MakeAnyTradeGoalData>.IsEligible(IdleKit.Gameplay.ITrade)
Implements
IInjectable