From f6d1cac42fa82ab3857b57be11c475800987dbb4 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Wed, 4 Dec 2019 17:15:50 -0500 Subject: [PATCH] rename IWindow -> IDisplay & refactor uses GitOrigin-RevId: 9cb63778dead2564bc6d3931d7fc9626c878fd8c --- Jumpy.Shared/{IWindow.cs => IDisplay.cs} | 2 +- Jumpy.Shared/Jumpy.Shared.projitems | 2 +- Jumpy.Shared/JumpyGame.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename Jumpy.Shared/{IWindow.cs => IDisplay.cs} (85%) diff --git a/Jumpy.Shared/IWindow.cs b/Jumpy.Shared/IDisplay.cs similarity index 85% rename from Jumpy.Shared/IWindow.cs rename to Jumpy.Shared/IDisplay.cs index b4423c2..5559404 100644 --- a/Jumpy.Shared/IWindow.cs +++ b/Jumpy.Shared/IDisplay.cs @@ -1,7 +1,7 @@ using Microsoft.Xna.Framework; namespace Jumpy { - public interface IWindow { + public interface IDisplay { void Initialize(GameWindow window, GraphicsDeviceManager graphics); void SetFullScreen(bool fullScreen); } diff --git a/Jumpy.Shared/Jumpy.Shared.projitems b/Jumpy.Shared/Jumpy.Shared.projitems index 64df16b..601821d 100644 --- a/Jumpy.Shared/Jumpy.Shared.projitems +++ b/Jumpy.Shared/Jumpy.Shared.projitems @@ -9,7 +9,7 @@ Jumpy.Shared - + diff --git a/Jumpy.Shared/JumpyGame.cs b/Jumpy.Shared/JumpyGame.cs index fd39dcc..50a4158 100644 --- a/Jumpy.Shared/JumpyGame.cs +++ b/Jumpy.Shared/JumpyGame.cs @@ -11,7 +11,7 @@ namespace Jumpy { SpriteFont font; KeyboardInput keyboardInput = new KeyboardInput(); bool fullScreen = false; - IWindow display; + IDisplay display; public JumpyGame() { graphics = new GraphicsDeviceManager(this); @@ -21,7 +21,7 @@ namespace Jumpy { // Performs initialization that's needed before starting to run. protected override void Initialize() { - display = (IWindow) Services.GetService(typeof(IWindow)); + display = (IDisplay) Services.GetService(typeof(IDisplay)); display.Initialize(Window, graphics); display.SetFullScreen(fullScreen); base.Initialize();