17 lines
286 B
Rust
17 lines
286 B
Rust
|
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
|
||
|
}
|
||
|
}
|