refactor: Folder and Namespace Restructure of Network Code
This commit is contained in:
parent
6c326b1fc6
commit
86ef57fb62
|
@ -1,15 +1,15 @@
|
|||
using System;
|
||||
|
||||
using Microsoft.Xna.Framework.Audio;
|
||||
using Microsoft.Xna.Framework.Content;
|
||||
|
||||
using LiteNetLib;
|
||||
|
||||
using Pong.Network;
|
||||
|
||||
using Syntriax.Engine.Core;
|
||||
using Syntriax.Engine.Network;
|
||||
using Syntriax.Engine.Network.Abstract;
|
||||
using Syntriax.Engine.Physics2D;
|
||||
using Syntriax.Engine.Physics2D.Abstract;
|
||||
using Microsoft.Xna.Framework.Audio;
|
||||
|
||||
namespace Pong.Behaviours;
|
||||
|
||||
|
|
|
@ -5,10 +5,10 @@ using Microsoft.Xna.Framework.Input;
|
|||
using LiteNetLib;
|
||||
using LiteNetLib.Utils;
|
||||
|
||||
using Pong.Network;
|
||||
|
||||
using Syntriax.Engine.Core;
|
||||
using Syntriax.Engine.Input;
|
||||
using Syntriax.Engine.Network;
|
||||
using Syntriax.Engine.Network.Abstract;
|
||||
|
||||
namespace Pong.Behaviours;
|
||||
|
||||
|
|
|
@ -4,9 +4,9 @@ using Microsoft.Xna.Framework.Input;
|
|||
|
||||
using LiteNetLib;
|
||||
|
||||
using Pong.Network;
|
||||
|
||||
using Syntriax.Engine.Core;
|
||||
using Syntriax.Engine.Network;
|
||||
using Syntriax.Engine.Network.Abstract;
|
||||
|
||||
namespace Pong.Behaviours;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ using Microsoft.Xna.Framework.Input;
|
|||
using Apos.Shapes;
|
||||
|
||||
using Pong.Behaviours;
|
||||
using Pong.Network;
|
||||
using Syntriax.Engine.Network;
|
||||
|
||||
using Syntriax.Engine.Core;
|
||||
using Syntriax.Engine.Core.Abstract;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using Syntriax.Engine.Core.Abstract;
|
||||
|
||||
namespace Pong.Network;
|
||||
namespace Syntriax.Engine.Network.Abstract;
|
||||
|
||||
public interface INetworkBehaviour : IBehaviour
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Pong.Network;
|
||||
namespace Syntriax.Engine.Network.Abstract;
|
||||
|
||||
public interface INetworkClient : INetworkCommunicator
|
||||
{
|
|
@ -1,9 +1,11 @@
|
|||
using System;
|
||||
|
||||
using LiteNetLib;
|
||||
using LiteNetLib.Utils;
|
||||
|
||||
using Syntriax.Engine.Core.Abstract;
|
||||
|
||||
namespace Pong.Network;
|
||||
namespace Syntriax.Engine.Network.Abstract;
|
||||
|
||||
public interface INetworkCommunicator
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Pong.Network;
|
||||
namespace Syntriax.Engine.Network.Abstract;
|
||||
|
||||
public interface INetworkServer : INetworkCommunicator
|
||||
{
|
|
@ -6,8 +6,9 @@ using LiteNetLib.Utils;
|
|||
|
||||
using Syntriax.Engine.Core;
|
||||
using Syntriax.Engine.Core.Abstract;
|
||||
using Syntriax.Engine.Network.Abstract;
|
||||
|
||||
namespace Pong.Network;
|
||||
namespace Syntriax.Engine.Network;
|
||||
|
||||
public abstract class NetworkBase : BehaviourOverride, INetworkCommunicator
|
||||
{
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
using Syntriax.Engine.Core;
|
||||
using Syntriax.Engine.Network.Abstract;
|
||||
|
||||
namespace Pong.Network;
|
||||
namespace Syntriax.Engine.Network;
|
||||
|
||||
public class NetworkBehaviour : BehaviourOverride, INetworkBehaviour
|
||||
{
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
namespace Pong.Network;
|
||||
using Syntriax.Engine.Network.Abstract;
|
||||
|
||||
namespace Syntriax.Engine.Network;
|
||||
|
||||
public class NetworkClient : NetworkBase, INetworkClient
|
||||
{
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
using LiteNetLib;
|
||||
using LiteNetLib.Utils;
|
||||
|
||||
using Syntriax.Engine.Core;
|
||||
|
||||
namespace Pong.Network;
|
||||
namespace Syntriax.Engine.Network;
|
||||
|
||||
public static class NetworkExtensions
|
||||
{
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
namespace Pong.Network;
|
||||
using Syntriax.Engine.Network.Abstract;
|
||||
|
||||
namespace Syntriax.Engine.Network;
|
||||
|
||||
public class NetworkServer : NetworkBase, INetworkServer
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue