mirror of
https://github.com/rm-code/Graphoon.git
synced 2024-11-28 11:34:21 +00:00
Add getter which returns a node based on a given id
This commit is contained in:
parent
729afd59af
commit
35868a4360
@ -173,6 +173,13 @@ function Graph.new()
|
|||||||
func( edges, nodes );
|
func( edges, nodes );
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---
|
||||||
|
-- Returns the node the id is pointing to.
|
||||||
|
-- param id - The id to check for.
|
||||||
|
function self:getNode( id )
|
||||||
|
return nodes[id];
|
||||||
|
end
|
||||||
|
|
||||||
---
|
---
|
||||||
-- Gets a node at a certain point in the graph.
|
-- Gets a node at a certain point in the graph.
|
||||||
-- @param x - The x coordinate to check.
|
-- @param x - The x coordinate to check.
|
||||||
|
Loading…
Reference in New Issue
Block a user