From 052b83bbf59720f99b1a7c4fc39698d9d8e4cfc3 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 26 Feb 2020 13:24:42 +0100 Subject: [PATCH] added instances to templates --- .../content/MLEM.Templates.DesktopGL.Core/GameImpl.cs | 6 ++++++ MLEM.Templates/content/MLEM.Templates.DesktopGL/GameImpl.cs | 6 ++++++ MLEM.Templates/content/MLEM.Templates.Portable/GameImpl.cs | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/GameImpl.cs b/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/GameImpl.cs index 79d6371..37f0786 100644 --- a/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/GameImpl.cs +++ b/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/GameImpl.cs @@ -3,5 +3,11 @@ using MLEM.Startup; namespace TemplateNamespace { public class GameImpl : MlemGame { + public static GameImpl Instance { get; private set; } + + public GameImpl() { + Instance = this; + } + } } \ No newline at end of file diff --git a/MLEM.Templates/content/MLEM.Templates.DesktopGL/GameImpl.cs b/MLEM.Templates/content/MLEM.Templates.DesktopGL/GameImpl.cs index 79d6371..37f0786 100644 --- a/MLEM.Templates/content/MLEM.Templates.DesktopGL/GameImpl.cs +++ b/MLEM.Templates/content/MLEM.Templates.DesktopGL/GameImpl.cs @@ -3,5 +3,11 @@ using MLEM.Startup; namespace TemplateNamespace { public class GameImpl : MlemGame { + public static GameImpl Instance { get; private set; } + + public GameImpl() { + Instance = this; + } + } } \ No newline at end of file diff --git a/MLEM.Templates/content/MLEM.Templates.Portable/GameImpl.cs b/MLEM.Templates/content/MLEM.Templates.Portable/GameImpl.cs index 79d6371..7d2d3a3 100644 --- a/MLEM.Templates/content/MLEM.Templates.Portable/GameImpl.cs +++ b/MLEM.Templates/content/MLEM.Templates.Portable/GameImpl.cs @@ -3,5 +3,11 @@ using MLEM.Startup; namespace TemplateNamespace { public class GameImpl : MlemGame { + public static GameImpl Instance { get; private set; } + + public GameImpl() { + Instance = this; + } + } } \ No newline at end of file