Table of Contents

Class SessionStateBase

Namespace
FrameOfReference.States
Assembly
FrameOfReference.dll

Common base for states with an active Session and Presenter.

public abstract class SessionStateBase : IGameState, IDisposable
Inheritance
object
SessionStateBase
Implements
Derived

Constructors

SessionStateBase(Game, Session)

Common base for states with an active Session and Presenter.

protected SessionStateBase(Game game, Session session)

Parameters

game Game
session Session

Fields

game

protected readonly Game game

Field Value

Game

session

protected readonly Session session

Field Value

Session

Methods

BindLua(Lua)

Registers state-specific values in the given Lua environment.

public virtual void BindLua(Lua lua)

Parameters

lua Lua

CleanCaches()

protected void CleanCaches()

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public abstract void Dispose()

Enter()

Called when this state becomes the active state.

public abstract void Enter()

Exit()

Called when this state is no longer the active state.

public abstract void Exit()

GetElapsedGameTime(double)

Returns the amount of in-game time that corresponds to elapsedTime real time.

public virtual double GetElapsedGameTime(double elapsedTime)

Parameters

elapsedTime double

Returns

double

InitializeLua()

protected void InitializeLua()