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.
44 lines
1020 B
C#
44 lines
1020 B
C#
using System;
|
|
using Cute;
|
|
|
|
public class OpponentNotTurnEndToWinChecker : NetworkBattleIntervalCheckerBase
|
|
{
|
|
private NetworkBattleManagerBase networkBattleManager;
|
|
|
|
private const float RECEIVE_TURNSTART_TO_VICTORY_INTERVAL = 125f;
|
|
|
|
private const float RECEIVE_TURNSTART_TO_VICTORY_RECOVERY_INTERVAL = 150f;
|
|
|
|
private float _timeoutDisconnect;
|
|
|
|
public event Action OnOpponentNotTurnEndToWin;
|
|
|
|
public OpponentNotTurnEndToWinChecker(NetworkBattleManagerBase manager)
|
|
{
|
|
networkBattleManager = manager;
|
|
_timeoutDisconnect = 125f;
|
|
}
|
|
|
|
public void SetTimeoutTime(bool isExtend)
|
|
{
|
|
if (isExtend)
|
|
{
|
|
_timeoutDisconnect = 150f;
|
|
}
|
|
else
|
|
{
|
|
_timeoutDisconnect = 125f;
|
|
}
|
|
}
|
|
|
|
protected override void IntervalCheck()
|
|
{
|
|
base.IntervalCheck();
|
|
if (!networkBattleManager.disconnectToLoseChecker.IsDisconnect() && (float)NetworkUtility.GetTimeSpanSecond(base.startTick) >= _timeoutDisconnect)
|
|
{
|
|
this.OnOpponentNotTurnEndToWin.Call();
|
|
StopChecker();
|
|
}
|
|
}
|
|
}
|