Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
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);
}
void OnRPC(ParamsReadContext ctx)
Serialization general interface. Serializer API works with:
Definition serializer.c:56
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
ERPCs
Definition erpcs.c:2
DayZPlayer m_Player
Definition hand_events.c:42

Definition at line 49 of file gameplay.c.


The documentation for this class was generated from the following file: