summaryrefslogtreecommitdiff
path: root/src/SMAPI.AssemblyRewriters
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-05-01 18:44:39 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-05-01 18:44:39 -0400
commit009a387526ee10b18d0ed3030d6e8868edf17203 (patch)
tree2651a2c11cf33cbb9b75a680911249f4fce4da94 /src/SMAPI.AssemblyRewriters
parent3255518f0a9d18f2d25859747a21bd54759b8f84 (diff)
downloadSMAPI-009a387526ee10b18d0ed3030d6e8868edf17203.tar.gz
SMAPI-009a387526ee10b18d0ed3030d6e8868edf17203.tar.bz2
SMAPI-009a387526ee10b18d0ed3030d6e8868edf17203.zip
unify SMAPI.AssemblyRewriters and SMAPI.Common projects
Diffstat (limited to 'src/SMAPI.AssemblyRewriters')
-rw-r--r--src/SMAPI.AssemblyRewriters/Properties/AssemblyInfo.cs4
-rw-r--r--src/SMAPI.AssemblyRewriters/SpriteBatchMethods.cs59
-rw-r--r--src/SMAPI.AssemblyRewriters/StardewModdingAPI.AssemblyRewriters.csproj44
3 files changed, 0 insertions, 107 deletions
diff --git a/src/SMAPI.AssemblyRewriters/Properties/AssemblyInfo.cs b/src/SMAPI.AssemblyRewriters/Properties/AssemblyInfo.cs
deleted file mode 100644
index f456a30d..00000000
--- a/src/SMAPI.AssemblyRewriters/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,4 +0,0 @@
-using System.Reflection;
-
-[assembly: AssemblyTitle("SMAPI.AssemblyRewriters")]
-[assembly: AssemblyDescription("Contains internal SMAPI classes used during assembly rewriting that need to be public for technical reasons, but shouldn't be visible to modders.")]
diff --git a/src/SMAPI.AssemblyRewriters/SpriteBatchMethods.cs b/src/SMAPI.AssemblyRewriters/SpriteBatchMethods.cs
deleted file mode 100644
index a7f100f2..00000000
--- a/src/SMAPI.AssemblyRewriters/SpriteBatchMethods.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-using System.Diagnostics.CodeAnalysis;
-using Microsoft.Xna.Framework;
-using Microsoft.Xna.Framework.Graphics;
-
-namespace StardewModdingAPI.AssemblyRewriters
-{
- /// <summary>Provides <see cref="SpriteBatch"/> method signatures that can be injected into mod code for compatibility between Linux/Mac or Windows.</summary>
- public class SpriteBatchMethods : SpriteBatch
- {
- /*********
- ** Public methods
- *********/
- /// <summary>Construct an instance.</summary>
- public SpriteBatchMethods(GraphicsDevice graphicsDevice) : base(graphicsDevice) { }
-
-
- /****
- ** MonoGame signatures
- ****/
- [SuppressMessage("ReSharper", "CS0109", Justification = "The 'new' modifier applies when compiled on Linux/Mac.")]
- public new void Begin(SpriteSortMode sortMode, BlendState blendState, SamplerState samplerState, DepthStencilState depthStencilState, RasterizerState rasterizerState, Effect effect, Matrix? matrix)
- {
- base.Begin(sortMode, blendState, samplerState, depthStencilState, rasterizerState, effect, matrix ?? Matrix.Identity);
- }
-
- /****
- ** XNA signatures
- ****/
- [SuppressMessage("ReSharper", "CS0109", Justification = "The 'new' modifier applies when compiled on Windows.")]
- public new void Begin()
- {
- base.Begin();
- }
-
- [SuppressMessage("ReSharper", "CS0109", Justification = "The 'new' modifier applies when compiled on Windows.")]
- public new void Begin(SpriteSortMode sortMode, BlendState blendState)
- {
- base.Begin(sortMode, blendState);
- }
-
- [SuppressMessage("ReSharper", "CS0109", Justification = "The 'new' modifier applies when compiled on Windows.")]
- public new void Begin(SpriteSortMode sortMode, BlendState blendState, SamplerState samplerState, DepthStencilState depthStencilState, RasterizerState rasterizerState)
- {
- base.Begin(sortMode, blendState, samplerState, depthStencilState, rasterizerState);
- }
-
- [SuppressMessage("ReSharper", "CS0109", Justification = "The 'new' modifier applies when compiled on Windows.")]
- public new void Begin(SpriteSortMode sortMode, BlendState blendState, SamplerState samplerState, DepthStencilState depthStencilState, RasterizerState rasterizerState, Effect effect)
- {
- base.Begin(sortMode, blendState, samplerState, depthStencilState, rasterizerState, effect);
- }
-
- [SuppressMessage("ReSharper", "CS0109", Justification = "The 'new' modifier applies when compiled on Windows.")]
- public new void Begin(SpriteSortMode sortMode, BlendState blendState, SamplerState samplerState, DepthStencilState depthStencilState, RasterizerState rasterizerState, Effect effect, Matrix transformMatrix)
- {
- base.Begin(sortMode, blendState, samplerState, depthStencilState, rasterizerState, effect, transformMatrix);
- }
- }
-}
diff --git a/src/SMAPI.AssemblyRewriters/StardewModdingAPI.AssemblyRewriters.csproj b/src/SMAPI.AssemblyRewriters/StardewModdingAPI.AssemblyRewriters.csproj
deleted file mode 100644
index 651b822d..00000000
--- a/src/SMAPI.AssemblyRewriters/StardewModdingAPI.AssemblyRewriters.csproj
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
- <ProjectGuid>{10DB0676-9FC1-4771-A2C8-E2519F091E49}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>StardewModdingAPI.AssemblyRewriters</RootNamespace>
- <AssemblyName>StardewModdingAPI.AssemblyRewriters</AssemblyName>
- <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="..\..\build\GlobalAssemblyInfo.cs">
- <Link>Properties\GlobalAssemblyInfo.cs</Link>
- </Compile>
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="SpriteBatchMethods.cs" />
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <Import Project="..\..\build\common.targets" />
-</Project> \ No newline at end of file