Expand description
The messages which can be sent to or received from clients over the websocket connection.
Modules§
- attack
- (Tx) ATTACK message
- character_
chosen - (Rx) CHARACTER_CHOSEN message
- client_
role - (enum)
PLAYER,AI, orSPECTATOR - connect_
game - (Rx) CONNECT_GAME message
- connected
- (Tx) CONNECTED message (for spectators)
- end_
fight - (Tx) END_FIGHT message
- error
- (Tx) ERROR message
- game_
end - (Tx) GAME_END message
- game_
start - (Tx) GAME_START message
- game_
state - (Tx) GAMESTATE message
- hello_
client - (Tx) HELLO_CLIENT message
- lightsaber_
chosen - (Rx) LIGHTSABER_CHOSEN message
- lightsaber_
options - (Tx) LIGHTSABER_OPTIONS message
- lobby_
info - (Tx) LOBBY_INFO message
- movement
- (Tx) MOVEMENT message
- pause_
request - (Rx) PAUSE_REQUEST message
- placement_
complete - (Rx) PLACEMENT_COMPLETE message
- player_
character - (enum) The PlayerCharacters which can be selected in a lobby before the game starts.
- reconnect
- (Rx) RECONNECT message
- serde_
impls - (impl) Defines how certain data types from outside this module should be (de)serialized.
- text_
broadcast - (Tx) TEXT_BROADCAST message
- text_
message - (Rx) TEXT_MESSAGE message
- unit_
chosen - (Rx) UNIT_CHOSEN message
- unit_
options - (Tx) UNIT_OPTIONS message