Class MakeTradeTypeGoal
A Goal that is complete when a targeted ITrade has been made by the player.
Any ITrade with the target Id
that matches the
Id specified via TradeId will be
targeted.
The number of times the target ITrade must be made by the player to complete the Goal, usually 1. Specified via Amount.
Each time the player accepts the targeted ITrade the progression will be incremented by 1. Once the target amount is met, the Goal is complete.
Any @"IdleKit.ITrade?text=Trades" made prior to the Goal becoming active will not count toward it's completion.
Extends MakeTradeGoal<TGoalData> by implementing
IsEligible(ITrade) to check that the
ITrade argument passed has the same Id
as the
one specified in MakeTradeTypeGoalData.
Inheritance
MakeTradeTypeGoal
Inherited Members
Namespace: IdleKit.Gameplay
Assembly: cs.temp.dll.dll
Syntax
public class MakeTradeTypeGoal : MakeTradeGoal<MakeTradeTypeGoalData>, IGoal, IActivatable, IEntity, IInjectable
Constructors
MakeTradeTypeGoal(String)
Declaration
public MakeTradeTypeGoal(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.MakeTradeTypeGoalData>.IsEligible(IdleKit.Gameplay.ITrade)
Implements
IInjectable