Class WorkItemProcessor Extends IWorkItemContext
Public
Inner Types
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
Public Events
OnGraphsUpdated
Public
Private/Protected Members
PreUpdate
()
Call to send a GraphModifier.EventType.PreUpdate event to all graph modifiers.
Private
ProcessWorkItems
(force, sendEvents)
Private
SetGraphDirty
(graph)
Trigger a graph modification event.
Private
anyGraphsDirty
Private
astar
Private
Readonly
preUpdateEventSent
Private
workItems
Private
Readonly
Deprecated Members
QueueFloodFill
()
Call during work items to queue a flood fill.
Private