public void SendToClient(ClientConnection client, string message, bool terminated)
 {
     client.Send(message, terminated);
 }
 private void Connection_onClientDisconnected(ClientConnection clientDisconnected)
 {
     onClientDisconnected?.Invoke(clientDisconnected);
     RemoveConnection(connections.FindIndex(x => x == clientDisconnected));
 }
 private void Connection_onMessageReceived(ClientConnection client, string message)
 {
     onMessageReceived?.Invoke(client, message);
 }
        private static void SetMovementFlag(ClientConnection client, string flag)
        {
            bool move = flag[0] == '1';

            client.game.SetMove(move);
        }