Class WorkItemProcessor Extends IWorkItemContext

Public

Inner Types

Similar to Queue<T> but allows random access.

Public Methods

AddWorkItem (item)

Add a work item to be processed when pathfinding is paused.

Public
EnsureValidFloodFill ()

If a WorkItem needs to have a valid area information during execution, call this method to ensure there are no pending flood fills.

Public
ProcessWorkItemsForScan (force)

Process graph updating work items.

Public
ProcessWorkItemsForUpdate (force)

Process graph updating work items.

Public
WorkItemProcessor (astar)
Public

Public Variables

anyQueued

True if any work items are queued right now.

Public
workItemsInProgress

True while a batch of work items are being processed.

Public
workItemsInProgressRightNow

Used to prevent waiting for work items to complete inside other work items as that will cause the program to hang.

Public

Private/Protected Members

anyGraphsDirty
Private
astar
Private Readonly
ProcessWorkItems (force)
Private
SetGraphDirty (graph)

Trigger a graph modification event.

Private
workItems
Private Readonly

Deprecated Members

QueueFloodFill ()

Call during work items to queue a flood fill.

Private