arcade2d
Type Alias

ComponentFactory

components.types.ts:335

Factory function shape consumed by addComponentFromFactory and addComponentsFromFactories. The host is passed in so the factory can construct a component with the correct back-reference without the caller having to thread the host through manually.

(host: THost) => Component<THost>
ESC