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:
34
SVSim.BattleEngine/Engine/Wizard/MyPageCodeInputTask.cs
Normal file
34
SVSim.BattleEngine/Engine/Wizard/MyPageCodeInputTask.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
namespace Wizard;
|
||||
|
||||
public class MyPageCodeInputTask : BaseTask
|
||||
{
|
||||
public class MyPageCodeInputTaskParam : BaseParam
|
||||
{
|
||||
public string serial_code;
|
||||
}
|
||||
|
||||
public bool IsComplete { get; private set; }
|
||||
|
||||
public MyPageCodeInputTask()
|
||||
{
|
||||
base.type = ApiType.Type.MyPageCodeInput;
|
||||
}
|
||||
|
||||
public void SetParameter(string inCode)
|
||||
{
|
||||
MyPageCodeInputTaskParam myPageCodeInputTaskParam = new MyPageCodeInputTaskParam();
|
||||
myPageCodeInputTaskParam.serial_code = inCode;
|
||||
base.Params = myPageCodeInputTaskParam;
|
||||
}
|
||||
|
||||
protected override int Parse()
|
||||
{
|
||||
int num = base.Parse();
|
||||
if (num != 1)
|
||||
{
|
||||
return num;
|
||||
}
|
||||
IsComplete = base.ResponseData["data"]["is_complete"].ToBoolean();
|
||||
return num;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user