A* Pathfinding Project  3.6.6
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
GraphSerializationContext Class Reference

Holds information passed to custom graph serializers. More...

Detailed Description

Holds information passed to custom graph serializers.

Public Member Functions

 GraphSerializationContext (System.IO.BinaryReader reader, GraphNode[] id2NodeMapping, int graphIndex)
 
 GraphSerializationContext (System.IO.BinaryWriter writer)
 
GraphNode GetNodeFromIdentifier (int id)
 
int GetNodeIdentifier (GraphNode node)
 

Public Attributes

readonly int graphIndex
 Index of the graph which is currently being processed.
 
readonly System.IO.BinaryReader reader
 Deserialization stream.
 
readonly System.IO.BinaryWriter writer
 Serialization stream.
 

Private Attributes

readonly GraphNode[] id2NodeMapping
 

Constructor & Destructor Documentation

GraphSerializationContext ( System.IO.BinaryReader  reader,
GraphNode[]  id2NodeMapping,
int  graphIndex 
)
GraphSerializationContext ( System.IO.BinaryWriter  writer)

Member Function Documentation

GraphNode GetNodeFromIdentifier ( int  id)
int GetNodeIdentifier ( GraphNode  node)

Member Data Documentation

readonly int graphIndex

Index of the graph which is currently being processed.

readonly GraphNode [] id2NodeMapping
private
readonly System.IO.BinaryReader reader

Deserialization stream.

Will only be set when deserializing

readonly System.IO.BinaryWriter writer

Serialization stream.

Will only be set when serializing


The documentation for this class was generated from the following file: