Ejemplo n.º 1
0
    public ReqDestroyShip DestroyShips(List <UserShip> ships, int saveEqups)
    {
        ReqDestroyShip component = new ReqDestroyShip();

        component.DestroyeShip(ships, saveEqups);
        return(component);
    }
 public ReqDestroyShip DestroyShips(List<UserShip> ships, int saveEqups)
 {
     ReqDestroyShip component = new ReqDestroyShip();
     component.DestroyeShip(ships, saveEqups);
     return component;
 }
 private void ReqDeleteShips()
 {
     if (!this.isRequestingServer && GlobalLock.instance.CanGo)
     {
         GlobalLock.instance.GoNow();
     }
     else
     {
         return;
     }
     this.isRequestingServer = true;
     int saveEqups = 1;
     if (this.saveEquipsOnTheShip)
     {
         saveEqups = 0;
     }
     this.reqDestroy = ServerRequestManager.instance.DestroyShips(this.materialShips, saveEqups);
     this.reqDestroy.DestroySuccess += new EventHandler<EventArgs>(this.OnChangeSuccess);
     this.reqDestroy.DestroyFail += new EventHandler<EventArgs>(this.OnChangeFail);
 }