A* Pathfinding Project
4.1.19
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. More... | |
virtual void | OnGraphsPreUpdate () |
Called before graphs are updated using GraphUpdateObjects. More... | |
virtual void | OnLatePostScan () |
Called at the end of the scanning procedure. More... | |
virtual void | OnPostCacheLoad () |
Called after cached graphs have been loaded. More... | |
virtual void | OnPostScan () |
Called right after all graphs have been scanned. More... | |
virtual void | OnPreScan () |
Called right before graphs are going to be scanned. More... | |
Static Public Member Functions | |
static void | FindAllModifiers () |
static void | TriggerEvent (GraphModifier.EventType type) |
Triggers an event for all active graph modifiers. More... | |
Protected Member Functions | |
override void | Awake () |
virtual void | OnDestroy () |
virtual void | OnDisable () |
Removes this modifier from list of active modifiers. More... | |
virtual void | OnEnable () |
Adds this modifier to list of active modifiers. More... | |
Protected Member Functions inherited from VersionedMonoBehaviour | |
virtual int | OnUpgradeSerializedData (int version, bool unityThread) |
Handle serialization backwards compatibility. More... | |
Static Protected Member Functions | |
static List< T > | GetModifiersOfType< T > () |
Protected Attributes | |
ulong | uniqueID |
Unique persistent ID for this component, used for serialization. More... | |
Static Protected Attributes | |
static Dictionary< ulong, GraphModifier > | usedIDs = new Dictionary<ulong, GraphModifier>() |
Maps persistent IDs to the component that uses it. More... | |
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. More... | |
|
strong |
GraphModifier event type.
Enumerator | |
---|---|
PostScan | |
PreScan | |
LatePostScan | |
PreUpdate | |
PostUpdate | |
PostCacheLoad |
|
private |
|
protectedvirtual |
Reimplemented from VersionedMonoBehaviour.
Reimplemented in DynamicGridObstacle.
|
private |
|
static |
|
staticprotected |
T | : | GraphModifier |
|
protectedvirtual |
|
protectedvirtual |
Removes this modifier from list of active modifiers.
Reimplemented in NodeLink3, NodeLink2, DynamicGridObstacle, and RVONavmesh.
|
protectedvirtual |
|
virtual |
Called after graphs have been updated using GraphUpdateObjects.
Eventual flood filling has been done
Reimplemented in NodeLink3, NodeLink2, NodeLink, and RVONavmesh.
|
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, DynamicGridObstacle, 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.