Want to contribute? Fork me on Codeberg.org!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
septadrop/septadrop/src/structs/tile_type.rs

16 lines
307 B

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,
}
}
}