Example #1
0
    public ReqModify ModifyShip(UserShip ship)
    {
        ReqModify component = new ReqModify();

        component.ModifyShip(ship);
        return(component);
    }
 public ReqModify ModifyShip(UserShip ship)
 {
     ReqModify component = new ReqModify();
     component.ModifyShip(ship);
     return component;
 }
 private void reqSellItem(ShipEvoItemConfig config, int amount)
 {
     if (!this.isRequestingServer)
     {
         this.isRequestingServer = true;
         this.reqModify = ServerRequestManager.instance.SellModifyItem(config.cid, amount);
         this.reqModify.SellItemSuccess += new EventHandler<EventArgs>(this.OnSellSuccess);
         this.reqModify.SellItemFail += new EventHandler<EventArgs>(this.OnSellFail);
     }
 }
 private void StartModify()
 {
     if (!this.isRequestingServer && GlobalLock.instance.CanGo)
     {
         GlobalLock.instance.GoNow();
     }
     else
     {
         return;
     }
     this.isRequestingServer = true;
     this.reqModify = ServerRequestManager.instance.ModifyShip(this.targetShip);
     this.reqModify.ModifySuccess += new EventHandler<EventArgs>(this.OnModifySuccess);
     this.reqModify.ModifyFail += new EventHandler<EventArgs>(this.OnModifyFail);
 }