Bomberman Multiplayer
Authoritative multiplayer networking layer for Bomberman.
Loading...
Searching...
No Matches
bomberman::server::PeerSession Struct Reference

Live transport/session state for one connected ENet peer. More...

#include <ServerState.h>

Public Attributes

ENetPeer * peer = nullptr
 
std::optional< uint8_t > playerId {}
 Populated once Hello is accepted.
 
uint32_t connectedServerTick = 0
 

Detailed Description

Live transport/session state for one connected ENet peer.

peer->data always points to this object while the transport peer is connected, including before Hello is accepted. Once the peer is associated with a player seat, playerId is populated.


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