feat: client & server packet listener interfaces added

This commit is contained in:
2025-05-19 22:24:06 +03:00
parent 214c37e63f
commit 57868ce178
9 changed files with 199 additions and 31 deletions

View File

@@ -0,0 +1,6 @@
namespace Syntriax.Engine.Network;
public interface IPacketListenerClient<T> : INetworkEntity
{
void OnClientPacketArrived(T packet);
}

View File

@@ -0,0 +1,6 @@
namespace Syntriax.Engine.Network;
public interface IPacketListenerServer<T> : INetworkEntity
{
void OnServerPacketArrived(T packet, string from);
}