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:
26
SVSim.BattleEngine/Engine/GetDataTranslateTask.cs
Normal file
26
SVSim.BattleEngine/Engine/GetDataTranslateTask.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Cute;
|
||||
|
||||
public class GetDataTranslateTask : NetworkTask
|
||||
{
|
||||
public override string Url => NtDataTranslateManager.GetInstance().GetTranslateInfoUrl();
|
||||
|
||||
protected override int Parse()
|
||||
{
|
||||
int num = base.Parse();
|
||||
if (num != 1)
|
||||
{
|
||||
return num;
|
||||
}
|
||||
string text = base.ResponseData["data"]["email_address"].ToString();
|
||||
NtDataTranslateManager.GetInstance().curBindEmail = text;
|
||||
if (string.IsNullOrEmpty(text))
|
||||
{
|
||||
NtDataTranslateManager.GetInstance().isTranslate = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
NtDataTranslateManager.GetInstance().isTranslate = true;
|
||||
}
|
||||
return num;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user