group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
LobbyUpdateEvent Struct Reference

Incremental lobby change event broadcast to all connected clients. More...

#include <LobbyStatus.hpp>

Collaboration diagram for LobbyUpdateEvent:
[legend]

Public Types

enum class  Type : uint8_t {
  PlayerJoined , PlayerLeft , PlayerReady , PlayerUnready ,
  PlayerNewHost
}
 Discriminator for the type of lobby change. More...

Public Attributes

Type type
 Kind of lobby change.
ClientId id
 Player this event applies to.

Detailed Description

Incremental lobby change event broadcast to all connected clients.

Member Enumeration Documentation

◆ Type

enum class LobbyUpdateEvent::Type : uint8_t
strong

Discriminator for the type of lobby change.

Enumerator
PlayerJoined 

A new player connected and entered the lobby.

PlayerLeft 

A player disconnected or left the lobby.

PlayerReady 

A player toggled their ready status to ready.

PlayerUnready 

A player toggled their ready status to not ready.

PlayerNewHost 

Host assignment transferred to a different player.

Member Data Documentation

◆ id

ClientId LobbyUpdateEvent::id

Player this event applies to.

◆ type

Type LobbyUpdateEvent::type

Kind of lobby change.


The documentation for this struct was generated from the following file: