20 lines
607 B
TypeScript
20 lines
607 B
TypeScript
|
|
/**
|
||
|
|
* 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 function isWebPlatform(): boolean {
|
||
|
|
return typeof window !== 'undefined' && typeof document !== 'undefined';
|
||
|
|
}
|