BREAKING CHANGE: renamed namespace & assembly names
This commit is contained in:
@@ -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>
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using LiteNetLib;
|
||||
|
||||
namespace Syntriax.Engine.Systems.Network;
|
||||
namespace Engine.Systems.Network;
|
||||
|
||||
public record class LiteNetLibClientConnection(NetPeer NetPeer) : IConnection
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using LiteNetLib;
|
||||
|
||||
namespace Syntriax.Engine.Systems.Network;
|
||||
namespace Engine.Systems.Network;
|
||||
|
||||
public record class LiteNetLibServerConnection(NetPeer NetPeer) : IConnection
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using Syntriax.Engine.Core;
|
||||
using Engine.Core;
|
||||
|
||||
namespace Syntriax.Engine.Integration.MonoGame;
|
||||
namespace Engine.Integration.MonoGame;
|
||||
|
||||
public interface IDrawableSprite : IBehaviour
|
||||
{
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using Syntriax.Engine.Core;
|
||||
using Engine.Core;
|
||||
|
||||
namespace Syntriax.Engine.Integration.MonoGame;
|
||||
namespace Engine.Integration.MonoGame;
|
||||
|
||||
public interface IDrawableTriangle : IBehaviour
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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));
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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">
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user