feat: engine data type packers

This commit is contained in:
2025-05-16 21:34:35 +03:00
parent 6591326b70
commit 03082ab43b
18 changed files with 361 additions and 9 deletions

View File

@@ -1,12 +1,13 @@
using System;
namespace Syntriax.Engine.Network;
public interface INetworkCommunicator
{
event OnPacketReceivedDelegate? OnPacketReceived;
INetworkCommunicator Stop();
delegate void OnPacketReceivedDelegate(INetworkCommunicator sender, object packet, string from);
void SubscribeToPackets<T>(Action<T> callback);
void UnsubscribeFromPackets<T>(Action<T> callback);
}
public interface INetworkCommunicatorClient : INetworkCommunicator