ReplicaNet and RNLobby  1
Public Member Functions | List of all members
application Class Reference
Inheritance diagram for application:
Inheritance graph
[legend]
Collaboration diagram for application:
Collaboration graph
[legend]

Public Member Functions

 object (name)
 

Detailed Description

This keyword is used to define what C++ classes the ReplicaNet layer uses when running an application. For example:

application
{
    object TestObject1;
    object TestObject2;
}

A common error when linking with ReplicaNet is to see a linker error for an resolved external symbol similar to ReplicaNetPreRegisterReplicasFunc which may also have symbol decoration. The solution is to compile an ROL file containing this application keyword and then compile and link with the output CPP file which uses the _RO_DO_PREREGISTER_FUNC macro. Or use the RO macros directly without the RNROLCompiler.

Member Function Documentation

object ( name  )

This keyword allows C++ class names that use the ReplicaObject mechanism to be registered with ReplicaNet.

Parameters
nameThe name of the C++ class to register