Interface FgWiring
interface FgWiring {
accessors?: Record<string, FgAccessor>;
animations?: readonly AnimationGroup[];
caps?: FgCapabilities;
defs?: Record<string, FgBlockDef>;
events?: FgEventBus;
resolveAccessor?: (pointer: string) => FgAccessor | null;
}
accessors?: Record<string, FgAccessor>;
animations?: readonly AnimationGroup[];
caps?: FgCapabilities;
defs?: Record<string, FgBlockDef>;
events?: FgEventBus;
resolveAccessor?: (pointer: string) => FgAccessor | null;
}
Properties
Optionalaccessors
Optionalanimations
Optionalcaps
Optionaldefs
Pre-supplied defs by type — bypasses the dynamic-import registry. Used by tests (hand-built defs) and to override/extend the registry.
Optionalevents
Shared scene/coordinator bus. A fresh one is created if omitted.
Pre-resolved inputs to
createFgEnv. Everything scene-dependent is wired here by the loader; the runtime only resolves block defs from these + the registry.