Skip to content

Commit

Permalink
Merge pull request #258 from mapeditor/current
Browse files Browse the repository at this point in the history
Merge current into next
  • Loading branch information
aleokdev committed Mar 16, 2023
2 parents 552e800 + 4f1a930 commit 6dff214
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/layers/tile/finite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl<'map> FiniteTileLayer<'map> {
/// Obtains the tile present at the position given.
///
/// If the position given is invalid or the position is empty, this function will return [`None`].
pub fn get_tile(&self, x: i32, y: i32) -> Option<LayerTile> {
pub fn get_tile(&self, x: i32, y: i32) -> Option<LayerTile<'map>> {
self.data
.get_tile_data(x, y)
.map(|data| LayerTile::new(self.map(), data))
Expand Down
2 changes: 1 addition & 1 deletion src/layers/tile/infinite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ impl<'map> InfiniteTileLayer<'map> {
/// Obtains the tile present at the position given.
///
/// If the position is empty, this function will return [`None`].
pub fn get_tile(&self, x: i32, y: i32) -> Option<LayerTile> {
pub fn get_tile(&self, x: i32, y: i32) -> Option<LayerTile<'map>> {
self.data
.get_tile_data(x, y)
.map(|data| LayerTile::new(self.map, data))
Expand Down
2 changes: 1 addition & 1 deletion src/layers/tile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl<'map> TileLayer<'map> {
/// Obtains the tile present at the position given.
///
/// If the position given is invalid or the position is empty, this function will return [`None`].
pub fn get_tile(&self, x: i32, y: i32) -> Option<LayerTile> {
pub fn get_tile(&self, x: i32, y: i32) -> Option<LayerTile<'map>> {
match self {
TileLayer::Finite(finite) => finite.get_tile(x, y),
TileLayer::Infinite(infinite) => infinite.get_tile(x, y),
Expand Down

0 comments on commit 6dff214

Please sign in to comment.