A* Pathfinding Project
3.7.2
The A* Pathfinding Project for Unity 3D
|
GraphModifier for modifying graphs or processing graph data based on events. More...
GraphModifier for modifying graphs or processing graph data based on events.
This class is a simple container for a number of events.
Public Types | |
enum | EventType { PostScan = 1 << 0, PreScan = 1 << 1, LatePostScan = 1 << 2, PreUpdate = 1 << 3, PostUpdate = 1 << 4, PostCacheLoad = 1 << 5 } |
GraphModifier event type. More... | |
Public Member Functions | |
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 | FindAllModifiers () |
static void | TriggerEvent (GraphModifier.EventType type) |
Triggers an event for all active graph modifiers. | |
Protected Member Functions | |
virtual void | OnDisable () |
Removes this modifier from list of active modifiers. | |
virtual void | OnEnable () |
Adds this modifier to list of active modifiers. | |
Private Attributes | |
GraphModifier | next |
GraphModifier | prev |
Static Private Attributes | |
static GraphModifier | root |
All active graph modifiers. | |
enum EventType |
GraphModifier event type.
|
static |
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
|
virtual |
Called before graphs are updated using GraphUpdateObjects.
|
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, NodeLink3, NodeLink2, and NodeLink.
|
virtual |
Called right before graphs are going to be scanned.
|
static |
Triggers an event for all active graph modifiers.
|
private |
|
private |
|
staticprivate |
All active graph modifiers.