Added comments to new functions

This commit is contained in:
2026-04-29 21:47:17 +02:00
parent e75fc6dbe9
commit 081e690dc3

View File

@@ -99,6 +99,7 @@ pub const NodeManager = struct {
return e.Entity.NotFound;
}
/// Runs a scan through all the nodes and returns the reference to one that is within the radius
pub fn getHighlightedNode(self: *const NodeManager, pos: Vector2) ?*Node {
for (self.nodes.items) |node| {
if (node.withinRadius(pos)) return node;