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:
41
SVSim.BattleEngine/Engine/Wizard/ColosseumDoMatchingTask.cs
Normal file
41
SVSim.BattleEngine/Engine/Wizard/ColosseumDoMatchingTask.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
namespace Wizard;
|
||||
|
||||
public class ColosseumDoMatchingTask : DoMatchingBase
|
||||
{
|
||||
public ColosseumDoMatchingTask()
|
||||
{
|
||||
if (!Data.ArenaData.ColosseumData.IsRankMatching)
|
||||
{
|
||||
base.type = ApiType.Type.ColosseumDoMatching;
|
||||
}
|
||||
else
|
||||
{
|
||||
base.type = ApiType.Type.ColosseumDoMatchingRankMatch;
|
||||
}
|
||||
}
|
||||
|
||||
public override void SetParameter(int deck_no, int need_init, int log, bool includeCardMasterHash = false)
|
||||
{
|
||||
includeCardMasterHash = includeCardMasterHash || need_init == 1;
|
||||
if (Data.ArenaData.ColosseumData.IsRankMatching)
|
||||
{
|
||||
need_init = 0;
|
||||
}
|
||||
base.SetParameter(deck_no, need_init, log, includeCardMasterHash);
|
||||
}
|
||||
|
||||
protected override int Parse()
|
||||
{
|
||||
int num = base.Parse();
|
||||
if (num != 1)
|
||||
{
|
||||
return num;
|
||||
}
|
||||
SettingDoMatchingData();
|
||||
if (Data.DoMatchingDetail.data.matchingState == 3008)
|
||||
{
|
||||
Data.ArenaData.ColosseumData.IsRankMatching = true;
|
||||
}
|
||||
return num;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user