logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct ResultsState

    Immutable snapshot of the results screen state. Represents what the results screen should display after a session ends.

    Implements
    IEquatable<ResultsState>
    Inherited Members
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Serenity.GameUi.Domain.ValueObjects
    Assembly: Serenity.GameUi.Domain.dll
    Syntax
    public readonly struct ResultsState : IEquatable<ResultsState>

    Constructors

    ResultsState(bool, bool, float)

    Creates a new ResultsState with the specified values.

    Declaration
    public ResultsState(bool isVisible, bool isVictory, float finalTime)
    Parameters
    Type Name Description
    bool isVisible

    Whether the results screen is visible.

    bool isVictory

    Whether the session was a victory.

    float finalTime

    The final elapsed time in seconds.

    Fields

    FinalTime

    The final elapsed time in seconds.

    Declaration
    public readonly float FinalTime
    Field Value
    Type Description
    float

    IsVictory

    Whether the session was completed successfully.

    Declaration
    public readonly bool IsVictory
    Field Value
    Type Description
    bool

    IsVisible

    Whether the results screen is currently visible.

    Declaration
    public readonly bool IsVisible
    Field Value
    Type Description
    bool

    Properties

    Hidden

    A default hidden results state.

    Declaration
    public static ResultsState Hidden { get; }
    Property Value
    Type Description
    ResultsState

    Methods

    Equals(ResultsState)

    Declaration
    public bool Equals(ResultsState other)
    Parameters
    Type Name Description
    ResultsState other
    Returns
    Type Description
    bool

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    ValueType.Equals(object)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    ValueType.GetHashCode()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()

    Operators

    operator ==(ResultsState, ResultsState)

    Declaration
    public static bool operator ==(ResultsState left, ResultsState right)
    Parameters
    Type Name Description
    ResultsState left
    ResultsState right
    Returns
    Type Description
    bool

    operator !=(ResultsState, ResultsState)

    Declaration
    public static bool operator !=(ResultsState left, ResultsState right)
    Parameters
    Type Name Description
    ResultsState left
    ResultsState right
    Returns
    Type Description
    bool

    Implements

    IEquatable<T>
    In this article
    © 2026 Serenity. All Rights Reserved