Added comments to new functions
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user