Skip to content

Commit

Permalink
Add table of contents
Browse files Browse the repository at this point in the history
  • Loading branch information
EwanLyon committed Jan 29, 2021
1 parent 8932e84 commit 997432e
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions docs/Messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ _[Link to NodeCG documentation for reference.](https://www.nodecg.dev/docs/class

There are many messages used for interal communication between dashboard and extensions. These are not meant to be used in external uses and will remain undocumented.

Game

- [newPhase:...](#newPhase)
- [newBomb:...](#newBomb)
- [gameOver](#gameOver)

HLAE

- [hlae:playerDeath](#hlae:playerDeath)
- [hlae:weaponFire](#hlae:weaponFire)

## Usage

Example code
Expand All @@ -16,7 +27,7 @@ nodecg.listenFor('message-name', 'nodecg-csgo-manager', (data) => {

## Game

## newPhase:phase
## newPhase

When the round is in a new phase this will transmit the output as `newPhase:` + the phase name.
_No data is sent with this message_
Expand All @@ -33,7 +44,7 @@ _No data is sent with this message_
- 'newPhase:timeout_ct'
- 'newPhase:warmup'

## newBomb:state
## newBomb

When the bomb is in a new state this will transmit the output as `newBomb:` + the state name.
_No data is sent with this message_
Expand Down

0 comments on commit 997432e

Please sign in to comment.