Class InGameBase
- Namespace
- FrameOfReference.States
- Assembly
- FrameOfReference.dll
Common base for states with an active InGamePresenter and pause support.
public abstract class InGameBase : SessionStateBase, IGameState, IDisposable
- Inheritance
-
objectInGameBase
- Implements
- Derived
- Inherited Members
Constructors
InGameBase(Game, Session)
protected InGameBase(Game game, Session session)
Parameters
Fields
_presenter
protected readonly InGamePresenter _presenter
Field Value
Properties
HudDialog
protected abstract string HudDialog { get; }
Property Value
Methods
BindLua(Lua)
Registers state-specific values in the given Lua environment.
[LuaHide]
public override void BindLua(Lua lua)
Parameters
luaLua
Dispose()
[LuaHide]
public override void Dispose()
Enter()
Called when this state becomes the active state.
[LuaHide]
public override void Enter()
Exit()
Called when this state is no longer the active state.
[LuaHide]
public override void Exit()
OnPresenterInitialized()
protected virtual void OnPresenterInitialized()
TogglePause()
Toggles between gameplay and the pause menu.
public void TogglePause()
Update(double)
Advances the state by elapsedTime seconds of real time. Called once per frame before rendering.
[LuaHide]
public override double Update(double elapsedTime)
Parameters
elapsedTimedouble
Returns
- double
The amount of game time that has passed. Drives time-based visual effects.