logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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
    object
    SignalCountingTestAchievementCondition
    Namespace: Serenity.Achievements.Tests.Fakes
    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
    Type Description
    string

    ObservedCount

    How many matching signals have been seen so far.

    Declaration
    public int ObservedCount { get; }
    Property Value
    Type Description
    int

    PersistsState

    Declaration
    public override bool PersistsState { get; }
    Property Value
    Type Description
    bool

    Methods

    CaptureState()

    Declaration
    public override string CaptureState()
    Returns
    Type Description
    string

    CollectSignalTypeNames(ICollection<string>)

    Declaration
    public override void CollectSignalTypeNames(ICollection<string> sink)
    Parameters
    Type Name Description
    ICollection<string> sink

    GetProgress(in AchievementEvaluationContext)

    Declaration
    public override AchievementConditionProgress GetProgress(in AchievementEvaluationContext context)
    Parameters
    Type Name Description
    AchievementEvaluationContext context
    Returns
    Type Description
    AchievementConditionProgress

    IsMet(in AchievementEvaluationContext)

    Declaration
    public override bool IsMet(in AchievementEvaluationContext context)
    Parameters
    Type Name Description
    AchievementEvaluationContext context
    Returns
    Type Description
    bool

    Reset()

    Declaration
    public override void Reset()

    RestoreState(string)

    Declaration
    public override void RestoreState(string state)
    Parameters
    Type Name Description
    string state
    In this article
    © 2026 Serenity. All Rights Reserved