Example #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main()
 {
     using (var game = new WindowsGame.Common.AnGame())
     {
         game.Run();
     }
 }
Example #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            var g = new WindowsGame.Common.AnGame();

            View view = (View)g.Services.GetService(typeof(View));

#if !DEBUG
            if (Android.OS.Build.VERSION.SdkInt >= Android.OS.BuildVersionCodes.Kitkat)
            {
                view.SystemUiVisibility = (StatusBarVisibility)(SystemUiFlags.LayoutStable | SystemUiFlags.LayoutHideNavigation | SystemUiFlags.LayoutFullscreen | SystemUiFlags.HideNavigation | SystemUiFlags.Fullscreen | SystemUiFlags.ImmersiveSticky);
            }
#endif
            SetContentView(view);
            g.Run();
        }
Example #3
0
 internal void RunGame()
 {
     game = new WindowsGame.Common.AnGame();
     game.Run();
 }