el_diablo/src/position.rs

15 lines
209 B
Rust

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