public void SerializeExtraInfo() { if (!this.settings.nodes) { return; } if (this.graphs == null) { throw new InvalidOperationException("Cannot serialize extra info with no serialized graphs (call SerializeGraphs first)"); } byte[] bytes = AstarSerializer.SerializeNodeIndices(this.graphs); this.AddChecksum(bytes); this.AddEntry("graph_references.binary", bytes); for (int i = 0; i < this.graphs.Length; i++) { if (this.graphs[i] != null) { bytes = AstarSerializer.SerializeGraphExtraInfo(this.graphs[i]); this.AddChecksum(bytes); this.AddEntry("graph" + i + "_extra.binary", bytes); bytes = AstarSerializer.SerializeGraphNodeReferences(this.graphs[i]); this.AddChecksum(bytes); this.AddEntry("graph" + i + "_references.binary", bytes); } } bytes = this.SerializeNodeLinks(); this.AddChecksum(bytes); this.AddEntry("node_link2.binary", bytes); }