public FactoryOfEquipRequest BuildEquipInDock(int dockId, int oil, int steel, int ammo, int alum) { z.instance.BeforeBuildWeapon(dockId, oil, steel, ammo, alum); FactoryOfEquipRequest component = new FactoryOfEquipRequest(); component.BuildEquip(dockId, oil, steel, ammo, alum); return component; }
public FactoryOfEquipRequest ToggleEquipBuildLogFav(BuildLogVO log) { FactoryOfEquipRequest component = new FactoryOfEquipRequest(); component.SetFavLog(log); return(component); }
public FactoryOfEquipRequest GetEquipBuildLog() { FactoryOfEquipRequest component = new FactoryOfEquipRequest(); component.GetBuildLog(); return(component); }
public FactoryOfEquipRequest GetEquipFromDock(int dockId) { FactoryOfEquipRequest component = new FactoryOfEquipRequest(); component.GetEquip(dockId); return(component); }
public FactoryOfEquipRequest FastBuildEquipAtDock(int dockId) { FactoryOfEquipRequest component = new FactoryOfEquipRequest(); component.FastBuild(dockId); return(component); }
public FactoryOfEquipRequest BuildEquipInDock(int dockId, int oil, int steel, int ammo, int alum) { FactoryOfEquipRequest component = new FactoryOfEquipRequest(); component.BuildEquip(dockId, oil, steel, ammo, alum); return(component); }
public FactoryOfEquipRequest BuildEquipInDock(int dockId, int oil, int steel, int ammo, int alum) { z.instance.BeforeBuildWeapon(dockId, oil, steel, ammo, alum); FactoryOfEquipRequest component = new FactoryOfEquipRequest(); component.BuildEquip(dockId, oil, steel, ammo, alum); return(component); }
protected override void ToggleLogFav(BuildLogVO log) { if (!base.isRequestingServer) { base.isRequestingServer = true; base.toggingLog = log; this.toggleEquipLogFavReqeust = ServerRequestManager.instance.ToggleEquipBuildLogFav(base.toggingLog); this.toggleEquipLogFavReqeust.SetFavLogSuccess += new EventHandler<EventArgs>(this.OnSetFavLogSuccess); this.toggleEquipLogFavReqeust.SetFavLogFail += new EventHandler<EventArgs>(this.OnSetFavLogFail); } }
protected override void GetLog() { if (!GameData.instance.IsNeedGetEquipBuildLog) { this.OnGetLogSuccess(null, null); } else if (!base.isRequestingServer) { base.isRequestingServer = true; this.getEquipLogReqeust = ServerRequestManager.instance.GetEquipBuildLog(); this.getEquipLogReqeust.GetLogSuccess += new EventHandler<EventArgs>(this.OnGetLogSuccess); this.getEquipLogReqeust.GetLogFail += new EventHandler<EventArgs>(this.OnGetLogFail); } }
private void StartExpand(int isUseGold) { if (!this.isRequestingServer) { this.isRequestingServer = true; this.expandDock = ServerRequestManager.instance.ExpandEquipDock(isUseGold); this.expandDock.ExpandSuccess += new EventHandler<EventArgs>(this.OnExpandSuccess); this.expandDock.ExpandFail += new EventHandler<EventArgs>(this.OnExpandFail); } }
private void StartBuildShip(object o, SelectMaterialpArgs e) { this.showActionGO.SetActive(true); this.showActionGO.GetComponent<AnimatePosition>().StartMove(); if ((e != null) && !this.isRequestingServer) { this.isRequestingServer = true; this.buildingArgs = e; this.buildShipInDock = ServerRequestManager.instance.BuildEquipInDock(this.selectedDockIndex, e.oil, e.steel, e.ammo, e.aluminium); this.buildShipInDock.BuildEquipSuccess += new EventHandler<EventArgs>(this.OnStartBuildShipSuccess); this.buildShipInDock.BuildEquipFail += new EventHandler<EventArgs>(this.OnStartBuildShipFail); } }
public FactoryOfEquipRequest ToggleEquipBuildLogFav(BuildLogVO log) { FactoryOfEquipRequest component = new FactoryOfEquipRequest(); component.SetFavLog(log); return component; }
public FactoryOfEquipRequest GetEquipFromDock(int dockId) { FactoryOfEquipRequest component = new FactoryOfEquipRequest(); component.GetEquip(dockId); return component; }
public FactoryOfEquipRequest GetEquipBuildLog() { FactoryOfEquipRequest component = new FactoryOfEquipRequest(); component.GetBuildLog(); return component; }
private void StartFastBuildShip() { if (!this.isRequestingServer) { this.isRequestingServer = true; this.fastBuildShipInDock = ServerRequestManager.instance.FastBuildEquipAtDock(this.fastBuildDockId); this.fastBuildShipInDock.FastBuildEquipSuccess += new EventHandler<EventArgs>(this.OnStartFastBuildShipSuccess); this.fastBuildShipInDock.FastBuildEquipFail += new EventHandler<EventArgs>(this.OnStartFastBuildShipFail); } }
public void GetShipFromDock(int dockId) { if (!this.isRequestingServer && GlobalLock.instance.CanGo) { GlobalLock.instance.GoNow(); } else { return; } if (this.gamedata.IsUserEquipmentFull) { UIManager.instance.ShowNeedAddFunctionNum(ShopItemFunction.EquipTopNum).Confirm += delegate (object sender, EventArgs e) { UnityEngine.Object.Destroy(base.gameObject); }; } else { this.isRequestingServer = true; this.getShipFromDock = ServerRequestManager.instance.GetEquipFromDock(dockId); this.getShipFromDock.GetEquipSuccess += new EventHandler<EventArgs>(this.OnGetShipSuccess); this.getShipFromDock.GetEquipFail += new EventHandler<EventArgs>(this.OnGetShipFail); } }
public FactoryOfEquipRequest FastBuildEquipAtDock(int dockId) { FactoryOfEquipRequest component = new FactoryOfEquipRequest(); component.FastBuild(dockId); return component; }