Systems
DriftScript bindings
22 symbols, imported from @driftengine/script.
Explained in Setting up scripts.
Interfaces
ChemistryServices- What a consumer supplies to make
drift/chemistryreachable. HostServicesRegisteredModuleXrRuntime- What the host keeps up to date, and what a script reads through.
Functions
assertHostShapes- Check every
from hostdeclaration 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.
chemistryImplementationengineImplementations- The implementation map a generated module's
__bindreceives. 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
BindResultComponentRegistry- Components a host already registered, by the name a script writes.
Constants
AUDIO_CAPABILITIESAUDIO_MODULEAUDIO_TYPES- A decoded sound, held by a script and passed back to the engine.
CHEMISTRY_CAPABILITIESCHEMISTRY_COMPONENT- A parcel handle on an entity, and
§19says why it is declared here. CHEMISTRY_MODULECHEMISTRY_TYPES- The three opaque types
§20.2names. ENGINE_MODULES- What the engine can provide. Everything wired; nothing that is not.