#include <tnlNetObject.h>
Inheritance diagram for TNL::NetObjectRPCEvent:
When an RPC method is called on the server side NetObject, it is broadcast to all connections that have that NetObject in scope. When an RPC method is called on a ghost (on the client), it is handled by the originating server object.
Public Member Functions | |
NetObjectRPCEvent (NetObject *destObject, RPCGuaranteeType type, NetObjectRPCDirection dir) | |
Constructor - initializes the base class's data. | |
void | pack (EventConnection *ps, BitStream *bstream) |
Pack is called on the origin side of the connection to write an event's data into a packet. | |
void | unpack (EventConnection *ps, BitStream *bstream) |
Unpack is called on the destination side of the connection to read an event's data out of a packet. | |
void | process (EventConnection *ps) |
Process is called to process the event data when it has been unpacked. | |
Data Fields | |
SafePtr< NetObject > | mDestObject |
Destination object of the RPC invocation. | |
NetObjectRPCDirection | mRPCDirection |
Direction this RPC should travel. |
|
Constructor - initializes the base class's data.
|
|
Pack is called on the origin side of the connection to write an event's data into a packet.
Reimplemented from TNL::RPCEvent. |
|
Unpack is called on the destination side of the connection to read an event's data out of a packet.
Reimplemented from TNL::RPCEvent. |
|
Process is called to process the event data when it has been unpacked. For a guaranteed, ordered event, process is called only once all prior events have been received and processed. For unguaranteed events, process is called immediately after unpack. Reimplemented from TNL::RPCEvent. |
|
Destination object of the RPC invocation.
|
|
Direction this RPC should travel.
|