el_diablo/src/position.rs

15 lines
209 B
Rust
Raw Normal View History

2023-11-08 06:52:20 +01:00
pub struct Position {
level: u8,
x: u8,
y: u8,
}
impl Position {
pub fn new(level: u8, x: u8, y: u8) -> Self {
Self {
level,
x,
y,
}
}
}