diff options
| author | Ben Beltran <ben@nsovocal.com> | 2018-06-26 17:05:22 -0500 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2018-06-26 17:05:22 -0500 |
| commit | 8ae8ea0d77ec654dd693b3912562b07a2b539b0f (patch) | |
| tree | b11ab323cc232871889853d9ab24e246fba4b516 /SuperPolarityMac | |
| parent | 9ad526c0233134a928cb5889dccb94458fc6dfd0 (diff) | |
Update project to work on VS Code mac
Diffstat (limited to 'SuperPolarityMac')
| -rw-r--r-- | SuperPolarityMac/Info.plist | 11 | ||||
| -rw-r--r-- | SuperPolarityMac/Program.cs | 17 | ||||
| -rw-r--r-- | SuperPolarityMac/SuperPolarityMac.csproj | 60 | ||||
| -rw-r--r-- | SuperPolarityMac/SuperPolarityMac.userprefs | 11 |
4 files changed, 51 insertions, 48 deletions
diff --git a/SuperPolarityMac/Info.plist b/SuperPolarityMac/Info.plist index 07a58c3..54844a3 100644 --- a/SuperPolarityMac/Info.plist +++ b/SuperPolarityMac/Info.plist @@ -2,16 +2,17 @@ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> - <key>CFBundleIdentifier</key> - <string>com.yourcompany.MonoGame.Samples.Draw2D.MacOS</string> <key>CFBundleName</key> - <string>MonoGame.Samples.Draw2D.MacOS</string> + <string>PetitCochon.SuperPolarity.MacOS</string> <key>CFBundleVersion</key> <string>1</string> <key>LSMinimumSystemVersion</key> - <string>10.6</string> + <string>10.13</string> <key>NSPrincipalClass</key> <string>NSApplication</string> + <key>CFBundleIdentifier</key> + <string>co.petitcochon.super-polarity</string> + <key>CFBundleShortVersionString</key> + <string>0.0.1</string> </dict> </plist> - diff --git a/SuperPolarityMac/Program.cs b/SuperPolarityMac/Program.cs index e6ab5cf..5c7bbbc 100644 --- a/SuperPolarityMac/Program.cs +++ b/SuperPolarityMac/Program.cs @@ -1,11 +1,9 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using MonoMac.AppKit; -using MonoMac.Foundation; +using AppKit; +using Foundation; namespace SuperPolarity { + [Register ("AppDelegate")] static class Program { /// <summary> @@ -28,15 +26,18 @@ namespace SuperPolarity { SuperPolarity superPolarity; - public override void FinishedLaunching (MonoMac.Foundation.NSObject notification) + public AppDelegate () + { + } + + public override void DidFinishLaunching (NSNotification notification) { superPolarity = new SuperPolarity(); superPolarity.Run (); } - public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender) + public override void WillTerminate (NSNotification notification) { - return true; } } } diff --git a/SuperPolarityMac/SuperPolarityMac.csproj b/SuperPolarityMac/SuperPolarityMac.csproj index 740745a..689b1a7 100644 --- a/SuperPolarityMac/SuperPolarityMac.csproj +++ b/SuperPolarityMac/SuperPolarityMac.csproj @@ -6,12 +6,13 @@ <ProductVersion>10.0.0</ProductVersion> <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{EE77A85A-089B-4055-90D0-6E08DF409410}</ProjectGuid> - <ProjectTypeGuids>{948B3504-5B70-4649-8FE4-BDE1FB46EC69};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> + <ProjectTypeGuids>{A3F8F2AB-B479-4A4A-A458-A89E7DC349F1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <OutputType>Exe</OutputType> <RootNamespace>SuperPolarityMac</RootNamespace> <MonoMacResourcePrefix>Resources</MonoMacResourcePrefix> <AssemblyName>SuperPolarityMac</AssemblyName> - <SuppressXamMacUpsell>True</SuppressXamMacUpsell> + <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> + <TargetFrameworkIdentifier>Xamarin.Mac</TargetFrameworkIdentifier> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> @@ -27,6 +28,8 @@ <CodeSigningKey>Mac Developer</CodeSigningKey> <EnableCodeSigning>false</EnableCodeSigning> <CreatePackage>false</CreatePackage> + <AOTMode>None</AOTMode> + <PackageSigningKey>3rd Party Mac Developer Installer</PackageSigningKey> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>full</DebugType> @@ -34,13 +37,14 @@ <OutputPath>bin\Release</OutputPath> <WarningLevel>4</WarningLevel> <ConsolePause>false</ConsolePause> - <LinkMode>Full</LinkMode> + <LinkMode>None</LinkMode> <UseSGen>false</UseSGen> <IncludeMonoRuntime>true</IncludeMonoRuntime> <EnablePackageSigning>false</EnablePackageSigning> <CodeSigningKey>Developer ID Application</CodeSigningKey> <EnableCodeSigning>true</EnableCodeSigning> <CreatePackage>true</CreatePackage> + <AOTMode>None</AOTMode> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'AppStore|AnyCPU' "> <DebugType>full</DebugType> @@ -48,7 +52,7 @@ <OutputPath>bin\AppStore</OutputPath> <WarningLevel>4</WarningLevel> <ConsolePause>false</ConsolePause> - <LinkMode>Full</LinkMode> + <LinkMode>None</LinkMode> <UseSGen>false</UseSGen> <IncludeMonoRuntime>true</IncludeMonoRuntime> <PackageSigningKey>3rd Party Mac Developer Installer</PackageSigningKey> @@ -56,28 +60,24 @@ <CodeSigningKey>3rd Party Mac Developer Application</CodeSigningKey> <EnableCodeSigning>true</EnableCodeSigning> <EnablePackageSigning>true</EnablePackageSigning> + <AOTMode>None</AOTMode> </PropertyGroup> <ItemGroup> <Reference Include="System" /> <Reference Include="System.Xml" /> <Reference Include="System.Core" /> <Reference Include="System.Xml.Linq" /> - <Reference Include="System.Drawing" /> - <Reference Include="Lidgren.Network"> - <HintPath>..\SuperPolarity\Vendor\osx\Lidgren.Network.dll</HintPath> - </Reference> <Reference Include="MonoGame.Framework"> - <HintPath>..\SuperPolarity\Vendor\osx\MonoGame.Framework.dll</HintPath> + <HintPath>..\..\..\..\..\..\Library\Frameworks\MonoGame.framework\v3.7.0.1508\Assemblies\MacOSX\MonoGame.Framework.dll</HintPath> </Reference> - <Reference Include="MonoMac"> - <HintPath>..\SuperPolarity\Vendor\osx\MonoMac.dll</HintPath> + <Reference Include="MonoGame.Framework.Net"> + <HintPath>..\..\..\..\..\..\Library\Frameworks\MonoGame.framework\v3.7.0.1508\Assemblies\MacOSX\MonoGame.Framework.Net.dll</HintPath> </Reference> - <Reference Include="Tao.Sdl"> - <HintPath>..\SuperPolarity\Vendor\osx\Tao.Sdl.dll</HintPath> + <Reference Include="Xamarin.Mac" /> + <Reference Include="Lidgren.Network"> + <HintPath>..\..\..\..\..\..\Library\Frameworks\MonoGame.framework\v3.7.0.1508\Assemblies\MacOSX\Lidgren.Network.dll</HintPath> </Reference> </ItemGroup> - <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> - <Import Project="$(MSBuildExtensionsPath)\Mono\MonoMac\v0.0\Mono.MonoMac.targets" /> <ItemGroup> <Compile Include="..\SuperPolarity\ActorFactory.cs"> <Link>ActorFactory.cs</Link> @@ -190,21 +190,7 @@ <None Include="..\SuperPolarity\scores.txt"> <Link>scores.txt</Link> </None> - <None Include="..\SuperPolarity\Vendor\Lidgren.Network.dll"> - <Link>Vendor\Lidgren.Network.dll</Link> - </None> - <None Include="..\SuperPolarity\Vendor\MonoGame.Framework.dll"> - <Link>Vendor\MonoGame.Framework.dll</Link> - </None> - <None Include="..\SuperPolarity\Vendor\MonoMac.dll"> - <Link>Vendor\MonoMac.dll</Link> - </None> - <None Include="..\SuperPolarity\Vendor\Tao.Sdl.dll"> - <Link>Vendor\Tao.Sdl.dll</Link> - </None> - <None Include="..\SuperPolarity\Vendor\Tao.Sdl.dll.config"> - <Link>Vendor\Tao.Sdl.dll.config</Link> - </None> + <None Include="Info.plist" /> </ItemGroup> <ItemGroup> <Folder Include="Actors\" /> @@ -290,7 +276,6 @@ <BundleResource Include="..\SuperPolarity\Content\Fonts\smallfont.xnb"> <Link>Content\Fonts\smallfont.xnb</Link> </BundleResource> - <BundleResource Include="Info.plist" /> <BundleResource Include="..\SuperPolarity\Content\Sound\bomb.xnb"> <Link>Content\Sound\bomb.xnb</Link> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> @@ -320,4 +305,15 @@ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </BundleResource> </ItemGroup> -</Project>
\ No newline at end of file + <ItemGroup> + <NativeReference Include="..\..\..\..\..\..\Library\Frameworks\MonoGame.framework\v3.7.0.1508\Assemblies\MacOSX\libopenal.1.dylib"> + <Kind>Dynamic</Kind> + <SmartLink>False</SmartLink> + </NativeReference> + <NativeReference Include="..\..\..\..\..\..\Library\Frameworks\MonoGame.framework\v3.7.0.1508\Assemblies\MacOSX\libSDL2-2.0.0.dylib"> + <Kind>Dynamic</Kind> + <SmartLink>False</SmartLink> + </NativeReference> + </ItemGroup> + <Import Project="$(MSBuildExtensionsPath)\Xamarin\Mac\Xamarin.Mac.CSharp.targets" /> +</Project> diff --git a/SuperPolarityMac/SuperPolarityMac.userprefs b/SuperPolarityMac/SuperPolarityMac.userprefs index e2d5d0c..73cd641 100644 --- a/SuperPolarityMac/SuperPolarityMac.userprefs +++ b/SuperPolarityMac/SuperPolarityMac.userprefs @@ -1,4 +1,4 @@ -<Properties MonoDevelop.MonoMac.LastXamMacNagTime="5/31/2014 6:13:47 PM"> +<Properties MonoDevelop.MonoMac.LastXamMacNagTime="3/14/2015 11:07:50 PM"> <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" /> <MonoDevelop.Ide.Workbench ActiveDocument="../SuperPolarity/SuperPolarity.cs"> <Files> @@ -7,9 +7,14 @@ <File FileName="../SuperPolarity/Actors/Bullet.cs" Line="1" Column="1" /> <File FileName="../SuperPolarity/Actors/Ship.cs" Line="1" Column="1" /> <File FileName="../SuperPolarity/ActorManager.cs" Line="1" Column="1" /> - <File FileName="../SuperPolarity/Actors/MainShip.cs" Line="1" Column="1" /> + <File FileName="../SuperPolarity/Actors/MainShip.cs" Line="112" Column="47" /> <File FileName="../SuperPolarity/Actors/Generators/Generator.cs" Line="1" Column="1" /> - <File FileName="../SuperPolarity/SuperPolarity.cs" Line="1" Column="1" /> + <File FileName="../SuperPolarity/SuperPolarity.cs" Line="45" Column="6" /> + <File FileName="../SuperPolarity/Player.cs" Line="1" Column="1" /> + <File FileName="../SuperPolarity/InputController.cs" Line="56" Column="39" /> + <File FileName="../SuperPolarity/GameScreen.cs" Line="41" Column="70" /> + <File FileName="../SuperPolarity/ScreenManager.cs" Line="21" Column="10" /> + <File FileName="Program.cs" Line="1" Column="1" /> </Files> </MonoDevelop.Ide.Workbench> <MonoDevelop.Ide.DebuggingService.Breakpoints> |