refactor(battle-node): drop BattleType.Scripted and the scripted-only builders
Removes the Scripted enum value, the bot's client-shaped emissions (BuildClient*), the canned opponent turn (BuildOpponent*), and OpponentTurnStartSpin. The shared server-frame builders (Matched/BattleStart/Deal/Swap/Ready + ComputeHandAfterSwap) and OpponentJudgeSpin (Bot mode) stay. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -340,7 +340,7 @@ public class BattleSessionDispatchTests
|
||||
[Test]
|
||||
public void Pvp_TurnEndFinal_from_A_forwards_envelope_to_B_and_pushes_paired_BattleFinish()
|
||||
{
|
||||
// Same unified handling as Scripted — A is the winner, B is the loser.
|
||||
// Unified TurnEndFinal handling — A is the winner, B is the loser.
|
||||
var (s, a, b) = NewPvpSession();
|
||||
DriveToAfterReady(s, a);
|
||||
DriveToAfterReady(s, b);
|
||||
@@ -539,7 +539,7 @@ public class BattleSessionDispatchTests
|
||||
[Test]
|
||||
public void Bot_Retire_pushes_paired_BattleFinish_RetireLose_to_player_RetireWin_to_bot()
|
||||
{
|
||||
// Unified Retire/Kill dispatch — same paired push as Scripted and PvP.
|
||||
// Unified Retire/Kill dispatch — same paired push as PvP.
|
||||
// NoOpBotParticipant swallows its push.
|
||||
var (s, a, b) = NewBotSession();
|
||||
s.ComputeFrames(a, NewEnvelope(NetworkBattleUri.InitNetwork));
|
||||
|
||||
Reference in New Issue
Block a user