12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #region File Description
- //-----------------------------------------------------------------------------
- // Program.cs
- //
- // Microsoft XNA Community Game Platform
- // Copyright (C) Microsoft Corporation. All rights reserved.
- //-----------------------------------------------------------------------------
- #endregion
- using System;
- #if IPHONE
- using MonoTouch.Foundation;
- using MonoTouch.UIKit;
- #endif
- using Microsoft.Xna.Framework;
-
- namespace Platformer
- {
- #if IPHONE
- [Register ("AppDelegate")]
- class Program : MonoGameProgram
- {
- public override bool FinishedLaunching (UIApplication app, NSDictionary options)
- {
- // Fun begins..
- MonoGameGame = new PlatformerGame();
- MonoGameGame.Run();
-
- return true;
- }
-
- static void Main (string [] args)
- {
- UIApplication.Main (args,null,"AppDelegate");
- }
- }
- #else
- static class Program
- {
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- static void Main(string[] args)
- {
- using (PlatformerGame game = new PlatformerGame())
- {
- game.Run();
- }
- }
- }
- #endif
- }
|