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

@@ -4,8 +4,8 @@
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>Syntriax.Engine.Systems.Network</RootNamespace>
<AssemblyName>Syntriax.Engine.Integration.LiteNetLib</AssemblyName>
<RootNamespace>Engine.Systems.Network</RootNamespace>
<AssemblyName>Engine.Integration.LiteNetLib</AssemblyName>
</PropertyGroup>
<ItemGroup>

View File

@@ -3,10 +3,10 @@ using System.Net.Sockets;
using LiteNetLib;
using LiteNetLib.Utils;
using Syntriax.Engine.Core;
using Syntriax.Engine.Core.Debug;
using Engine.Core;
using Engine.Core.Debug;
namespace Syntriax.Engine.Systems.Network;
namespace Engine.Systems.Network;
public class LiteNetLibClient : LiteNetLibCommunicatorBase, INetworkCommunicatorClient
{

View File

@@ -1,6 +1,6 @@
using LiteNetLib;
namespace Syntriax.Engine.Systems.Network;
namespace Engine.Systems.Network;
public record class LiteNetLibClientConnection(NetPeer NetPeer) : IConnection
{

View File

@@ -3,10 +3,10 @@ using System.Reflection;
using LiteNetLib;
using LiteNetLib.Utils;
using Syntriax.Engine.Core;
using Syntriax.Engine.Core.Debug;
using Engine.Core;
using Engine.Core.Debug;
namespace Syntriax.Engine.Systems.Network;
namespace Engine.Systems.Network;
public abstract class LiteNetLibCommunicatorBase : Behaviour, INetworkCommunicator
{

View File

@@ -1,10 +1,10 @@
using LiteNetLib;
using LiteNetLib.Utils;
using Syntriax.Engine.Core;
using Syntriax.Engine.Core.Debug;
using Engine.Core;
using Engine.Core.Debug;
namespace Syntriax.Engine.Systems.Network;
namespace Engine.Systems.Network;
public class LiteNetLibServer : LiteNetLibCommunicatorBase, INetworkCommunicatorServer
{

View File

@@ -1,6 +1,6 @@
using LiteNetLib;
namespace Syntriax.Engine.Systems.Network;
namespace Engine.Systems.Network;
public record class LiteNetLibServerConnection(NetPeer NetPeer) : IConnection
{

View File

@@ -1,8 +1,8 @@
using LiteNetLib.Utils;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Systems.Network;
namespace Engine.Systems.Network;
internal static class AABBNetPacker
{

View File

@@ -1,8 +1,8 @@
using LiteNetLib.Utils;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Systems.Network;
namespace Engine.Systems.Network;
internal static class CircleNetPacker
{

View File

@@ -1,8 +1,8 @@
using LiteNetLib.Utils;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Systems.Network;
namespace Engine.Systems.Network;
internal static class ColorHSVNetPacker
{

View File

@@ -1,8 +1,8 @@
using LiteNetLib.Utils;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Systems.Network;
namespace Engine.Systems.Network;
internal static class ColorRGBANetPacker
{

View File

@@ -1,8 +1,8 @@
using LiteNetLib.Utils;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Systems.Network;
namespace Engine.Systems.Network;
internal static class ColorRGBNetPacker
{

View File

@@ -1,8 +1,8 @@
using LiteNetLib.Utils;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Systems.Network;
namespace Engine.Systems.Network;
internal static class Line2DEquationNetPacker
{

View File

@@ -1,8 +1,8 @@
using LiteNetLib.Utils;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Systems.Network;
namespace Engine.Systems.Network;
internal static class Line2DNetPacker
{

View File

@@ -1,8 +1,8 @@
using LiteNetLib.Utils;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Systems.Network;
namespace Engine.Systems.Network;
internal static class Projection1DNetPacker
{

View File

@@ -1,8 +1,8 @@
using LiteNetLib.Utils;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Systems.Network;
namespace Engine.Systems.Network;
internal static class QuaternionNetPacker
{

View File

@@ -1,8 +1,8 @@
using LiteNetLib.Utils;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Systems.Network;
namespace Engine.Systems.Network;
internal static class Shape2DNetPacker
{

View File

@@ -1,8 +1,8 @@
using LiteNetLib.Utils;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Systems.Network;
namespace Engine.Systems.Network;
internal static class TriangleNetPacker
{

View File

@@ -1,8 +1,8 @@
using LiteNetLib.Utils;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Systems.Network;
namespace Engine.Systems.Network;
internal static class Vector2DNetPacker
{

View File

@@ -1,8 +1,8 @@
using LiteNetLib.Utils;
using Syntriax.Engine.Core;
using Engine.Core;
namespace Syntriax.Engine.Systems.Network;
namespace Engine.Systems.Network;
internal static class Vector3DNetPacker
{

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