Skip to content

Commit

Permalink
get it
Browse files Browse the repository at this point in the history
  • Loading branch information
jupyterkat committed May 8, 2024
1 parent e36421f commit 5c994b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/byondapi-rs/src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ impl ByondXYZ {
pub fn with_coords((x, y, z): (i16, i16, i16)) -> Self {
Self(CByondXYZ { x, y, z, junk: 0 })
}
pub fn coordinates(&self) -> (i16, i16, i16) {
(self.0.x, self.0.y, self.0.z)
}
}

impl Default for ByondXYZ {
Expand Down

0 comments on commit 5c994b4

Please sign in to comment.