Skip to content

Instantly share code, notes, and snippets.

View tomspilman's full-sized avatar
💭
I will be slow to respond.

Tom Spilman tomspilman

💭
I will be slow to respond.
View GitHub Profile
/// <summary>
/// Writes a single object preceded by a type identifier to the output binary.
/// </summary>
/// <typeparam name="T">The type of value.</typeparam>
/// <param name="value">The value to write.</param>
/// <remarks>This method can be called recursively with a null value.</remarks>
public void WriteObject<T>(T value)
{
if (value == null)
Write7BitEncodedInt(0);
<ItemGroup>
- <EmbeddedResource Include="Graphics\Effect\Resources\AlphaTestEffect.dx11.mgfxo" />
- <EmbeddedResource Include="Graphics\Effect\Resources\BasicEffect.dx11.mgfxo" />
- <EmbeddedResource Include="Graphics\Effect\Resources\SpriteEffect.dx11.mgfxo" />
- <EmbeddedResource Include="Graphics\Effect\Resources\DualTextureEffect.dx11.mgfxo" />
- <EmbeddedResource Include="Graphics\Effect\Resources\EnvironmentMapEffect.dx11.mgfxo" />
- <EmbeddedResource Include="Graphics\Effect\Resources\SkinnedEffect.dx11.mgfxo" />
+ <EmbeddedResource Include="Graphics\Effect\Resources\AlphaTestEffect.dx11.mgfxo">
+ <Platforms>Windows,Windows8,WindowsPhone</Platforms>
+ </EmbeddedResource>
<Project Name="MonoGame.Framework" Path="MonoGame.Framework" Type="Library" Platforms="Android,iOS,Linux,MacOS,Ouya,PSMobile,Windows,Windows8,WindowsGL,WindowsPhone">
<References>
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Drawing" />
<Reference Include="System.Runtime.Serialization" />
<!-- <Reference Include="MonoGame.ThirdParty" /> -->
</References>
<!-- Microsoft.Xna.Framework.GamerServices -->
<Platform Name="Android,iOS,Linux,MacOS,Ouya,PSMobile,Windows8,Windows,WindowsGL">
<Compile Include="GamerServices\AchievementCollection.cs" />
<Compile Include="GamerServices\Achievement.cs" />
<Compile Include="GamerServices\FriendCollection.cs" />
<Compile Include="GamerServices\FriendGamer.cs" />
<Compile Include="GamerServices\GamerCollection.cs" />
<Compile Include="GamerServices\Gamer.cs" />
<Compile Include="GamerServices\GamerDefaults.cs" />
<Compile Include="GamerServices\GamerPresence.cs" />
<DefaultWindowsPlatforms>Android,Linux,Ouya,PSMobile,Windows8,Windows,WindowsGL,WindowsPhone,iOS</DefaultWindowsPlatforms>
<DefaultMacOSPlatforms>MacOS,iOS</DefaultMacOSPlatforms>
<DefaultLinuxPlatforms>Linux</DefaultLinuxPlatforms>
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoGame.Framework.iOS", "MonoGame.Framework\MonoGame.Framework.iOS.csproj", "{D89CDABF-B496-656D-2E46-72616D65776F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lidgren.Network.iOS", "ThirdParty\Lidgren.Network\Lidgren.Network.iOS.csproj", "{734EAA48-F1CA-481A-B391-0285BC0E8B40}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|iPhoneSimulator = Debug|iPhoneSimulator
<?xml version="1.0" encoding="utf-8"?>
<Project Name="MonoGame.Framework" Path="MonoGame.Framework" Type="Library" Platforms="Android,iOS,Linux,MacOS,Ouya,PSMobile,Windows,Windows8,WindowsGL,WindowsPhone">
<!-- Per platform settings -->
<Platform Name="Windows">
<ProjectGuid>{7DE47032-A904-4C29-BD22-2D235E8D91BA}</ProjectGuid>
<CustomDefinitions>TRACE;WINDOWS;DIRECTX;WINDOWS_MEDIA_SESSION</CustomDefinitions>
</Platform>
<Platform Name="iOS">
<ProjectGuid>{DB8508BB-9849-4CC2-BC0F-8EB5DACB3C47}</ProjectGuid>
<!-- Microsoft.Xna.Framework.GamerServices -->
<Compile Include="GamerServices\AchievementCollection.cs">
<Platforms>Android,iOS,Linux,MacOS,Ouya,PSMobile,Windows8,Windows,WindowsGL</Platforms>
</Compile>
<Compile Include="GamerServices\Achievement.cs">
<Platforms>Android,iOS,Linux,MacOS,Ouya,PSMobile,Windows8,Windows,WindowsGL</Platforms>
</Compile>
<Compile Include="GamerServices\FriendCollection.cs">
<Platforms>Android,iOS,Linux,MacOS,Ouya,PSMobile,Windows8,Windows,WindowsGL</Platforms>
</Compile>
// Replacing this...
public override string GetRuntimeReader(TargetPlatform targetPlatform)
{
var type = typeof(Texture2DReader);
var readerType = type.Namespace + ".Texture2DReader, " + type.Assembly.FullName;
return readerType;
}
<xsl:when test="/Input/Generation/Platform = 'iOS'">
<xsl:call-template name="configuration">
<xsl:with-param name="type"><xsl:value-of select="$project/@Type" /></xsl:with-param>
<xsl:with-param name="debug">true</xsl:with-param>
<xsl:with-param name="config">Debug</xsl:with-param>
<xsl:with-param name="platform">iPhone</xsl:with-param>
</xsl:call-template>
<xsl:call-template name="configuration">
<xsl:with-param name="type"><xsl:value-of select="$project/@Type" /></xsl:with-param>
<xsl:with-param name="debug">false</xsl:with-param>