R-Type
Networked shoot'em up built on Aegis2D
Loading...
Searching...
No Matches
rtype::PlayerLeftEvent Struct Reference

A player left the game; the Destroy of its ship follows if it had one. More...

#include </__w/project-rtype/project-rtype/protocol/include/rtype/events.hpp>

Public Member Functions

bool operator== (const PlayerLeftEvent &) const =default
 Field-by-field equality.
 

Public Attributes

std::uint32_t tick = 0
 Server tick at which it left.
 
std::uint8_t player = 0
 Player number, 0 to 3.
 
LeaveReason reason = LeaveReason::Left
 Why it left.
 

Detailed Description

A player left the game; the Destroy of its ship follows if it had one.

Member Function Documentation

◆ operator==()

bool rtype::PlayerLeftEvent::operator== ( const PlayerLeftEvent &  ) const
default

Field-by-field equality.

Returns
true if every field is equal.

Member Data Documentation

◆ player

std::uint8_t rtype::PlayerLeftEvent::player = 0

Player number, 0 to 3.

◆ reason

LeaveReason rtype::PlayerLeftEvent::reason = LeaveReason::Left

Why it left.

◆ tick

std::uint32_t rtype::PlayerLeftEvent::tick = 0

Server tick at which it left.


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