septadrop/septadrop/src/structs/tile_type.rs
2023-09-05 17:52:25 -07:00

15 lines
307 B
Rust

use sfml::graphics::IntRect;
pub struct TileType {
pub texture_rect: IntRect,
pub ghost_texture_rect: IntRect,
}
impl TileType {
pub fn new(texture_rect: IntRect, ghost_texture_rect: IntRect) -> Self {
Self {
texture_rect,
ghost_texture_rect,
}
}
}