mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-15 15:09:29 +00:00
Update for Monogame 3.8.2.1105 (#931)
* Update MonoGame references to 3.8.2.1105 * Vector2.Rotate is not built into MonoGame * Update to net8 * Update version number * Update changelog * Deprecate Vector2.Rotate for MonoGame only * Deprecate it but don't error it so API doesn't break for others.
This commit is contained in:
committed by
GitHub
parent
40d260b454
commit
da81c353f6
@@ -13,7 +13,7 @@
|
||||
|
||||
<ItemGroup Condition="!$(DefineConstants.Contains('FNA')) AND !$(DefineConstants.Contains('KNI'))">
|
||||
<PackageReference Include="MonoGame.Framework.DesktopGL"
|
||||
Version="3.8.1.303" />
|
||||
Version="3.8.2.1105" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="$(DefineConstants.Contains('KNI'))">
|
||||
@@ -30,7 +30,7 @@
|
||||
<PackageReference Include="MonoGame.Framework.DesktopGL.9000"
|
||||
Version="3.12.9001" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
<ItemGroup Condition="$(DefineConstants.Contains('FNA'))">
|
||||
<ProjectReference Include="$(MSBuildThisFileDirectory)..\..\FNA\FNA.NetStandard.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
+3
-3
@@ -1,13 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="MonoGame.Framework.Content.Pipeline" Version="3.8.1.303" />
|
||||
<PackageReference Include="MonoGame.Framework.Content.Pipeline" Version="3.8.2.1105" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\source\MonoGame.Extended.Content.Pipeline\MonoGame.Extended.Content.Pipeline.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="TestData\astrid-animator-atlas.json" CopyToOutputDirectory="PreserveNewest" />
|
||||
<Content Include="TestData\astrid-animator.aa" CopyToOutputDirectory="PreserveNewest" />
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user