Module messages

Source
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, or SPECTATOR
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

Enums§

RxError
RxMessage
Any message that can be received from the client.

Traits§

MessageTx

Functions§

deserialize
serialize