feat(battle-engine): M1 auto-copy closure (782 battle-logic files)
Compile-driven bulk-copy loop (tools/engine-port/m1_copy_loop.py) pulled the precise reference closure of the battle-core roots, stopping at the classify god-object/View-VFX-UI boundary. 782 files; no re-explosion (M0 had estimated ~order 1000). Residual frontier = 52 shim-classified + 80 external (Unity/BCL) types to author next.
This commit is contained in:
48
SVSim.BattleEngine/Engine/MatchingRetryDomatching.cs
Normal file
48
SVSim.BattleEngine/Engine/MatchingRetryDomatching.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using Wizard;
|
||||
|
||||
public class MatchingRetryDomatching : MatchingIntervalActionBase
|
||||
{
|
||||
private int _retryPeriodSecond;
|
||||
|
||||
private int _needInit;
|
||||
|
||||
public Action OnDoMatchingSuccess;
|
||||
|
||||
public MatchingRetryDomatching(Matching matching)
|
||||
: base(matching)
|
||||
{
|
||||
}
|
||||
|
||||
public void SetNeedInit(int need_Init)
|
||||
{
|
||||
_needInit = need_Init;
|
||||
}
|
||||
|
||||
public void SettingRetryPeriod(int retryPeriodSeconds)
|
||||
{
|
||||
_retryPeriodSecond = retryPeriodSeconds;
|
||||
}
|
||||
|
||||
public override void Start()
|
||||
{
|
||||
base.Start();
|
||||
string text = "do_matchingRetryStart ";
|
||||
if ((bool)ToolboxGame.RealTimeNetworkAgent)
|
||||
{
|
||||
text += ToolboxGame.RealTimeNetworkAgent.CurrentMatchingStatus;
|
||||
}
|
||||
text += StackTraceUtility.ExtractStackTrace();
|
||||
LocalLog.AccumulateLastTraceLog(text);
|
||||
}
|
||||
|
||||
public override void Update()
|
||||
{
|
||||
if (_isActive && NetworkUtility.GetTimeSpanSecond(_startTimer.Ticks) >= _retryPeriodSecond)
|
||||
{
|
||||
_isActive = false;
|
||||
_matching.DoMatching(OnDoMatchingSuccess, _needInit, Matching.DO_MATCHING_LOG.RETRY);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user