Composition
What composePlugins makes of a list: what createGameWorld lays on
the world.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
bindings |
KeyBindings |
Every key the game binds and the engine’s, checked for clashes. |
cameraHooks |
readonly NamedCameraUpdateHook[] |
Each plugin’s camera hook, in dependency then list order. |
characterHooks |
CharacterHooks |
Each plugin’s onCharacterSpawn and onCharacterRespawn hooks in dependency order. |
characterView |
{ plugin: string; rule: NonNullable<CharacterViewComponent | undefined>; } | null |
The one listed plugin’s view of every character, or null. |
collisionLayers |
string[] |
Every collision layer, in bit order: the core’s two, the characters’ two, then each plugin’s in list order. |
commands |
readonly ComposedCommand[] |
Every command of a listed plugin, with the system that answers it. |
contexts |
readonly InputContextHandle[] |
Every input context the plugins declare, in their order. |
destroyHooks |
readonly NamedEntityDestroyHook[] |
Each plugin’s onEntityDestroy, in dependency order. |
entries |
readonly ComposedSystem[] |
Every system in the order the step runs them, the core’s among them. |
inputs |
InputLayout |
Every input the plugins declare, in their order. |
listed |
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">>>>[] |
The same plugins as definePlugin made them: what the page mounts their components from. |
matchRule |
NamedMatchRule | null |
The one listed plugin’s answer to the match question, or null. |
omitted |
readonly string[] |
The names of the systems the list omits. |
partyRule |
NamedPartyRule | null |
The one listed plugin’s answer to the party question, or null. |
playerHooks |
PlayerHooks |
Each plugin’s player hooks, each kind in dependency order. |
plugins |
readonly ComposedPlugin[] |
The plugins the game listed, the engine’s first in their order, as the world records them. The core is not among them. |
releaseHooks |
readonly NamedReleaseHook[] |
Each plugin’s onControlRelease, in dependency order. |
setups |
readonly PluginSetup[] |
Each plugin’s setup in dependency order. |
systems |
readonly System[] |
- |
teamRule |
NamedTeamRule | null |
The one listed plugin’s answer to the team question, or null. |
weatherRule |
NamedWeatherRule | null |
The one listed plugin’s answer to the weather question, or null. |