#region File Description
//-----------------------------------------------------------------------------
// Program.cs
//
// Microsoft XNA Community Game Platform
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
#endregion
#region Using Statements
using System;
#endregion
namespace HoneycombRush
{
#if WINDOWSS || XBOX
static class Program
{
///
/// The main entry point for the application.
///
static void Main(string[] args)
{
using (HoneycombRush game = new HoneycombRush())
{
game.Run();
}
}
}
#elif MONOMAC
static class Program
{
///
/// The main entry point for the application.
///
static void Main (string[] args)
{
MonoMac.AppKit.NSApplication.Init ();
using (var p = new MonoMac.Foundation.NSAutoreleasePool ()) {
MonoMac.AppKit.NSApplication.SharedApplication.Delegate = new AppDelegate();
MonoMac.AppKit.NSApplication.Main(args);
}
}
}
class AppDelegate : MonoMac.AppKit.NSApplicationDelegate
{
HoneycombRush game;
public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
{
game = new HoneycombRush();
game.Run();
}
public override bool ApplicationShouldTerminateAfterLastWindowClosed (MonoMac.AppKit.NSApplication sender)
{
return true;
}
}
#endif
}