logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct HudState

    Immutable snapshot of the HUD (Heads-Up Display) state. Represents what the HUD should display, not how it is rendered.

    Implements
    IEquatable<HudState>
    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 HudState : IEquatable<HudState>

    Constructors

    HudState(bool, bool)

    Creates a new HudState with the specified visibility and pause state.

    Declaration
    public HudState(bool isVisible, bool isPaused)
    Parameters
    Type Name Description
    bool isVisible

    Whether the HUD is visible.

    bool isPaused

    Whether the HUD is in a paused state.

    Fields

    IsPaused

    Whether the HUD is in a paused display state.

    Declaration
    public readonly bool IsPaused
    Field Value
    Type Description
    bool

    IsVisible

    Whether the HUD is currently visible.

    Declaration
    public readonly bool IsVisible
    Field Value
    Type Description
    bool

    Properties

    Default

    A default HudState with the HUD visible and not paused.

    Declaration
    public static HudState Default { get; }
    Property Value
    Type Description
    HudState

    Hidden

    A HudState representing a hidden HUD.

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

    Methods

    Equals(HudState)

    Declaration
    public bool Equals(HudState other)
    Parameters
    Type Name Description
    HudState 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 ==(HudState, HudState)

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

    operator !=(HudState, HudState)

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

    Implements

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