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