Struct NodeGraph
Assembly: AnyPath.dll
Syntax
public struct NodeGraph : IGraph<NodeGraphNode>, IDisposable
Constructors
NodeGraph(Allocator)
Declaration
public NodeGraph(Allocator allocator)
Parameters
Type |
Name |
Description |
Allocator |
allocator |
|
Methods
Clear()
Declaration
ConnectNodes(int, int)
Declaration
public void ConnectNodes(int id1, int id2)
Parameters
Type |
Name |
Description |
int |
id1 |
|
int |
id2 |
|
ConnectNodesDirected(int, int)
Declaration
public void ConnectNodesDirected(int fromId, int toId)
Parameters
Type |
Name |
Description |
int |
fromId |
|
int |
toId |
|
GetNode(int)
Declaration
public NodeGraphNode GetNode(int id)
Parameters
Type |
Name |
Description |
int |
id |
|
Returns
SetNode(int, float3)
Declaration
public void SetNode(int id, float3 position)
Parameters
Type |
Name |
Description |
int |
id |
|
float3 |
position |
|
SetNode(int, float3, float, int)
Declaration
public void SetNode(int id, float3 position, float enterCost, int flags)
Parameters
Type |
Name |
Description |
int |
id |
|
float3 |
position |
|
float |
enterCost |
|
int |
flags |
|
TryGetNode(int, out NodeGraphNode)
Declaration
public bool TryGetNode(int id, out NodeGraphNode node)
Parameters
Returns
Implements
Extension Methods