LibNRG  0.0.1
Networking for Real-time Games library
 All Classes Files Functions Variables Friends
nrg::PlayerEvent Struct Reference

Event raised on the server when a player joins or leaves.

#include <nrg_event.h>

Public Attributes

uint8_t type
 Will be PLAYER_{JOIN, LEAVE}.
 
uint16_t id
 The player's ID assigned by the library.
 
Playerplayer
 Pointer to the Player - don't dereference it on PLAYER_LEAVE!
 

Member Data Documentation

uint16_t nrg::PlayerEvent::id
Player* nrg::PlayerEvent::player
uint8_t nrg::PlayerEvent::type

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