Interface IStageService
Service interface for managing a rail shooter stage lifecycle.
Namespace: Serenity.Stage.Application.Interfaces.Services
Assembly: Serenity.Stage.Application.dll
Syntax
public interface IStageService : IService, IFoundationSettings
Methods
CompleteStage()
Marks the current stage as completed successfully.
Declaration
void CompleteStage()
FailStage()
Marks the current stage as failed.
Declaration
void FailStage()
GetSnapshot()
Returns an immutable snapshot of the current stage state.
Declaration
StageSnapshot GetSnapshot()
Returns
| Type | Description |
|---|---|
| StageSnapshot | A StageSnapshot representing current state. |
InitializeService(IFoundationViewElement, ILogService)
Initializes the service with required dependencies.
Declaration
void InitializeService(IFoundationViewElement GameWrapper, ILogService logService)
Parameters
| Type | Name | Description |
|---|---|---|
| IFoundationViewElement | GameWrapper | |
| ILogService | logService |
StartStage(StageId)
Configures the stage with the specified settings. Must be called before StartStage(StageId).
Declaration
void StartStage(StageId stageId)
Parameters
| Type | Name | Description |
|---|---|---|
| StageId | stageId | The identity of the stage to start. |