Large worlds · function

freezeCell

Stop a cell simulating and capture exactly what it held. false if it was already frozen.

Explained in Coordinates and units.

function freezeCell(world: FreezableWorld, frozen: FrozenCells, cell: number): boolean
import { freezeCell } from '@driftengine/core';

Parameters

ParameterTypeDescription
worldFreezableWorld
frozenFrozenCells
cellnumber

In depth

Refuses rather than throws, because the caller is a streamer inside a frame and the honest answer to "freeze this again" is that there is nothing to do.