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

Event raised when entities are updated, created, destroyed client-side - an alternative to the virtual methods that Entity provides.

#include <nrg_event.h>

Public Attributes

uint8_t type
 Will be ENTITY_{UPDATED, CREATED, DESTROYED}.
 
uint16_t eid
 The Entity's ID.
 
uint16_t etype
 The Entity's user-defined type id.
 
Entitypointer
 Pointer to the Entity - don't dereference it on ENTITY_DESTROYED!
 

Member Data Documentation

uint16_t nrg::EntityEvent::eid
uint16_t nrg::EntityEvent::etype
Entity* nrg::EntityEvent::pointer
uint8_t nrg::EntityEvent::type

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