Union to contain all the event types.
#include <nrg_event.h>
Public Member Functions | |
| Event () | |
| Default Constructor. | |
| Event (const DisconnectEvent &e) | |
| Implicit conversion constructor from DisconnectEvent. | |
| Event (const EntityEvent &e) | |
| Implicit conversion constructor from EntityEvent. | |
| Event (const PlayerEvent &e) | |
| Implicit conversion constructor from PlayerEvent. | |
Public Attributes | |
| uint8_t | type |
| Used to determine which event this is. | |
| DisconnectEvent | dc |
| For DISCONNECTED. | |
| EntityEvent | entity |
| For ENTITY_{UPDATED, CREATED, DESTROYED}. | |
| PlayerEvent | player |
| For PLAYER_{JOIN, LEAVE}. | |