Add Artifacts

This commit is contained in:
2023-12-03 13:44:29 +01:00
parent 900739190d
commit 220607133a
4 changed files with 99 additions and 19 deletions

16
src/artifacts.rs Normal file
View File

@@ -0,0 +1,16 @@
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
}
}