LibNRG  0.0.1
Networking for Real-time Games library
 All Classes Files Functions Variables Friends
nrg_event.h File Reference

Functionality to notify users of Client and Server occurances. More...

#include "nrg_core.h"
#include "nrg_queue.h"

Go to the source code of this file.

Classes

struct  nrg::DisconnectEvent
 Event raised when the Client becomes disconnected. More...
 
struct  nrg::EntityEvent
 Event raised when entities are updated, created, destroyed client-side - an alternative to the virtual methods that Entity provides. More...
 
struct  nrg::PlayerEvent
 Event raised on the server when a player joins or leaves. More...
 
union  nrg::Event
 Union to contain all the event types. More...
 
class  nrg::EventQueue
 Holds a queue of Event objects. More...
 

Enumerations

enum  EventType {
  DISCONNECTED = 1, ENTITY_UPDATED, ENTITY_CREATED, ENTITY_DESTROYED,
  PLAYER_JOIN, PLAYER_LEAVE, PLAYER_INPUT
}
 Event types.