public byte[] ToProtoBytes()
 {
     return(BaseProjectile.SerializeToBytes(this));
 }
 public static void SerializeLengthDelimited(Stream stream, BaseProjectile instance)
 {
     byte[] bytes = BaseProjectile.SerializeToBytes(instance);
     ProtocolParser.WriteUInt32(stream, (uint)bytes.Length);
     stream.Write(bytes, 0, (int)bytes.Length);
 }