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.
16 lines
307 B
16 lines
307 B
2 years ago
|
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,
|
||
2 years ago
|
ghost_texture_rect,
|
||
2 years ago
|
}
|
||
|
}
|
||
2 years ago
|
}
|