Program.cs 586 B

123456789101112131415161718192021222324252627
  1. using Foundation;
  2. using UIKit;
  3. namespace RolePlaying.iOS
  4. {
  5. [Register("AppDelegate")]
  6. public class AppDelegate : UIApplicationDelegate
  7. {
  8. private static RolePlaying.RolePlayingGame _game;
  9. internal static void RunGame()
  10. {
  11. _game = new RolePlayingGame();
  12. _game.Run();
  13. }
  14. public override void FinishedLaunching(UIApplication app)
  15. {
  16. RunGame();
  17. }
  18. public static void Main(string[] args)
  19. {
  20. UIApplication.Main(args, null, typeof(AppDelegate));
  21. }
  22. }
  23. }