composePlugins
composePlugins(
plugins,omit?):Composition
Composes the step and the registrations from a game’s plugins and
omit, around the core, checking what needs the whole list: a plugin
listed twice under one name, a requirement not listed or omitted, a
cycle, an anchor that names nothing or a system that does not run, an
omit or a replacement that cannot hold. defineGame runs it once as
the game’s module loads, and what it makes serves every world made
from the game.
Parameters
Section titled “Parameters”| Parameter | Type | Default value |
|---|---|---|
plugins |
readonly Plugin<Readonly<Record<string, SystemHandle<"input" | "rules" | "motion" | "physics", boolean, RunContext>>>, Readonly<Record<string, ButtonInputDeclaration | AxisInputDeclaration | VectorInputDeclaration | AngleInputDeclaration>>, Readonly<Record<string, PageActionDeclaration>>, string, Readonly<Record<string, CommandDeclaration<Readonly<Record<string, CommandField>>, string, Readonly<Record<string, ReturnField>> | undefined, boolean, boolean, boolean, boolean>>>, Readonly<Record<string, InputContextDeclaration>>, Readonly<Record<string, SaveHandle<"player" | "world" | "entity">>>>[] |
undefined |
omit |
readonly ReplaceableHandle[] |
[] |