public void Deserialize(NetReader reader) { identity = reader.ReadPackedUInt64(); }
public void Deserialize(NetReader r) { id = r.ReadPackedUInt64(); flag = r.ReadByte(); }
public ArraySegment <byte> data; // Recieves The Data public void Deserialize(NetReader r) { Command = r.ReadByte(); data = r.ReadBytesAndSizeSegment(); }
public void Deserialize(NetReader reader) { lastPingPacketTime = reader.ReadDouble(); }
public void Deserialize(NetReader reader) { clientTime = reader.ReadDouble(); serverTime = reader.ReadDouble(); }
static void SetBuffer(NetReader reader, ArraySegment <byte> segment) { reader.buffer = segment; reader.Position = 0; }
// SetBuffer methods mirror constructor for ReaderPool static void SetBuffer(NetReader reader, byte[] bytes) { reader.buffer = new ArraySegment <byte>(bytes); reader.Position = 0; }
public void Deserialize(NetReader reader) { }