FieldGuide
constFieldGuide:object
Defined in: client/api.d.ts:8176
The local character’s collections and challenges, for saving and restoring them per character.
Type Declaration
Section titled “Type Declaration”challenges()
Section titled “challenges()”challenges(
prefix?):FieldGuideChallenge[] |null
Challenge records; null before ready().
Parameters
Section titled “Parameters”prefix?
Section titled “prefix?”string
Only ids starting with this, e.g. FGC_ for the Challenges menu.
Returns
Section titled “Returns”FieldGuideChallenge[] | null
collections()
Section titled “collections()”collections(
category?):FieldGuideCollectionItem[] |null
Collection items with their state; null before ready().
Parameters
Section titled “Parameters”category?
Section titled “category?”string
Only this category, e.g. Exploration for Revelio pages.
Returns
Section titled “Returns”FieldGuideCollectionItem[] | null
ready()
Section titled “ready()”ready():
boolean
Whether the Field Guide state can be read and restored yet.
Returns
Section titled “Returns”boolean
restore()
Section titled “restore()”restore(
snapshot):FieldGuideRestoreResult
Replaces the character’s collections, challenges, challenge locks and page world state with the snapshot’s, the way a save load does: nothing is collected, counted, paid or granted again, and no event fires. Absolute: what the snapshot leaves out goes back to its default.
Parameters
Section titled “Parameters”snapshot
Section titled “snapshot”FieldGuideSnapshot | null
A snapshot() result; null resets the character to a fresh Field Guide.
Returns
Section titled “Returns”snapshot()
Section titled “snapshot()”snapshot():
FieldGuideSnapshot|null
Everything restore() takes back, as plain JSON; null before ready().
Returns
Section titled “Returns”FieldGuideSnapshot | null