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:
38
SVSim.BattleEngine/Engine/Wizard/RoomBattleFinishTask.cs
Normal file
38
SVSim.BattleEngine/Engine/Wizard/RoomBattleFinishTask.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
namespace Wizard;
|
||||
|
||||
public class RoomBattleFinishTask : FinishTaskBase
|
||||
{
|
||||
public RoomBattleFinishTask(bool isConvention, bool isGathering)
|
||||
{
|
||||
if (isConvention)
|
||||
{
|
||||
base.type = ApiType.Type.EventRoomMatchFinish;
|
||||
}
|
||||
else if (isGathering)
|
||||
{
|
||||
base.type = ApiType.Type.GatheringRoomBattleFinish;
|
||||
}
|
||||
else
|
||||
{
|
||||
base.type = ApiType.Type.OpenRoomMatchFinish;
|
||||
}
|
||||
}
|
||||
|
||||
protected override int Parse()
|
||||
{
|
||||
int num = base.Parse();
|
||||
if (IsEffectiveErrorCode(num))
|
||||
{
|
||||
return num;
|
||||
}
|
||||
if (!IsResponseDataExist(base.ResponseData))
|
||||
{
|
||||
return num;
|
||||
}
|
||||
Data.RoomMatchFinish.data = new RoomMatchFinishDetail();
|
||||
Data.RoomMatchFinish.data.class_chara_experience = 0;
|
||||
Data.RoomMatchFinish.data.class_chara_level = 0;
|
||||
new BattleFinishResponsProcessing().Processing(base.ResponseData, Data.RoomMatchFinish.data);
|
||||
return num;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user