Add an into_inner() function on infinite scrolled map

This commit is contained in:
Gwilym Inzani 2024-03-05 23:50:38 +00:00
parent 0e7716b4ee
commit 569a1c0425

View file

@ -430,6 +430,11 @@ impl<'a> InfiniteScrolledMap<'a> {
pub const fn background(&self) -> BackgroundID { pub const fn background(&self) -> BackgroundID {
self.map.background() self.map.background()
} }
#[must_use]
pub fn into_inner(self) -> MapLoan<'a, RegularMap> {
self.map
}
} }
fn div_floor(x: i32, y: i32) -> i32 { fn div_floor(x: i32, y: i32) -> i32 {