refactor: api

This commit is contained in:
hyper
2026-04-12 17:34:25 +08:00
parent 713a14c128
commit fe57583a8f
5 changed files with 26 additions and 21 deletions
@@ -1,5 +1,5 @@
import type { GameHost } from 'boardgame-core';
import { ReactiveScene, type ReactiveScenePhaserData } from './ReactiveScene';
import { ReactiveScene } from './ReactiveScene';
export interface GameHostSceneOptions<TState extends Record<string, unknown>> {
gameHost: GameHost<TState>;
@@ -6,7 +6,7 @@ type CleanupFn = void | (() => void);
// 前向声明,避免循环导入
export interface SceneController {
launch(sceneKey: string, data?: Record<string, unknown>): Promise<void>;
launch(sceneKey: string): Promise<void>;
currentScene: ReadonlySignal<string | null>;
isTransitioning: ReadonlySignal<boolean>;
}