#include <DataBlock_NData.h>
Inheritance diagram for RNReplicaNet::DataBlock_NData:
Public Member Functions | |
DataBlock_NData () | |
virtual | ~DataBlock_NData () |
virtual void | Poll (DataBlockReason *reason) |
virtual void | ParseMessage (MessageHelper *message) |
void | RegisterInClassPointer (void *const data, const int size) |
void | SetDefaultData (const void *data) |
bool | IsAttached (void *data) |
void | SetEndianTest (const bool test=true) |
bool | GetEndianTest (void) const |
Static Public Member Functions | |
static DataBlock_NData * | Register (void *const data, const int size) |
Classes | |
struct | SessionBlock_NData |
|
The ctor performs some basic initialisation |
|
The dtor makes sure everything is tidy |
|
Given a data pointer this function identifies if this data block is attached to the pointer.
Reimplemented from RNReplicaNet::DataBlock. |
|
This parses a message for the derived class of this data block
Reimplemented from RNReplicaNet::DataBlock. |
|
A poll function that is called by ReplicaNet to check for updates to this particular data block. If this virtual method is implemented by a derived class this base class method should be called before a data packet is created.
Reimplemented from RNReplicaNet::DataBlock. |
|
This registers the memory area with this data block type and returns a new pointer
|
|
This registers the memory area with this data block type. This is used when the memory is in datablocks that are allocated as part of a bigger class.
|
|
This allows a block of memory to be passed in that shows a default state of the data block. This default memory state is copied so it can be temporary. When a session joins or an object is created, the datablock states are serialised. By setting a default state the user can avoid the extra data being sent out for the datablock state.
|