Entities · interface

ComponentView

A component's storage, addressable by field name.

Explained in Entities.

interface ComponentView
import type { ComponentView } from '@driftengine/entities';

In depth

sparse maps an entity's index — not its handle — to a position in every column here. Taking the index from a handle is entity % 2 ** 26, which is what a caller that cannot import entityIndex writes inline.

Properties

NameTypeDescription
sparseInt32Array

Signatures

[field: string]: ViewColumn

[field: string]: ViewColumn