logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class ThrowingAchievementCondition

    A condition that fails the way project code in a custom rule can: by throwing. Used to prove that one broken achievement does not stop the others being evaluated.

    Inheritance
    object
    ThrowingAchievementCondition
    Namespace: Serenity.Achievements.Tests.Fakes
    Assembly: Tests.dll
    Syntax
    public class ThrowingAchievementCondition : AchievementCondition

    Constructors

    ThrowingAchievementCondition()

    Declaration
    public ThrowingAchievementCondition()

    Properties

    DisplayName

    Declaration
    public override string DisplayName { get; }
    Property Value
    Type Description
    string

    IsMetCallCount

    How many times IsMet(in AchievementEvaluationContext) was reached.

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

    ListenedSignalTypeNames

    The signal type names this condition claims to listen for.

    Declaration
    public List<string> ListenedSignalTypeNames { get; }
    Property Value
    Type Description
    List<string>

    NeedsTick

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

    ThrowsWhenCollectingSignalTypeNames

    Whether CollectSignalTypeNames(ICollection<string>) throws instead of answering — the failure that happens while the index is being built, at the composition root, rather than during an evaluation the evaluator already contains.

    Declaration
    public bool ThrowsWhenCollectingSignalTypeNames { get; set; }
    Property Value
    Type Description
    bool

    TicksWithTime

    What NeedsTick reports.

    Declaration
    public bool TicksWithTime { get; set; }
    Property Value
    Type Description
    bool

    Methods

    CollectSignalTypeNames(ICollection<string>)

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

    IsMet(in AchievementEvaluationContext)

    Declaration
    public override bool IsMet(in AchievementEvaluationContext context)
    Parameters
    Type Name Description
    AchievementEvaluationContext context
    Returns
    Type Description
    bool
    In this article
    © 2026 Serenity. All Rights Reserved