Function IConnectionFilter.IsValidConnection

IsValidConnection (int dataIndex, int dataX, int dataLayer, int dataZ, int direction, int neighbourDataIndex)

Returns true if the connection should be enabled.

Public
bool IsValidConnection (

int

dataIndex

Index of the node for which the connection is being tested. This is the index in the data arrays for the graph update, not necessarily the index in the graph.

int

dataX

X coordinate of the node for which the connection is being tested, relative to the updated region.

int

dataLayer

Layer (Y) coordinate of the node for which the connection is being tested, relative to the updated region.

int

dataZ

Z coordinate of the node for which the connection is being tested, relative to the updated region.

int

direction

Direction to the neighbour. See GridNode.HasConnectionInDirection.

int

neighbourDataIndex

Index of the neighbour node. This is the index in the data arrays for the graph update, not necessarily the index in the graph.

)

Returns true if the connection should be enabled.