Class for sending RPC over network.
More...
Class for sending RPC over network.
void Send()
{
}
{
int num;
string text;
}
ERPCs
Definition ERPCs.c:2
PlayerBase m_Player
Definition TransferValues.c:10
void OnRPC(ParamsReadContext ctx)
Definition TransferValues.c:165
Definition gameplay.c:105
proto native void Send(Object target, int rpc_type, bool guaranteed, PlayerIdentity recipient=NULL)
Initiate remote procedure call. When called on client, RPC is evaluated on server; When called on ser...
Serialization general interface. Serializer API works with:
Definition Serializer.c:56
proto bool Write(void value_out)
proto bool Read(void value_in)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Definition IsBoxCollidingGeometryProxyClasses.c:28
◆ JsonSerializer()
◆ ~JsonSerializer()
◆ ReadFromString()
proto bool ReadFromString |
( |
void |
variable_in, |
|
|
string |
jsonString, |
|
|
out string |
error |
|
) |
| |
|
private |
Json string deserialization to script variable.
- Parameters
-
variable_in | script variable to be deserialized from string |
jsonString | the input string |
error | from the deserialization. Is used only if the return value of the function is false |
- Returns
- if the deserialization was successful
string input =
string error;
bool ok = js.ReadFromString(data, input, error);
JsonDataAreaData Data
Definition JsonDataContaminatedArea.c:13
Referenced by GetControlMappingInfo(), and UIScriptedMenu::GetControlMappingInfo().
◆ WriteToString()
proto bool WriteToString |
( |
void |
variable_out, |
|
|
bool |
nice, |
|
|
out string |
result |
|
) |
| |
|
private |
Script variable serialization to json string.
- Parameters
-
variable_out | script variable to be serialized to string |
nice | if the string should be formated for human readability |
result | from the serialization, output or error depending on the return value |
- Returns
- if the serialization was successful
string textOut;
bool nice = false;
Class for sending RPC over network.
Definition gameplay.c:50
void JsonSerializer()
Definition gameplay.c:51
proto bool WriteToString(void variable_out, bool nice, out string result)
Script variable serialization to json string.
The documentation for this class was generated from the following file: