public byte[] SerializeGraphs(Pathfinding.Serialize.SerializeSettings settings, out uint checksum) { Pathfinding.Serialize.AstarSerializer sr = new Pathfinding.Serialize.AstarSerializer(script.astarData, settings); sr.OpenSerialize(); script.astarData.SerializeGraphsPart (sr); sr.SerializeEditorSettings (graphEditors); byte[] bytes = sr.CloseSerialize(); checksum = sr.GetChecksum (); return bytes; //Forward to runtime serializer //return script.astarData.SerializeGraphs(Pathfinding.Serialize.SerializeSettings.Settings, out checksum); }
public byte[] SerializeGraphs(Pathfinding.Serialize.SerializeSettings settings, out uint checksum) { Pathfinding.Serialize.AstarSerializer sr = new Pathfinding.Serialize.AstarSerializer(script.astarData, settings); sr.OpenSerialize(); script.astarData.SerializeGraphsPart (sr); sr.SerializeEditorSettings (graphEditors); byte[] bytes = sr.CloseSerialize(); checksum = sr.GetChecksum (); #if DEBUG Debug.Log ("Got a whole bunch of data, "+bytes.Length+" bytes"); #endif return bytes; //Forward to runtime serializer //return script.astarData.SerializeGraphs(Pathfinding.Serialize.SerializeSettings.Settings, out checksum); }