Class EngineFactory

The EngineFactory is used to create and initialize an IEligiusEngine instance.

It prepares a resolved configuration and creates the engine based on the class defined in the configuration.

Example

Loading a configuration and creating an IEligiusEngine instance

import { IEngineConfiguration, EngineFactory, WebpackResourceImporter } from 'eligius';
import * as engineConfig from './my-eligius-config.json';

const factory = new EngineFactory(new WebpackResourceImporter(), window);

const engine = factory.createEngine((engineConfig as unknown) as IEngineConfiguration);

engine.init().then(()=> {console.log('Eligius engine ready for business');});

Hierarchy

  • EngineFactory

Implements

Constructors

Properties

_actionsLookup: Record<string, IAction> = {}
_eventRemovers: TEventbusRemover[] = []
_eventbus: IEventbus
_resizeTimeout: any = -1

Methods

  • Parameters

    • keyboardEvent: KeyboardEvent
    • _hotkeysEvent: HotkeysEvent

    Returns boolean | void

  • Parameters

    • systemName: string

    Returns any

  • Parameters

    • systemName: string

    Returns any

Generated using TypeDoc