123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- declare module 'cc/env'{
- /**
- * Running in Web platform
- */
- export const HTML5: boolean;
- /**
- * Running in native platform (mobile app, desktop app, or simulator).
- */
- export const NATIVE: boolean;
- /**
- * Running in the Wechat's mini game.
- */
- export const WECHAT: boolean;
- /**
- * Running in the baidu's mini game.
- */
- export const BAIDU: boolean;
- /**
- * Running in the xiaomi's quick game.
- */
- export const XIAOMI: boolean;
- /**
- * Running in the alipay's mini game.
- */
- export const ALIPAY: boolean;
- /**
- * Running in the taobao creative app.
- */
- export const TAOBAO: boolean;
- /**
- * Running in the ByteDance's mini game.
- */
- export const BYTEDANCE: boolean;
- /**
- * Running in the oppo's quick game.
- */
- export const OPPO: boolean;
- /**
- * Running in the vivo's quick game.
- */
- export const VIVO: boolean;
- /**
- * Running in the huawei's quick game.
- */
- export const HUAWEI: boolean;
- /**
- * Running in the cocosplay.
- */
- export const COCOSPLAY: boolean;
- /**
- * Running in the qtt's quick game.
- */
- export const QTT: boolean;
- /**
- * Running in the linksure's quick game.
- */
- export const LINKSURE: boolean;
- /**
- * Running in the editor.
- */
- export const EDITOR: boolean;
- /**
- * Preview in browser or simulator.
- */
- export const PREVIEW: boolean;
- /**
- * Running in published project.
- */
- export const BUILD: boolean;
- /**
- * Running in the engine's unit test.
- */
- export const TEST: boolean;
- /**
- * Running debug mode.
- */
- export const DEBUG: boolean;
- /**
- * Running in the editor or preview.
- */
- export const DEV: boolean;
- /**
- * Running in mini game.
- */
- export const MINIGAME: boolean;
- /**
- * Running in runtime based environment.
- */
- export const RUNTIME_BASED: boolean;
- /**
- * Support JIT.
- */
- export const SUPPORT_JIT: boolean;
- /**
- * Running in environment where using JSB as the JavaScript interface binding scheme.
- */
- export const JSB: boolean;
- /**
- * The network access mode.
- * - 0 Client
- * - 1 ListenServer
- * - 2 HostServer
- */
- export const NET_MODE: number;
- }
|