Compile-driven bulk-copy loop (tools/engine-port/m1_copy_loop.py) pulled the precise reference closure of the battle-core roots, stopping at the classify god-object/View-VFX-UI boundary. 782 files; no re-explosion (M0 had estimated ~order 1000). Residual frontier = 52 shim-classified + 80 external (Unity/BCL) types to author next.
33 lines
766 B
C#
33 lines
766 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace Wizard;
|
|
|
|
public class PracticeAISettingDataSet
|
|
{
|
|
private List<PracticeAISettingData> _dataTable;
|
|
|
|
public PracticeAISettingDataSet()
|
|
{
|
|
_dataTable = new List<PracticeAISettingData>();
|
|
}
|
|
|
|
public void AddData(PracticeAISettingData data)
|
|
{
|
|
if (!_dataTable.Any((PracticeAISettingData d) => d.ClassId == data.ClassId && d.Difficulty == data.Difficulty))
|
|
{
|
|
_dataTable.Add(data);
|
|
}
|
|
}
|
|
|
|
public PracticeAISettingData GetSettingData(int classId, int difficulty)
|
|
{
|
|
return _dataTable.First((PracticeAISettingData d) => d.ClassId == classId && d.Difficulty == difficulty);
|
|
}
|
|
|
|
public List<PracticeAISettingData> GetSettingDataTable()
|
|
{
|
|
return _dataTable;
|
|
}
|
|
}
|