logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct WaveId

    Stable identifier for a wave within a stage.

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

    Constructors

    WaveId(string)

    Creates a new WaveId with the specified identifier.

    Declaration
    public WaveId(string value)
    Parameters
    Type Name Description
    string value

    Fields

    Value

    The unique string identifier for this wave.

    Declaration
    public readonly string Value
    Field Value
    Type Description
    string

    Properties

    IsValid

    Checks if this WaveId has a valid, non-empty value.

    Declaration
    public bool IsValid { get; }
    Property Value
    Type Description
    bool

    Methods

    Equals(WaveId)

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

    NewGuid()

    Creates a new WaveId with an auto-generated GUID.

    Declaration
    public static WaveId NewGuid()
    Returns
    Type Description
    WaveId

    ToString()

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

    Operators

    operator ==(WaveId, WaveId)

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

    explicit operator WaveId(string)

    Declaration
    public static explicit operator WaveId(string value)
    Parameters
    Type Name Description
    string value
    Returns
    Type Description
    WaveId

    implicit operator string(WaveId)

    Declaration
    public static implicit operator string(WaveId id)
    Parameters
    Type Name Description
    WaveId id
    Returns
    Type Description
    string

    operator !=(WaveId, WaveId)

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

    Implements

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