logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class StubCustomCondition

    A project-supplied rule, as a test writes one.

    Inheritance
    object
    StubCustomCondition
    Implements
    IAchievementCondition
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Achievements.Tests.Fakes
    Assembly: Tests.dll
    Syntax
    public class StubCustomCondition : IAchievementCondition

    Constructors

    StubCustomCondition()

    Declaration
    public StubCustomCondition()

    Properties

    Met

    Whether this rule currently reports itself as met.

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

    Methods

    GetProgress(in AchievementEvaluationContext)

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

    IsMet(in AchievementEvaluationContext)

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

    Implements

    IAchievementCondition
    In this article
    © 2026 Serenity. All Rights Reserved