A* Pathfinding Project  3.8
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
AstarPath.AstarWorkItem Struct Reference

Public Member Functions

 AstarWorkItem (System.Func< bool, bool > update)
 
 AstarWorkItem (System.Action init, System.Func< bool, bool > update)
 

Public Attributes

System.Action init
 Init function.
 
System.Func< bool, bool > update
 Update function, called once per frame when the work item executes.
 

Constructor & Destructor Documentation

AstarWorkItem ( System.Func< bool, bool >  update)
AstarWorkItem ( System.Action  init,
System.Func< bool, bool >  update 
)

Member Data Documentation

System.Action init

Init function.

May be null if no initialization is needed. Will be called once, right before the first call to update.

System.Func<bool, bool> update

Update function, called once per frame when the work item executes.

Takes a param force. If that is true, the work item should try to complete the whole item in one go instead of spreading it out over multiple frames.

Returns
True when the work item is completed.

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