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

Graphs which can be updated during runtime. More...

Detailed Description

Graphs which can be updated during runtime.

Public Member Functions

GraphUpdateThreading CanUpdateAsync (GraphUpdateObject o)
 
void UpdateArea (GraphUpdateObject o)
 Updates an area using the specified GraphUpdateObject.
 
void UpdateAreaInit (GraphUpdateObject o)
 May be called on the Unity thread before starting the update.
 
void UpdateAreaPost (GraphUpdateObject o)
 May be called on the Unity thread after executing the update.
 

Member Function Documentation

GraphUpdateThreading CanUpdateAsync ( GraphUpdateObject  o)
void UpdateArea ( GraphUpdateObject  o)

Updates an area using the specified GraphUpdateObject.

Notes to implementators. This function should (in order):

  1. Call o.WillUpdateNode on the GUO for every node it will update, it is important that this is called BEFORE any changes are made to the nodes.
  2. Update walkabilty using special settings such as the usePhysics flag used with the GridGraph.
  3. Call Apply on the GUO for every node which should be updated with the GUO.
  4. Update connectivity info if appropriate (GridGraphs updates connectivity, but most other graphs don't since then the connectivity cannot be recovered later).
void UpdateAreaInit ( GraphUpdateObject  o)

May be called on the Unity thread before starting the update.

See Also
CanUpdateAsync
void UpdateAreaPost ( GraphUpdateObject  o)

May be called on the Unity thread after executing the update.

See Also
CanUpdateAsync

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