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