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

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}.
 

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