cc.env.d.ts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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 ANDROID platform
  12. */
  13. export const ANDROID: boolean;
  14. /**
  15. * Running in IOS platform
  16. */
  17. export const IOS: boolean;
  18. /**
  19. * Running in MAC platform
  20. */
  21. export const MAC: boolean;
  22. /**
  23. * Running in WINDOWS platform
  24. */
  25. export const WINDOWS: boolean;
  26. /**
  27. * Running in LINUX platform
  28. */
  29. export const LINUX: boolean;
  30. /**
  31. * Running in OHOS platform
  32. */
  33. export const OHOS: boolean;
  34. /**
  35. * Running in OPEN_HARMONY platform
  36. */
  37. export const OPEN_HARMONY: boolean;
  38. /**
  39. * Running in the Wechat's mini game.
  40. */
  41. export const WECHAT: boolean;
  42. /**
  43. * Running in the Wechat's mini program.
  44. */
  45. export const WECHAT_MINI_PROGRAM: boolean;
  46. /**
  47. * Running in the baidu's mini game.
  48. */
  49. export const BAIDU: boolean;
  50. /**
  51. * Running in the xiaomi's quick game.
  52. */
  53. export const XIAOMI: boolean;
  54. /**
  55. * Running in the alipay's mini game.
  56. */
  57. export const ALIPAY: boolean;
  58. /**
  59. * Running in the taobao creative app.
  60. */
  61. export const TAOBAO: boolean;
  62. /**
  63. * Running in the taobao mini game.
  64. */
  65. export const TAOBAO_MINIGAME: boolean;
  66. /**
  67. * Running in the ByteDance's mini game.
  68. */
  69. export const BYTEDANCE: boolean;
  70. /**
  71. * Running in the oppo's quick game.
  72. */
  73. export const OPPO: boolean;
  74. /**
  75. * Running in the vivo's quick game.
  76. */
  77. export const VIVO: boolean;
  78. /**
  79. * Running in the huawei's quick game.
  80. */
  81. export const HUAWEI: boolean;
  82. /**
  83. * Running in the cocosplay.
  84. */
  85. export const COCOSPLAY: boolean;
  86. /**
  87. * Running in the qtt's quick game.
  88. */
  89. export const QTT: boolean;
  90. /**
  91. * Running in the linksure's quick game.
  92. */
  93. export const LINKSURE: boolean;
  94. /**
  95. * Running in the editor.
  96. */
  97. export const EDITOR: boolean;
  98. /**
  99. * Run in editor but not in editor preview.
  100. */
  101. export const EDITOR_NOT_IN_PREVIEW: boolean;
  102. /**
  103. * Preview in browser or simulator.
  104. */
  105. export const PREVIEW: boolean;
  106. /**
  107. * Running in published project.
  108. */
  109. export const BUILD: boolean;
  110. /**
  111. * Running in the engine's unit test.
  112. */
  113. export const TEST: boolean;
  114. /**
  115. * Running debug mode.
  116. */
  117. export const DEBUG: boolean;
  118. /**
  119. * Running in the editor or preview.
  120. */
  121. export const DEV: boolean;
  122. /**
  123. * Running in mini game.
  124. */
  125. export const MINIGAME: boolean;
  126. /**
  127. * Running in runtime based environment.
  128. */
  129. export const RUNTIME_BASED: boolean;
  130. /**
  131. * Support JIT.
  132. */
  133. export const SUPPORT_JIT: boolean;
  134. /**
  135. * Running in environment where using JSB as the JavaScript interface binding scheme.
  136. */
  137. export const JSB: boolean;
  138. /**
  139. * The network access mode.
  140. * - 0 Client
  141. * - 1 ListenServer
  142. * - 2 HostServer
  143. */
  144. export const NET_MODE: number;
  145. }