From 081e690dc329bebb8df12eb15cc690972cb3d933 Mon Sep 17 00:00:00 2001 From: Marto Date: Wed, 29 Apr 2026 21:47:17 +0200 Subject: [PATCH] Added comments to new functions --- src/infrastructure/node_manager.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/infrastructure/node_manager.zig b/src/infrastructure/node_manager.zig index 0c8e294..20fa784 100644 --- a/src/infrastructure/node_manager.zig +++ b/src/infrastructure/node_manager.zig @@ -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;