tavern_keeper/src/entity.rs

14 lines
251 B
Rust
Raw Normal View History

2023-01-04 13:37:25 +00:00
pub type EntityId = u32;
#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)]
pub struct Location {
pub x: i32,
pub y: i32,
2022-12-31 14:22:44 +00:00
}
2023-01-04 13:37:25 +00:00
#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)]
pub struct Entity {
pub id: EntityId,
pub loc: Location
}