UNPKG

1.04 kBTypeScriptView Raw
1import type { ExtensionMetadata } from '@pixi/extensions';
2import type { IRenderer } from '../IRenderer';
3import type { ISystem } from '../system/ISystem';
4/**
5 * Options for the startup system.
6 * @memberof PIXI
7 */
8export interface StartupSystemOptions {
9 /**
10 * Whether to log the version and type information of renderer to console.
11 * @memberof PIXI.IRendererOptions
12 */
13 hello: boolean;
14}
15/**
16 * A simple system responsible for initiating the renderer.
17 * @memberof PIXI
18 */
19export declare class StartupSystem implements ISystem<StartupSystemOptions> {
20 /** @ignore */
21 static defaultOptions: StartupSystemOptions;
22 /** @ignore */
23 static extension: ExtensionMetadata;
24 readonly renderer: IRenderer;
25 constructor(renderer: IRenderer);
26 /**
27 * It all starts here! This initiates every system, passing in the options for any system by name.
28 * @param options - the config for the renderer and all its systems
29 */
30 run(options: StartupSystemOptions): void;
31 destroy(): void;
32}