Class AstarData
Stores the navigation graphs for the A* Pathfinding System.
An instance of this class is assigned to AstarPath.data. From it you can access all graphs loaded through the graphs variable. This class also handles a lot of the high level serialization.
Public Methods
Loads the graphs from memory, will load cached graphs if any exists.
Deserializes graphs from the specified byte array.
Deserializes graphs from the specified byte array additively.
Returns the first graph which satisfies the predicate.
Find all graph types supported in this build.
Returns the first graph which inherits from the type type.
Loop through this function to get all graphs of type 'type'.
Calls the callback with every node in all graphs.
All graphs which implements the UpdateableGraph interface.
Removes the specified graph from the graphs array and Destroys it in a safe manner.
Serializes all graphs settings to a byte array.
Serializes all graphs settings and optionally node data to a byte array.
Main serializer function.
Updates shortcuts to the first graph of different types.
Public Static Methods
Returns the graph which contains the specified node.
Public Variables
Should graph-data be cached.
Serialized data for cached startup.
All supported graph types.
All graphs.
Public Static Variables
Private/Protected Members
Destroys all graphs and sets graphs to null.
Creates a new graph instance of type type.
Helper function for deserializing graphs.
Prevent the graph structure from changing during the time this lock is held.
Allows the graph structure to change again.
Serialized data for all graphs and settings.
Serialized data for all graphs and settings.