A* Pathfinding Project
3.1.4
The A* Pathfinding Project for Unity 3D
|
GraphModifier for modifying graphs or processing graph data based on events. More...
Public Types | |
enum | EventType { PostScan, PreScan, LatePostScan, PreUpdate, PostUpdate, PostCacheLoad } |
GraphModifier event type. More... | |
Public Member Functions | |
virtual void | OnDisable () |
Removes this modifier from list of active modifiers. | |
virtual void | OnEnable () |
Adds this modifier to list of active modifiers. | |
virtual void | OnGraphsPostUpdate () |
Called after graphs have been updated using GraphUpdateObjects. | |
virtual void | OnGraphsPreUpdate () |
Called before graphs are updated using GraphUpdateObjects. | |
virtual void | OnLatePostScan () |
Called at the end of the scanning procedure. | |
virtual void | OnPostCacheLoad () |
Called after cached graphs have been loaded. | |
virtual void | OnPostScan () |
Called right after all graphs have been scanned. | |
virtual void | OnPreScan () |
Called right before graphs are going to be scanned. | |
Static Public Member Functions | |
static void | TriggerEvent (GraphModifier.EventType type) |
Triggers an event for all active graph modifiers. | |
Static Private Member Functions | |
static List< GraphModifier > | GetActiveModifiers () |
Returns all active graph modifiers in the scene. | |
Static Private Attributes | |
static List< GraphModifier > | activeModifiers = new List<GraphModifier>() |
All active graph modifiers. | |
static int | lastLateScanEvent = -9999 |
Last frame a late scan event was triggered. | |
static int | lastPostCacheEvent = -9999 |
Last frame a post cache event was triggered. | |
GraphModifier for modifying graphs or processing graph data based on events.
This class is a simple container for a number of events.
enum EventType |
GraphModifier event type.
|
virtual |
Adds this modifier to list of active modifiers.
Calls OnLatePostScan if the last late post scan event was triggered during this frame.
|
virtual |
Called after graphs have been updated using GraphUpdateObjects.
Eventual flood filling has been done
|
virtual |
Called at the end of the scanning procedure.
This is the absolute last thing done by Scan.
Reimplemented in RVONavmesh.
|
virtual |
Called after cached graphs have been loaded.
When using cached startup, this event is analogous to OnLatePostScan and implementing scripts should do roughly the same thing for both events.
Reimplemented in RVONavmesh.
|
virtual |
Called right after all graphs have been scanned.
FloodFill and other post processing has not been done.
Reimplemented in GraphUpdateScene.
|
virtual |
Called right before graphs are going to be scanned.