refactor: global state for scenes
This commit is contained in:
@@ -7,6 +7,7 @@ type CleanupFn = void | (() => void);
|
||||
// 前向声明,避免循环导入
|
||||
export interface SceneController {
|
||||
launch(sceneKey: string): Promise<void>;
|
||||
restart(): Promise<void>;
|
||||
currentScene: ReadonlySignal<string | null>;
|
||||
isTransitioning: ReadonlySignal<boolean>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user