mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 15:42:39 +08:00
3b66332823
# Conflicts: # cocos/core/3d/builtin/effects.ts # cocos/core/animation/animation-state.ts # cocos/core/game.ts # cocos/core/gfx/webgl/webgl-commands.ts # cocos/core/pipeline/instanced-buffer.ts # cocos/core/pipeline/render-instanced-queue.ts # cocos/core/platform/event-manager/input-manager.ts # cocos/core/platform/view.ts # cocos/core/renderer/core/pass.ts # cocos/core/renderer/scene/planar-shadows.ts # cocos/core/splash-screen-webgl.ts # cocos/core/utils/profiler/profiler.ts # cocos/particle/renderer/trail.ts # cocos/terrain/terrain.ts # package-lock.json # package.json # predefine.ts # scripts/build-engine/package-lock.json # scripts/build-engine/package.json # scripts/build-engine/src/index.ts
95 lines
1.7 KiB
TypeScript
95 lines
1.7 KiB
TypeScript
|
|
declare module "internal:constants" {
|
|
/**
|
|
* Running in published project.
|
|
*/
|
|
export const BUILD: boolean;
|
|
|
|
/**
|
|
* Running in the engine's unit test.
|
|
*/
|
|
export const TEST: boolean;
|
|
|
|
/**
|
|
* Running in the editor.
|
|
*/
|
|
export const EDITOR: boolean;
|
|
|
|
/**
|
|
* Preview in browser or simulator.
|
|
*/
|
|
export const PREVIEW: boolean;
|
|
|
|
/**
|
|
* Running in the editor or preview.
|
|
*/
|
|
export const DEV: boolean;
|
|
|
|
/**
|
|
* Running in the editor or preview, or build in debug mode.
|
|
*/
|
|
export const DEBUG: boolean;
|
|
|
|
/**
|
|
* Running in native platform (mobile app, desktop app, or simulator).
|
|
*/
|
|
export const JSB: boolean;
|
|
|
|
/**
|
|
* Running in the Wechat's mini game.
|
|
*/
|
|
export const WECHAT: boolean;
|
|
|
|
/**
|
|
* Running in the alipay's mini game.
|
|
*/
|
|
export const ALIPAY: boolean;
|
|
|
|
/**
|
|
* Running in the xiaomi's quick game.
|
|
*/
|
|
export const XIAOMI: boolean;
|
|
|
|
/**
|
|
* Running in the ByteDance's quick game.
|
|
*/
|
|
export const BYTEDANCE: boolean;
|
|
|
|
/**
|
|
* Running in the baidu's mini game.
|
|
*/
|
|
export const BAIDU: boolean;
|
|
|
|
/**
|
|
* Running in the cocosplay.
|
|
*/
|
|
export const COCOSPLAY: boolean;
|
|
|
|
/**
|
|
* Running in the huawei's quick game.
|
|
*/
|
|
export const HUAWEI: boolean;
|
|
|
|
/**
|
|
* Running in the oppo's mini game.
|
|
*/
|
|
export const OPPO: boolean;
|
|
|
|
/**
|
|
* Running in the vivo's mini game.
|
|
*/
|
|
export const VIVO: boolean;
|
|
|
|
/**
|
|
* Running in mini game.
|
|
*/
|
|
export const MINIGAME: boolean;
|
|
|
|
/**
|
|
* Running in runtime environments.
|
|
*/
|
|
export const RUNTIME_BASED: boolean;
|
|
|
|
|
|
export const SUPPORT_JIT: boolean;
|
|
} |