Class SessionStateBase
- Namespace
- FrameOfReference.States
- Assembly
- FrameOfReference.dll
public abstract class SessionStateBase : IGameState, IDisposable
- Inheritance
-
objectSessionStateBase
- Implements
- Derived
Constructors
SessionStateBase(Game, Session)
protected SessionStateBase(Game game, Session session)
Parameters
Fields
game
protected readonly Game game
Field Value
session
protected readonly Session session
Field Value
Methods
BindLua(Lua)
Registers state-specific values in the given Lua environment.
public virtual void BindLua(Lua lua)
Parameters
luaLua
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()
InitializeLua()
protected void InitializeLua()
Update(double)
Advances the state by elapsedTime seconds of real time. Called once per frame before rendering.
public virtual double Update(double elapsedTime)
Parameters
elapsedTimedouble
Returns
- double
The amount of game time that has passed. Drives time-based visual effects.