Class StageState
Mutable runtime state of a rail shooter stage.
Inherited Members
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 |