kroz-rs/src/components/position.rs
2022-01-26 18:45:54 -05:00

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
}
}