#include <ReplicaManager.h>
Public Member Functions | |
ReceiveConstructionInterface () | |
virtual | ~ReceiveConstructionInterface () |
virtual ReplicaReturnResult | ReceiveConstruction (RakNet::BitStream *inBitStream, RakNetTime timestamp, NetworkID networkID, NetworkIDObject *existingObject, SystemAddress senderId, ReplicaManager *caller)=0 |
An interface for a class that handles the construction callback from the network See ReplicaManager::SetReceiveConstructionCB
Definition at line 43 of file ReplicaManager.h.
ReceiveConstructionInterface::ReceiveConstructionInterface | ( | ) | [inline] |
Definition at line 46 of file ReplicaManager.h.
virtual ReceiveConstructionInterface::~ReceiveConstructionInterface | ( | ) | [inline, virtual] |
Definition at line 47 of file ReplicaManager.h.
virtual ReplicaReturnResult ReceiveConstructionInterface::ReceiveConstruction | ( | RakNet::BitStream * | inBitStream, | |
RakNetTime | timestamp, | |||
NetworkID | networkID, | |||
NetworkIDObject * | existingObject, | |||
SystemAddress | senderId, | |||
ReplicaManager * | caller | |||
) | [pure virtual] |
Called when a network object needs to be created by the ReplicaManager class
[in] | inBitStream | The bitstream that was written to in Replica::SendConstruction |
[in] | timestamp | If in Replica::SendConstruction you set sendTimestamp to true, this is the time the packet was sent. Otherwise it is 0. |
[in] | networkID | If the remote object had an NetworkID set by the time Replica::SendConstruction was called it is here. |
[in] | existingNetworkObject | If networkID is already in use, existingNetworkObject is the pointer to that object. If existingReplica is non-zero, you usually shouldn't create a new object, unless you are reusing networkIDs, such as having the client and server both on the same computer |
[in] | senderId | Which SystemAddress sent this packet. |
[in] | caller | Which instance of ReplicaManager is calling this interface |