A one-shot handle over a seeded sohl.entity.random.Rng stream. Created
by seedRngForTour, which has already snapshotted the pre-seed state and
applied the seed; the sole obligation is to call restore — from any
tour-exit path — to return the stream to normal. restore is
fire-once and idempotent, so wiring it into several redundant exit hooks
(the safety net the tour needs) is safe: the second and later calls no-op.
Whether restore has already run (the stream is back to normal).
Methods
restore
restore():void
Restore the generator to the exact state it held before the tour seeded it,
so the game continues the stream it would have produced had the tour never
run. Safe to call any number of times from any exit path — only the first
call has an effect.
A one-shot handle over a seeded sohl.entity.random.Rng stream. Created by seedRngForTour, which has already snapshotted the pre-seed state and applied the seed; the sole obligation is to call restore — from any tour-exit path — to return the stream to normal. restore is fire-once and idempotent, so wiring it into several redundant exit hooks (the safety net the tour needs) is safe: the second and later calls no-op.