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:
46
SVSim.BattleEngine/Engine/Wizard/FreeBattleFinishTask.cs
Normal file
46
SVSim.BattleEngine/Engine/Wizard/FreeBattleFinishTask.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
namespace Wizard;
|
||||
|
||||
public class FreeBattleFinishTask : FinishTaskBase
|
||||
{
|
||||
public FreeBattleFinishTask()
|
||||
{
|
||||
switch (Data.CurrentFormat)
|
||||
{
|
||||
case Format.Rotation:
|
||||
base.type = ApiType.Type.FreeMatchFinishRotation;
|
||||
break;
|
||||
case Format.Unlimited:
|
||||
base.type = ApiType.Type.FreeMatchFinishUnlimited;
|
||||
break;
|
||||
case Format.PreRotation:
|
||||
base.type = ApiType.Type.FreeMatchFinishPreRotation;
|
||||
break;
|
||||
case Format.Crossover:
|
||||
base.type = ApiType.Type.FreeMatchFinishCrossover;
|
||||
break;
|
||||
case Format.MyRotation:
|
||||
base.type = ApiType.Type.FreeMatchFinishMyRotation;
|
||||
break;
|
||||
case Format.Avatar:
|
||||
base.type = ApiType.Type.FreeMatchFinishAvatar;
|
||||
break;
|
||||
}
|
||||
Data.FreeMatchFinish.data = null;
|
||||
}
|
||||
|
||||
protected override int Parse()
|
||||
{
|
||||
int num = base.Parse();
|
||||
if (IsEffectiveErrorCode(num))
|
||||
{
|
||||
return num;
|
||||
}
|
||||
Data.FreeMatchFinish.data = new FreeMatchFinishDetail();
|
||||
if (!IsResponseDataExist(base.ResponseData))
|
||||
{
|
||||
return num;
|
||||
}
|
||||
new BattleFinishResponsProcessing().Processing(base.ResponseData, Data.FreeMatchFinish.data);
|
||||
return num;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user