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. |