Class SignalCountingTestAchievementCondition
A condition met once a signal of the authored type has been dispatched a given number of
times — the engine-free stand-in for SignalReceivedCondition that a Business suite
drives when what it is testing is the evaluator, the index or the subscription binder rather
than the leaf's own parsing of a signal type name.
Inheritance
SignalCountingTestAchievementCondition
Assembly: Tests.dll
Syntax
public class SignalCountingTestAchievementCondition : AchievementCondition
Constructors
SignalCountingTestAchievementCondition(string, int)
Creates a condition counting a given signal type.
Declaration
public SignalCountingTestAchievementCondition(string signalTypeName, int requiredCount = 1)
Parameters
| Type |
Name |
Description |
| string |
signalTypeName |
The signal type name to count.
|
| int |
requiredCount |
How many of those signals unlock the achievement.
|
Properties
DisplayName
Declaration
public override string DisplayName { get; }
Property Value
ObservedCount
How many matching signals have been seen so far.
Declaration
public int ObservedCount { get; }
Property Value
PersistsState
Declaration
public override bool PersistsState { get; }
Property Value
Methods
CaptureState()
Declaration
public override string CaptureState()
Returns
CollectSignalTypeNames(ICollection<string>)
Declaration
public override void CollectSignalTypeNames(ICollection<string> sink)
Parameters
GetProgress(in AchievementEvaluationContext)
Declaration
public override AchievementConditionProgress GetProgress(in AchievementEvaluationContext context)
Parameters
Returns
IsMet(in AchievementEvaluationContext)
Declaration
public override bool IsMet(in AchievementEvaluationContext context)
Parameters
Returns
Reset()
Declaration
public override void Reset()
RestoreState(string)
Declaration
public override void RestoreState(string state)
Parameters
| Type |
Name |
Description |
| string |
state |
|