public ReqStrengthen Strengthen(int targetId, List <int> materials) { ReqStrengthen component = new ReqStrengthen(); component.Strengthen(targetId, materials); return(component); }
public ReqStrengthen Strengthen(int targetId, List<int> materials) { ReqStrengthen component = new ReqStrengthen(); component.Strengthen(targetId, materials); return component; }
private void StartStrengthen() { if ((((this.targetShip != null) && (this.materialShips != null)) && (this.materialShips.Count >= 1)) && (!this.isRequestingServer && GlobalLock.instance.CanGo)) { GlobalLock.instance.GoNow(); } else { return; } this.isRequestingServer = true; List<int> materials = new List<int>(); foreach (UserShip ship in this.materialShips) { materials.Add(ship.id); } this.reqStrengthen = ServerRequestManager.instance.Strengthen(this.targetShip.id, materials); this.reqStrengthen.StrengthenSuccess += new EventHandler<EventArgs>(this.OnStrengthenSuccess); this.reqStrengthen.StrengthenFail += new EventHandler<EventArgs>(this.OnStrengthenFail); }