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:
36
SVSim.BattleEngine/Engine/Wizard/PracticeDeckInfoTask.cs
Normal file
36
SVSim.BattleEngine/Engine/Wizard/PracticeDeckInfoTask.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using LitJson;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class PracticeDeckInfoTask : BaseTask
|
||||
{
|
||||
public class PracticeDeckInfoTaskParam : BaseParam
|
||||
{
|
||||
public int deck_format;
|
||||
}
|
||||
|
||||
public DeckGroupListData DeckGroupListData { get; private set; }
|
||||
|
||||
public PracticeDeckInfoTask()
|
||||
{
|
||||
base.type = ApiType.Type.PracticeDeckInfo;
|
||||
base.Params = new PracticeDeckInfoTaskParam
|
||||
{
|
||||
deck_format = Data.FormatConvertApi(Format.All)
|
||||
};
|
||||
}
|
||||
|
||||
protected override int Parse()
|
||||
{
|
||||
int num = base.Parse();
|
||||
if (num != 1)
|
||||
{
|
||||
return num;
|
||||
}
|
||||
JsonData jsonData = base.ResponseData["data"];
|
||||
GameMgr.GetIns().GetDataMgr().SetMaintenanceCardIds(base.ResponseData["data"]["maintenance_card_list"]);
|
||||
DeckGroupListData = new DeckGroupListData(jsonData, Format.All);
|
||||
GameMgr.GetIns().GetDataMgr().CurrentDeckListParamData = DeckGroupListData;
|
||||
return num;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user