BREAKING CHANGE: renamed namespace & assembly names

This commit is contained in:
2025-08-05 19:41:35 +03:00
parent 1644a751bb
commit 3d183b21cd
259 changed files with 411 additions and 405 deletions

View File

@@ -1,6 +1,6 @@
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Integration.MonoGame;
namespace Engine.Integration.MonoGame;
public interface IDrawableSprite : IBehaviour
{

View File

@@ -1,6 +1,6 @@
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Integration.MonoGame;
namespace Engine.Integration.MonoGame;
public interface IDrawableTriangle : IBehaviour
{

View File

@@ -1,8 +1,8 @@
using Microsoft.Xna.Framework.Content;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Integration.MonoGame;
namespace Engine.Integration.MonoGame;
public interface ILoadContent : IBehaviour
{

View File

@@ -3,9 +3,9 @@ using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Integration.MonoGame;
namespace Engine.Integration.MonoGame;
public interface ISpriteBatch
{

View File

@@ -1,8 +1,8 @@
using Microsoft.Xna.Framework;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Integration.MonoGame;
namespace Engine.Integration.MonoGame;
public interface ITriangleBatch
{

View File

@@ -1,8 +1,8 @@
using System.Collections.Generic;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Integration.MonoGame;
namespace Engine.Integration.MonoGame;
public class DrawableShape : Behaviour2D, IDrawableTriangle, IPreDraw
{

View File

@@ -3,10 +3,10 @@ using System.Collections.Generic;
using Microsoft.Xna.Framework.Input;
using Syntriax.Engine.Core;
using Syntriax.Engine.Systems.Input;
using Engine.Core;
using Engine.Systems.Input;
namespace Syntriax.Engine.Integration.MonoGame;
namespace Engine.Integration.MonoGame;
public class KeyboardInputs : Behaviour, IButtonInputs<Keys>, IUpdate
{

View File

@@ -1,7 +1,7 @@
using System.Collections.Generic;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Integration.MonoGame;
namespace Engine.Integration.MonoGame;
public class LoadContentManager : Behaviour, IFirstFrameUpdate
{

View File

@@ -1,9 +1,9 @@
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Integration.MonoGame;
namespace Engine.Integration.MonoGame;
public class MonoGameCamera2D : BehaviourBase, ICamera2D, IFirstFrameUpdate, IPreDraw
{
@@ -56,7 +56,7 @@ public class MonoGameCamera2D : BehaviourBase, ICamera2D, IFirstFrameUpdate, IPr
get => _zoom;
set
{
float newValue = Syntriax.Engine.Core.Math.Max(0.1f, value);
float newValue = Engine.Core.Math.Max(0.1f, value);
if (_zoom == newValue)
return;
@@ -94,7 +94,7 @@ public class MonoGameCamera2D : BehaviourBase, ICamera2D, IFirstFrameUpdate, IPr
{
MatrixTransform =
Matrix.CreateTranslation(new Vector3(-Position.X, Position.Y, 0f)) *
Matrix.CreateRotationZ(Rotation * Syntriax.Engine.Core.Math.DegreeToRadian) *
Matrix.CreateRotationZ(Rotation * Engine.Core.Math.DegreeToRadian) *
Matrix.CreateScale(Transform.Scale.X.Max(Transform.Scale.Y)) *
Matrix.CreateScale(Zoom) *
Matrix.CreateTranslation(new Vector3(_viewport.Width * .5f, _viewport.Height * .5f, 0f));

View File

@@ -3,9 +3,9 @@ using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Integration.MonoGame;
namespace Engine.Integration.MonoGame;
public class SpriteBatchWrapper(GraphicsDevice graphicsDevice) : ISpriteBatch
{

View File

@@ -1,8 +1,8 @@
using System.Collections.Generic;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Integration.MonoGame;
namespace Engine.Integration.MonoGame;
public class SpriteBatcher : BehaviourBase, IFirstFrameUpdate, IDraw
{

View File

@@ -2,9 +2,9 @@ using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Integration.MonoGame;
namespace Engine.Integration.MonoGame;
public class TriangleBatcher : BehaviourBase, ITriangleBatch, IFirstFrameUpdate, IDraw
{

View File

@@ -3,7 +3,8 @@
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>Syntriax.Engine.Integration.MonoGame</RootNamespace>
<RootNamespace>Engine.Integration.MonoGame</RootNamespace>
<AssemblyName>Engine.Integration.MonoGame</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.2.1105">

View File

@@ -3,9 +3,9 @@ using System.Runtime.CompilerServices;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Integration.MonoGame;
namespace Engine.Integration.MonoGame;
public static class EngineConverterExtensions
{

View File

@@ -1,9 +1,9 @@
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Integration.MonoGame;
namespace Engine.Integration.MonoGame;
public class MonoGameWindow : Game
{

View File

@@ -1,9 +1,9 @@
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Integration.MonoGame;
namespace Engine.Integration.MonoGame;
public class TriangleBatch : ITriangleBatch
{

View File

@@ -1,7 +1,7 @@
using Syntriax.Engine.Core;
using Syntriax.Engine.Core.Serialization;
using Engine.Core;
using Engine.Core.Serialization;
namespace Syntriax.Engine.Integration.MonoGame;
namespace Engine.Integration.MonoGame;
[IgnoreSerialization]
public class MonoGameWindowContainer(MonoGameWindow GameWindow) : BehaviourBase