A* Pathfinding Project
3.8.10
The A* Pathfinding Project for Unity 3D
|
GraphModifier is used for modifying graphs or processing graph data based on events. More...
GraphModifier is used 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 | Awake () |
virtual void | OnDestroy () |
virtual void | OnDisable () |
Removes this modifier from list of active modifiers. | |
virtual void | OnEnable () |
Adds this modifier to list of active modifiers. | |
Static Protected Member Functions | |
static List< T > | GetModifiersOfType< T > () |
Protected Attributes | |
ulong | uniqueID |
Unique persistent ID for this component, used for serialization. | |
Static Protected Attributes | |
static Dictionary< ulong, GraphModifier > | usedIDs = new Dictionary<ulong, GraphModifier>() |
Maps persistent IDs to the component that uses it. | |
Private Member Functions | |
void | AddToLinkedList () |
void | ConfigureUniqueID () |
void | RemoveFromLinkedList () |
void | Reset () |
Private Attributes | |
GraphModifier | next |
GraphModifier | prev |
Static Private Attributes | |
static GraphModifier | root |
All active graph modifiers. | |
enum EventType |
GraphModifier event type.
|
private |
|
protectedvirtual |
|
private |
|
static |
|
staticprotected |
T | : | GraphModifier |
|
protectedvirtual |
|
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.
|
private |
|
private |
|
static |
Triggers an event for all active graph modifiers.
|
private |
|
private |
|
staticprivate |
All active graph modifiers.
|
protected |
Unique persistent ID for this component, used for serialization.
|
staticprotected |
Maps persistent IDs to the component that uses it.