Systems

DriftScript bindings

22 symbols, imported from @driftengine/script.

Explained in Setting up scripts.

Interfaces

ChemistryServices
What a consumer supplies to make drift/chemistry reachable.
HostServices
RegisteredModule
XrRuntime
What the host keeps up to date, and what a script reads through.

Functions

assertHostShapes
Check every from host declaration against what the host registered.
audioImplementation
The implementations, which the host hands to a module's __bind.
bindModule
Give a loaded module its host, and refuse in words when the host cannot satisfy it.
chemistryImplementation
engineImplementations
The implementation map a generated module's __bind receives.
engineRegistry
A registry describing this engine's capabilities.
engineTarget
A target providing everything this engine has wired.
registerEntityModule
Build every component, prefab and system a module declares.

Types

BindResult
ComponentRegistry
Components a host already registered, by the name a script writes.

Constants

AUDIO_CAPABILITIES
AUDIO_MODULE
AUDIO_TYPES
A decoded sound, held by a script and passed back to the engine.
CHEMISTRY_CAPABILITIES
CHEMISTRY_COMPONENT
A parcel handle on an entity, and §19 says why it is declared here.
CHEMISTRY_MODULE
CHEMISTRY_TYPES
The three opaque types §20.2 names.
ENGINE_MODULES
What the engine can provide. Everything wired; nothing that is not.