Esempio n. 1
0
 public void Deserialize(NetReader reader)
 {
     identity = reader.ReadPackedUInt64();
 }
 public void Deserialize(NetReader r)
 {
     id   = r.ReadPackedUInt64();
     flag = r.ReadByte();
 }
Esempio n. 3
0
        public ArraySegment <byte> data; // Recieves The Data


        public void Deserialize(NetReader r)
        {
            Command = r.ReadByte();
            data    = r.ReadBytesAndSizeSegment();
        }
Esempio n. 4
0
 public void Deserialize(NetReader reader)
 {
     lastPingPacketTime = reader.ReadDouble();
 }
Esempio n. 5
0
 public void Deserialize(NetReader reader)
 {
     clientTime = reader.ReadDouble();
     serverTime = reader.ReadDouble();
 }
Esempio n. 6
0
 static void SetBuffer(NetReader reader, ArraySegment <byte> segment)
 {
     reader.buffer   = segment;
     reader.Position = 0;
 }
Esempio n. 7
0
 // SetBuffer methods mirror constructor for ReaderPool
 static void SetBuffer(NetReader reader, byte[] bytes)
 {
     reader.buffer   = new ArraySegment <byte>(bytes);
     reader.Position = 0;
 }
Esempio n. 8
0
 public void Deserialize(NetReader reader)
 {
 }