Class GlobalNodeStorage

Package

Inner Types

Public Methods

AllocateNodesJob<T> (result, count, createNode, variantsPerNode)
Public
DestroyNode (node)

Destroyes the given node.

Public
GetNode (nodeIndex)
Public
GlobalNodeStorage (astar)
Public
GrowTemporaryNodeStorage (threadID)

Grows temporary node storage for the given thread.

Public
InitializeNode (node)

Initializes temporary path data for a node.

Public
OnDisable ()
Public
SetThreadCount (threadCount)
Public

Public Variables

destroyedNodesVersion

Number of nodes that have been destroyed in total.

Public
nextNodeIndex

Holds the next node index which has not been used by any previous node.

Public
pathfindingThreadData
Public
reservedPathNodeData

The number of nodes for which path node data has been reserved.

Public

Private/Protected Members

DisposeThreadData ()
Private
InitialTemporaryNodes
Private Static
ReserveNodeIndices (nextNodeIndex)

Reserves space for global node data.

Private
astar
Private Readonly
lastAllocationJob
Private
nodeIndexPools

Holds indices for nodes that have been destroyed.

Private Readonly
nodes

Maps from NodeIndex to node.

Private
temporaryNodeCount
Private