Table of Contents

Class GameStateMachine

Namespace
KSP.Game
Assembly
Assembly-CSharp.dll
public class GameStateMachine : SimpleStateMachine<GameState>
Inheritance
GameStateMachine
Inherited Members
Extension Methods

Constructors

GameStateMachine(GameState, GameInstance)

public GameStateMachine(GameState initialState, GameInstance game)

Parameters

initialState GameState
game GameInstance

Properties

Paused

public bool Paused { get; set; }

Property Value

bool

Methods

BackToPreviousState()

public void BackToPreviousState()

GetGameState()

public GameStateConfiguration GetGameState()

Returns

GameStateConfiguration

GetLastGameState()

public GameStateConfiguration GetLastGameState()

Returns

GameStateConfiguration

PublishStateChangedMessage(MessageCenter, GameState, GameState)

protected override void PublishStateChangedMessage(MessageCenter messageCenter, GameState stateBeingLeft, GameState stateBeingEntered)

Parameters

messageCenter MessageCenter
stateBeingLeft GameState
stateBeingEntered GameState

PublishStateEnteredMessage(MessageCenter, GameState)

protected override void PublishStateEnteredMessage(MessageCenter messageCenter, GameState StateBeingEntered)

Parameters

messageCenter MessageCenter
StateBeingEntered GameState

PublishStateLeftMessage(MessageCenter, GameState)

protected override void PublishStateLeftMessage(MessageCenter messageCenter, GameState StateBeingLeft)

Parameters

messageCenter MessageCenter
StateBeingLeft GameState

SetConfiguration(GameStatesConfiguration)

public void SetConfiguration(GameStatesConfiguration stateConfiguration)

Parameters

stateConfiguration GameStatesConfiguration