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. | |
| Player * | player |
| Pointer to the Player - don't dereference it on PLAYER_LEAVE! | |
| uint16_t nrg::PlayerEvent::id |
| Player* nrg::PlayerEvent::player |
| uint8_t nrg::PlayerEvent::type |