Class SingleChildTestAchievementCondition
A condition that wraps exactly one other, the way DurationCondition and
NotCondition wrap theirs: it bubbles its child's validation, and — since it always
asks to be ticked — accumulates how many seconds its child has held met, so a suite can prove
a reset clears a tally that lives one level below the tree it directly holds.
Inheritance
SingleChildTestAchievementCondition
Assembly: Tests.dll
Syntax
public class SingleChildTestAchievementCondition : AchievementCondition
Constructors
SingleChildTestAchievementCondition(AchievementCondition)
Creates a node wrapping the given child.
Declaration
public SingleChildTestAchievementCondition(AchievementCondition child)
Parameters
Properties
Children
Declaration
public override IReadOnlyList<AchievementCondition> Children { get; }
Property Value
DisplayName
Declaration
public override string DisplayName { get; }
Property Value
ElapsedSeconds
How many seconds this node has accumulated while its child was met.
Declaration
public float ElapsedSeconds { get; }
Property Value
NeedsTick
Declaration
public override bool NeedsTick { get; }
Property Value
Methods
CollectSignalTypeNames(ICollection<string>)
Declaration
public override void CollectSignalTypeNames(ICollection<string> sink)
Parameters
GetProgress(in AchievementEvaluationContext)
Reports whether any time has accumulated, rather than calling IsMet(in AchievementEvaluationContext) again —
that would accumulate twice per evaluation, the same trap the base class's own remarks
warn a counting leaf away from.
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()
Validate()
Declaration
public override string Validate()
Returns