public BattleDataFormat(BattleSaveDataFormat saveData) { this.Area = saveData.Area; this.Level = saveData.Level; this.EnableBossBattle = saveData.EnableBossBattle; this.CurrentBattleType = saveData.CurrentBattleType; var _battleAreaLevel = BattleAreaLevelTableReader.Instance.FindDefaultUnique(saveData.Area, saveData.Level); this.SearchPointOutput = _battleAreaLevel.SearchPointOutput; this.SearchPointPunishment = _battleAreaLevel.SearchPointPunishment; this.SearchPointForBoss = _battleAreaLevel.SearchPointForBoss; if (saveData.BossBattleEnemyList != null) { this.BossBattleEnemyList = saveData.BossBattleEnemyList.CloneEx(); } }
public BattleSaveDataFormat(short area, short level, bool enableBossBattle, BATTLE_TYPE battleType, List <EnemySaveDataFormat> enemyList = null) { this.Area = area; this.Level = level; this.EnableBossBattle = enableBossBattle; this.CurrentBattleType = battleType; if (enemyList == null) { return; } switch (this.CurrentBattleType) { case BATTLE_TYPE.BOSS_BATTLE: this.BossBattleEnemyList = enemyList.CloneEx(); break; default: break; } }