Midnight Blue Game and Engine
Classes | Enumerations
MB2D.Scenes Namespace Reference

Classes

class  Scene
 Holds all logic and data for a single game screen More...
 
class  SceneStack
 Holds the games scenes in a stack structure running the top scene every frame. Handles switching state for scenes and popping/pushing new scenes on top of one another. Allows the current scene to access other scenes. More...
 

Enumerations

enum  TransitionState {
  TransitionState.Null, TransitionState.None, TransitionState.Pausing, TransitionState.Resuming,
  TransitionState.Exiting, TransitionState.Initializing
}
 Defines a valid transition state to move into. Once set, the scene stack will automatically move the current scene into that state the next frame. More...
 

Enumeration Type Documentation

§ TransitionState

Defines a valid transition state to move into. Once set, the scene stack will automatically move the current scene into that state the next frame.

Enumerator
Null 

The scene hasn't intitialized yet

None 

The normal state

Pausing 

The scene is currently pausing. Set state to None to end transition.

Resuming 

The scene is resuming from the paused state. Set state to None to end transition.

Exiting 

The scene is exiting to be destroyed. Set state to Null to end transition.

Initializing 

The scene is initializing from the an unconstructed state. Set state to None to end.