ReplicaNet and RNLobby
1
|
#include <RO_RegistryBlock.h>
Public Member Functions | |
s_RO_RegistryBlock (int id, p_RO_Func *pfunc, p_RO_FuncDelete *pfunc_delete, const char *name=0) | |
int | GetClassID (void) |
ReplicaObject * | CallBackAllocate (void) |
void | CallBackDelete (ReplicaObject *object) |
const char * | GetName (void) const |
This is a registry block used when class allocator functions are registered at startup
s_RO_RegistryBlock | ( | int | id, |
p_RO_Func * | pfunc, | ||
p_RO_FuncDelete * | pfunc_delete, | ||
const char * | name = 0 |
||
) |
This ctor fills in the parameters in the structure
id | the class id to use for this block |
pfunc | the function pointer that can allocate this class id |
pfunc_delete | the function that can delete this class id |
name | the name of the class. The default value is null |
ReplicaObject* CallBackAllocate | ( | void | ) |
Calls the allocate function pointer registered for this block and returns the ReplicaObject pointer
void CallBackDelete | ( | ReplicaObject * | object | ) |
Calls the delete function pointer registered for this block
object | the replica object pointer to delete |
int GetClassID | ( | void | ) |
Gets the class id from the structure
const char* GetName | ( | void | ) | const |
Gets the class name if the preprocessor define REPLICANET_VISUALDEBUGGER is used. Otherwise the return value is null. If the class name is null then the ReplicaObject will not appear in the Visual Debugger output.