use bevy_ecs::component::Component;
use bevy_math::Vec2;
use bevy_sprite::Anchor;
#[derive(Component, Debug, Default, Clone)]
pub struct TextureAtlasSprite {
pub index: usize,
pub flip_x: bool,
pub flip_y: bool,
pub custom_size: Option<Vec2>,
pub anchor: Anchor,
}
impl TextureAtlasSprite {
pub fn new(index: usize) -> Self {
Self {
index,
..Default::default()
}
}
}