(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

View File

@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{B2150BB5-02A0-4CD7-A61F-C17C09045D1D}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>MonoDevelop.MonoGame.iOS</RootNamespace>
<AssemblyName>MonoDevelop.MonoGame.iOS</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\bin\Debug</OutputPath>
<DefineConstants>DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>full</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<ProjectReference Include="..\MonoDevelop.MonoGame.Core\MonoDevelop.MonoGame.Core.csproj">
<Project>{3FE5AAE8-BE24-4FC3-AF86-2AA3C3CD8DB4}</Project>
<Name>MonoDevelop.MonoGame.Core</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="templates\" />
<Folder Include="templates\iOS\" />
<Folder Include="templates\Shared\" />
</ItemGroup>
<ItemGroup>
<Content Include="templates\iOS\iOSInfo.plist">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="templates\iOS\iOSDefault.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="templates\iOS\iOSGameThumbnail.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="templates\MonoGameiOSProject.xpt.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="templates\MonoGameMobileOnly-SAP.xpt.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="templates\Shared\Activity1.cs">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="templates\Shared\Program.cs">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="templates\MonoGameMobileOnly-PCL.xpt.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="templates\MonoGametvOSProject.xpt.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="templates\iOS\Entitlements.plist.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="templates\iOS\Info_tvOS.plist.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>

View File

@@ -0,0 +1,22 @@
using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle ("MonoDevelop.MonoGame.iOS")]
[assembly: AssemblyDescription ("")]
[assembly: AssemblyConfiguration ("")]
[assembly: AssemblyCompany ("")]
[assembly: AssemblyProduct ("")]
[assembly: AssemblyCopyright ("MonoGame Team")]
[assembly: AssemblyTrademark ("")]
[assembly: AssemblyCulture ("")]
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
[assembly: AssemblyVersion ("1.0.*")]
// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
//[assembly: AssemblyDelaySign(false)]
//[assembly: AssemblyKeyFile("")]

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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();
}
}
}

View File

@@ -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
}

View File

@@ -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>

View File

@@ -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

View File

@@ -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>