2025-11-21 10:03:18 +08:00
|
|
|
/**
|
|
|
|
|
* Web/H5 平台适配器包
|
|
|
|
|
* @packageDocumentation
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// 引擎桥接
|
|
|
|
|
export { EngineBridge } from './EngineBridge';
|
|
|
|
|
export type { EngineBridgeConfig } from './EngineBridge';
|
|
|
|
|
|
|
|
|
|
// 子系统
|
|
|
|
|
export { WebCanvasSubsystem } from './subsystems/WebCanvasSubsystem';
|
|
|
|
|
export { WebInputSubsystem } from './subsystems/WebInputSubsystem';
|
|
|
|
|
export { WebStorageSubsystem } from './subsystems/WebStorageSubsystem';
|
|
|
|
|
export { WebWASMSubsystem } from './subsystems/WebWASMSubsystem';
|
|
|
|
|
|
2025-11-27 20:42:46 +08:00
|
|
|
// 运行时系统配置
|
|
|
|
|
export {
|
|
|
|
|
registerAvailablePlugins,
|
|
|
|
|
initializeRuntime,
|
|
|
|
|
initializePluginsForProject,
|
|
|
|
|
createRuntimeSystems
|
|
|
|
|
} from './RuntimeSystems';
|
|
|
|
|
export type { RuntimeSystems, RuntimeModuleConfig } from './RuntimeSystems';
|
|
|
|
|
|
2025-11-21 10:03:18 +08:00
|
|
|
// 工具
|
|
|
|
|
export function isWebPlatform(): boolean {
|
|
|
|
|
return typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
|
|
|
}
|