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