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

A player joined the game. More...

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

Public Member Functions

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

Public Attributes

std::uint32_t tick = 0
 Server tick at which it joined.
 
std::uint8_t player = 0
 Player number, 0 to 3.
 
std::string name
 Name given at login, valid as valid_player_name() says.
 

Detailed Description

A player joined the game.

Member Function Documentation

◆ operator==()

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

Field-by-field equality.

Returns
true if every field is equal.

Member Data Documentation

◆ name

std::string rtype::PlayerJoinedEvent::name

Name given at login, valid as valid_player_name() says.

◆ player

std::uint8_t rtype::PlayerJoinedEvent::player = 0

Player number, 0 to 3.

◆ tick

std::uint32_t rtype::PlayerJoinedEvent::tick = 0

Server tick at which it joined.


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