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:
40
SVSim.BattleEngine/Engine/Wizard/PracticePuzzleListTask.cs
Normal file
40
SVSim.BattleEngine/Engine/Wizard/PracticePuzzleListTask.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using LitJson;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class PracticePuzzleListTask : BaseTask
|
||||
{
|
||||
public class PracticePuzzleListTaskParam : BaseParam
|
||||
{
|
||||
public int puzzle_master_id;
|
||||
}
|
||||
|
||||
public bool IsDisplayBadge { get; private set; }
|
||||
|
||||
public PuzzleQuestInfo PuzzleQuestInfo { get; private set; }
|
||||
|
||||
public PracticePuzzleListTask()
|
||||
{
|
||||
base.type = ApiType.Type.PracticePuzzleList;
|
||||
}
|
||||
|
||||
public void SetParameter(int puzzleGroupId)
|
||||
{
|
||||
PracticePuzzleListTaskParam practicePuzzleListTaskParam = new PracticePuzzleListTaskParam();
|
||||
practicePuzzleListTaskParam.puzzle_master_id = puzzleGroupId;
|
||||
base.Params = practicePuzzleListTaskParam;
|
||||
}
|
||||
|
||||
protected override int Parse()
|
||||
{
|
||||
int num = base.Parse();
|
||||
if (num != 1)
|
||||
{
|
||||
return num;
|
||||
}
|
||||
JsonData jsonData = base.ResponseData["data"];
|
||||
IsDisplayBadge = jsonData["is_display_badge"].ToBoolean();
|
||||
PuzzleQuestInfo = new PuzzleQuestInfo(jsonData);
|
||||
return num;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user