Пример #1
0
 public void executeCommand(Command command)
 {
     lock (this)
     {
         if (command.ObjectId == -1)
             return;
     }
 }
Пример #2
0
 public static string fromCommandToString(Command action)
 {
     return "";
 }
Пример #3
0
 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;
     }
 }