cc.env.d.ts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. declare module 'cc/env'{
  2. /**
  3. * Running in Web platform
  4. */
  5. export const HTML5: boolean;
  6. /**
  7. * Running in native platform (mobile app, desktop app, or simulator).
  8. */
  9. export const NATIVE: boolean;
  10. /**
  11. * Running in the Wechat's mini game.
  12. */
  13. export const WECHAT: boolean;
  14. /**
  15. * Running in the baidu's mini game.
  16. */
  17. export const BAIDU: boolean;
  18. /**
  19. * Running in the xiaomi's quick game.
  20. */
  21. export const XIAOMI: boolean;
  22. /**
  23. * Running in the alipay's mini game.
  24. */
  25. export const ALIPAY: boolean;
  26. /**
  27. * Running in the taobao creative app.
  28. */
  29. export const TAOBAO: boolean;
  30. /**
  31. * Running in the ByteDance's mini game.
  32. */
  33. export const BYTEDANCE: boolean;
  34. /**
  35. * Running in the oppo's quick game.
  36. */
  37. export const OPPO: boolean;
  38. /**
  39. * Running in the vivo's quick game.
  40. */
  41. export const VIVO: boolean;
  42. /**
  43. * Running in the huawei's quick game.
  44. */
  45. export const HUAWEI: boolean;
  46. /**
  47. * Running in the cocosplay.
  48. */
  49. export const COCOSPLAY: boolean;
  50. /**
  51. * Running in the qtt's quick game.
  52. */
  53. export const QTT: boolean;
  54. /**
  55. * Running in the linksure's quick game.
  56. */
  57. export const LINKSURE: boolean;
  58. /**
  59. * Running in the editor.
  60. */
  61. export const EDITOR: boolean;
  62. /**
  63. * Preview in browser or simulator.
  64. */
  65. export const PREVIEW: boolean;
  66. /**
  67. * Running in published project.
  68. */
  69. export const BUILD: boolean;
  70. /**
  71. * Running in the engine's unit test.
  72. */
  73. export const TEST: boolean;
  74. /**
  75. * Running debug mode.
  76. */
  77. export const DEBUG: boolean;
  78. /**
  79. * Running in the editor or preview.
  80. */
  81. export const DEV: boolean;
  82. /**
  83. * Running in mini game.
  84. */
  85. export const MINIGAME: boolean;
  86. /**
  87. * Running in runtime based environment.
  88. */
  89. export const RUNTIME_BASED: boolean;
  90. /**
  91. * Support JIT.
  92. */
  93. export const SUPPORT_JIT: boolean;
  94. /**
  95. * Running in environment where using JSB as the JavaScript interface binding scheme.
  96. */
  97. export const JSB: boolean;
  98. /**
  99. * The network access mode.
  100. * - 0 Client
  101. * - 1 ListenServer
  102. * - 2 HostServer
  103. */
  104. export const NET_MODE: number;
  105. }