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