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