use bevy_ecs::component::Component;
use bevy_math::Vec2;
use bevy_sprite::Anchor;
#[derive(Component, Debug, Default, Clone)]
#[repr(C)]
pub struct Sprite {
pub flip_x: bool,
pub flip_y: bool,
pub custom_size: Option<Vec2>,
pub anchor: Anchor,
}
impl Sprite {
pub fn sized(size: Vec2) -> Self {
Self {
custom_size: Some(size),
..Default::default()
}
}
}