feat(battle-engine): close the AI-simulation subsystem (verbatim)
Copied the 89 uncopied AI*SimulationUtility/extension files defining the AIVirtualCard/AIVirtualField extension methods; the compile loop then auto-closed the revealed type deps (~3049 files total, drift-clean). 10.0k -> 62 errors.
This commit is contained in:
30
SVSim.BattleEngine/Engine/Wizard/PracticePuzzleData.cs
Normal file
30
SVSim.BattleEngine/Engine/Wizard/PracticePuzzleData.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using LitJson;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class PracticePuzzleData
|
||||
{
|
||||
public int GroupdId { get; private set; }
|
||||
|
||||
public string Title { get; private set; }
|
||||
|
||||
public int CurrentClearCount { get; private set; }
|
||||
|
||||
public int MaxClearCount { get; private set; }
|
||||
|
||||
public bool IsMissionTarget { get; private set; }
|
||||
|
||||
public bool IsClear => CurrentClearCount >= MaxClearCount;
|
||||
|
||||
public PracticePuzzleData(JsonData json)
|
||||
{
|
||||
GroupdId = json["puzzle_master_id"].ToInt();
|
||||
IsMissionTarget = json["is_mission_target"].ToBoolean();
|
||||
Title = Data.SystemText.Get(json["basic_title_text_id"].ToString());
|
||||
List<PuzzleQuestSelectDialog.DisplayData> list = PuzzleQuestSelectDialog.CreateDisplayData(isDisplayNew: true, json["puzzle_data"]);
|
||||
MaxClearCount = list.Count;
|
||||
CurrentClearCount = list.Count((PuzzleQuestSelectDialog.DisplayData puzzle) => puzzle.IsCleared);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user