Class MainMenu
- Namespace
- FrameOfReference.States
- Assembly
- FrameOfReference.dll
State while the main menu is shown.
public class MainMenu : IGameState, IDisposable
- Inheritance
-
objectMainMenu
- Implements
Constructors
MainMenu(Game, Universe)
State while the main menu is shown.
public MainMenu(Game game, Universe universe)
Parameters
Methods
BindLua(Lua)
Registers state-specific values in the given Lua environment.
public void BindLua(Lua lua)
Parameters
luaLua
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Enter()
Called when this state becomes the active state.
public void Enter()
Exit()
Called when this state is no longer the active state.
public void Exit()
Update(double)
Advances the state by elapsedTime seconds of real time. Called once per frame before rendering.
public double Update(double elapsedTime)
Parameters
elapsedTimedouble
Returns
- double
The amount of game time that has passed. Drives time-based visual effects.