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.

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

Process graph updating work items.

Process graph updating work items.

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

Public Events

OnGraphsUpdated
Public

Private/Protected Members

DirtyBounds (bounds)

Mark a particular region of the world as having been changed.

Call to send a GraphModifier.EventType.PreUpdate event to all graph modifiers.

ProcessWorkItems (force, sendEvents)
SetGraphDirty (graph)

Trigger a graph modification event.

anyGraphsDirty
Private
astar
Private Readonly
preUpdateEventSent
Private
workItems
Private Readonly

Deprecated Members

Call during work items to queue a flood fill.