Reference
The reference pages for every IFLoom export, grouped by package from the engine to the plugins, the React UI, the browser helpers and the CLI.
The reference documents every export of every IFLoom package, one page per feature. Each entry gives a definition, its behaviour and one example, and links to the generated API for the full signature and every field. The glossary defines the words the pages use, and Common types covers the types every page relies on.
Entries of @ifloom/engine
@ifloom/engine has three entries, and a page's import line says which one its exports come from:
@ifloom/engineholds what a game declares and runs:Content, the scene builders such astext, conditions, effects, lookups such asstatValue,loadGame,checkGame, the runner, saves and the view. The registries a plugin or a game augments to type its calls are here too.@ifloom/engine/pluginholds what a plugin adds:definePluginand the contexts a hook gets,defineCallsand the other declarations,renderAction, locks, and the steps that carry a plugin's content forward.@ifloom/engine/testingholds the testing helpers, such asloadChecked,freshState,playandpartnerCases.
A plugin imports from the first two. A game with no plugin of its own never imports @ifloom/engine/plugin.
import { holds, type GameState } from '@ifloom/engine'
import { definePlugin, renderAction } from '@ifloom/engine/plugin'Other packages
Each package has its own section of the reference:
- First-party plugins, one page per plugin, from the calendar to debug.
- The React UI,
@ifloom/reactand its kit. - Browser,
@ifloom/browserand the audio player@ifloom/audio. - The CLI,
@ifloom/cliand its game module.
Examples maps each feature to the example file that uses it.
Last updated on