Files
esengine/packages/platform-web/src/index.ts

29 lines
857 B
TypeScript
Raw Normal View History

/**
* 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';
// 运行时系统配置
export {
registerAvailablePlugins,
initializeRuntime,
initializePluginsForProject,
createRuntimeSystems
} from './RuntimeSystems';
export type { RuntimeSystems, RuntimeModuleConfig } from './RuntimeSystems';
// 工具
export function isWebPlatform(): boolean {
return typeof window !== 'undefined' && typeof document !== 'undefined';
}