Finished game room

2025-08-10 15:51:37 +02:00
parent 48eae90fa4
commit de8ceeaae8

@@ -78,24 +78,24 @@ Room.on('activeGameChanged', (gameDetails) => {});
### on: mainScoreboardUpdate
Triggers when the queue updates.
Triggers when the main scoreboard of the active game updates.
```javascript
Room.on('mainScoreboardUpdate', (player) => {});
Room.on('mainScoreboardUpdate', (state) => {});
```
| Argument | Type | Description |
| -------- | ------------------------------------------------ | --------------------------------- |
| player | [GamePlayer](./ModuleServerAPIGameLibGamePlayer) | The player that joined the queue. |
| -------- | ---------------------------------------------------------- | ------------------------------------ |
| state | [ScoreboardState](./ModuleServerAPIGameLibScoreboardState) | The current state of the scoreboard. |
### on: anyScoreboardUpdate
Triggers when the queue updates.
Triggers when any scoreboard of the active game updates.
```javascript
Room.on('anyScoreboardUpdate', (player) => {});
Room.on('anyScoreboardUpdates', (state) => {});
```
| Argument | Type | Description |
| -------- | ------------------------------------------------ | --------------------------------- |
| player | [GamePlayer](./ModuleServerAPIGameLibGamePlayer) | The player that joined the queue. |
| -------- | ---------------------------------------------------------- | ------------------------------------ |
| state | [ScoreboardState](./ModuleServerAPIGameLibScoreboardState) | The current state of the scoreboard. |