Esempio n. 1
0
 public void CreateItem(int classID, int x, int y, direction direction)
 {
     try
     {
         if (!isSimulation)
         {
             factoryService.createMachine(sessionID, classID, x, y, direction);
         }
     }
     catch (EndpointNotFoundException)
     {
         ClientServerEvent(this, new ClientServerEventArgs());
     }
     catch (FaultException)
     {
         ClientServerEvent(this, new ClientServerEventArgs("Fehler auf Server"));
     }
 }
Esempio n. 2
0
 public String createItem(int classID, int x, int y, direction direction)
 {
     Console.WriteLine("Creating item on server. Position is " + x + "," + y + ", direction:" + direction);
     return(factoryService.createMachine(sessionID, classID, x, y, direction));
 }