cve-connector
Version:
UE Web 开发套件
43 lines (36 loc) • 1.02 kB
TypeScript
import type { UIDescriptor } from '../utils/matchmaker'
export type LevelCommand =
| 'LoadStreamLevels'
| 'OpenLevel'
| 'UnloadStreamLevels'
/** 场景控制 */
export interface LevelController {
/** 加载流关卡 */
loadStreamLevels: (
/** 流关卡列表 */
streamings: string[],
/** 是否卸载其他的流关卡 */
exclusive?: boolean,
/** 流关卡加载后是否可见 */
visible?: boolean,
/** 是否阻塞程序 */
block?: boolean
) => Promise<UIDescriptor>
/** 打开指定关卡 */
openLevel: (
/** 主关卡名称 */
main: string,
/** 流关卡名称列表 */
streamings: string[]
) => Promise<UIDescriptor>
/** 重启关卡 */
restartLevel: () => void
/** 卸载流关卡 */
unloadStreamLevels: (
/** 流关卡列表 */
streamings: string[],
/** 是否阻塞程序 */
block?: boolean
) => Promise<UIDescriptor>
}
export declare const LevelController: LevelController