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()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
[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()
GetElapsedGameTime(double)
Returns the amount of in-game time that corresponds to elapsedTime real time.
[LuaHide]
public override double GetElapsedGameTime(double elapsedTime)
Parameters
elapsedTimedouble
Returns
OnPresenterInitialized()
protected virtual void OnPresenterInitialized()
TogglePause()
Toggles between gameplay and the pause menu.
[UsedImplicitly]
public void TogglePause()