From 80f3711f4c8cb27f8d78c42edf1b5e77cfece9b3 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Thu, 16 Mar 2023 16:48:52 -0700 Subject: [PATCH] add Quit method to Game --- src/Game.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Game.cs b/src/Game.cs index 56b2cf9a..c53685f8 100644 --- a/src/Game.cs +++ b/src/Game.cs @@ -109,6 +109,11 @@ namespace MoonWorks } } + public void Quit() + { + quit = true; + } + protected abstract void Update(TimeSpan delta); protected abstract void Draw(double alpha); protected virtual void Destroy() {}