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