Large worlds · interface

FrozenCell

One cell's frozen contents. Entities in ascending order, so the packing is deterministic.

Explained in Coordinates and units.

interface FrozenCell
import type { FrozenCell } from '@driftengine/core';

In depth

Exported because whoever unloads a cell has to write this somewhere and read it back.

Properties

NameTypeDescription
entitiesreadonlynumber[]
valuesreadonlyFloat64ArrayEach entity's values, one after another.
countsreadonlyInt32ArrayHow many values each entity contributed, parallel to entities.
digestreadonlynumberComputed once when the cell froze. Frozen state does not change, so neither does this.