diff --git a/Shared/IScene.cs b/Shared/IScene.cs new file mode 100644 index 0000000..6eecb74 --- /dev/null +++ b/Shared/IScene.cs @@ -0,0 +1,7 @@ +using System; + +namespace SemiColinGames { + public interface IScene : IDisposable { + void Draw(bool isRunningSlowly, IWorld iworld, bool paused); + } +} \ No newline at end of file diff --git a/Shared/Scene.cs b/Shared/Scene.cs index 39fec6c..02457ec 100644 --- a/Shared/Scene.cs +++ b/Shared/Scene.cs @@ -4,7 +4,7 @@ using Microsoft.Xna.Framework.Graphics; using System; namespace SemiColinGames { - public sealed class Scene : IDisposable { + public sealed class Scene : IScene { const float DESIRED_ASPECT_RATIO = 1920.0f / 1080.0f; Color backgroundColor = Color.CornflowerBlue; diff --git a/Shared/Shared.projitems b/Shared/Shared.projitems index 591a9ce..fe90ddf 100644 --- a/Shared/Shared.projitems +++ b/Shared/Shared.projitems @@ -12,6 +12,7 @@ + diff --git a/Shared/SneakGame.cs b/Shared/SneakGame.cs index c6b5b3d..2fe351a 100644 --- a/Shared/SneakGame.cs +++ b/Shared/SneakGame.cs @@ -21,7 +21,7 @@ namespace SemiColinGames { readonly Timer updateTimer = new Timer(TARGET_FRAME_TIME / 2.0, "UpdateTimer"); readonly Timer drawTimer = new Timer(TARGET_FRAME_TIME / 2.0, "DrawTimer"); - Scene scene; + IScene scene; IWorld world; public SneakGame() {