import { PixiGameScene } from '../common/types'; import { GameConfig, GameObject, GameSceneLifecycle, GameTransitionOpts, JSAPIInterface, DisplayAssetType } from '@gedit/render-engine'; import type { PixiGameDirectorImpl, PixiGameWorldImpl, LoadEventProps } from './pixi-game'; import { SceneSchema } from './game-objects'; import TouchScrollEvent, { XYProps } from './utils/touch-scroll-event'; export declare class PixiSceneManager { protected world: PixiGameWorldImpl; readonly scenesMap: Map; currentScene?: PixiGameSceneImpl; constructor(world: PixiGameWorldImpl); addScene(id: string, scene: PixiGameSceneImpl): void; clearScene(): void; getSceneById(sceneId: string): PixiGameSceneImpl | undefined; goto(targetSceneId: string, opts?: GameTransitionOpts): void; } interface PixiGameSceneLifecycle { init: () => void; preload: () => void; create: () => void; } export declare class PixiGameSceneImpl implements PixiGameScene { id: string; container: PIXI.Container; background: PIXI.Graphics; game: PIXI.Application; world: PixiGameWorldImpl; root: GameObject; config: GameConfig; gameObjectStore: Map>>; director: PixiGameDirectorImpl; name: string; api?: JSAPIInterface; rootTextureCanvas: HTMLCanvasElement; videoView: HTMLDivElement | undefined; touchScrollEvent?: TouchScrollEvent; isLoadScene: boolean; sceneManager?: PixiSceneManager; scale: number; protected isLoaded: boolean; protected lifecycle: PixiGameSceneLifecycle; protected scrollScaleObjects: GameObject[]; constructor(world: PixiGameWorldImpl, director: PixiGameDirectorImpl, sceneId: string, lifecycle: GameSceneLifecycle); initContainer(): void; onLoadEvent(v: LoadEventProps): void; setIsLoadScene(): void; startLoad(nextSceneId?: string): Promise; onScroll?(v: XYProps, scale: number): void; protected onCreate(): void; /** * 获取所有节点,包括子组件 * @param parent * @param result */ getAllGameObjects(parent: GameObject, result?: GameObject[]): GameObject[]; getScale(): number; autoCuttingMode(conf: SceneSchema): number; updateConfig(conf: SceneSchema): void; load(): Promise; setVisible(visible: boolean): void; getGameObjectById(nodeId: string): GameObject | undefined; getTexture(resourceKey: string, ignore?: boolean): PIXI.Texture | PIXI.sound.Sound; addTexture(resourceKey: string, uri: string, type: DisplayAssetType, data?: any): void; destroy(): void; } export {}; //# sourceMappingURL=pixi-scene-manager.d.ts.map