2
0

Program.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #region Using Statements
  2. using System;
  3. #if IPHONE
  4. using MonoTouch.Foundation;
  5. using MonoTouch.UIKit;
  6. using Microsoft.Xna;
  7. using Microsoft.Xna.Framework.Media;
  8. #else
  9. #endif
  10. #endregion
  11. namespace GameStateManagement
  12. {
  13. #region Entry Point
  14. #if IPHONE
  15. [Register("AppDelegate")]
  16. class Program : UIApplicationDelegate
  17. {
  18. GameStateManagementGame game;
  19. public override void FinishedLaunching(UIApplication app)
  20. {
  21. // Fun begins..
  22. game = new GameStateManagementGame();
  23. game.Run();
  24. }
  25. /// <summary>
  26. /// The main entry point for the application.
  27. /// </summary>
  28. static void Main(string[] args)
  29. {
  30. UIApplication.Main(args, null, "AppDelegate");
  31. }
  32. }
  33. #else
  34. /// <summary>
  35. /// The main entry point for the application.
  36. /// </summary>
  37. static class Program
  38. {
  39. static void Main()
  40. {
  41. using (GameStateManagementGame game = new GameStateManagementGame())
  42. {
  43. game.Run();
  44. }
  45. }
  46. }
  47. #endif
  48. #endregion
  49. }