refactor: api
This commit is contained in:
@@ -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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user