diff --git a/CHANGELOG.md b/CHANGELOG.md index 90db3c5e..f188dda8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 > [!NOTE] > Unreleased changes exist in the current `develop` branch but have not been pushed as either a stable or prerelease NuGet package. > + +## [4.0.1] +- `VortexModifier` now properly makes use of the `MaxSpeed` property. [@AristurtleDev](https://github.com/AristurtleDev) [#921](https://github.com/craftworkgames/MonoGame.Extended/pull/921) +- `rayNearDistance` and `rayFarDistance` are now properly swapped in `PrimitivesHelper.IntersectsSlab()`. [@AristurtleDev](https://github.com/AristurtleDev) [#922](https://github.com/craftworkgames/MonoGame.Extended/pull/922) +- Resolved issue where an `ArgumentNullException` was thrown when loading BitmapFonts due to the `bmfFile.Path` value not being set. [@AristurtleDev](https://github.com/AristurtleDev) [#924](https://github.com/craftworkgames/MonoGame.Extended/pull/924) +- Resolved issue for FNA in `ColorExtensions.FromArgb` due to FNA `Color` struct not having a constructor that accepts a uint packed value. [@ValorZard](https://github.com/ValorZard) [#925](https://github.com/craftworkgames/MonoGame.Extended/pull/925) +- Updated for MonOGame 3.8.2.1105 release [@AristurtleDev](https://github.com/AristurtleDev) [#926](https://github.com/craftworkgames/MonoGame.Extended/pull/926) + - MonoGame References updated to 3.8.2.1105 + - MonoGame.Extended target framework updated to net8.0 +- `Vector2Extensions.Rotate` has been marked deprecated for MonoGame targets only (KNI and FNA still use this). With the release of MonoGame 3.8.2.1105, MonoGame now has a built in method for rotating a `Vector2`. [@AristurtleDev](https://github.com/AristurtleDev) [#926](https://github.com/craftworkgames/MonoGame.Extended/pull/926) +- + +## [4.0.0] ### Added - Added unit test for `PolyGon.Contains` to ensure consistency in expected return values for edge touching compared to MonoGame. [@AristurtleDev](https://github.com/AristurtleDev) [#871](https://github.com/craftworkgames/MonoGame.Extended/pull/871) - Added unit test for `BitmapFont.MeasureString` to validate that it correctly accounts for trailing whitespace. [@AristurtleDev](https://github.com/AristurtleDev) [#876](https://github.com/craftworkgames/MonoGame.Extended/pull/876) diff --git a/Directory.Build.props b/Directory.Build.props index 1f01b9a0..448f533f 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,12 +2,12 @@ - net6.0 + net8.0 $(MSBuildThisFileDirectory) - 4.0.0 + 4.0.1 -prerelease .$(BUILD_NUMBER) $(MonoGameExtendedVersion)$(IsPrerelease)$(BuildNumber) diff --git a/README.md b/README.md index 4fc415b6..0949df1b 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ MonoGame.Extended is a set of utilities (in the form of libraries/tools) to [Mon Code is distributed as NuGet packages in the form of libraries (`.dll` files). You can easily install the NuGet packages into your existing MonoGame project using the NuGet Package Manager UI in Visual Studio or by using the command line interface (CLI) in a terminal. ```sh -dotnet add package MonoGame.Extended --version 4.0.0 +dotnet add package MonoGame.Extended --version 4.0.1 ``` ### Using the Content Pipeline Extensions diff --git a/benchmarks/Directory.Build.props b/benchmarks/Directory.Build.props index 33669f21..ea8d92da 100644 --- a/benchmarks/Directory.Build.props +++ b/benchmarks/Directory.Build.props @@ -13,7 +13,7 @@ @@ -34,7 +34,7 @@ - + diff --git a/source/Directory.Build.props b/source/Directory.Build.props index 8df9eb20..d5260c6d 100644 --- a/source/Directory.Build.props +++ b/source/Directory.Build.props @@ -13,7 +13,7 @@ diff --git a/source/MonoGame.Extended.Content.Pipeline/MonoGame.Extended.Content.Pipeline.csproj b/source/MonoGame.Extended.Content.Pipeline/MonoGame.Extended.Content.Pipeline.csproj index 3d2b07ff..c781c2aa 100644 --- a/source/MonoGame.Extended.Content.Pipeline/MonoGame.Extended.Content.Pipeline.csproj +++ b/source/MonoGame.Extended.Content.Pipeline/MonoGame.Extended.Content.Pipeline.csproj @@ -14,7 +14,7 @@ diff --git a/source/MonoGame.Extended/.config/dotnet-tools.json b/source/MonoGame.Extended/.config/dotnet-tools.json index 0621cfd4..aef3bb63 100644 --- a/source/MonoGame.Extended/.config/dotnet-tools.json +++ b/source/MonoGame.Extended/.config/dotnet-tools.json @@ -3,11 +3,11 @@ "isRoot": true, "tools": { "dotnet-mgfxc": { - "version": "3.8.1.303", + "version": "3.8.2.1105", "commands": [ "mgfxc" ], "rollForward": false } } -} \ No newline at end of file +} diff --git a/source/MonoGame.Extended/Math/Vector2Extensions.cs b/source/MonoGame.Extended/Math/Vector2Extensions.cs index 48097faf..b068275c 100644 --- a/source/MonoGame.Extended/Math/Vector2Extensions.cs +++ b/source/MonoGame.Extended/Math/Vector2Extensions.cs @@ -56,7 +56,11 @@ namespace MonoGame.Extended return Math.Abs(value.X - otherValue.X) <= tolerance && (Math.Abs(value.Y - otherValue.Y) <= tolerance); } +#if FNA || KNI [MethodImpl(MethodImplOptions.AggressiveInlining)] +#else + [Obsolete("Use native Vector2.Rotate provided by MonoGame instead. This will be removed in a future release.", false)] +#endif public static Vector2 Rotate(this Vector2 value, float radians) { var cos = (float) Math.Cos(radians); diff --git a/tests/Directory.Build.props b/tests/Directory.Build.props index 6764f641..c4ed9a48 100644 --- a/tests/Directory.Build.props +++ b/tests/Directory.Build.props @@ -13,7 +13,7 @@ + Version="3.8.2.1105" /> @@ -30,7 +30,7 @@ - + diff --git a/tests/MonoGame.Extended.Content.Pipeline.Tests/MonoGame.Extended.Content.Pipeline.Tests.csproj b/tests/MonoGame.Extended.Content.Pipeline.Tests/MonoGame.Extended.Content.Pipeline.Tests.csproj index d884a0ee..bacc2aad 100644 --- a/tests/MonoGame.Extended.Content.Pipeline.Tests/MonoGame.Extended.Content.Pipeline.Tests.csproj +++ b/tests/MonoGame.Extended.Content.Pipeline.Tests/MonoGame.Extended.Content.Pipeline.Tests.csproj @@ -1,13 +1,13 @@  - + - + - + diff --git a/tests/MonoGame.Extended.Tests/Vector2ExtensionsTests.cs b/tests/MonoGame.Extended.Tests/Vector2ExtensionsTests.cs index aa1d889d..d016794d 100644 --- a/tests/MonoGame.Extended.Tests/Vector2ExtensionsTests.cs +++ b/tests/MonoGame.Extended.Tests/Vector2ExtensionsTests.cs @@ -36,6 +36,7 @@ namespace MonoGame.Extended.Tests Assert.Equal(new Vector2(10, 5), c); } +#if FNA || KNI [Fact] public void Vector2_Rotate_90_Degrees_Test() { @@ -63,6 +64,7 @@ namespace MonoGame.Extended.Tests Assert.True(new Vector2(7.071068f, -7.071068f).EqualsWithTolerence(b)); } +#endif [Fact] public void Vector2_Truncate_Test() { @@ -91,7 +93,12 @@ namespace MonoGame.Extended.Tests { var a = new Vector2(0, -10); var b = new Vector2(10, 0); +#if FNA || KNI var c = -Vector2.UnitY.Rotate(MathHelper.ToRadians(45)); +#else + var c = -Vector2.UnitY; + c.Rotate(MathHelper.ToRadians(45)); +#endif Assert.Equal(MathHelper.ToRadians(0), a.ToAngle()); Assert.Equal(MathHelper.ToRadians(90), b.ToAngle());