Skip to content

Commit 5c994b4

Browse files
committed
get it
1 parent e36421f commit 5c994b4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/byondapi-rs/src/map.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ impl ByondXYZ {
2020
pub fn with_coords((x, y, z): (i16, i16, i16)) -> Self {
2121
Self(CByondXYZ { x, y, z, junk: 0 })
2222
}
23+
pub fn coordinates(&self) -> (i16, i16, i16) {
24+
(self.0.x, self.0.y, self.0.z)
25+
}
2326
}
2427

2528
impl Default for ByondXYZ {

0 commit comments

Comments
 (0)