A* Pathfinding Project
3.8.5
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, GraphMeta meta) | |
GraphSerializationContext (BinaryWriter writer) | |
float | DeserializeFloat (float defaultValue) |
int | DeserializeInt (int defaultValue) |
Int3 | DeserializeInt3 () |
Read an Int3. | |
GraphNode | DeserializeNodeReference () |
UnityEngine.Object | DeserializeUnityObject () |
Read a UnityEngine.Object. | |
Vector3 | DeserializeVector3 () |
Read a Vector3. | |
void | SerializeInt3 (Int3 v) |
Write an Int3. | |
void | SerializeNodeReference (GraphNode node) |
void | SerializeVector3 (Vector3 v) |
Write a Vector3. | |
Public Attributes | |
readonly uint | graphIndex |
Index of the graph which is currently being processed. | |
readonly GraphMeta | meta |
Metadata about graphs being deserialized. | |
readonly BinaryReader | reader |
Deserialization stream. | |
readonly BinaryWriter | writer |
Serialization stream. | |
Private Attributes | |
readonly GraphNode[] | id2NodeMapping |
GraphSerializationContext | ( | BinaryReader | reader, |
GraphNode[] | id2NodeMapping, | ||
uint | graphIndex, | ||
GraphMeta | meta | ||
) |
GraphSerializationContext | ( | BinaryWriter | writer | ) |
float DeserializeFloat | ( | float | defaultValue | ) |
int DeserializeInt | ( | int | defaultValue | ) |
GraphNode DeserializeNodeReference | ( | ) |
UnityEngine.Object DeserializeUnityObject | ( | ) |
Read a UnityEngine.Object.
Vector3 DeserializeVector3 | ( | ) |
Read a Vector3.
void SerializeNodeReference | ( | GraphNode | node | ) |
void SerializeVector3 | ( | Vector3 | v | ) |
Write a Vector3.
readonly uint graphIndex |
Index of the graph which is currently being processed.
|
private |
readonly GraphMeta meta |
Metadata about graphs being deserialized.
readonly BinaryReader reader |
Deserialization stream.
Will only be set when deserializing
readonly BinaryWriter writer |
Serialization stream.
Will only be set when serializing