refactor: string id to IConnection parameters for sending network packets

This commit is contained in:
2025-06-22 20:35:00 +03:00
parent bc6aaa865a
commit 5cfed3ba56
4 changed files with 20 additions and 14 deletions

View File

@@ -32,5 +32,6 @@ public interface INetworkCommunicatorServer : INetworkCommunicator
INetworkCommunicatorServer Start(int port, int maxConnectionCount, string? password = null);
INetworkCommunicatorServer SendToClient<T>(string to, T packet) where T : class, new();
INetworkCommunicatorServer SendToClient<T>(IConnection connection, T packet) where T : class, new();
INetworkCommunicatorServer SendToAll<T>(T packet) where T : class, new();
}