Skip to content

Commit

Permalink
Merge pull request #211 from tehsmeely/main
Browse files Browse the repository at this point in the history
Impl PartialEq and PartialOrd on TilePos
  • Loading branch information
StarArawn authored Aug 7, 2022
2 parents d9a5c5c + 4d91bed commit cb5a67b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tiles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub use storage::*;
use crate::map::TilemapId;

/// A tile position in the tilemap grid.
#[derive(Component, Default, Clone, Copy, Debug, Hash)]
#[derive(Component, Default, Clone, Copy, Debug, Hash, PartialEq, Eq, PartialOrd)]
pub struct TilePos {
pub x: u32,
pub y: u32,
Expand Down

0 comments on commit cb5a67b

Please sign in to comment.