A* Pathfinding Project  4.0.3
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
IWorkItemContext Interface Reference

Interface to expose a subset of the WorkItemProcessor functionality. More...

Detailed Description

Interface to expose a subset of the WorkItemProcessor functionality.

Public Member Functions

void EnsureValidFloodFill ()
 If a WorkItem needs to have a valid flood fill during execution, call this method to ensure there are no pending flood fills.
 
void QueueFloodFill ()
 Call during work items to queue a flood fill.
 

Member Function Documentation

void EnsureValidFloodFill ( )

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

void QueueFloodFill ( )

Call during work items to queue a flood fill.

An instant flood fill can be done via FloodFill() but this method can be used to batch several updates into one to increase performance. WorkItems which require a valid Flood Fill in their execution can call EnsureValidFloodFill to ensure that a flood fill is done if any earlier work items queued one.

Once a flood fill is queued it will be done after all WorkItems have been executed.


The documentation for this interface was generated from the following file: