using Foundation; using UIKit; namespace Shooter.iOS { [Register("AppDelegate")] internal class AppDelegate : UIApplicationDelegate { private static ShooterGame _game; /// /// Initializes and starts the game by creating an instance of the /// Game class and invoking its Run method. /// internal static void RunGame() { _game = new ShooterGame(); _game.Run(); } /// /// Called when the application has finished launching. /// This method starts the game by calling RunGame. /// /// The UIApplication instance representing the application. public override void FinishedLaunching(UIApplication app) { RunGame(); } /// /// The main entry point for the application. /// This sets up the application and specifies the UIApplicationDelegate /// class to handle application lifecycle events. /// /// Command-line arguments passed to the application. static void Main(string[] args) { UIApplication.Main(args, null, typeof(AppDelegate)); } } }