From de8ceeaae8446cdc7ae01cba06cd9c32fbc27755 Mon Sep 17 00:00:00 2001 From: Mees van der Wijk Date: Sun, 10 Aug 2025 15:51:37 +0200 Subject: [PATCH] Finished game room --- ModuleServerAPIGameLibRoom.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ModuleServerAPIGameLibRoom.md b/ModuleServerAPIGameLibRoom.md index cd353be..f56109f 100644 --- a/ModuleServerAPIGameLibRoom.md +++ b/ModuleServerAPIGameLibRoom.md @@ -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. | +| Argument | Type | Description | +| -------- | ---------------------------------------------------------- | ------------------------------------ | +| 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. | +| Argument | Type | Description | +| -------- | ---------------------------------------------------------- | ------------------------------------ | +| state | [ScoreboardState](./ModuleServerAPIGameLibScoreboardState) | The current state of the scoreboard. |