change tile to self
Some checks failed
Rust Checks / checks (push) Has been cancelled
Rust Checks / checks (pull_request) Failing after 3m19s

This commit is contained in:
CoCo_Sol 2024-03-12 17:13:12 +01:00
parent 8ca098d04a
commit b7b9be2a18

View file

@ -41,17 +41,17 @@ impl Tile {
/// this function in the future.
pub const fn get_image_size(&self) -> Vec2 {
match self {
Tile::Breeding => Vec2::new(184., 158.),
Tile::Casern => Vec2::new(184., 167.),
Tile::Castle => Vec2::new(192., 196.),
Tile::Forest => Vec2::new(184., 165.),
Tile::Grass => Vec2::new(184., 138.),
Tile::Hill => Vec2::new(184., 181.),
Tile::Mine => Vec2::new(184., 166.),
Tile::Outpost => Vec2::new(184., 208.),
Tile::Sawmill => Vec2::new(184., 138.),
Tile::Tower => Vec2::new(184., 218.),
Tile::Wall => Vec2::new(184., 186.),
Self::Breeding => Vec2::new(184., 158.),
Self::Casern => Vec2::new(184., 167.),
Self::Castle => Vec2::new(192., 196.),
Self::Forest => Vec2::new(184., 165.),
Self::Grass => Vec2::new(184., 138.),
Self::Hill => Vec2::new(184., 181.),
Self::Mine => Vec2::new(184., 166.),
Self::Outpost => Vec2::new(184., 208.),
Self::Sawmill => Vec2::new(184., 138.),
Self::Tower => Vec2::new(184., 218.),
Self::Wall => Vec2::new(184., 186.),
}
}
}