File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,17 +5,25 @@ namespace SKSSL;
55/// </summary>
66public static class GameManager
77{
8+ /// Topmost game instance reverse-accessible from lower ends of the call-chain.
89 public static SSLGame Game { get ; private set ; } = null ! ;
10+
11+ /// Title of game window.
912 public static string Title => Game . Title ;
13+
14+ /// Aspect ratio to render the game.
1015 public static float AspectRatio => Game . GraphicsDevice . Viewport . AspectRatio ;
1116
17+ /// Force game closure.
1218 public static void Exit ( )
1319 {
1420 // Safely exit without suicidal tendencies.
1521 SSLGame game = Game ;
1622 game . Quit ( ) ;
1723 game . Exit ( ) ;
1824 }
25+
26+ /// Force game status reset.
1927 public static void ResetGame ( ) => Game . ResetGame ( ) ;
2028
2129 /// Run the game instance.
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ public abstract class SSLGame : Game
8989 /// Example: "Gum/SolKom.gumx"
9090 /// </code>
9191 /// </summary>
92- public static string GumFile = "CHANGE_ME" ; // Example:
92+ public static string GumFile = "CHANGE_ME" ;
9393
9494 /// <summary>
9595 /// Constructor for SSLGame.
You can’t perform that action at this time.
0 commit comments