|
group2 0.1.0
CSE 125 Group 2
|
Server-authored join/leave notification for in-progress matches. More...
#include <RosterEvent.hpp>
Public Attributes | |
| RosterEventType | type = RosterEventType::PlayerJoined |
| Join/leave discriminator. | |
| ClientId | id {-1} |
| Client that joined or left. | |
| char | name [32] = {} |
| Null-terminated display name when available. | |
Server-authored join/leave notification for in-progress matches.
Sent as the payload of PacketType::ROSTER_UPDATE. The fixed-size name keeps the packet trivially copyable; clients fall back to ClientId if the name is empty or the replicated entity has already disappeared.
| char PlayerRosterEvent::name[32] = {} |
Null-terminated display name when available.
| RosterEventType PlayerRosterEvent::type = RosterEventType::PlayerJoined |
Join/leave discriminator.