feat(battle-node): TurnStartHandler emits {spin:0} to opponent in PvP

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-06-03 18:05:15 -04:00
parent 6b580c622d
commit 6e85a6b2db
2 changed files with 15 additions and 4 deletions

View File

@@ -384,7 +384,7 @@ public class BattleSessionDispatchTests
}
[Test]
public void Pvp_TurnStart_from_A_in_BothAfterReady_forwards_to_B()
public void Pvp_TurnStart_from_A_emits_spin0_to_B()
{
var (s, a, b) = NewPvpSession();
DriveToAfterReady(s, a);
@@ -395,6 +395,8 @@ public class BattleSessionDispatchTests
Assert.That(routes.Count, Is.EqualTo(1));
Assert.That(routes[0].Target, Is.SameAs(b));
Assert.That(routes[0].Frame.Uri, Is.EqualTo(NetworkBattleUri.TurnStart));
var body = (SVSim.BattleNode.Protocol.Bodies.OpponentTurnStartBody)routes[0].Frame.Body;
Assert.That(body.Spin, Is.EqualTo(0));
}
[Test]