Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
JsonSerializer Class Reference

Class for sending RPC over network. More...

Inheritance diagram for JsonSerializer:
Serializer

Detailed Description

Class for sending RPC over network.

// example sending
void Send()
{
ScriptRPC rpc = new ScriptRPC();
rpc.Write(645);
rpc.Write("hello");
array<float> farray = {1.2, 5.6, 8.1};
rpc.Write(farray);
rpc.Send(m_Player, ERPCs.RPC_TEST, true, m_Player.GetIdentity());
}
// example receive
{
int num;
string text;
array<float> farray;
ctx.Read(num);
ctx.Read(text);
ctx.Read(farray);
}

Definition at line 49 of file gameplay.c.


The documentation for this class was generated from the following file:
Serializer
Serialization general interface. Serializer API works with:
Definition: serializer.c:55
OnRPC
void OnRPC(ParamsReadContext ctx)
Definition: displaystatus.c:216
ScriptRPC
Definition: gameplay.c:104
m_Player
DayZPlayer m_Player
Definition: hand_events.c:42
array< float >
ERPCs
ERPCs
Definition: erpcs.c:1