private bool DeserializeExtraInfo(NavGraph graph) { int num = this.graphIndexInZip[graph]; ZipEntry entry = this.GetEntry("graph" + num + "_extra.binary"); if (entry == null) { return(false); } GraphSerializationContext ctx = new GraphSerializationContext(AstarSerializer.GetBinaryReader(entry), null, graph.graphIndex, this.meta); graph.DeserializeExtraInfo(ctx); return(true); }
private bool DeserializeExtraInfo(NavGraph graph) { int num = this.graphIndexInZip[graph]; ZipEntry zipEntry = this.zip["graph" + num + "_extra.binary"]; if (zipEntry == null) { return(false); } BinaryReader binaryReader = AstarSerializer.GetBinaryReader(zipEntry); GraphSerializationContext ctx = new GraphSerializationContext(binaryReader, null, graph.graphIndex); graph.DeserializeExtraInfo(ctx); return(true); }
bool DeserializeExtraInfo(NavGraph graph) { var zipIndex = graphIndexInZip[graph]; var entry = zip["graph" + zipIndex + "_extra" + binaryExt]; if (entry == null) { return(false); } var reader = GetBinaryReader(entry); var ctx = new GraphSerializationContext(reader, null, graph.graphIndex); // Call the graph to process the data graph.DeserializeExtraInfo(ctx); return(true); }