Definition at line 104 of file gameplay.c.
◆ ScriptRPC()
void ScriptRPC::ScriptRPC |
( |
| ) |
|
|
private |
◆ ~ScriptRPC()
void ScriptRPC::~ScriptRPC |
( |
| ) |
|
|
private |
◆ Reset()
Reset internal buffer which stores written data. After Reset is callded, ScriptRPC can be used again as "new" ScriptRPC.
◆ Send()
Initiate remote procedure call. When called on client, RPC is evaluated on server; When called on server, RPC is executed on all clients. Do not reset ScriptRPC internal state, so if is Send called multiple times in a row, it sends same (previously written) data again and again, until is Reset() called.
- Parameters
-
target | object on which remote procedure is called, when NULL, RPC is evaluated by CGame as global |
rpc_type | user defined identification of RPC |
recipient | specified client to send RPC to. If NULL, RPC will be send to all clients (specifying recipient increase security and decrease network traffic) |
The documentation for this class was generated from the following file: