logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class StageState

    Mutable runtime state of a rail shooter stage.

    Inheritance
    object
    StageState
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Stage.Domain.Entities
    Assembly: Serenity.Stage.Domain.dll
    Syntax
    public class StageState

    Constructors

    StageState(StageId)

    Creates a new StageState with the specified identity.

    Declaration
    public StageState(StageId id)
    Parameters
    Type Name Description
    StageId id

    The stage identity.

    Properties

    Id

    Gets the identity of this stage.

    Declaration
    public StageId Id { get; }
    Property Value
    Type Description
    StageId

    Status

    Gets the current stage status.

    Declaration
    public StageStatus Status { get; }
    Property Value
    Type Description
    StageStatus

    Methods

    Complete()

    Marks the stage as completed successfully.

    Declaration
    public void Complete()

    Fail()

    Marks the stage as failed.

    Declaration
    public void Fail()

    Start()

    Starts the stage, transitioning to InProgress.

    Declaration
    public void Start()

    ToSnapshot()

    Creates an immutable snapshot of the current stage state.

    Declaration
    public StageSnapshot ToSnapshot()
    Returns
    Type Description
    StageSnapshot
    In this article
    © 2026 Serenity. All Rights Reserved