el_diablo/src/artifacts.rs

17 lines
286 B
Rust
Raw Normal View History

2023-12-03 13:44:29 +01:00
use crate::position::Position;
pub struct Artifact {
position: Position,
}
impl Artifact {
pub fn new(position: Position) -> Self {
Artifact {
position,
}
}
pub fn get_immutable_position(&self) -> &Position {
&self.position
}
}