Networking · function

worldSnapshotter

A world, through the identity-preserving snapshot @driftengine/entities owns.

Explained in Networking and rollback.

function worldSnapshotter(world: World): Snapshotter<WorldSnapshot>
import { worldSnapshotter } from '@driftengine/network';

Parameters

ParameterTypeDescription
worldWorld