From 52c90498b95e60eb195b222707b624ec278c286f Mon Sep 17 00:00:00 2001 From: Recrown Date: Mon, 12 Nov 2018 19:45:57 -0600 Subject: [PATCH] minor change to function naming to make more sense in screen manager --- RhythmBullet/RhythmBulletGame.cs | 4 ++-- RhythmBullet/Zer01HD/Utilities/ScreenSystem/ScreenManager.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/RhythmBullet/RhythmBulletGame.cs b/RhythmBullet/RhythmBulletGame.cs index 3b52917..793045a 100644 --- a/RhythmBullet/RhythmBulletGame.cs +++ b/RhythmBullet/RhythmBulletGame.cs @@ -108,7 +108,7 @@ namespace RhythmBullet PostResize(); } - screenManager.Update(gameTime, Assets.Done); + screenManager.UpdateCurrentScreen(gameTime, Assets.Done); InputUtilities.Update(); camera.Update(); @@ -121,7 +121,7 @@ namespace RhythmBullet /// Provides a snapshot of timing values. protected override void Draw(GameTime gameTime) { - screenManager.Draw(spriteBatch); + screenManager.DrawCurrentScreen(spriteBatch); base.Draw(gameTime); } diff --git a/RhythmBullet/Zer01HD/Utilities/ScreenSystem/ScreenManager.cs b/RhythmBullet/Zer01HD/Utilities/ScreenSystem/ScreenManager.cs index d2c6dca..87a1644 100644 --- a/RhythmBullet/Zer01HD/Utilities/ScreenSystem/ScreenManager.cs +++ b/RhythmBullet/Zer01HD/Utilities/ScreenSystem/ScreenManager.cs @@ -53,7 +53,7 @@ namespace RhythmBullet.Zer01HD.Utilities.ScreenSystem this.camera = camera; } - public void Update(GameTime gameTime, bool assetsDone) + public void UpdateCurrentScreen(GameTime gameTime, bool assetsDone) { switch (Screen.State) { @@ -93,7 +93,7 @@ namespace RhythmBullet.Zer01HD.Utilities.ScreenSystem } } - public void Draw(SpriteBatch spriteBatch) + public void DrawCurrentScreen(SpriteBatch spriteBatch) { graphics.GraphicsDevice.Clear(Screen.BackgroundColor); if (Screen.State == ScreenState.EnterTransition && previousScreen != null && previousScreen.UseRenderTargetForExitTransition)