logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class WaveConfig

    Immutable configuration for a single wave within a stage. Defines the wave index, total actor count, and per-archetype distribution. Pure C# — no engine dependencies.

    Inheritance
    object
    WaveConfig
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Wave.Domain.Configuration
    Assembly: Serenity.Wave.Domain.dll
    Syntax
    public class WaveConfig
    Remarks

    Archetype distribution is expressed as named integer counts. The mapping to CharacterArchetype enum values happens at the Unity layer where both assemblies are available, keeping Wave.Domain independent.

    Constructors

    WaveConfig(int, int)

    Creates a new WaveConfig with validation.

    Declaration
    public WaveConfig(int waveIndex, int totalActors)
    Parameters
    Type Name Description
    int waveIndex

    Zero-based index. Must be >= 0.

    int totalActors

    Total actor count. Must be >= 0.

    Fields

    TotalActors

    Total number of actors in this wave.

    Declaration
    public readonly int TotalActors
    Field Value
    Type Description
    int

    WaveIndex

    Zero-based wave index within the stage.

    Declaration
    public readonly int WaveIndex
    Field Value
    Type Description
    int

    Methods

    ToString()

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