![]() |
Procedural Hexagon Grid Framework
|
Class for nodes, used for pathfinding and placing objects. More...
Public Member Functions | |
| Node (Vector3 vector3, NodeType nodeType, CellObject parentCO) | |
| Initializes node. | |
| void | AddParentCellObject (CellObject parentCO) |
| Adds CellObject to parent list. | |
| void | AddNeighbour (Node node) |
| Adds Node to neighbour list. | |
Static Public Member Functions | |
| static void | UpdateAllNodes () |
| Updates all the nodes and puts them in to the nodes dictionary. | |
| static void | DebugDrawNodeGrid () |
| Draws debug graph for nodes, lasts 5 seconds (very FPS intensive) | |
Public Attributes | |
| Vector3 | vector3 |
| List< Node > | neighbours |
| List< CellObject > | parentCellObjects |
| NodeType | nodeType |
| bool | occupied |
Static Public Attributes | |
| static Dictionary< Vector3, Node > | nodes = new Dictionary<Vector3, Node>() |
Class for nodes, used for pathfinding and placing objects.