cve-connector
Version:
UE Web 开发套件
29 lines (21 loc) • 742 B
TypeScript
import type { UIDescriptor } from '../utils/matchmaker'
export type ModelCommand =
| 'FocusById'
| 'Load'
| 'UnloadAll'
| 'UnloadById'
| 'UnloadByGroupId'
/** Model 控制 */
export interface ModelController {
/** 通过 ID 视角聚焦 Model */
focus: (id: string) => Promise<UIDescriptor>
/** 加载 Model */
load: (path: string, id: string, groupId: string) => Promise<UIDescriptor>
/** 通过 ID 卸载 Model */
unload: (id: string) => Promise<UIDescriptor>
/** 卸载所有 Model */
unloadAll: () => Promise<UIDescriptor>
/** 通过 Group ID 卸载 Model */
unloadByGroup: (groupId: string) => Promise<UIDescriptor>
}
export declare const ModelController: ModelController