Browse Source

feat: add enum definitions for SceneType and Orientation

master
npmrun 3 weeks ago
parent
commit
5f2c72faf6
  1. 4
      src/enums/Orientation.ts
  2. 4
      src/enums/SceneType.ts
  3. 13
      src/enums/index.ts

4
src/enums/Orientation.ts

@ -0,0 +1,4 @@
export enum Orientation {
Landscape = "landscape",
Portrait = "portrait",
}

4
src/enums/SceneType.ts

@ -0,0 +1,4 @@
export enum SceneType {
Normal = 0, // 普通场景 - 退出时销毁
Resident = 1, // 常驻场景 - 只隐藏不销毁
}

13
src/enums/index.ts

@ -0,0 +1,13 @@
export { Orientation } from './Orientation';
export { SceneType } from './SceneType';
// Legacy exports for backward compatibility
export enum EDirection {
Landscape="landscape",
Portrait="portrait",
}
export enum EP {
Resident, // 常驻场景
Normal // 普通场景
}
Loading…
Cancel
Save