A* Pathfinding Project  3.1.4
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Enumerations Properties Groups Pages
AstarSerializer3_04 Class Reference

Deserializer for 3.04 Graphs. More...

+ Inheritance diagram for AstarSerializer3_04:
+ Collaboration diagram for AstarSerializer3_04:

Public Member Functions

 AstarSerializer3_04 (AstarPath script)
 
override UserConnection[] DeserializeUserConnections ()
 Deserializes links placed by the user.
 
- Public Member Functions inherited from AstarSerializer3_05
 AstarSerializer3_05 (AstarPath script)
 
override UserConnection[] DeserializeUserConnections ()
 Deserializes links placed by the user.
 
- Public Member Functions inherited from AstarSerializer3_07
 AstarSerializer3_07 (AstarPath script)
 
override void AddUnityReferenceValue (string key, UnityEngine.Object value)
 Serializes a Unity Reference.
 
override UnityEngine.Object GetUnityReferenceValue (string key, Type type, UnityEngine.Object defaultValue=null)
 Deserializes a Unity Reference.
 
- Public Member Functions inherited from AstarSerializer
 AstarSerializer (AstarPath script)
 
void AddAnchor (string name)
 
void AddValue (string key, System.Object value)
 Serializes value with key and value.
 
void AddVariableAnchor (string name)
 
void Close ()
 
byte[] Compress (byte[] bytes)
 
byte[] DeCompress (byte[] bytes)
 
delegate void DeSerializationInterrupt (AstarSerializer serializer, bool newer, Guid guid)
 
void DeserializeAnchors ()
 
void DeSerializeEditorSettings (NavGraph graph, ISerializableGraphEditor editor, AstarPath active)
 
void DeserializeNodes (NavGraph graph, NavGraph[] graphs, int graphIndex, AstarPath active)
 Deserializes nodes in the graph.
 
AstarSerializer DeserializeSerializationInfo ()
 Deserializes serialization info.
 
void DeSerializeSettings (NavGraph graph, AstarPath active)
 
System.Object GetDefaultValue (Type type)
 Returns the default value for the given type.
 
System.Object GetValue (string key, Type type, System.Object defaultValue=null)
 Deserializes a variable with key of the specified type.
 
void InitializeSerializeNodes ()
 
byte[] LoadFromFile (string path)
 
bool MoveToAnchor (string name)
 
bool MoveToVariableAnchor (string name)
 
AstarSerializer OpenDeserialize (byte[] data)
 Opens a deserialization session.
 
void OpenSerialize ()
 This is intended for quick saving of settings for e.g Undo operations.
 
delegate UnityEngine.Object ReadUnityReference_Editor (AstarSerializer serializer, string name, int instanceID, System.Type type)
 
void SaveToFile (string path, byte[] data)
 
void SerializeAnchors ()
 
void SerializeEditorSettings (NavGraph graph, ISerializableGraphEditor editor, AstarPath active)
 
void SerializeNodes (NavGraph graph, AstarPath active)
 Serializes the nodes in the graph.
 
void SerializeSerializationInfo ()
 
void SerializeSettings (NavGraph graph, AstarPath active)
 Called to serialize a graphs settings.
 
virtual void SerializeUserConnections (UserConnection[] userConnections)
 Serializes links placed by the user.
 
void SetUpGraphRefs (NavGraph[] graphs)
 
void Sort (int[] a, byte[] b)
 
void WriteError ()
 
delegate void WriteUnityReference_Editor (AstarSerializer serializer, UnityEngine.Object ob)
 

Additional Inherited Members

- Public Types inherited from AstarSerializer
enum  SerializerError { Nothing, WrongMagic, WrongVersion, DoesNotExist }
 
- Static Public Member Functions inherited from AstarSerializer
static AstarSerializer GetDeserializer (Version version, AstarPath script)
 
static string StripPathOfFolder (string path, string relativeFolder)
 Makes path relative to the folder relativeFolder when relativeFolder exists in path.
 
static void TestLoadFile (string path)
 
- Public Attributes inherited from AstarSerializer
AstarPath active
 
Dictionary< string, int > anchors
 
AstarData astarData
 
bool compress = true
 
int counter
 
SerializerError error = SerializerError.Nothing
 
int[] graphRefGuids
 The indices to the graphs in the new AstarData.
 
string[] loadedGraphGuids
 The GUIDs of the graphs saved with the file (only set in load)
 
BitMask mask = -1 & ~(SMask.SaveNodes)
 Mask for what to save.
 
bool onlySaveSettings = false
 
int positionAtCounter = -1
 
long positionAtError = -1
 
byte prefix = 0
 
BinaryReader readerStream
 
bool replaceOldGraphs = true
 
Hashtable serializedData
 
Dictionary< string, int > serializedVariables = new Dictionary<string, int> ()
 Key, position.
 
string sPrefix = ""
 Prefix to use before variables.
 
BinaryWriter writerStream
 
- Static Public Attributes inherited from AstarSerializer
static bool IgnoreVersionDifferences = false
 Should version differences be ignored.
 
static ReadUnityReference_Editor readUnityReference_Editor = null
 
static WriteUnityReference_Editor writeUnityReference_Editor = null
 

Detailed Description

Deserializer for 3.04 Graphs.

This class will override deserialization functions which changed with the next version


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