The Scene Manager which handles Scene Loading and drawing.
More...
|
static void | AddScene< T > () |
| Adds a new screen of type T to the screen manager.
|
|
static void | AddScene (vxBaseScene screen) |
| Adds a new screen to the screen manager.
|
|
static void | AddScene (vxBaseScene screen, PlayerIndex? controllingPlayer) |
| Adds a new screen to the screen manager.
|
|
static void | LoadScene< T > () |
|
static void | LoadScene (params vxBaseScene[] screensToLoad) |
| Loads a scene using an async method where the loading is spread out over a series of frames.
|
|
static void | GoToMainMenu () |
| Tells the game to exit whatever it is doing now and to go to the Main Menu.
|
|
static void | LoadSceneSyncronously (params vxBaseScene[] screensToLoad) |
| Loads a scene syncronously.
|
|
static void | RemoveScene (vxBaseScene screen) |
| Removes a screen from the screen manager. You should normally use vxGameBaseScreen.ExitScreen instead of calling this directly, so the screen can gradually transition off rather than just being instantly removed.
|
|
static vxBaseScene[] | GetScreens () |
| Expose an array holding all the screens. We return a copy rather than the real master list, because screens should only ever be added or removed using the AddScreen and RemoveScreen methods.
|
|
static void | FadeBackBufferToBlack (float alpha) |
| Helper draws a translucent black fullscreen sprite, used for fading screens in and out, and for darkening the background behind popups.
|
|
|
static List< vxBaseScene > | SceneCollection = new List<vxBaseScene>() |
| Screen List.
|
|
static Color | FadeToBackBufferColor = Color.Black |
| The color to fade the back buffer to.
|
|
static Color | LoadingScreenBackColor = Color.Black |
| The color of the loading screen background.
|
|
static Color | LoadingScreenTextColor = Color.White |
| The color of the loading screen text.
|
|
static bool | TraceEnabled |
| If true, the manager prints out a list of all the screens each time it is updated. This can be useful for making sure everything is being added and removed at the right times.
|
|
The Scene Manager which handles Scene Loading and drawing.
◆ AddScene< T >()
Adds a new screen of type T to the screen manager.
- Template Parameters
-
◆ LoadScene()
static void VerticesEngine.vxSceneManager.LoadScene |
( |
params vxBaseScene[] | screensToLoad | ) |
|
|
static |
Loads a scene using an async method where the loading is spread out over a series of frames.
- Parameters
-
◆ LoadScene< T >()
◆ LoadSceneSyncronously()
static void VerticesEngine.vxSceneManager.LoadSceneSyncronously |
( |
params vxBaseScene[] | screensToLoad | ) |
|
|
static |
Loads a scene syncronously.
- Parameters
-
The documentation for this class was generated from the following file:
- /github/workspace/src/VerticesEngine/src.shared/vxSceneManager.cs