(ded4a3e0a) v0.9.0.7

This commit is contained in:
Joonas Rikkonen
2019-06-25 16:00:44 +03:00
parent e5ae622c77
commit 4a51db77b5
1777 changed files with 421528 additions and 917 deletions
@@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Template>
<TemplateConfiguration>
<_Name>Universal MonoGame Mobile Application (Shared Project) </_Name>
<Category>monogame/app/games</Category>
<Icon>monogame-project</Icon>
<LanguageName>C#</LanguageName>
<_Description>Creates a MonoGame Application for the iPhone/iPad and Android which uses a Shared Project to share common code.</_Description>
</TemplateConfiguration>
<Actions>
<Open filename = "Game1.cs"/>
</Actions>
<Combine name = "${ProjectName}" directory = ".">
<Options>
<StartupProject>${ProjectName}.Droid</StartupProject>
</Options>
<Project name = "${ProjectName}" directory = "." type = "PortableDotNet">
<Options Target = "Library" TargetFrameworkVersion = ".NETPortable,Version=v4.0,Profile=Profile158"/>
<Packages>
<Package id="MonoGame.Framework.PCL" version="3.2.99-Beta"/>
</Packages>
<Files>
<File name="Game1.cs" AddStandardHeader="True" src="Common/Game1.cs" />
</Files>
</Project>
<Project name = "${ProjectName}.iOS" directory = "./iOS" type = "XamarinIOS">
<Options />
<References>
<Reference type="Gac" refto="System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" />
<Reference type="Gac" refto="System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" />
<Reference type="Gac" refto="System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" />
<Reference type="Gac" refto="Xamarin.iOS" />
<Reference type="Project" refto="${ProjectName}"/>
<Reference type="Package" refto="MonoGame.Framework" />
</References>
<Files>
<File name="Main.cs" AddStandardHeader="True" src="Shared/Program.cs" />
<File name="Info.plist" AddStandardHeader="False" src="iOS/iOSInfo.plist" />
<RawFile name="Default.png" src="iOS/iOSDefault.png" />
<RawFile name="GameThumbnail.png" src="iOS/iOSGameThumbnail.png" />
<Directory name="Content">
<File name="Content.mgcb" src="Common/Content.mgcb" BuildAction="MonoGameContentReference"/>
</Directory>
<Directory name="Properties">
<File name="AssemblyInfo.cs" AddStandardHeader="True" src="Common/AssemblyInfo.cs" />
</Directory>
</Files>
</Project>
<Project name = "${ProjectName}.Droid" directory = "./Android" type = "MonoDroid">
<Options
AndroidApplication="true"
AndroidResgenFile="Resources/Resource.designer.cs"
AndroidResgenClass="Resource"
TargetFrameworkVersion="MonoAndroid,Version=v5.0" />
<References>
<Reference type="Gac" refto="System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" />
<Reference type="Gac" refto="System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" />
<Reference type="Gac" refto="System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" />
<Reference type="Gac" refto="Mono.Android" />
<Reference type="Gac" refto="OpenTK-1.0" />
<Reference type="Project" refto="${ProjectName}"/>
<Reference type="Package" refto="MonoGame.Framework" />
</References>
<Files>
<File name="Activity1.cs" src="Shared/Activity1.cs" />
<Directory name="Resources">
<File name="Resource.designer.cs" src="Android/Resource.cs" />
<RawFile name="AboutResources.txt" src="Android/AboutResources.txt" />
<Directory name="drawable">
<RawFile name="Icon.png" src="Common/Icon-md.png" />
<RawFile name="Splash.png" src="Android/Splash.png" />
</Directory>
<Directory name="values">
<RawFile name="Styles.xml" src="Android/Styles.xml" />
</Directory>
</Directory>
<Directory name="Properties">
<File name="AssemblyInfo.cs" src="Common/AssemblyInfo.cs" />
<File name="AndroidManifest.xml" src="Android/AndroidManifest.xml" />
</Directory>
<Directory name="Assets">
<RawFile name="AboutAssets.txt" src="Android/AboutAssets.txt" />
<Directory name="Content">
<File name="Content.mgcb" src="Common/Content.mgcb" BuildAction="MonoGameContentReference"/>
</Directory>
</Directory>
</Files>
</Project>
</Combine>
</Template>
@@ -0,0 +1,92 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Template>
<TemplateConfiguration>
<_Name>Universal MonoGame Mobile Application (Shared Project) </_Name>
<Category>monogame/app/games</Category>
<Icon>monogame-project</Icon>
<LanguageName>C#</LanguageName>
<_Description>Creates a MonoGame Application for the iPhone/iPad and Android which uses a Shared Project to share common code.</_Description>
</TemplateConfiguration>
<Actions>
<Open filename = "Game1.cs"/>
</Actions>
<Combine name = "${ProjectName}" directory = ".">
<Options>
<StartupProject>${ProjectName}.Droid</StartupProject>
</Options>
<Project name = "${ProjectName}" directory = "." type = "SharedAssetsProject">
<Files>
<File name="Game1.cs" src="Common/Game1.cs" />
</Files>
</Project>
<Project name = "${ProjectName}.iOS" directory = "./iOS" type = "XamarinIOS">
<Options />
<References>
<Reference type="Gac" refto="System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" />
<Reference type="Gac" refto="System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" />
<Reference type="Gac" refto="System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" />
<Reference type="Gac" refto="Xamarin.iOS" />
<Reference type="Project" refto="${ProjectName}"/>
<Reference type="Package" refto="MonoGame.Framework" />
</References>
<Files>
<File name="Main.cs" AddStandardHeader="True" src="Shared/Program.cs" />
<File name="Info.plist" AddStandardHeader="False" src="iOS/iOSInfo.plist" />
<RawFile name="Default.png" src="iOS/iOSDefault.png" />
<RawFile name="GameThumbnail.png" src="iOS/iOSGameThumbnail.png" />
<Directory name="Content">
<File name="Content.mgcb" src="Common/Content.mgcb" BuildAction="MonoGameContentReference"/>
</Directory>
<Directory name="Properties">
<File name="AssemblyInfo.cs" AddStandardHeader="True" src="Common/AssemblyInfo.cs" />
</Directory>
</Files>
</Project>
<Project name = "${ProjectName}.Droid" directory = "./Android" type = "MonoDroid">
<Options
AndroidApplication="true"
AndroidResgenFile="Resources/Resource.designer.cs"
AndroidResgenClass="Resource"
TargetFrameworkVersion="MonoAndroid,Version=v5.0" />
<References>
<Reference type="Gac" refto="System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" />
<Reference type="Gac" refto="System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" />
<Reference type="Gac" refto="System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" />
<Reference type="Gac" refto="Mono.Android" />
<Reference type="Gac" refto="OpenTK-1.0" />
<Reference type="Project" refto="${ProjectName}"/>
<Reference type="Package" refto="MonoGame.Framework" />
</References>
<Files>
<File name="Activity1.cs" src="Shared/Activity1.cs" />
<Directory name="Resources">
<File name="Resource.designer.cs" src="Android/Resource.cs" />
<RawFile name="AboutResources.txt" src="Android/AboutResources.txt" />
<Directory name="drawable">
<RawFile name="Icon.png" src="Common/Icon-md.png" />
<RawFile name="Splash.png" src="Android/Splash.png" />
</Directory>
<Directory name="values">
<RawFile name="Styles.xml" src="Android/Styles.xml" />
</Directory>
</Directory>
<Directory name="Properties">
<File name="AssemblyInfo.cs" src="Common/AssemblyInfo.cs" />
<File name="AndroidManifest.xml" src="Android/AndroidManifest.xml" />
</Directory>
<Directory name="Assets">
<RawFile name="AboutAssets.txt" src="Android/AboutAssets.txt" />
<Directory name="Content">
<File name="Content.mgcb" src="Common/Content.mgcb" BuildAction="MonoGameContentReference"/>
</Directory>
</Directory>
</Files>
</Project>
</Combine>
</Template>
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Template>
<TemplateConfiguration>
<_Name>MonoGame iPhone/iPad Application</_Name>
<Category>monogame/app/games</Category>
<Icon>monogame-project</Icon>
<LanguageName>C#</LanguageName>
<_Description>Creates a MonoGame Application for the iPhone/iPad</_Description>
</TemplateConfiguration>
<Actions>
<Open filename = "Game1.cs"/>
</Actions>
<Combine name = "${ProjectName}" directory = ".">
<Options>
<StartupProject>${ProjectName}</StartupProject>
</Options>
<Project name = "${ProjectName}" directory = "." type = "XamarinIOS">
<Options />
<References>
<Reference type="Gac" refto="System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" />
<Reference type="Gac" refto="System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" />
<Reference type="Gac" refto="System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" />
<Reference type="Gac" refto="Xamarin.iOS" />
<Reference type="Package" refto="MonoGame.Framework" />
</References>
<Files>
<File name="Game1.cs" AddStandardHeader="True" src="Common/Game1.cs" />
<File name="Main.cs" AddStandardHeader="True" src="Common/Program.cs" />
<File name="Entitlements.plist" AddStandardHeader="False" src="iOS/Entitlements.plist.xml" />
<File name="Info.plist" AddStandardHeader="False" src="iOS/iOSInfo.plist" />
<RawFile name="Default.png" src="iOS/iOSDefault.png" />
<RawFile name="GameThumbnail.png" src="iOS/iOSGameThumbnail.png" />
<Directory name="Content">
<File name="Content.mgcb" src="Common/Content.mgcb" BuildAction="MonoGameContentReference"/>
</Directory>
<Directory name="Properties">
<File name="AssemblyInfo.cs" AddStandardHeader="True" src="Common/AssemblyInfo.cs" />
</Directory>
</Files>
</Project>
</Combine>
</Template>
@@ -0,0 +1,44 @@
<?xml version="1.0"?>
<Template>
<TemplateConfiguration>
<_Name>MonoGame tvOS Application</_Name>
<Category>monogame/app/games</Category>
<Icon>monogame-project</Icon>
<LanguageName>C#</LanguageName>
<Wizard>MonoDevelop.IPhone.TVOSProjectTemplateWizard</Wizard>
<DefaultParameters>MinimumOSVersion=9.0</DefaultParameters>
<_Description>Creates a MonoGame Application for tvOS</_Description>
</TemplateConfiguration>
<Actions>
<Open filename="Game1.cs" />
</Actions>
<Combine name="${ProjectName}" directory=".">
<Options>
<StartupProject>${ProjectName}</StartupProject>
</Options>
<Project name="${ProjectName}" directory="." type="TVOS">
<References>
<Reference type="Gac" refto="System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" />
<Reference type="Gac" refto="System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" />
<Reference type="Gac" refto="System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" />
<Reference type="Gac" refto="Xamarin.TVOS" />
<Reference type="Package" refto="MonoGame.Framework" />
</References>
<Files>
<File name="Info.plist" AddStandardHeader="False" src="iOS/Info_tvOS.plist.xml" />
<File name="Entitlements.plist" AddStandardHeader="False" src="iOS/Entitlements.plist.xml" />
<File name="Game1.cs" AddStandardHeader="True" src="Common/Game1.cs" />
<File name="Main.cs" AddStandardHeader="True" src="Common/Program.cs" />
<RawFile name="Default.png" src="iOS/iOSDefault.png" />
<RawFile name="GameThumbnail.png" src="iOS/iOSGameThumbnail.png" />
<Directory name="Content">
<File name="Content.mgcb" src="Common/Content.mgcb" BuildAction="MonoGameContentReference"/>
</Directory>
<Directory name="Properties">
<File name="AssemblyInfo.cs" AddStandardHeader="True" src="Common/AssemblyInfo.cs" />
</Directory>
</Files>
</Project>
</Combine>
</Template>
@@ -0,0 +1,39 @@
using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Content.PM;
using Android.Views;
using Android.Widget;
using Android.OS;
using Microsoft.Xna.Framework;
namespace ${Namespace}
{
[Activity (Label = "${ProjectName}",
MainLauncher = true,
Icon = "@drawable/icon",
Theme = "@style/Theme.Splash",
AlwaysRetainTaskState=true,
LaunchMode=LaunchMode.SingleInstance,
ConfigurationChanges = ConfigChanges.Orientation |
ConfigChanges.KeyboardHidden |
ConfigChanges.Keyboard)]
public class Activity1 : AndroidGameActivity
{
protected override void OnCreate (Bundle bundle)
{
base.OnCreate (bundle);
// Create our OpenGL view, and display it
Game1.Activity = this;
var g = new Game1();
SetContentView (g.Window);
g.Run();
}
}
}
@@ -0,0 +1,82 @@
#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
#if MONOMAC
using MonoMac.AppKit;
using MonoMac.Foundation;
#elif __IOS__ || __TVOS__
using Foundation;
using UIKit;
#endif
#endregion
namespace ${Namespace}
{
#if __IOS__ || __TVOS__
[Register("AppDelegate")]
class Program : UIApplicationDelegate
#else
static class Program
#endif
{
private static Game1 game;
internal static void RunGame()
{
game = new Game1();
game.Run();
}
/// <summary>
/// The main entry point for the application.
/// </summary>
#if !MONOMAC && !__IOS__ && !__TVOS__
[STAThread]
#endif
static void Main(string[] args)
{
#if MONOMAC
NSApplication.Init ();
using (var p = new NSAutoreleasePool ()) {
NSApplication.SharedApplication.Delegate = new AppDelegate();
NSApplication.Main(args);
}
#elif __IOS__ || __TVOS__
UIApplication.Main(args, null, "AppDelegate");
#else
RunGame();
#endif
}
#if __IOS__ || __TVOS__
public override void FinishedLaunching(UIApplication app)
{
RunGame();
}
#endif
}
#if MONOMAC
class AppDelegate : NSApplicationDelegate
{
public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
{
AppDomain.CurrentDomain.AssemblyResolve += (object sender, ResolveEventArgs a) => {
if (a.Name.StartsWith("MonoMac")) {
return typeof(MonoMac.AppKit.AppKitFramework).Assembly;
}
return null;
};
Program.RunGame();
}
public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)
{
return true;
}
}
#endif
}
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
</dict>
</plist>
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDisplayName</key>
<string>${AppName}</string>
<key>CFBundleName</key>
<string>${AppName}</string>
<key>CFBundleIdentifier</key>
<string>${AppIdentifier}</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>${MinimumOSVersion}</string>
<key>UIDeviceFamily</key>
<array>
<integer>3</integer>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>XSAppIconAssets</key>
<string>Resources/Images.xcassets/AppIcons.appiconset</string>
</dict>
</plist>
Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDisplayName</key>
<string>${Namespace}</string>
<key>CFBundleIconFiles</key>
<array>
<string>GameThumbnail.png</string>
</array>
<key>CFBundleIdentifier</key>
<string>project.MonoGame.${Namespace}</string>
<key>MinimumOSVersion</key>
<string>7.0</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>