public GetPVEData StartPVELevel(int levelId, int fleetId, FleetFormation formationType) { GetPVEData component = new GetPVEData(); component.StartLevel(levelId, fleetId, formationType); return(component); }
public void DealNode(int nodeId, int fleetId, FleetFormation formationType) { this.dealingNodeId = nodeId; object[] objArray1 = new object[] { "pve/deal/", nodeId, "/", fleetId, "/", (int)formationType }; base.path = string.Concat(objArray1); base.SetupParams(null, new BaseWWWRequest.OnSuccess(this.onReqDealNodeSuccess), new BaseWWWRequest.OnFail(this.onReqDealNodeFail), true, ServerType.ChoosedServer, false); }
public void DealNode(int nodeId, int fleetId, FleetFormation formationType) { this.dealingNodeId = nodeId; object[] objArray1 = new object[] { "pve/deal/", nodeId, "/", fleetId, "/", (int) formationType }; base.path = string.Concat(objArray1); base.SetupParams(null, new BaseWWWRequest.OnSuccess(this.onReqDealNodeSuccess), new BaseWWWRequest.OnFail(this.onReqDealNodeFail), true, ServerType.ChoosedServer, false); }
public void StartLevel(int levelId, int fleetId, FleetFormation formationType) { UserFleet uf = GameData.instance.GetFleetOfId(fleetId); PVELevel pl = PVEConfigs.instance.GetLevel(levelId); z.log("[开始PVE战斗]...." + uf.title + " ===> " + pl.title + " " + pl.subTitle); object[] objArray1 = new object[] { "pve/challenge129/", levelId, "/", fleetId, "/", (int)formationType }; base.path = string.Concat(objArray1); base.SetupParams(null, new BaseWWWRequest.OnSuccess(this.onReqStartLevelSuccess), new BaseWWWRequest.OnFail(this.onReqStartLevelFail), true, ServerType.ChoosedServer, false); }
public GetPVEData DealPVELevelNode(int nodeId, int fleetId, FleetFormation formationType) { UserFleet uf = GameData.instance.GetFleetOfId(fleetId); PVENode pl = PVEConfigs.instance.GetNode(nodeId); ShipGirlBot.z.log("[少女卖肉开始]...." + uf.title + " @ " + pl.flag + "点 "); GetPVEData component = new GetPVEData(); component.DealNode(nodeId, fleetId, formationType); return(component); }
public void SetSelectedFormation(FleetFormation formation) { if (!this.hasSelected) { this.hasSelected = true; this.selectedFormation = formation; this.exitObj.SetActive(true); if (this.isPVP) { base.Invoke("ExitPanelImmediatly", this.exitTime); } else { base.Invoke("ExitPanel", this.exitTime); } } }
void Initialize() { for (int i = 0; i < formation.Count; i++) { FleetFormation t_formation = Instantiate(formation[i], spawnPoint.position, Quaternion.identity) as FleetFormation; t_formation.fleetRank = i; t_formation.OnShipDestroyed += OnShipDstroyed; if (i == 0) { t_formation.GetComponent <FleetFormation>().enabled = false; t_formation.GetComponent <PlayerController>().enabled = true; } else if (i > 0) { t_formation.GetComponent <PlayerController>().enabled = false; t_formation.GetComponent <FleetFormation>().enabled = true; } } SortFleet(); }
public void UseFormationOf(FleetFormation formation) { if (GlobalLock.instance.CanGo) { GlobalLock.instance.GoNow(); } else { return; } this.selectedFormation = formation; this.StartCampaign(); }
public static string getformationstring(FleetFormation st) { switch (st) { case FleetFormation.OneRow: return "单纵"; case FleetFormation.TwoRow: return "复纵"; case FleetFormation.Cicle: return "圆形"; case FleetFormation.OneColume: return "单横"; case FleetFormation.TStyle: return "T/梯形"; default: return "未知"; } }
public void StartLevel(int levelId, int fleetId, FleetFormation formationType) { object[] objArray1 = new object[] { "pve/challenge129/", levelId, "/", fleetId, "/", (int) formationType }; base.path = string.Concat(objArray1); base.SetupParams(null, new BaseWWWRequest.OnSuccess(this.onReqStartLevelSuccess), new BaseWWWRequest.OnFail(this.onReqStartLevelFail), true, ServerType.ChoosedServer, this.needZip); }
public void StartLevel(int levelId, int fleetId, FleetFormation formationType) { UserFleet uf = GameData.instance.GetFleetOfId(fleetId); PVELevel pl = PVEConfigs.instance.GetLevel(levelId); z.log("[开始PVE战斗]...."+ uf.title + " ===> "+ pl.title + " " + pl.subTitle); object[] objArray1 = new object[] { "pve/challenge129/", levelId, "/", fleetId, "/", (int) formationType }; base.path = string.Concat(objArray1); base.SetupParams(null, new BaseWWWRequest.OnSuccess(this.onReqStartLevelSuccess), new BaseWWWRequest.OnFail(this.onReqStartLevelFail), true, ServerType.ChoosedServer, false); }
public GetPVEData DealPVELevelNode(int nodeId, int fleetId, FleetFormation formationType) { UserFleet uf = GameData.instance.GetFleetOfId(fleetId); PVENode pl = PVEConfigs.instance.GetNode(nodeId); z.log("[少女卖肉开始]...." + uf.title + " @ " + pl.flag + "点 "); GetPVEData component = new GetPVEData(); component.DealNode(nodeId, fleetId, formationType); return component; }
public GetPVEData StartPVELevel(int levelId, int fleetId, FleetFormation formationType) { GetPVEData component = new GetPVEData(); component.StartLevel(levelId, fleetId, formationType); return component; }
public GetPVEData StartPVELevel(int levelId, int fleetId, FleetFormation formationType) { GetPVEData component = GameObjectUtil.InstantiateItemAsChildOf(this.getPVEDataPrefab, base.gameObject).GetComponent<GetPVEData>(); component.StartLevel(levelId, fleetId, formationType); return component; }
public GetPVEData DealPVELevelNode(int nodeId, int fleetId, FleetFormation formationType) { GetPVEData component = GameObjectUtil.InstantiateItemAsChildOf(this.getPVEDataPrefab, base.gameObject).GetComponent<GetPVEData>(); component.DealNode(nodeId, fleetId, formationType); return component; }
public void CheckSelectStatus(FleetFormation f) { }
private void formationcombo_SelectedValueChanged(object sender, EventArgs e) { if(initing) { return; } battle_formation = (FleetFormation)formationcombo.SelectedIndex +1; tools.configmng.instance.setval(get_username() + "_formation", (int)battle_formation); }
private void initdefaultvals() { object val = tools.configmng.instance.getval(get_username() + "_do_nightwar"); if (val != null) { battle_do_nightwar = (int)val; } nightwarcheck.Checked = battle_do_nightwar == 1; object val2 = tools.configmng.instance.getval(get_username() + "_formation"); if (val2 != null) { battle_formation = (FleetFormation)val2; } formationcombo.SelectedIndex = (int)battle_formation - 1; object val3 = tools.configmng.instance.getval(get_username() + "_auto_repair"); if (val3 != null) { autorepaircheck.Checked = (val3 as string).Equals("yes"); } }