diff --git a/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/.template.config/dotnetcli.host.json b/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/.template.config/dotnetcli.host.json new file mode 100644 index 0000000..7a73a41 --- /dev/null +++ b/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/.template.config/dotnetcli.host.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/.template.config/template.json b/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/.template.config/template.json new file mode 100644 index 0000000..b568210 --- /dev/null +++ b/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/.template.config/template.json @@ -0,0 +1,20 @@ +{ + "$schema": "http://json.schemastore.org/template", + "author": "Ellpeck", + "classifications": ["MLEM", "MonoGame"], + "groupIdentity": "MLEM.Templates.DesktopGL.Core", + "identity": "MLEM.Templates.DesktopGL.Core", + "name": "MLEM DesktopGL Core", + "shortName": "mlemdesktopglcore", + "sourceName": "TemplateNamespace", + "preferNameDirectory": true, + "tags": { + "language": "C#", + "type": "project" + }, + "primaryOutputs": [ + { + "path": "TemplateNamespace.csproj" + } + ] +} \ No newline at end of file diff --git a/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/Content/Content.mgcb b/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/Content/Content.mgcb new file mode 100644 index 0000000..3770c5a --- /dev/null +++ b/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/Content/Content.mgcb @@ -0,0 +1,15 @@ + +#----------------------------- Global Properties ----------------------------# + +/outputDir:bin +/intermediateDir:obj +/platform:Windows +/config: +/profile:Reach +/compress:False + +#-------------------------------- References --------------------------------# + + +#---------------------------------- Content ---------------------------------# + diff --git a/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/GameImpl.cs b/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/GameImpl.cs new file mode 100644 index 0000000..79d6371 --- /dev/null +++ b/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/GameImpl.cs @@ -0,0 +1,7 @@ +using MLEM.Startup; + +namespace TemplateNamespace { + public class GameImpl : MlemGame { + + } +} \ No newline at end of file diff --git a/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/Program.cs b/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/Program.cs new file mode 100644 index 0000000..bd48aeb --- /dev/null +++ b/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/Program.cs @@ -0,0 +1,14 @@ +using Microsoft.Xna.Framework; +using MLEM.Misc; + +namespace TemplateNamespace { + public static class Program { + + public static void Main() { + TextInputWrapper.Current = new TextInputWrapper.DesktopGl((w, c) => w.TextInput += c); + using var game = new GameImpl(); + game.Run(); + } + + } +} \ No newline at end of file diff --git a/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/TemplateNamespace.csproj b/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/TemplateNamespace.csproj new file mode 100644 index 0000000..5ad5a5f --- /dev/null +++ b/MLEM.Templates/content/MLEM.Templates.DesktopGL.Core/TemplateNamespace.csproj @@ -0,0 +1,20 @@ + + + + Exe + netcoreapp3.0 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MLEM/Misc/TextInputWrapper.cs b/MLEM/Misc/TextInputWrapper.cs index f8f61c8..7ec8449 100644 --- a/MLEM/Misc/TextInputWrapper.cs +++ b/MLEM/Misc/TextInputWrapper.cs @@ -29,7 +29,7 @@ namespace MLEM.Misc { public delegate void TextInputCallback(object sender, Keys key, char character); - public class DesktopGl : TextInputWrapper where T : EventArgs { + public class DesktopGl : TextInputWrapper { private PropertyInfo key; private PropertyInfo character;