Networking · interface

SavablePosition

A seeded generator's position.

Explained in Networking and rollback.

interface SavablePosition
import type { SavablePosition } from '@driftengine/network';

In depth

The shape is declared here and no core type is named, which is the seam present/ in @driftengine/chemistry uses for the same reason: this package imports @driftengine/entities and nothing else, so that a deterministic host has no renderer in its module graph. savableMulberry32 from core satisfies this structurally.

Methods

save

save(): number

restore

restore(state: number): void
ParameterTypeDescription
statenumber