A* Pathfinding Project  3.8.8
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)
 

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 eventual 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)

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