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

Abstract base class for Message.

#include <nrg_message.h>

Inheritance diagram for nrg::MessageBase:
nrg::Message< id, Args >

Public Member Functions

virtual uint16_t getID () const =0
 Returns the user-defined Message ID.
 
virtual size_t writeToPacket (Packet &p) const =0
 Writes this Message to the Packet p.
 
virtual size_t readFromPacket (Packet &p)=0
 Reads this Message from the Packet p.
 
virtual void onReceive (uint32_t creation_ms)=0
 Function called when the message has been received.
 
virtual MessageBaseclone () const =0
 Returns a copy of the derived class of this MessageBase.
 
virtual MessageBasemove_clone ()=0
 Moves the derived class into the returned MessageBase.
 
virtual ~MessageBase ()
 Standard Destructor.
 

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