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.
Loop through this function to get all graphs of type 'type'.
Find all graph types supported in this build.
Returns the first graph which inherits from the type type.
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 graphs this instance holds.
All supported graph types.
Public Static Variables
Private/Protected Members
Destroys all graphs and sets graphs to null.
Creates a new graph instance of type type.
Serialized data for all graphs and settings.
Serialized data for all graphs and settings.
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.
Data from versions from before 3.6.1.
Deprecated Members
Creates a new instance of a graph of type type.
Serialized data for cached startup.
All graphs which implements the UpdateableGraph interface.