Exemplo n.º 1
0
 protected virtual void WriteHash(Type type, NetDataWriter writer)
 {
     writer.Put(GetHash(type));
 }
Exemplo n.º 2
0
 public void Write <T>(NetDataWriter writer, T packet) where T : class, new()
 {
     WriteHash(typeof(T), writer);
     _netSerializer.Serialize(writer, packet);
 }
Exemplo n.º 3
0
 public void WriteNetSerializable <T>(NetDataWriter writer, T packet) where T : INetSerializable
 {
     WriteHash(typeof(T), writer);
     packet.Serialize(writer);
 }
Exemplo n.º 4
0
 public void SetSource(NetDataWriter dataWriter)
 {
     _data     = dataWriter.Data;
     _position = 0;
     _dataSize = dataWriter.Length;
 }