mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-15 03:20:30 +00:00
Roll our own iOS application delegates
This commit is contained in:
15
SampleGame.iOS/AppDelegate.cs
Normal file
15
SampleGame.iOS/AppDelegate.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
@@ -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
7
SampleGame.iOS/Main.cs
Normal 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));
|
||||
Reference in New Issue
Block a user