refactor(battle-node): extract TurnStartHandler

Unions the two legacy TurnStart arms (IsRealForwardableFromScripted case 11 +
BothAfterReady case 12) into TurnStartHandler. Both arms produce (Other, Env, false)
with no extra guards or state mutations — union is behavior-equivalent.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-06-03 14:27:17 -04:00
parent c03fb3c139
commit aacd7b56ad
2 changed files with 16 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ public sealed class BattleSession
[NetworkBattleUri.TurnEndFinal] = new TurnEndFinalHandler(),
[NetworkBattleUri.Retire] = new RetireKillHandler(),
[NetworkBattleUri.Kill] = new RetireKillHandler(),
[NetworkBattleUri.TurnStart] = new TurnStartHandler(),
};
private FrameDispatchContext BuildContext(IBattleParticipant from, MsgEnvelope env) =>