Module state

Source
Expand description

Lobby/Game-state definition and internals.

Includes:

  • LobbyState and SharedLobbyState definitions
  • Sending and receiving messages
  • Chat message handling

Modules§

clients
Definitions for client handling.
handle_messages
matchups
players
Extension of the clients module specifically for players, because players are very complex.

Structs§

LobbyState
The state of a lobby. The game may not have started yet, or it could be in-progress already.
SharedLobbyState
A shared, lockable reference to lobby state, shared between the lobby’s task and the server’s task.
TxRx

Enums§

LobbyPhase
PlayerJoinError
SpectatorJoinError

Type Aliases§

LockedLobbyState