Finished game room
@@ -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. |
|
||||
|
||||
Reference in New Issue
Block a user