feat: add cursor-based node highlighting for debug

This commit is contained in:
2025-08-16 12:26:24 -05:00
parent 2140fbec1b
commit 90adaf9e84
4 changed files with 75 additions and 25 deletions

View File

@@ -126,19 +126,6 @@ impl Position {
Position::Moving { from, .. } => *from,
}
}
/// Returns the `NodeId` of the destination node, if currently traveling.
pub fn target_node(&self) -> Option<NodeId> {
match self {
Position::Stopped { .. } => None,
Position::Moving { to, .. } => Some(*to),
}
}
/// Returns `true` if the entity is traveling between nodes.
pub fn is_moving(&self) -> bool {
matches!(self, Position::Moving { .. })
}
}
// pub fn movement_system(