A* Pathfinding Project
3.8
The A* Pathfinding Project for Unity 3D
|
Holds information passed to custom graph serializers. More...
Holds information passed to custom graph serializers.
Public Member Functions | |
GraphSerializationContext (BinaryReader reader, GraphNode[] id2NodeMapping, uint graphIndex) | |
GraphSerializationContext (BinaryWriter writer) | |
GraphNode | GetNodeFromIdentifier (int id) |
int | GetNodeIdentifier (GraphNode node) |
Public Attributes | |
readonly uint | graphIndex |
Index of the graph which is currently being processed. | |
readonly BinaryReader | reader |
Deserialization stream. | |
readonly BinaryWriter | writer |
Serialization stream. | |
Private Attributes | |
readonly GraphNode[] | id2NodeMapping |
GraphSerializationContext | ( | BinaryReader | reader, |
GraphNode[] | id2NodeMapping, | ||
uint | graphIndex | ||
) |
GraphSerializationContext | ( | BinaryWriter | writer | ) |
GraphNode GetNodeFromIdentifier | ( | int | id | ) |
int GetNodeIdentifier | ( | GraphNode | node | ) |
readonly uint graphIndex |
Index of the graph which is currently being processed.
|
private |
readonly BinaryReader reader |
Deserialization stream.
Will only be set when deserializing
readonly BinaryWriter writer |
Serialization stream.
Will only be set when serializing