Files
LuaCsForBarotraumaEP/Libraries/MonoGame.Framework/Src/ProjectTemplates/VisualStudio2010/Android/Activity1.cs
2019-06-25 16:00:44 +03:00

28 lines
914 B
C#

using Android.App;
using Android.Content.PM;
using Android.OS;
using Android.Views;
namespace $safeprojectname$
{
[Activity(Label = "$projectname$"
, MainLauncher = true
, Icon = "@drawable/icon"
, Theme = "@style/Theme.Splash"
, AlwaysRetainTaskState=true
, LaunchMode=Android.Content.PM.LaunchMode.SingleInstance
, ScreenOrientation = ScreenOrientation.FullUser
, ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden | ConfigChanges.ScreenSize | ConfigChanges.ScreenLayout)]
public class Activity1 : Microsoft.Xna.Framework.AndroidGameActivity
{
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
var g = new Game1();
SetContentView((View)g.Services.GetService(typeof(View)));
g.Run();
}
}
}