use bracket_lib::prelude::*; use specs::prelude::*; use specs_derive::Component; #[derive(Component)] pub struct Position { pub x: i32, pub y: i32, } impl PartialEq for Position { fn eq(&self, other: &Point) -> bool { self.x == other.x && self.y == other.y } }