refactor: string id to IConnection parameters for sending network packets
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user