DriftScript bindings · const

CHEMISTRY_TYPES

The three opaque types §20.2 names.

Explained in Setting up scripts.

const CHEMISTRY_TYPES: readonly OpaqueType[]
import { CHEMISTRY_TYPES } from '@driftengine/script';

In depth

Chemistry is the world as PhysicsWorld is one. A Substance and a Species are registrations, and a script holds them to pass back rather than to read into — a field on either would be a promise about a representation the engine could then never change.