public virtual void WriteToStreamDelta(Stream stream, BaseNetworkable previous) { if (previous == null) { BaseNetworkable.Serialize(stream, this); return; } BaseNetworkable.SerializeDelta(stream, this, previous); }
public static byte[] SerializeToBytes(BaseNetworkable instance) { byte[] array; using (MemoryStream memoryStream = new MemoryStream()) { BaseNetworkable.Serialize(memoryStream, instance); array = memoryStream.ToArray(); } return(array); }
public virtual void WriteToStream(Stream stream) { BaseNetworkable.Serialize(stream, this); }
public void ToProto(Stream stream) { BaseNetworkable.Serialize(stream, this); }