diff options
| author | Ben Beltran <ben@nsovocal.com> | 2014-02-03 09:55:31 -0600 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2014-02-03 09:55:31 -0600 |
| commit | 0cafec445af0a97d96feb1a1daefa1486142c73f (patch) | |
| tree | 818df31eec1895518ad805219b79bc63f9f616aa /SuperPolarityMac/Main.cs | |
| parent | 830829dec0596760d0cba38d959ab2646112f61b (diff) | |
Removes old stuff, adds mac proj
Diffstat (limited to 'SuperPolarityMac/Main.cs')
| -rw-r--r-- | SuperPolarityMac/Main.cs | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/SuperPolarityMac/Main.cs b/SuperPolarityMac/Main.cs new file mode 100644 index 0000000..f21bf0b --- /dev/null +++ b/SuperPolarityMac/Main.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using MonoMac.AppKit; +using MonoMac.Foundation; + +namespace SuperPolarityMac +{ + static class Program + { + /// <summary> + /// The main entry point for the application. + /// </summary> + static void Main (string[] args) + { + NSApplication.Init (); + + using (var p = new NSAutoreleasePool ()) { + NSApplication.SharedApplication.Delegate = new AppDelegate (); + NSApplication.Main (args); + } + + + } + } + + class AppDelegate : NSApplicationDelegate + { + Game1 game; + + public override void FinishedLaunching (MonoMac.Foundation.NSObject notification) + { + game = new Game1 (); + game.Run (); + } + + public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender) + { + return true; + } + } +} + + |