Roll our own iOS application delegates

This commit is contained in:
Salman Alshamrani
2024-12-11 03:19:08 -05:00
parent f5900ab07a
commit f21100ddd7
7 changed files with 73 additions and 48 deletions

View File

@@ -0,0 +1,15 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using Foundation;
using osu.Framework;
using osu.Framework.iOS;
namespace SampleGame.iOS
{
[Register("AppDelegate")]
public class AppDelegate : GameApplicationDelegate
{
protected override Game CreateGame() => new SampleGameGame();
}
}

View File

@@ -1,13 +0,0 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.iOS;
namespace SampleGame.iOS
{
public static class Application
{
// This is the main entry point of the application.
public static void Main(string[] args) => GameApplication.Main(new SampleGameGame());
}
}

7
SampleGame.iOS/Main.cs Normal file
View File

@@ -0,0 +1,7 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using SampleGame.iOS;
using UIKit;
UIApplication.Main(args, null, typeof(AppDelegate));