Tile Search
class TileSearch(val offlineExtractPath: String, val gridState: GridState, val settlementGrid: GridState)
Functions
Link copied to clipboard
Link copied to clipboard
fun compareAndAddToResults(normalizedNeedle: String, haystackString: String, searchResults: MutableList<TileSearch.TileSearchResult>, searchResultLimit: Int, tileX: Int, tileY: Int): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Called when the on-disk offline map extracts have changed (a download completed, or an extract was deleted) so that the next search re-reads tile content from the current extracts instead of returning cached strings from a superseded one.