logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct WaveSnapshot

    Immutable snapshot of a wave's state.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Serenity.Wave.Domain.ValueObjects
    Assembly: Serenity.Wave.Domain.dll
    Syntax
    public readonly struct WaveSnapshot

    Constructors

    WaveSnapshot(WaveId, int, int, int, WaveStatus)

    Declaration
    public WaveSnapshot(WaveId id, int index, int totalEnemies, int remainingActors, WaveStatus status)
    Parameters
    Type Name Description
    WaveId id
    int index
    int totalEnemies
    int remainingActors
    WaveStatus status

    Fields

    Id

    The wave identity.

    Declaration
    public readonly WaveId Id
    Field Value
    Type Description
    WaveId

    Index

    Zero-based index of this wave within the stage.

    Declaration
    public readonly int Index
    Field Value
    Type Description
    int

    RemainingActors

    Number of actors still running.

    Declaration
    public readonly int RemainingActors
    Field Value
    Type Description
    int

    Status

    Current wave status.

    Declaration
    public readonly WaveStatus Status
    Field Value
    Type Description
    WaveStatus

    TotalActors

    Total number of actors spawned in this wave.

    Declaration
    public readonly int TotalActors
    Field Value
    Type Description
    int

    Methods

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()
    In this article
    © 2026 Serenity. All Rights Reserved