refactor(battle-node): move session phase + post-swap hands into BattleSessionState

This commit is contained in:
gamer147
2026-06-03 13:47:35 -04:00
parent 95554cee04
commit 85c43a9a72
2 changed files with 21 additions and 16 deletions

View File

@@ -0,0 +1,11 @@
namespace SVSim.BattleNode.Sessions.Dispatch;
/// <summary>Mutable per-session state shared across frame handlers. Today: the session-level
/// phase (only ever advanced to <see cref="BattleSessionPhase.Terminal"/>) and the mulligan
/// barrier's post-swap hands. FUTURE (PvP equivalency, NOT this refactor): per-side idx->cardId
/// maps + reveal-gating state land here.</summary>
internal sealed class BattleSessionState
{
public BattleSessionPhase SessionPhase { get; set; } = BattleSessionPhase.AwaitingInitNetwork;
public Dictionary<IBattleParticipant, long[]> PostSwapHands { get; } = new();
}