First attempt to add NPCs
This commit is contained in:
11
src/direction.rs
Normal file
11
src/direction.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct Direction {
|
||||
pub x: isize,
|
||||
pub y: isize
|
||||
}
|
||||
|
||||
impl Direction {
|
||||
pub fn new(x: isize, y: isize) -> Self {
|
||||
Self { x, y }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user