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