This commit is contained in:
2026-09-01 11:59:00 +02:00
parent b2c1d67283
commit 9cf127b16d
10 changed files with 509 additions and 33 deletions
+3 -1
View File
@@ -17,6 +17,7 @@ class PaperBallThrown implements ShouldBroadcastNow
public readonly string $roomId,
public readonly int $fromPlayerId,
public readonly int $targetPlayerId,
public readonly int $chargeLevel,
) {}
public function broadcastOn(): Channel
@@ -30,7 +31,7 @@ class PaperBallThrown implements ShouldBroadcastNow
}
/**
* @return array{id: string, from_player_id: int, target_player_id: int}
* @return array{id: string, from_player_id: int, target_player_id: int, charge_level: int}
*/
public function broadcastWith(): array
{
@@ -38,6 +39,7 @@ class PaperBallThrown implements ShouldBroadcastNow
'id' => $this->id,
'from_player_id' => $this->fromPlayerId,
'target_player_id' => $this->targetPlayerId,
'charge_level' => $this->chargeLevel,
];
}
}