use super::*;
#[derive(Clone, Copy, Data, Debug, New, PartialEq)]
pub struct TilePaletteEntry {
#[get(type(copy))]
pub(crate) color: Color,
#[get(type(copy))]
pub(crate) border_color: Color,
#[get(type(copy))]
pub(crate) solid: bool,
}
#[derive(Clone, Data, Debug)]
pub struct TileMap {
#[get(type(copy))]
pub(crate) columns: usize,
#[get(type(copy))]
pub(crate) rows: usize,
#[get(type(copy))]
pub(crate) tile_size: f32,
pub(crate) cells: Vec<u16>,
pub(crate) palette: Vec<TilePaletteEntry>,
}
#[derive(Clone, Data, Debug)]
pub struct SpriteSheet {
pub(crate) texture: ImageBuffer,
#[get(type(copy))]
pub(crate) frame_width: u32,
#[get(type(copy))]
pub(crate) frame_height: u32,
#[get(type(copy))]
pub(crate) columns: u32,
}
#[derive(Clone, Copy, Data, Debug, New, PartialEq)]
pub struct SpriteAnimator {
#[get(type(copy))]
pub(crate) start_frame: u32,
#[get(type(copy))]
pub(crate) frame_count: u32,
#[get(type(copy))]
pub(crate) fps: f32,
#[get(type(copy))]
pub(crate) looping: bool,
#[get(type(copy))]
pub(crate) elapsed_secs: f32,
}