public BattleBaseData(int enemy_id) { Mst_mapenemy2 mst_mapenemy = Mst_DataManager.Instance.Mst_mapenemy[enemy_id]; Enemy_id = enemy_id; Formation = (BattleFormationKinds1)mst_mapenemy.Formation_id; mst_mapenemy.GetEnemyShips(out ShipData, out SlotData); StartHp = new List <int>(); Enemy_Name = mst_mapenemy.Deck_name; SlotLevel = new List <List <int> >(); SlotExperience = new Dictionary <int, int[]>(); ShipData.ForEach(delegate(Mem_ship x) { StartHp.Add(x.Nowhp); List <int> outlevel = null; setSlotLevel(x.Slot, areaEnemy: true, out outlevel, ref SlotExperience); SlotLevel.Add(outlevel); }); haveBattleCommand = false; }
public BattleBaseData(int enemy_id) { Mst_mapenemy2 mst_mapenemy = Mst_DataManager.Instance.Mst_mapenemy.get_Item(enemy_id); this.Enemy_id = enemy_id; this.Formation = (BattleFormationKinds1)mst_mapenemy.Formation_id; mst_mapenemy.GetEnemyShips(out this.ShipData, out this.SlotData); this.StartHp = new List <int>(); this.Enemy_Name = mst_mapenemy.Deck_name; this.SlotLevel = new List <List <int> >(); this.SlotExperience = new Dictionary <int, int[]>(); this.ShipData.ForEach(delegate(Mem_ship x) { this.StartHp.Add(x.Nowhp); List <int> list = null; this.setSlotLevel(x.Slot, true, out list, ref this.SlotExperience); this.SlotLevel.Add(list); }); this.haveBattleCommand = false; }
public Exec_BattleResult(BattleResultBase execBattleData) { mst_shiplevel = Mst_DataManager.Instance.Get_MstLevel(shipTable: true); _f_Data = execBattleData.MyData; _e_Data = execBattleData.EnemyData; _f_SubInfo = execBattleData.F_SubInfo; _e_SubInfo = execBattleData.E_SubInfo; practiceFlag = execBattleData.PracticeFlag; battleKinds = execBattleData.ExecKinds; clothBrokenIds = new List <int>(); if (!execBattleData.PracticeFlag) { mst_enemy = Mst_DataManager.Instance.Mst_mapenemy[_e_Data.Enemy_id]; string str = mst_enemy.Maparea_id.ToString(); string str2 = mst_enemy.Mapinfo_no.ToString(); int key = int.Parse(str + str2); mst_mapinfo = Mst_DataManager.Instance.Mst_mapinfo[key]; deleteTargetShip = new List <Mem_ship>(); cleard = execBattleData.Cleard; nowCell = execBattleData.NowCell; } isRebellionBattle = execBattleData.RebellionBattle; airCellItems = execBattleData.GetAirCellItems; }