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