summaryrefslogtreecommitdiff
path: root/Plugins/MonoGame.Extended/source/MonoGame.Extended/Screens/GameScreen.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Plugins/MonoGame.Extended/source/MonoGame.Extended/Screens/GameScreen.cs')
-rw-r--r--Plugins/MonoGame.Extended/source/MonoGame.Extended/Screens/GameScreen.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/Plugins/MonoGame.Extended/source/MonoGame.Extended/Screens/GameScreen.cs b/Plugins/MonoGame.Extended/source/MonoGame.Extended/Screens/GameScreen.cs
new file mode 100644
index 0000000..7752c02
--- /dev/null
+++ b/Plugins/MonoGame.Extended/source/MonoGame.Extended/Screens/GameScreen.cs
@@ -0,0 +1,19 @@
+using Microsoft.Xna.Framework;
+using Microsoft.Xna.Framework.Content;
+using Microsoft.Xna.Framework.Graphics;
+
+namespace MonoGame.Extended.Screens
+{
+ public abstract class GameScreen : Screen
+ {
+ protected GameScreen(Game game)
+ {
+ Game = game;
+ }
+
+ public Game Game { get; }
+ public ContentManager Content => Game.Content;
+ public GraphicsDevice GraphicsDevice => Game.GraphicsDevice;
+ public GameServiceContainer Services => Game.Services;
+ }
+} \ No newline at end of file