pub fn interaction_target(&self, target: &puzzleverse_core::Point) -> Option<usize> {
    self
      .platforms
      .get(target.platform as usize)
      .map(|s| s.terrain.get(&(target.x, target.y)))
      .flatten()
      .map(|ground| match ground {
        Ground::Pieces { interaction, .. } => interaction.as_ref().map(|info| info.piece),
        _ => None,
      })
      .flatten()
  }
/// Determine if there is a puzzle piece to interact with at the specified position
Determine if there is a puzzle piece to interact with at the specified position
Determine if there is a puzzle piece to interact with at the specified position
pub fn interaction_target(&self, target: &puzzleverse_core::Point) -> Option<usize> {
    self
      .platforms
      .get(target.platform as usize)
      .map(|s| s.terrain.get(&(target.x, target.y)))
      .flatten()
      .map(|ground| match ground {
        Ground::Pieces { interaction, .. } => interaction.as_ref().map(|info| info.piece),
        _ => None,
      })
      .flatten()
  }
pub fn interaction_target ( & self , target : & puzzleverse_core :: Point ) -> Option < usize > { self . platforms . get ( target . platform as usize ) . map ( | s | s . terrain . get ( & ( target . x , target . y ) ) ) . flatten ( ) . map ( | ground | match ground { Ground :: Pieces { interaction , .. } => interaction . as_ref ( ) . map ( | info | info . piece ) , _ => None , } ) . flatten ( ) }
Determine if there is a puzzle piece to interact with at the specified position
Determine if there is a puzzle piece to interact with at the specified position
&self
target
&puzzleverse_core::Point
&self
target
&puzzleverse_core::Point