import { PixiSceneManager } from './pixi-scene-manager'; import { GameConfig, GameDirector, GameRouter, GameScene, GameTransitionOpts } from '@gedit/render-engine'; import { PixiGameScene, PixiGameWorld } from '../common'; interface AssetsMap { [key: string]: PIXI.Texture | PIXI.sound.Sound | PIXI.VideoSource | null; } export interface LoadEventProps { onStart: (loader: PIXI.Loader) => void; onError: (loader: PIXI.Loader, resource: AssetsMap) => void; onProgress: (loader: PIXI.Loader & { progress: number; }, progress: number) => void; onComplete: (loader: PIXI.Loader, resource: AssetsMap) => void; } export declare class PixiGameWorldImpl implements PixiGameWorld { readonly config: GameConfig; game: PIXI.Application; readonly sceneManager: PixiSceneManager; readonly loaderAssetsKey: Set; resources: { [key: string]: PIXI.Texture | PIXI.sound.Sound; }; loadingEvent: { onStart: LoadEventProps['onStart'][]; onError: LoadEventProps['onError'][]; onProgress: LoadEventProps['onProgress'][]; onComplete: LoadEventProps['onComplete'][]; }; videoView: HTMLDivElement | undefined; constructor(elementId: string, config: GameConfig); init(elementId: string): Promise; get stage(): PIXI.Container; getSceneById(sceneId: string): PixiGameScene | undefined; clearScene(): void; clearResourceKeyCache(resourceKey?: string | undefined): void; } export declare class PixiGameDirectorImpl extends GameRouter implements GameDirector { protected world: PixiGameWorldImpl; constructor(world: PixiGameWorldImpl); start(startSceneId: string): void; goto(fromScene: GameScene, targetSceneId: string, opts?: GameTransitionOpts): void; script(scriptId: string): void; } export {}; //# sourceMappingURL=pixi-game.d.ts.map