logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class NotCondition

    Met exactly when the condition it wraps is not.

    Inheritance
    object
    SingleChildAchievementCondition
    NotCondition
    Inherited Members
    SingleChildAchievementCondition.ChildFieldName
    SingleChildAchievementCondition.Reset()
    SingleChildAchievementCondition.Validate()
    SingleChildAchievementCondition.CaptureState()
    SingleChildAchievementCondition.RestoreState(string)
    SingleChildAchievementCondition.CollectSignalTypeNames(ICollection<string>)
    SingleChildAchievementCondition.ValidateOwnConfiguration()
    SingleChildAchievementCondition.CaptureOwnState()
    SingleChildAchievementCondition.RestoreOwnState(string)
    SingleChildAchievementCondition.Child
    SingleChildAchievementCondition.Children
    SingleChildAchievementCondition.NeedsTick
    SingleChildAchievementCondition.PersistsState
    Namespace: Serenity.Achievements.Infrastructure.Conditions
    Assembly: Serenity.UnityAchievements.Infrastructure.dll
    Syntax
    [AchievementConditionCategory(AchievementConditionCategory.Logic)]
    public class NotCondition : SingleChildAchievementCondition
    Remarks

    Progress is read from the child rather than re-derived from IsMet(in AchievementEvaluationContext): the child may be a counting node, and asking it twice per evaluation would double every tally underneath this one.

    Constructors

    NotCondition()

    Creates an unauthored condition, as Unity's polymorphic serializer does.

    Declaration
    public NotCondition()

    NotCondition(AchievementCondition)

    Creates a condition inverting another.

    Declaration
    public NotCondition(AchievementCondition condition)
    Parameters
    Type Name Description
    AchievementCondition condition

    The condition to invert.

    Properties

    DisplayName

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

    MissingChildMessage

    What this node reports when it wraps nothing at all.

    Declaration
    protected override string MissingChildMessage { get; }
    Property Value
    Type Description
    string
    Overrides
    SingleChildAchievementCondition.MissingChildMessage

    Methods

    Describe(bool)

    Declaration
    public override string Describe(bool isNested)
    Parameters
    Type Name Description
    bool isNested
    Returns
    Type Description
    string

    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
    In this article
    © 2026 Serenity. All Rights Reserved