searchIndexVersion

function searchIndexVersion
devtools/src/travel.ts:594
searchIndexVersion(world: World) → string

A key that changes exactly when searchEntries would.

The catalog is a value and never changes under a running world; the loaded set does, every time the camera crosses into a system. Building a 24,000 string index on every poll is the cost this avoids, and comparing the two lists to find out whether to rebuild costs about as much as rebuilding.

worldWorld
Undocumented
Returnsstring