public void executeCommand(Command command) { lock (this) { if (command.ObjectId == -1) return; } }
public static string fromCommandToString(Command action) { return ""; }
private static void SendCommand(Command command) { try { ServerConnection.Send(Serializer.fromCommandToString(command)); } catch (System.Net.Sockets.SocketException e) { System.Console.WriteLine("Error while sending command to the server"); System.Console.WriteLine("Connection lost: " + e); Stop = true; } catch (Exception fe) { System.Console.WriteLine("Something went wrong"); System.Console.WriteLine("Game over " + fe); Stop = true; } }