gdcore-tools 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (601) hide show
  1. package/GDevelop/ExtLibs/7za.exe +0 -0
  2. package/GDevelop/ExtLibs/curl.exe +0 -0
  3. package/GDevelop/scripts/libgettextlib-0-17.dll +0 -0
  4. package/GDevelop/scripts/libgettextsrc-0-17.dll +0 -0
  5. package/LICENSE +1 -1
  6. package/dist/Runtime/AsyncTasksManager.js +5 -0
  7. package/dist/Runtime/AsyncTasksManager.js.map +7 -0
  8. package/dist/Runtime/Cordova/config.xml +44 -0
  9. package/dist/Runtime/Cordova/package.json +22 -0
  10. package/dist/Runtime/Cordova/www/index.html +45 -0
  11. package/dist/Runtime/CustomRuntimeObject.js +2 -0
  12. package/dist/Runtime/CustomRuntimeObject.js.map +7 -0
  13. package/dist/Runtime/CustomRuntimeObjectInstanceContainer.js +2 -0
  14. package/dist/Runtime/CustomRuntimeObjectInstanceContainer.js.map +7 -0
  15. package/dist/Runtime/Electron/main.js +65 -0
  16. package/dist/Runtime/Electron/package.json +26 -0
  17. package/dist/Runtime/Extensions/3D/A_RuntimeObject3D.js +2 -0
  18. package/dist/Runtime/Extensions/3D/A_RuntimeObject3D.js.map +7 -0
  19. package/dist/Runtime/Extensions/3D/A_RuntimeObject3DRenderer.js +2 -0
  20. package/dist/Runtime/Extensions/3D/A_RuntimeObject3DRenderer.js.map +7 -0
  21. package/dist/Runtime/Extensions/3D/AmbientLight.js +2 -0
  22. package/dist/Runtime/Extensions/3D/AmbientLight.js.map +7 -0
  23. package/dist/Runtime/Extensions/3D/Cube3DRuntimeObject.js +2 -0
  24. package/dist/Runtime/Extensions/3D/Cube3DRuntimeObject.js.map +7 -0
  25. package/dist/Runtime/Extensions/3D/Cube3DRuntimeObjectPixiRenderer.js +2 -0
  26. package/dist/Runtime/Extensions/3D/Cube3DRuntimeObjectPixiRenderer.js.map +7 -0
  27. package/dist/Runtime/Extensions/3D/DirectionalLight.js +2 -0
  28. package/dist/Runtime/Extensions/3D/DirectionalLight.js.map +7 -0
  29. package/dist/Runtime/Extensions/3D/ExponentialFog.js +2 -0
  30. package/dist/Runtime/Extensions/3D/ExponentialFog.js.map +7 -0
  31. package/dist/Runtime/Extensions/3D/HemisphereLight.js +2 -0
  32. package/dist/Runtime/Extensions/3D/HemisphereLight.js.map +7 -0
  33. package/dist/Runtime/Extensions/3D/JsExtension.js +2809 -0
  34. package/dist/Runtime/Extensions/3D/LinearFog.js +2 -0
  35. package/dist/Runtime/Extensions/3D/LinearFog.js.map +7 -0
  36. package/dist/Runtime/Extensions/3D/Model3DRuntimeObject.js +2 -0
  37. package/dist/Runtime/Extensions/3D/Model3DRuntimeObject.js.map +7 -0
  38. package/dist/Runtime/Extensions/3D/Model3DRuntimeObject3DRenderer.js +2 -0
  39. package/dist/Runtime/Extensions/3D/Model3DRuntimeObject3DRenderer.js.map +7 -0
  40. package/dist/Runtime/Extensions/3D/Scene3DTools.js +2 -0
  41. package/dist/Runtime/Extensions/3D/Scene3DTools.js.map +7 -0
  42. package/dist/Runtime/Extensions/AdMob/JsExtension.js +798 -0
  43. package/dist/Runtime/Extensions/AdMob/admobtools.js +2 -0
  44. package/dist/Runtime/Extensions/AdMob/admobtools.js.map +7 -0
  45. package/dist/Runtime/Extensions/AdvancedWindow/JsExtension.js +719 -0
  46. package/dist/Runtime/Extensions/AdvancedWindow/electron-advancedwindowtools.js +2 -0
  47. package/dist/Runtime/Extensions/AdvancedWindow/electron-advancedwindowtools.js.map +7 -0
  48. package/dist/Runtime/Extensions/AnchorBehavior/anchorruntimebehavior.js +2 -0
  49. package/dist/Runtime/Extensions/AnchorBehavior/anchorruntimebehavior.js.map +7 -0
  50. package/dist/Runtime/Extensions/BBText/JsExtension.js +639 -0
  51. package/dist/Runtime/Extensions/BBText/bbtextruntimeobject-pixi-renderer.js +2 -0
  52. package/dist/Runtime/Extensions/BBText/bbtextruntimeobject-pixi-renderer.js.map +7 -0
  53. package/dist/Runtime/Extensions/BBText/bbtextruntimeobject.js +2 -0
  54. package/dist/Runtime/Extensions/BBText/bbtextruntimeobject.js.map +7 -0
  55. package/dist/Runtime/Extensions/BBText/pixi-multistyle-text/dist/pixi-multistyle-text.umd.js +1 -0
  56. package/dist/Runtime/Extensions/BitmapText/JsExtension.js +756 -0
  57. package/dist/Runtime/Extensions/BitmapText/bitmaptextruntimeobject-pixi-renderer.js +2 -0
  58. package/dist/Runtime/Extensions/BitmapText/bitmaptextruntimeobject-pixi-renderer.js.map +7 -0
  59. package/dist/Runtime/Extensions/BitmapText/bitmaptextruntimeobject.js +2 -0
  60. package/dist/Runtime/Extensions/BitmapText/bitmaptextruntimeobject.js.map +7 -0
  61. package/dist/Runtime/Extensions/DebuggerTools/JsExtension.js +123 -0
  62. package/dist/Runtime/Extensions/DebuggerTools/debuggertools.js +2 -0
  63. package/dist/Runtime/Extensions/DebuggerTools/debuggertools.js.map +7 -0
  64. package/dist/Runtime/Extensions/DestroyOutsideBehavior/destroyoutsideruntimebehavior.js +2 -0
  65. package/dist/Runtime/Extensions/DestroyOutsideBehavior/destroyoutsideruntimebehavior.js.map +7 -0
  66. package/dist/Runtime/Extensions/DeviceSensors/JsExtension.js +461 -0
  67. package/dist/Runtime/Extensions/DeviceSensors/devicesensortools.js +2 -0
  68. package/dist/Runtime/Extensions/DeviceSensors/devicesensortools.js.map +7 -0
  69. package/dist/Runtime/Extensions/DeviceVibration/JsExtension.js +108 -0
  70. package/dist/Runtime/Extensions/DeviceVibration/devicevibrationtools.js +2 -0
  71. package/dist/Runtime/Extensions/DeviceVibration/devicevibrationtools.js.map +7 -0
  72. package/dist/Runtime/Extensions/DialogueTree/JsExtension.js +730 -0
  73. package/dist/Runtime/Extensions/DialogueTree/bondage.js/dist/bondage.min.js +11 -0
  74. package/dist/Runtime/Extensions/DialogueTree/dialoguetools.js +3 -0
  75. package/dist/Runtime/Extensions/DialogueTree/dialoguetools.js.map +7 -0
  76. package/dist/Runtime/Extensions/DraggableBehavior/draggableruntimebehavior.js +2 -0
  77. package/dist/Runtime/Extensions/DraggableBehavior/draggableruntimebehavior.js.map +7 -0
  78. package/dist/Runtime/Extensions/Effects/JsExtension.js +1197 -0
  79. package/dist/Runtime/Extensions/Effects/adjustment-pixi-filter.js +2 -0
  80. package/dist/Runtime/Extensions/Effects/adjustment-pixi-filter.js.map +7 -0
  81. package/dist/Runtime/Extensions/Effects/advanced-bloom-pixi-filter.js +2 -0
  82. package/dist/Runtime/Extensions/Effects/advanced-bloom-pixi-filter.js.map +7 -0
  83. package/dist/Runtime/Extensions/Effects/ascii-pixi-filter.js +2 -0
  84. package/dist/Runtime/Extensions/Effects/ascii-pixi-filter.js.map +7 -0
  85. package/dist/Runtime/Extensions/Effects/bevel-pixi-filter.js +2 -0
  86. package/dist/Runtime/Extensions/Effects/bevel-pixi-filter.js.map +7 -0
  87. package/dist/Runtime/Extensions/Effects/black-and-white-pixi-filter.js +2 -0
  88. package/dist/Runtime/Extensions/Effects/black-and-white-pixi-filter.js.map +7 -0
  89. package/dist/Runtime/Extensions/Effects/blending-mode-pixi-filter.js +2 -0
  90. package/dist/Runtime/Extensions/Effects/blending-mode-pixi-filter.js.map +7 -0
  91. package/dist/Runtime/Extensions/Effects/blur-pixi-filter.js +2 -0
  92. package/dist/Runtime/Extensions/Effects/blur-pixi-filter.js.map +7 -0
  93. package/dist/Runtime/Extensions/Effects/brightness-pixi-filter.js +2 -0
  94. package/dist/Runtime/Extensions/Effects/brightness-pixi-filter.js.map +7 -0
  95. package/dist/Runtime/Extensions/Effects/bulge-pinch-pixi-filter.js +2 -0
  96. package/dist/Runtime/Extensions/Effects/bulge-pinch-pixi-filter.js.map +7 -0
  97. package/dist/Runtime/Extensions/Effects/color-map-pixi-filter.js +2 -0
  98. package/dist/Runtime/Extensions/Effects/color-map-pixi-filter.js.map +7 -0
  99. package/dist/Runtime/Extensions/Effects/color-replace-pixi-filter.js +2 -0
  100. package/dist/Runtime/Extensions/Effects/color-replace-pixi-filter.js.map +7 -0
  101. package/dist/Runtime/Extensions/Effects/crt-pixi-filter.js +2 -0
  102. package/dist/Runtime/Extensions/Effects/crt-pixi-filter.js.map +7 -0
  103. package/dist/Runtime/Extensions/Effects/displacement-pixi-filter.js +2 -0
  104. package/dist/Runtime/Extensions/Effects/displacement-pixi-filter.js.map +7 -0
  105. package/dist/Runtime/Extensions/Effects/dot-pixi-filter.js +2 -0
  106. package/dist/Runtime/Extensions/Effects/dot-pixi-filter.js.map +7 -0
  107. package/dist/Runtime/Extensions/Effects/drop-shadow-pixi-filter.js +2 -0
  108. package/dist/Runtime/Extensions/Effects/drop-shadow-pixi-filter.js.map +7 -0
  109. package/dist/Runtime/Extensions/Effects/glitch-pixi-filter.js +2 -0
  110. package/dist/Runtime/Extensions/Effects/glitch-pixi-filter.js.map +7 -0
  111. package/dist/Runtime/Extensions/Effects/glow-pixi-filter.js +2 -0
  112. package/dist/Runtime/Extensions/Effects/glow-pixi-filter.js.map +7 -0
  113. package/dist/Runtime/Extensions/Effects/godray-pixi-filter.js +2 -0
  114. package/dist/Runtime/Extensions/Effects/godray-pixi-filter.js.map +7 -0
  115. package/dist/Runtime/Extensions/Effects/kawase-blur-pixi-filter.js +2 -0
  116. package/dist/Runtime/Extensions/Effects/kawase-blur-pixi-filter.js.map +7 -0
  117. package/dist/Runtime/Extensions/Effects/light-night-pixi-filter.js +3 -0
  118. package/dist/Runtime/Extensions/Effects/light-night-pixi-filter.js.map +7 -0
  119. package/dist/Runtime/Extensions/Effects/night-pixi-filter.js +3 -0
  120. package/dist/Runtime/Extensions/Effects/night-pixi-filter.js.map +7 -0
  121. package/dist/Runtime/Extensions/Effects/noise-pixi-filter.js +2 -0
  122. package/dist/Runtime/Extensions/Effects/noise-pixi-filter.js.map +7 -0
  123. package/dist/Runtime/Extensions/Effects/old-film-pixi-filter.js +2 -0
  124. package/dist/Runtime/Extensions/Effects/old-film-pixi-filter.js.map +7 -0
  125. package/dist/Runtime/Extensions/Effects/outline-pixi-filter.js +2 -0
  126. package/dist/Runtime/Extensions/Effects/outline-pixi-filter.js.map +7 -0
  127. package/dist/Runtime/Extensions/Effects/pixelate-pixi-filter.js +2 -0
  128. package/dist/Runtime/Extensions/Effects/pixelate-pixi-filter.js.map +7 -0
  129. package/dist/Runtime/Extensions/Effects/pixi-filters/filter-adjustment.js +8 -0
  130. package/dist/Runtime/Extensions/Effects/pixi-filters/filter-advanced-bloom.js +8 -0
  131. package/dist/Runtime/Extensions/Effects/pixi-filters/filter-ascii.js +8 -0
  132. package/dist/Runtime/Extensions/Effects/pixi-filters/filter-bevel.js +8 -0
  133. package/dist/Runtime/Extensions/Effects/pixi-filters/filter-bulge-pinch.js +8 -0
  134. package/dist/Runtime/Extensions/Effects/pixi-filters/filter-color-map.js +8 -0
  135. package/dist/Runtime/Extensions/Effects/pixi-filters/filter-color-replace.js +8 -0
  136. package/dist/Runtime/Extensions/Effects/pixi-filters/filter-crt.js +8 -0
  137. package/dist/Runtime/Extensions/Effects/pixi-filters/filter-dot.js +8 -0
  138. package/dist/Runtime/Extensions/Effects/pixi-filters/filter-drop-shadow.js +8 -0
  139. package/dist/Runtime/Extensions/Effects/pixi-filters/filter-glitch.js +8 -0
  140. package/dist/Runtime/Extensions/Effects/pixi-filters/filter-glow.js +8 -0
  141. package/dist/Runtime/Extensions/Effects/pixi-filters/filter-godray.js +8 -0
  142. package/dist/Runtime/Extensions/Effects/pixi-filters/filter-kawase-blur.js +8 -0
  143. package/dist/Runtime/Extensions/Effects/pixi-filters/filter-old-film.js +8 -0
  144. package/dist/Runtime/Extensions/Effects/pixi-filters/filter-outline.js +8 -0
  145. package/dist/Runtime/Extensions/Effects/pixi-filters/filter-pixelate.js +8 -0
  146. package/dist/Runtime/Extensions/Effects/pixi-filters/filter-radial-blur.js +8 -0
  147. package/dist/Runtime/Extensions/Effects/pixi-filters/filter-reflection.js +8 -0
  148. package/dist/Runtime/Extensions/Effects/pixi-filters/filter-rgb-split.js +8 -0
  149. package/dist/Runtime/Extensions/Effects/pixi-filters/filter-tilt-shift.js +171 -0
  150. package/dist/Runtime/Extensions/Effects/pixi-filters/filter-twist.js +8 -0
  151. package/dist/Runtime/Extensions/Effects/pixi-filters/filter-zoom-blur.js +8 -0
  152. package/dist/Runtime/Extensions/Effects/pixi-filters/types/adjustment/types.d.ts +29 -0
  153. package/dist/Runtime/Extensions/Effects/pixi-filters/types/advanced-bloom/types.d.ts +30 -0
  154. package/dist/Runtime/Extensions/Effects/pixi-filters/types/ascii/types.d.ts +11 -0
  155. package/dist/Runtime/Extensions/Effects/pixi-filters/types/bevel/types.d.ts +25 -0
  156. package/dist/Runtime/Extensions/Effects/pixi-filters/types/bloom/types.d.ts +18 -0
  157. package/dist/Runtime/Extensions/Effects/pixi-filters/types/bulge-pinch/types.d.ts +24 -0
  158. package/dist/Runtime/Extensions/Effects/pixi-filters/types/color-map/types.d.ts +22 -0
  159. package/dist/Runtime/Extensions/Effects/pixi-filters/types/color-overlay/types.d.ts +11 -0
  160. package/dist/Runtime/Extensions/Effects/pixi-filters/types/color-replace/types.d.ts +17 -0
  161. package/dist/Runtime/Extensions/Effects/pixi-filters/types/convolution/types.d.ts +13 -0
  162. package/dist/Runtime/Extensions/Effects/pixi-filters/types/cross-hatch/types.d.ts +10 -0
  163. package/dist/Runtime/Extensions/Effects/pixi-filters/types/crt/types.d.ts +35 -0
  164. package/dist/Runtime/Extensions/Effects/pixi-filters/types/dot/types.d.ts +12 -0
  165. package/dist/Runtime/Extensions/Effects/pixi-filters/types/drop-shadow/types.d.ts +33 -0
  166. package/dist/Runtime/Extensions/Effects/pixi-filters/types/emboss/types.d.ts +11 -0
  167. package/dist/Runtime/Extensions/Effects/pixi-filters/types/glitch/types.d.ts +38 -0
  168. package/dist/Runtime/Extensions/Effects/pixi-filters/types/glow/types.d.ts +23 -0
  169. package/dist/Runtime/Extensions/Effects/pixi-filters/types/godray/types.d.ts +27 -0
  170. package/dist/Runtime/Extensions/Effects/pixi-filters/types/kawase-blur/types.d.ts +15 -0
  171. package/dist/Runtime/Extensions/Effects/pixi-filters/types/motion-blur/types.d.ts +17 -0
  172. package/dist/Runtime/Extensions/Effects/pixi-filters/types/multi-color-replace/types.d.ts +18 -0
  173. package/dist/Runtime/Extensions/Effects/pixi-filters/types/old-film/types.d.ts +33 -0
  174. package/dist/Runtime/Extensions/Effects/pixi-filters/types/outline/types.d.ts +13 -0
  175. package/dist/Runtime/Extensions/Effects/pixi-filters/types/pixelate/types.d.ts +11 -0
  176. package/dist/Runtime/Extensions/Effects/pixi-filters/types/radial-blur/types.d.ts +19 -0
  177. package/dist/Runtime/Extensions/Effects/pixi-filters/types/reflection/types.d.ts +25 -0
  178. package/dist/Runtime/Extensions/Effects/pixi-filters/types/rgb-split/types.d.ts +13 -0
  179. package/dist/Runtime/Extensions/Effects/pixi-filters/types/shockwave/types.d.ts +25 -0
  180. package/dist/Runtime/Extensions/Effects/pixi-filters/types/simple-lightmap/types.d.ts +13 -0
  181. package/dist/Runtime/Extensions/Effects/pixi-filters/types/tilt-shift/types.d.ts +19 -0
  182. package/dist/Runtime/Extensions/Effects/pixi-filters/types/twist/types.d.ts +13 -0
  183. package/dist/Runtime/Extensions/Effects/pixi-filters/types/zoom-blur/types.d.ts +28 -0
  184. package/dist/Runtime/Extensions/Effects/radial-blur-pixi-filter.js +2 -0
  185. package/dist/Runtime/Extensions/Effects/radial-blur-pixi-filter.js.map +7 -0
  186. package/dist/Runtime/Extensions/Effects/reflection-pixi-filter.js +2 -0
  187. package/dist/Runtime/Extensions/Effects/reflection-pixi-filter.js.map +7 -0
  188. package/dist/Runtime/Extensions/Effects/rgb-split-pixi-filter.js +2 -0
  189. package/dist/Runtime/Extensions/Effects/rgb-split-pixi-filter.js.map +7 -0
  190. package/dist/Runtime/Extensions/Effects/sepia-pixi-filter.js +2 -0
  191. package/dist/Runtime/Extensions/Effects/sepia-pixi-filter.js.map +7 -0
  192. package/dist/Runtime/Extensions/Effects/tilt-shift-pixi-filter.js +2 -0
  193. package/dist/Runtime/Extensions/Effects/tilt-shift-pixi-filter.js.map +7 -0
  194. package/dist/Runtime/Extensions/Effects/twist-pixi-filter.js +2 -0
  195. package/dist/Runtime/Extensions/Effects/twist-pixi-filter.js.map +7 -0
  196. package/dist/Runtime/Extensions/Effects/zoom-blur-pixi-filter.js +2 -0
  197. package/dist/Runtime/Extensions/Effects/zoom-blur-pixi-filter.js.map +7 -0
  198. package/dist/Runtime/Extensions/ExampleJsExtension/JsExtension.js +589 -0
  199. package/dist/Runtime/Extensions/ExampleJsExtension/dummyeffect.js +3 -0
  200. package/dist/Runtime/Extensions/ExampleJsExtension/dummyeffect.js.map +7 -0
  201. package/dist/Runtime/Extensions/ExampleJsExtension/dummyruntimebehavior.js +2 -0
  202. package/dist/Runtime/Extensions/ExampleJsExtension/dummyruntimebehavior.js.map +7 -0
  203. package/dist/Runtime/Extensions/ExampleJsExtension/dummyruntimeobject-pixi-renderer.js +2 -0
  204. package/dist/Runtime/Extensions/ExampleJsExtension/dummyruntimeobject-pixi-renderer.js.map +7 -0
  205. package/dist/Runtime/Extensions/ExampleJsExtension/dummyruntimeobject.js +2 -0
  206. package/dist/Runtime/Extensions/ExampleJsExtension/dummyruntimeobject.js.map +7 -0
  207. package/dist/Runtime/Extensions/ExampleJsExtension/dummywithshareddataruntimebehavior.js +2 -0
  208. package/dist/Runtime/Extensions/ExampleJsExtension/dummywithshareddataruntimebehavior.js.map +7 -0
  209. package/dist/Runtime/Extensions/ExampleJsExtension/examplejsextensiontools.js +2 -0
  210. package/dist/Runtime/Extensions/ExampleJsExtension/examplejsextensiontools.js.map +7 -0
  211. package/dist/Runtime/Extensions/FacebookInstantGames/FBInstant.d.ts +2 -0
  212. package/dist/Runtime/Extensions/FacebookInstantGames/JsExtension.js +379 -0
  213. package/dist/Runtime/Extensions/FacebookInstantGames/facebookinstantgamestools.js +2 -0
  214. package/dist/Runtime/Extensions/FacebookInstantGames/facebookinstantgamestools.js.map +7 -0
  215. package/dist/Runtime/Extensions/FileSystem/JsExtension.js +559 -0
  216. package/dist/Runtime/Extensions/FileSystem/filesystemtools.js +2 -0
  217. package/dist/Runtime/Extensions/FileSystem/filesystemtools.js.map +7 -0
  218. package/dist/Runtime/Extensions/Firebase/A_firebasejs/A_firebase-base.js +2 -0
  219. package/dist/Runtime/Extensions/Firebase/A_firebasejs/A_firebase-base.js.map +1 -0
  220. package/dist/Runtime/Extensions/Firebase/A_firebasejs/B_firebase-analytics.js +2 -0
  221. package/dist/Runtime/Extensions/Firebase/A_firebasejs/B_firebase-analytics.js.map +1 -0
  222. package/dist/Runtime/Extensions/Firebase/A_firebasejs/B_firebase-auth.js +2 -0
  223. package/dist/Runtime/Extensions/Firebase/A_firebasejs/B_firebase-auth.js.map +1 -0
  224. package/dist/Runtime/Extensions/Firebase/A_firebasejs/B_firebase-database.js +2 -0
  225. package/dist/Runtime/Extensions/Firebase/A_firebasejs/B_firebase-database.js.map +1 -0
  226. package/dist/Runtime/Extensions/Firebase/A_firebasejs/B_firebase-firestore.js +2 -0
  227. package/dist/Runtime/Extensions/Firebase/A_firebasejs/B_firebase-firestore.js.map +1 -0
  228. package/dist/Runtime/Extensions/Firebase/A_firebasejs/B_firebase-functions.js +2 -0
  229. package/dist/Runtime/Extensions/Firebase/A_firebasejs/B_firebase-functions.js.map +1 -0
  230. package/dist/Runtime/Extensions/Firebase/A_firebasejs/B_firebase-messaging.js +2 -0
  231. package/dist/Runtime/Extensions/Firebase/A_firebasejs/B_firebase-messaging.js.map +1 -0
  232. package/dist/Runtime/Extensions/Firebase/A_firebasejs/B_firebase-performance.js +2 -0
  233. package/dist/Runtime/Extensions/Firebase/A_firebasejs/B_firebase-performance.js.map +1 -0
  234. package/dist/Runtime/Extensions/Firebase/A_firebasejs/B_firebase-remote-config.js +2 -0
  235. package/dist/Runtime/Extensions/Firebase/A_firebasejs/B_firebase-remote-config.js.map +1 -0
  236. package/dist/Runtime/Extensions/Firebase/A_firebasejs/B_firebase-storage.js +2 -0
  237. package/dist/Runtime/Extensions/Firebase/A_firebasejs/B_firebase-storage.js.map +1 -0
  238. package/dist/Runtime/Extensions/Firebase/A_firebasejs/firebase.d.ts +10191 -0
  239. package/dist/Runtime/Extensions/Firebase/B_firebasetools/C_firebasetools.js +2 -0
  240. package/dist/Runtime/Extensions/Firebase/B_firebasetools/C_firebasetools.js.map +7 -0
  241. package/dist/Runtime/Extensions/Firebase/B_firebasetools/D_analyticstools.js +2 -0
  242. package/dist/Runtime/Extensions/Firebase/B_firebasetools/D_analyticstools.js.map +7 -0
  243. package/dist/Runtime/Extensions/Firebase/B_firebasetools/D_authtools.js +2 -0
  244. package/dist/Runtime/Extensions/Firebase/B_firebasetools/D_authtools.js.map +7 -0
  245. package/dist/Runtime/Extensions/Firebase/B_firebasetools/D_cloudfirestoretools.js +2 -0
  246. package/dist/Runtime/Extensions/Firebase/B_firebasetools/D_cloudfirestoretools.js.map +7 -0
  247. package/dist/Runtime/Extensions/Firebase/B_firebasetools/D_databasetools.js +2 -0
  248. package/dist/Runtime/Extensions/Firebase/B_firebasetools/D_databasetools.js.map +7 -0
  249. package/dist/Runtime/Extensions/Firebase/B_firebasetools/D_functionstools.js +2 -0
  250. package/dist/Runtime/Extensions/Firebase/B_firebasetools/D_functionstools.js.map +7 -0
  251. package/dist/Runtime/Extensions/Firebase/B_firebasetools/D_performancetools.js +2 -0
  252. package/dist/Runtime/Extensions/Firebase/B_firebasetools/D_performancetools.js.map +7 -0
  253. package/dist/Runtime/Extensions/Firebase/B_firebasetools/D_remoteconfigtools.js +2 -0
  254. package/dist/Runtime/Extensions/Firebase/B_firebasetools/D_remoteconfigtools.js.map +7 -0
  255. package/dist/Runtime/Extensions/Firebase/B_firebasetools/D_storagetools.js +2 -0
  256. package/dist/Runtime/Extensions/Firebase/B_firebasetools/D_storagetools.js.map +7 -0
  257. package/dist/Runtime/Extensions/Firebase/JsExtension.js +2323 -0
  258. package/dist/Runtime/Extensions/Inventory/inventory.js +2 -0
  259. package/dist/Runtime/Extensions/Inventory/inventory.js.map +7 -0
  260. package/dist/Runtime/Extensions/Inventory/inventorytools.js +2 -0
  261. package/dist/Runtime/Extensions/Inventory/inventorytools.js.map +7 -0
  262. package/dist/Runtime/Extensions/JsExtensionTypes.flow.js +34 -0
  263. package/dist/Runtime/Extensions/Leaderboards/JsExtension.js +299 -0
  264. package/dist/Runtime/Extensions/Leaderboards/leaderboardstools.js +2 -0
  265. package/dist/Runtime/Extensions/Leaderboards/leaderboardstools.js.map +7 -0
  266. package/dist/Runtime/Extensions/Leaderboards/sha256.d.ts +234 -0
  267. package/dist/Runtime/Extensions/Leaderboards/sha256.js +21 -0
  268. package/dist/Runtime/Extensions/Lighting/JsExtension.js +371 -0
  269. package/dist/Runtime/Extensions/Lighting/lightobstacleruntimebehavior.js +2 -0
  270. package/dist/Runtime/Extensions/Lighting/lightobstacleruntimebehavior.js.map +7 -0
  271. package/dist/Runtime/Extensions/Lighting/lightruntimeobject-pixi-renderer.js +40 -0
  272. package/dist/Runtime/Extensions/Lighting/lightruntimeobject-pixi-renderer.js.map +7 -0
  273. package/dist/Runtime/Extensions/Lighting/lightruntimeobject.js +2 -0
  274. package/dist/Runtime/Extensions/Lighting/lightruntimeobject.js.map +7 -0
  275. package/dist/Runtime/Extensions/LinkedObjects/linkedobjects.js +2 -0
  276. package/dist/Runtime/Extensions/LinkedObjects/linkedobjects.js.map +7 -0
  277. package/dist/Runtime/Extensions/P2P/A_peer.js +4 -0
  278. package/dist/Runtime/Extensions/P2P/A_peer.js.map +1 -0
  279. package/dist/Runtime/Extensions/P2P/B_p2ptools.js +2 -0
  280. package/dist/Runtime/Extensions/P2P/B_p2ptools.js.map +7 -0
  281. package/dist/Runtime/Extensions/P2P/JsExtension.js +483 -0
  282. package/dist/Runtime/Extensions/P2P/peerjs.d.ts +509 -0
  283. package/dist/Runtime/Extensions/PanelSpriteObject/panelspriteruntimeobject-pixi-renderer.js +2 -0
  284. package/dist/Runtime/Extensions/PanelSpriteObject/panelspriteruntimeobject-pixi-renderer.js.map +7 -0
  285. package/dist/Runtime/Extensions/PanelSpriteObject/panelspriteruntimeobject.js +2 -0
  286. package/dist/Runtime/Extensions/PanelSpriteObject/panelspriteruntimeobject.js.map +7 -0
  287. package/dist/Runtime/Extensions/ParticleSystem/particleemitterobject-pixi-renderer.js +2 -0
  288. package/dist/Runtime/Extensions/ParticleSystem/particleemitterobject-pixi-renderer.js.map +7 -0
  289. package/dist/Runtime/Extensions/ParticleSystem/particleemitterobject.js +2 -0
  290. package/dist/Runtime/Extensions/ParticleSystem/particleemitterobject.js.map +7 -0
  291. package/dist/Runtime/Extensions/ParticleSystem/pixi-particles-pixi-renderer.min.js +3 -0
  292. package/dist/Runtime/Extensions/PathfindingBehavior/PathTools.js +2 -0
  293. package/dist/Runtime/Extensions/PathfindingBehavior/PathTools.js.map +7 -0
  294. package/dist/Runtime/Extensions/PathfindingBehavior/pathfindingobstacleruntimebehavior.js +2 -0
  295. package/dist/Runtime/Extensions/PathfindingBehavior/pathfindingobstacleruntimebehavior.js.map +7 -0
  296. package/dist/Runtime/Extensions/PathfindingBehavior/pathfindingruntimebehavior.js +2 -0
  297. package/dist/Runtime/Extensions/PathfindingBehavior/pathfindingruntimebehavior.js.map +7 -0
  298. package/dist/Runtime/Extensions/Physics2Behavior/Box2D_v2.3.1_min.wasm.js +2 -0
  299. package/dist/Runtime/Extensions/Physics2Behavior/Box2D_v2.3.1_min.wasm.js.map +7 -0
  300. package/dist/Runtime/Extensions/Physics2Behavior/Box2D_v2.3.1_min.wasm.wasm +0 -0
  301. package/dist/Runtime/Extensions/Physics2Behavior/JsExtension.js +4072 -0
  302. package/dist/Runtime/Extensions/Physics2Behavior/box2d.d.ts +1804 -0
  303. package/dist/Runtime/Extensions/Physics2Behavior/physics2runtimebehavior.js +2 -0
  304. package/dist/Runtime/Extensions/Physics2Behavior/physics2runtimebehavior.js.map +7 -0
  305. package/dist/Runtime/Extensions/Physics2Behavior/physics2tools.js +2 -0
  306. package/dist/Runtime/Extensions/Physics2Behavior/physics2tools.js.map +7 -0
  307. package/dist/Runtime/Extensions/PhysicsBehavior/box2djs/box2d.js +804 -0
  308. package/dist/Runtime/Extensions/PhysicsBehavior/physicsruntimebehavior.js +2 -0
  309. package/dist/Runtime/Extensions/PhysicsBehavior/physicsruntimebehavior.js.map +7 -0
  310. package/dist/Runtime/Extensions/PlatformBehavior/benchmarks/platformerobjectruntimebehavior.benchmark.js +2 -0
  311. package/dist/Runtime/Extensions/PlatformBehavior/benchmarks/platformerobjectruntimebehavior.benchmark.js.map +7 -0
  312. package/dist/Runtime/Extensions/PlatformBehavior/platformerobjectruntimebehavior.js +2 -0
  313. package/dist/Runtime/Extensions/PlatformBehavior/platformerobjectruntimebehavior.js.map +7 -0
  314. package/dist/Runtime/Extensions/PlatformBehavior/platformruntimebehavior.js +2 -0
  315. package/dist/Runtime/Extensions/PlatformBehavior/platformruntimebehavior.js.map +7 -0
  316. package/dist/Runtime/Extensions/PlatformBehavior/platformtools.js +2 -0
  317. package/dist/Runtime/Extensions/PlatformBehavior/platformtools.js.map +7 -0
  318. package/dist/Runtime/Extensions/PlayerAuthentication/JsExtension.js +218 -0
  319. package/dist/Runtime/Extensions/PlayerAuthentication/playerauthenticationcomponents.js +5 -0
  320. package/dist/Runtime/Extensions/PlayerAuthentication/playerauthenticationcomponents.js.map +7 -0
  321. package/dist/Runtime/Extensions/PlayerAuthentication/playerauthenticationtools.js +2 -0
  322. package/dist/Runtime/Extensions/PlayerAuthentication/playerauthenticationtools.js.map +7 -0
  323. package/dist/Runtime/Extensions/PrimitiveDrawing/pixi-graphics-extras/graphics-extras.min.js +10 -0
  324. package/dist/Runtime/Extensions/PrimitiveDrawing/pixi-graphics-extras/graphics-extras.min.js.map +1 -0
  325. package/dist/Runtime/Extensions/PrimitiveDrawing/shapepainterruntimeobject-pixi-renderer.js +2 -0
  326. package/dist/Runtime/Extensions/PrimitiveDrawing/shapepainterruntimeobject-pixi-renderer.js.map +7 -0
  327. package/dist/Runtime/Extensions/PrimitiveDrawing/shapepainterruntimeobject.js +2 -0
  328. package/dist/Runtime/Extensions/PrimitiveDrawing/shapepainterruntimeobject.js.map +7 -0
  329. package/dist/Runtime/Extensions/Screenshot/JsExtension.js +68 -0
  330. package/dist/Runtime/Extensions/Screenshot/screenshottools.js +2 -0
  331. package/dist/Runtime/Extensions/Screenshot/screenshottools.js.map +7 -0
  332. package/dist/Runtime/Extensions/Shopify/shopify-buy.umd.polyfilled.min.js +2 -0
  333. package/dist/Runtime/Extensions/Shopify/shopifytools.js +2 -0
  334. package/dist/Runtime/Extensions/Shopify/shopifytools.js.map +7 -0
  335. package/dist/Runtime/Extensions/SpatialSound/JsExtension.js +92 -0
  336. package/dist/Runtime/Extensions/SpatialSound/howler.spatial.min.js +2 -0
  337. package/dist/Runtime/Extensions/SpatialSound/spatialsoundtools.js +2 -0
  338. package/dist/Runtime/Extensions/SpatialSound/spatialsoundtools.js.map +7 -0
  339. package/dist/Runtime/Extensions/SystemInfo/systeminfotools.js +2 -0
  340. package/dist/Runtime/Extensions/SystemInfo/systeminfotools.js.map +7 -0
  341. package/dist/Runtime/Extensions/TextEntryObject/textentryruntimeobject-pixi-renderer.js +2 -0
  342. package/dist/Runtime/Extensions/TextEntryObject/textentryruntimeobject-pixi-renderer.js.map +7 -0
  343. package/dist/Runtime/Extensions/TextEntryObject/textentryruntimeobject.js +2 -0
  344. package/dist/Runtime/Extensions/TextEntryObject/textentryruntimeobject.js.map +7 -0
  345. package/dist/Runtime/Extensions/TextInput/JsExtension.js +790 -0
  346. package/dist/Runtime/Extensions/TextInput/textinputruntimeobject-pixi-renderer.js +2 -0
  347. package/dist/Runtime/Extensions/TextInput/textinputruntimeobject-pixi-renderer.js.map +7 -0
  348. package/dist/Runtime/Extensions/TextInput/textinputruntimeobject.js +2 -0
  349. package/dist/Runtime/Extensions/TextInput/textinputruntimeobject.js.map +7 -0
  350. package/dist/Runtime/Extensions/TextObject/textruntimeobject-pixi-renderer.js +2 -0
  351. package/dist/Runtime/Extensions/TextObject/textruntimeobject-pixi-renderer.js.map +7 -0
  352. package/dist/Runtime/Extensions/TextObject/textruntimeobject.js +2 -0
  353. package/dist/Runtime/Extensions/TextObject/textruntimeobject.js.map +7 -0
  354. package/dist/Runtime/Extensions/TileMap/JsExtension.js +1653 -0
  355. package/dist/Runtime/Extensions/TileMap/TileMapRuntimeManager.js +2 -0
  356. package/dist/Runtime/Extensions/TileMap/TileMapRuntimeManager.js.map +7 -0
  357. package/dist/Runtime/Extensions/TileMap/collision/TileMapCollisionMaskRenderer.js +2 -0
  358. package/dist/Runtime/Extensions/TileMap/collision/TileMapCollisionMaskRenderer.js.map +7 -0
  359. package/dist/Runtime/Extensions/TileMap/collision/TransformedTileMap.js +2 -0
  360. package/dist/Runtime/Extensions/TileMap/collision/TransformedTileMap.js.map +7 -0
  361. package/dist/Runtime/Extensions/TileMap/example/anotherIsland.json +5769 -0
  362. package/dist/Runtime/Extensions/TileMap/example/island.json +5823 -0
  363. package/dist/Runtime/Extensions/TileMap/helper/TileMapHelper.d.ts +25 -0
  364. package/dist/Runtime/Extensions/TileMap/helper/TileMapHelper.js +2 -0
  365. package/dist/Runtime/Extensions/TileMap/helper/TileMapHelper.js.map +7 -0
  366. package/dist/Runtime/Extensions/TileMap/helper/dts/index.d.ts +16 -0
  367. package/dist/Runtime/Extensions/TileMap/helper/dts/index.d.ts.map +1 -0
  368. package/dist/Runtime/Extensions/TileMap/helper/dts/load/TileMapFileContent.d.ts +12 -0
  369. package/dist/Runtime/Extensions/TileMap/helper/dts/load/TileMapFileContent.d.ts.map +1 -0
  370. package/dist/Runtime/Extensions/TileMap/helper/dts/load/TileMapLoader.d.ts +18 -0
  371. package/dist/Runtime/Extensions/TileMap/helper/dts/load/TileMapLoader.d.ts.map +1 -0
  372. package/dist/Runtime/Extensions/TileMap/helper/dts/load/ldtk/LDtkFormat.d.ts +589 -0
  373. package/dist/Runtime/Extensions/TileMap/helper/dts/load/ldtk/LDtkFormat.d.ts.map +1 -0
  374. package/dist/Runtime/Extensions/TileMap/helper/dts/load/ldtk/LDtkTileMapLoader.d.ts +16 -0
  375. package/dist/Runtime/Extensions/TileMap/helper/dts/load/ldtk/LDtkTileMapLoader.d.ts.map +1 -0
  376. package/dist/Runtime/Extensions/TileMap/helper/dts/load/ldtk/LDtkTileMapLoaderHelper.d.ts +5 -0
  377. package/dist/Runtime/Extensions/TileMap/helper/dts/load/ldtk/LDtkTileMapLoaderHelper.d.ts.map +1 -0
  378. package/dist/Runtime/Extensions/TileMap/helper/dts/load/tiled/TiledFormat.d.ts +343 -0
  379. package/dist/Runtime/Extensions/TileMap/helper/dts/load/tiled/TiledFormat.d.ts.map +1 -0
  380. package/dist/Runtime/Extensions/TileMap/helper/dts/load/tiled/TiledTileMapLoader.d.ts +16 -0
  381. package/dist/Runtime/Extensions/TileMap/helper/dts/load/tiled/TiledTileMapLoader.d.ts.map +1 -0
  382. package/dist/Runtime/Extensions/TileMap/helper/dts/load/tiled/TiledTileMapLoader.spec.d.ts +2 -0
  383. package/dist/Runtime/Extensions/TileMap/helper/dts/load/tiled/TiledTileMapLoader.spec.d.ts.map +1 -0
  384. package/dist/Runtime/Extensions/TileMap/helper/dts/load/tiled/TiledTileMapLoaderHelper.d.ts +37 -0
  385. package/dist/Runtime/Extensions/TileMap/helper/dts/load/tiled/TiledTileMapLoaderHelper.d.ts.map +1 -0
  386. package/dist/Runtime/Extensions/TileMap/helper/dts/model/CommonTypes.d.ts +5 -0
  387. package/dist/Runtime/Extensions/TileMap/helper/dts/model/CommonTypes.d.ts.map +1 -0
  388. package/dist/Runtime/Extensions/TileMap/helper/dts/model/GID.d.ts +45 -0
  389. package/dist/Runtime/Extensions/TileMap/helper/dts/model/GID.d.ts.map +1 -0
  390. package/dist/Runtime/Extensions/TileMap/helper/dts/model/TileMapModel.d.ts +361 -0
  391. package/dist/Runtime/Extensions/TileMap/helper/dts/model/TileMapModel.d.ts.map +1 -0
  392. package/dist/Runtime/Extensions/TileMap/helper/dts/render/ResourceCache.d.ts +27 -0
  393. package/dist/Runtime/Extensions/TileMap/helper/dts/render/ResourceCache.d.ts.map +1 -0
  394. package/dist/Runtime/Extensions/TileMap/helper/dts/render/TileMapManager.d.ts +70 -0
  395. package/dist/Runtime/Extensions/TileMap/helper/dts/render/TileMapManager.d.ts.map +1 -0
  396. package/dist/Runtime/Extensions/TileMap/helper/dts/render/TileMapPixiHelper.d.ts +56 -0
  397. package/dist/Runtime/Extensions/TileMap/helper/dts/render/TileMapPixiHelper.d.ts.map +1 -0
  398. package/dist/Runtime/Extensions/TileMap/helper/dts/render/TileTextureCache.d.ts +24 -0
  399. package/dist/Runtime/Extensions/TileMap/helper/dts/render/TileTextureCache.d.ts.map +1 -0
  400. package/dist/Runtime/Extensions/TileMap/helper/dts/render/ldtk/LDtkPixiHelper.d.ts +26 -0
  401. package/dist/Runtime/Extensions/TileMap/helper/dts/render/ldtk/LDtkPixiHelper.d.ts.map +1 -0
  402. package/dist/Runtime/Extensions/TileMap/helper/dts/render/tiled/TiledPixiHelper.d.ts +21 -0
  403. package/dist/Runtime/Extensions/TileMap/helper/dts/render/tiled/TiledPixiHelper.d.ts.map +1 -0
  404. package/dist/Runtime/Extensions/TileMap/helper/dts/types/index.d.ts +12 -0
  405. package/dist/Runtime/Extensions/TileMap/helper/dts/types/index.d.ts.map +1 -0
  406. package/dist/Runtime/Extensions/TileMap/pako/dist/pako.d.ts +166 -0
  407. package/dist/Runtime/Extensions/TileMap/pako/dist/pako.min.js +2 -0
  408. package/dist/Runtime/Extensions/TileMap/pixi-tilemap/dist/global-pixi-tilemap.d.ts +23 -0
  409. package/dist/Runtime/Extensions/TileMap/pixi-tilemap/dist/pixi-tilemap.d.ts +270 -0
  410. package/dist/Runtime/Extensions/TileMap/pixi-tilemap/dist/pixi-tilemap.umd.js +74 -0
  411. package/dist/Runtime/Extensions/TileMap/pixi-tilemap/dist/pixi-tilemap.umd.js.map +7 -0
  412. package/dist/Runtime/Extensions/TileMap/tilemapcollisionmaskruntimeobject.js +2 -0
  413. package/dist/Runtime/Extensions/TileMap/tilemapcollisionmaskruntimeobject.js.map +7 -0
  414. package/dist/Runtime/Extensions/TileMap/tilemapruntimeobject-pixi-renderer.js +2 -0
  415. package/dist/Runtime/Extensions/TileMap/tilemapruntimeobject-pixi-renderer.js.map +7 -0
  416. package/dist/Runtime/Extensions/TileMap/tilemapruntimeobject.js +2 -0
  417. package/dist/Runtime/Extensions/TileMap/tilemapruntimeobject.js.map +7 -0
  418. package/dist/Runtime/Extensions/TiledSpriteObject/tiledspriteruntimeobject-pixi-renderer.js +2 -0
  419. package/dist/Runtime/Extensions/TiledSpriteObject/tiledspriteruntimeobject-pixi-renderer.js.map +7 -0
  420. package/dist/Runtime/Extensions/TiledSpriteObject/tiledspriteruntimeobject.js +2 -0
  421. package/dist/Runtime/Extensions/TiledSpriteObject/tiledspriteruntimeobject.js.map +7 -0
  422. package/dist/Runtime/Extensions/TopDownMovementBehavior/topdownmovementruntimebehavior.js +2 -0
  423. package/dist/Runtime/Extensions/TopDownMovementBehavior/topdownmovementruntimebehavior.js.map +7 -0
  424. package/dist/Runtime/Extensions/TweenBehavior/JsExtension.js +1087 -0
  425. package/dist/Runtime/Extensions/TweenBehavior/shifty.d.ts +839 -0
  426. package/dist/Runtime/Extensions/TweenBehavior/shifty.js +5 -0
  427. package/dist/Runtime/Extensions/TweenBehavior/shifty.js.map +1 -0
  428. package/dist/Runtime/Extensions/TweenBehavior/shifty_setup.js +2 -0
  429. package/dist/Runtime/Extensions/TweenBehavior/shifty_setup.js.map +7 -0
  430. package/dist/Runtime/Extensions/TweenBehavior/tweenruntimebehavior.js +2 -0
  431. package/dist/Runtime/Extensions/TweenBehavior/tweenruntimebehavior.js.map +7 -0
  432. package/dist/Runtime/Extensions/TweenBehavior/tweentools.js +2 -0
  433. package/dist/Runtime/Extensions/TweenBehavior/tweentools.js.map +7 -0
  434. package/dist/Runtime/Extensions/Video/JsExtension.js +694 -0
  435. package/dist/Runtime/Extensions/Video/videoruntimeobject-pixi-renderer.js +2 -0
  436. package/dist/Runtime/Extensions/Video/videoruntimeobject-pixi-renderer.js.map +7 -0
  437. package/dist/Runtime/Extensions/Video/videoruntimeobject.js +2 -0
  438. package/dist/Runtime/Extensions/Video/videoruntimeobject.js.map +7 -0
  439. package/dist/Runtime/FacebookInstantGames/fbapp-config.json +17 -0
  440. package/dist/Runtime/FacebookInstantGames/index.html +68 -0
  441. package/dist/Runtime/Model3DManager.js +2 -0
  442. package/dist/Runtime/Model3DManager.js.map +7 -0
  443. package/dist/Runtime/RuntimeCustomObjectLayer.js +2 -0
  444. package/dist/Runtime/RuntimeCustomObjectLayer.js.map +7 -0
  445. package/dist/Runtime/RuntimeInstanceContainer.js +2 -0
  446. package/dist/Runtime/RuntimeInstanceContainer.js.map +7 -0
  447. package/dist/Runtime/RuntimeLayer.js +2 -0
  448. package/dist/Runtime/RuntimeLayer.js.map +7 -0
  449. package/dist/Runtime/affinetransformation.js +2 -0
  450. package/dist/Runtime/affinetransformation.js.map +7 -0
  451. package/dist/Runtime/debugger-client/abstract-debugger-client.js +2 -0
  452. package/dist/Runtime/debugger-client/abstract-debugger-client.js.map +7 -0
  453. package/dist/Runtime/debugger-client/hot-reloader.js +2 -0
  454. package/dist/Runtime/debugger-client/hot-reloader.js.map +7 -0
  455. package/dist/Runtime/debugger-client/websocket-debugger-client.js +2 -0
  456. package/dist/Runtime/debugger-client/websocket-debugger-client.js.map +7 -0
  457. package/dist/Runtime/debugger-client/window-message-debugger-client.js +2 -0
  458. package/dist/Runtime/debugger-client/window-message-debugger-client.js.map +7 -0
  459. package/dist/Runtime/events-tools/cameratools.js +2 -0
  460. package/dist/Runtime/events-tools/cameratools.js.map +7 -0
  461. package/dist/Runtime/events-tools/commontools.js +2 -0
  462. package/dist/Runtime/events-tools/commontools.js.map +7 -0
  463. package/dist/Runtime/events-tools/inputtools.js +2 -0
  464. package/dist/Runtime/events-tools/inputtools.js.map +7 -0
  465. package/dist/Runtime/events-tools/networktools.js +2 -0
  466. package/dist/Runtime/events-tools/networktools.js.map +7 -0
  467. package/dist/Runtime/events-tools/objecttools.js +2 -0
  468. package/dist/Runtime/events-tools/objecttools.js.map +7 -0
  469. package/dist/Runtime/events-tools/runtimescenetools.js +2 -0
  470. package/dist/Runtime/events-tools/runtimescenetools.js.map +7 -0
  471. package/dist/Runtime/events-tools/soundtools.js +2 -0
  472. package/dist/Runtime/events-tools/soundtools.js.map +7 -0
  473. package/dist/Runtime/events-tools/storagetools.js +2 -0
  474. package/dist/Runtime/events-tools/storagetools.js.map +7 -0
  475. package/dist/Runtime/events-tools/stringtools.js +3 -0
  476. package/dist/Runtime/events-tools/stringtools.js.map +7 -0
  477. package/dist/Runtime/events-tools/variabletools.js +2 -0
  478. package/dist/Runtime/events-tools/variabletools.js.map +7 -0
  479. package/dist/Runtime/events-tools/windowtools.js +2 -0
  480. package/dist/Runtime/events-tools/windowtools.js.map +7 -0
  481. package/dist/Runtime/fontfaceobserver-font-manager/fontfaceobserver-font-manager.js +2 -0
  482. package/dist/Runtime/fontfaceobserver-font-manager/fontfaceobserver-font-manager.js.map +7 -0
  483. package/dist/Runtime/fontfaceobserver-font-manager/fontfaceobserver.js +16 -0
  484. package/dist/Runtime/force.js +2 -0
  485. package/dist/Runtime/force.js.map +7 -0
  486. package/dist/Runtime/gd.js +2 -0
  487. package/dist/Runtime/gd.js.map +7 -0
  488. package/dist/Runtime/howler-sound-manager/howler-sound-manager.js +2 -0
  489. package/dist/Runtime/howler-sound-manager/howler-sound-manager.js.map +7 -0
  490. package/dist/Runtime/howler-sound-manager/howler.min.js +3 -0
  491. package/dist/Runtime/index.html +55 -0
  492. package/dist/Runtime/inputmanager.js +2 -0
  493. package/dist/Runtime/inputmanager.js.map +7 -0
  494. package/dist/Runtime/jsonmanager.js +2 -0
  495. package/dist/Runtime/jsonmanager.js.map +7 -0
  496. package/dist/Runtime/layer.js +2 -0
  497. package/dist/Runtime/layer.js.map +7 -0
  498. package/dist/Runtime/libs/CocoonJS/cocoon.min.js +4 -0
  499. package/dist/Runtime/libs/jshashtable.js +2 -0
  500. package/dist/Runtime/libs/jshashtable.js.map +7 -0
  501. package/dist/Runtime/libs/rbush.js +624 -0
  502. package/dist/Runtime/logger.js +2 -0
  503. package/dist/Runtime/logger.js.map +7 -0
  504. package/dist/Runtime/oncetriggers.js +2 -0
  505. package/dist/Runtime/oncetriggers.js.map +7 -0
  506. package/dist/Runtime/pixi-renderers/CustomObjectPixiRenderer.js +2 -0
  507. package/dist/Runtime/pixi-renderers/CustomObjectPixiRenderer.js.map +7 -0
  508. package/dist/Runtime/pixi-renderers/DebuggerPixiRenderer.js +2 -0
  509. package/dist/Runtime/pixi-renderers/DebuggerPixiRenderer.js.map +7 -0
  510. package/dist/Runtime/pixi-renderers/RuntimeInstanceContainerPixiRenderer.js +1 -0
  511. package/dist/Runtime/pixi-renderers/RuntimeInstanceContainerPixiRenderer.js.map +7 -0
  512. package/dist/Runtime/pixi-renderers/ThreeAddons.js +2 -0
  513. package/dist/Runtime/pixi-renderers/draco/gltf/draco_decoder.wasm +0 -0
  514. package/dist/Runtime/pixi-renderers/draco/gltf/draco_wasm_wrapper.js +116 -0
  515. package/dist/Runtime/pixi-renderers/layer-pixi-renderer.js +15 -0
  516. package/dist/Runtime/pixi-renderers/layer-pixi-renderer.js.map +7 -0
  517. package/dist/Runtime/pixi-renderers/loadingscreen-pixi-renderer.js +2 -0
  518. package/dist/Runtime/pixi-renderers/loadingscreen-pixi-renderer.js.map +7 -0
  519. package/dist/Runtime/pixi-renderers/pixi-bitmapfont-manager.js +2 -0
  520. package/dist/Runtime/pixi-renderers/pixi-bitmapfont-manager.js.map +7 -0
  521. package/dist/Runtime/pixi-renderers/pixi-effects-manager.js +2 -0
  522. package/dist/Runtime/pixi-renderers/pixi-effects-manager.js.map +7 -0
  523. package/dist/Runtime/pixi-renderers/pixi-filters-tools.js +2 -0
  524. package/dist/Runtime/pixi-renderers/pixi-filters-tools.js.map +7 -0
  525. package/dist/Runtime/pixi-renderers/pixi-image-manager.js +2 -0
  526. package/dist/Runtime/pixi-renderers/pixi-image-manager.js.map +7 -0
  527. package/dist/Runtime/pixi-renderers/pixi.js +11 -0
  528. package/dist/Runtime/pixi-renderers/runtimegame-pixi-renderer.js +2 -0
  529. package/dist/Runtime/pixi-renderers/runtimegame-pixi-renderer.js.map +7 -0
  530. package/dist/Runtime/pixi-renderers/runtimescene-pixi-renderer.js +3 -0
  531. package/dist/Runtime/pixi-renderers/runtimescene-pixi-renderer.js.map +7 -0
  532. package/dist/Runtime/pixi-renderers/spriteruntimeobject-pixi-renderer.js +2 -0
  533. package/dist/Runtime/pixi-renderers/spriteruntimeobject-pixi-renderer.js.map +7 -0
  534. package/dist/Runtime/pixi-renderers/three.js +7 -0
  535. package/dist/Runtime/polygon.js +2 -0
  536. package/dist/Runtime/polygon.js.map +7 -0
  537. package/dist/Runtime/profiler.js +2 -0
  538. package/dist/Runtime/profiler.js.map +7 -0
  539. package/dist/Runtime/runtimebehavior.js +2 -0
  540. package/dist/Runtime/runtimebehavior.js.map +7 -0
  541. package/dist/Runtime/runtimegame.js +2 -0
  542. package/dist/Runtime/runtimegame.js.map +7 -0
  543. package/dist/Runtime/runtimeobject.js +2 -0
  544. package/dist/Runtime/runtimeobject.js.map +7 -0
  545. package/dist/Runtime/runtimescene.js +2 -0
  546. package/dist/Runtime/runtimescene.js.map +7 -0
  547. package/dist/Runtime/runtimewatermark.js +100 -0
  548. package/dist/Runtime/runtimewatermark.js.map +7 -0
  549. package/dist/Runtime/scenestack.js +2 -0
  550. package/dist/Runtime/scenestack.js.map +7 -0
  551. package/dist/Runtime/splash/gd-logo-dark-colored.js +2 -0
  552. package/dist/Runtime/splash/gd-logo-dark-colored.js.map +7 -0
  553. package/dist/Runtime/splash/gd-logo-dark.js +2 -0
  554. package/dist/Runtime/splash/gd-logo-dark.js.map +7 -0
  555. package/dist/Runtime/splash/gd-logo-light-colored.js +2 -0
  556. package/dist/Runtime/splash/gd-logo-light-colored.js.map +7 -0
  557. package/dist/Runtime/splash/gd-logo-light.js +2 -0
  558. package/dist/Runtime/splash/gd-logo-light.js.map +7 -0
  559. package/dist/Runtime/spriteruntimeobject.js +2 -0
  560. package/dist/Runtime/spriteruntimeobject.js.map +7 -0
  561. package/dist/Runtime/timemanager.js +2 -0
  562. package/dist/Runtime/timemanager.js.map +7 -0
  563. package/dist/Runtime/timer.js +2 -0
  564. package/dist/Runtime/timer.js.map +7 -0
  565. package/dist/Runtime/types/global-pixi.d.ts +22 -0
  566. package/dist/Runtime/types/global-three-addons.d.ts +9 -0
  567. package/dist/Runtime/types/global-three.d.ts +3 -0
  568. package/dist/Runtime/types/global-types.d.ts +61 -0
  569. package/dist/Runtime/types/howler.d.ts +313 -0
  570. package/dist/Runtime/types/project-data.d.ts +276 -0
  571. package/dist/Runtime/variable.js +2 -0
  572. package/dist/Runtime/variable.js.map +7 -0
  573. package/dist/Runtime/variablescontainer.js +2 -0
  574. package/dist/Runtime/variablescontainer.js.map +7 -0
  575. package/dist/lib/libGD.cjs +22 -0
  576. package/dist/lib/libGD.wasm +0 -0
  577. package/dist/loaders.js +1 -0
  578. package/package.json +24 -10
  579. package/src/downloadGD.js +0 -70
  580. package/src/index.js +21 -14
  581. package/examples/create-objects-from-json/assets/Blank button.png +0 -0
  582. package/examples/create-objects-from-json/game.json +0 -258
  583. package/examples/create-objects-from-json/index.js +0 -50
  584. package/examples/create-objects-from-json/mylist.json +0 -7
  585. package/examples/export-game/game.json +0 -205
  586. package/examples/export-game/index.js +0 -13
  587. package/src/CaseSensitiveSlug.js +0 -34
  588. package/src/EventsFunctionsExtensionsLoader/LocalEventsFunctionCodeWriter.js +0 -56
  589. package/src/EventsFunctionsExtensionsLoader/MetadataDeclarationHelpers.js +0 -489
  590. package/src/EventsFunctionsExtensionsLoader/index.js +0 -451
  591. package/src/JsExtensionsLoader/LocalJsExtensionsFinder.js +0 -42
  592. package/src/JsExtensionsLoader/LocalJsExtensionsLoader.js +0 -57
  593. package/src/JsExtensionsLoader/index.js +0 -101
  594. package/src/LocalFileSystem.js +0 -158
  595. package/src/LocalProjectOpener.js +0 -46
  596. package/src/LocalProjectWriter.js +0 -96
  597. package/src/MapFor.js +0 -46
  598. package/src/ObjectSplitter.js +0 -187
  599. package/src/Serializer.js +0 -35
  600. package/src/build.js +0 -51
  601. package/src/runtime-files-list.js +0 -143
@@ -0,0 +1,25 @@
1
+ import {
2
+ EditableTileMap,
3
+ EditableTileMapLayer,
4
+ PixiTileMapHelper,
5
+ TileDefinition,
6
+ TileMapFileContent,
7
+ TileMapManager,
8
+ TileTextureCache,
9
+ TiledTileset,
10
+ } from './dts/index';
11
+
12
+ declare global {
13
+ namespace TileMapHelper {
14
+ export {
15
+ EditableTileMap,
16
+ EditableTileMapLayer,
17
+ PixiTileMapHelper,
18
+ TileDefinition,
19
+ TileMapFileContent,
20
+ TileMapManager,
21
+ TileTextureCache,
22
+ TiledTileset,
23
+ };
24
+ }
25
+ }
@@ -0,0 +1,2 @@
1
+ (function(C,U){typeof exports=="object"&&typeof module<"u"?U(exports):typeof define=="function"&&define.amd?define(["exports"],U):U((C=typeof globalThis<"u"?globalThis:C||self).TileMapHelper={})})(void 0,function(C){"use strict";var U=function(e,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},U(e,t)};function _t(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}U(e,t),e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}function S(e){var t=typeof Symbol=="function"&&Symbol.iterator,i=t&&e[t],r=0;if(i)return i.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function N(e,t){var i=typeof Symbol=="function"&&e[Symbol.iterator];if(!i)return e;var r,n,o=i.call(e),l=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)l.push(r.value)}catch(s){n={error:s}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return l}function X(e,t,i){if(i||arguments.length===2)for(var r,n=0,o=t.length;n<o;n++)!r&&n in t||(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))}var z,et=2147483648,it=1073741824,rt=536870912;function ct(e){var t=z.isFlippedDiagonally(e),i=z.isFlippedHorizontally(e),r=z.isFlippedVertically(e),n=0;return t?(n=10,!i&&r?n=2:i&&!r?n=6:i&&r&&(n=14)):(n=0,!i&&r?n=8:i&&!r?n=12:i&&r&&(n=4)),n}function Ht(e,t,i,r){var n=e;return t&&(n|=et),i&&(n|=it),r&&(n|=rt),n}(function(e){e.tileIdMask=536870911,e.getTileId=function(t){return t&e.tileIdMask},e.setFlippedHorizontally=function(t,i){return t&=2147483647,i&&(t|=et),t},e.setFlippedVertically=function(t,i){return t&=-1073741825,i&&(t|=it),t},e.setFlippedDiagonally=function(t,i){return t&=-536870913,i&&(t|=rt),t},e.isFlippedHorizontally=function(t){return(t&et)!=0},e.isFlippedVertically=function(t){return(t&it)!=0},e.isFlippedDiagonally=function(t){return(t&rt)!=0}})(z||(z={}));var dt=function(){function e(t,i,r,n,o){this.tileWidth=t,this.tileHeight=i,this.dimX=r,this.dimY=n,this._tileSet=o,this._layers=[]}return e.prototype.getWidth=function(){return this.tileWidth*this.dimX},e.prototype.getHeight=function(){return this.tileHeight*this.dimY},e.prototype.getTileHeight=function(){return this.tileHeight},e.prototype.getTileWidth=function(){return this.tileWidth},e.prototype.getDimensionX=function(){return this.dimX},e.prototype.getDimensionY=function(){return this.dimY},e.prototype.getTileDefinition=function(t){return this._tileSet.get(t)},e.prototype.getTileDefinitions=function(){return this._tileSet.values()},e.prototype.addTileLayer=function(t){var i=new nt(this,t);return this._layers.push(i),i},e.prototype.addObjectLayer=function(t){var i=new wt(this,t);return this._layers.push(i),i},e.prototype.getBackgroundResourceName=function(){return this._backgroundResourceName},e.prototype.getLayers=function(){return this._layers},e.prototype.pointIsInsideTile=function(t,i,r){var n,o,l=Math.floor(t/this.tileWidth),s=Math.floor(i/this.tileHeight);try{for(var p=S(this._layers),a=p.next();!a.done;a=p.next()){var c=a.value;if(c){var d=c.getTileId(l,s);if(d===void 0)return!1;if(this._tileSet.get(d).hasTaggedHitBox(r))return!0}}}catch(u){n={error:u}}finally{try{a&&!a.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}return!1},e.prototype.setBackgroundResourceName=function(t){this._backgroundResourceName=t},e}(),bt=function(){function e(t,i){this.visible=!0,this.tileMap=t,this.id=i}return e.prototype.setVisible=function(t){this.visible=t},e.prototype.isVisible=function(){return this.visible},e}(),wt=function(e){function t(i,r){var n=e.call(this,i,r)||this;return n.objects=[],n}return _t(t,e),t.prototype.add=function(i){this.objects.push(i)},t}(bt),Dt=function(){function e(t,i,r){this.tileId=r,this.x=t,this.y=i}return e.prototype.getTileId=function(){return z.getTileId(this.tileId)},e.prototype.setFlippedHorizontally=function(t){this.tileId=z.setFlippedHorizontally(this.tileId,t)},e.prototype.setFlippedVertically=function(t){this.tileId=z.setFlippedVertically(this.tileId,t)},e.prototype.setFlippedDiagonally=function(t){this.tileId=z.setFlippedDiagonally(this.tileId,t)},e.prototype.isFlippedHorizontally=function(){return z.isFlippedHorizontally(this.tileId)},e.prototype.isFlippedVertically=function(){return z.isFlippedVertically(this.tileId)},e.prototype.isFlippedDiagonally=function(){return z.isFlippedDiagonally(this.tileId)},e}(),nt=function(e){function t(i,r){var n=e.call(this,i,r)||this;n._tiles=[],n._tiles.length=n.tileMap.getDimensionY();for(var o=0;o<n._tiles.length;o++)n._tiles[o]=new Int32Array(n.tileMap.getDimensionX());return n._alpha=1,n}return _t(t,e),t.prototype.getAlpha=function(){return this._alpha},t.prototype.setAlpha=function(i){this._alpha=i},t.prototype.setTile=function(i,r,n){if(this.tileMap.getTileDefinition(n)){var o=this._tiles[r];!o||i>=o.length||(o[i]=n+1)}else console.error("Invalid tile definition index: ".concat(n))},t.prototype.removeTile=function(i,r){var n=this._tiles[r];!n||i>=n.length||(n[i]=0)},t.prototype.setFlippedHorizontally=function(i,r,n){var o=this._tiles[r];if(o&&!(i>=o.length)){var l=o[i];l!==0&&(o[i]=z.setFlippedHorizontally(l,n))}},t.prototype.setFlippedVertically=function(i,r,n){var o=this._tiles[r];if(o&&!(i>=o.length)){var l=o[i];l!==0&&(o[i]=z.setFlippedVertically(l,n))}},t.prototype.setFlippedDiagonally=function(i,r,n){var o=this._tiles[r];if(o&&!(i>=o.length)){var l=o[i];l!==0&&(o[i]=z.setFlippedDiagonally(l,n))}},t.prototype.isFlippedHorizontally=function(i,r){var n=this._tiles[r];return!(!n||i>=n.length)&&z.isFlippedHorizontally(n[i])},t.prototype.isFlippedVertically=function(i,r){var n=this._tiles[r];return!(!n||i>=n.length)&&z.isFlippedVertically(n[i])},t.prototype.isFlippedDiagonally=function(i,r){var n=this._tiles[r];return!(!n||i>=n.length)&&z.isFlippedDiagonally(n[i])},t.prototype.getTileGID=function(i,r){var n=this._tiles[r];if(n&&!(i>=n.length)&&n[i]!==0)return n[i]-1},t.prototype.getTileId=function(i,r){var n=this._tiles[r];if(n&&!(i>=n.length)&&n[i]!==0)return z.getTileId(n[i]-1)},t.prototype.getDimensionX=function(){return this._tiles.length===0?0:this._tiles[0].length},t.prototype.getDimensionY=function(){return this._tiles.length},t.prototype.getWidth=function(){return this.tileMap.getWidth()},t.prototype.getHeight=function(){return this.tileMap.getHeight()},t}(bt),Q=function(){function e(t){this.taggedHitBoxes=[],this.animationLength=t??0,this.stackedTiles=[]}return e.prototype.addHitBox=function(t,i){var r=this.taggedHitBoxes.find(function(n){return n.tag===t});r||(r={tag:t,polygons:[]},this.taggedHitBoxes.push(r)),r.polygons.push(i)},e.prototype.hasTaggedHitBox=function(t){return this.taggedHitBoxes.some(function(i){return i.tag===t})},e.prototype.getHitBoxes=function(t){var i=this.taggedHitBoxes.find(function(r){return r.tag===t});return i&&i.polygons},e.prototype.getAnimationLength=function(){return this.animationLength},e.prototype.getStackTileId=function(){return this.stackTileId},e.prototype.getStackedTiles=function(){return this.stackedTiles},e.prototype.hasStackedTiles=function(){return this.stackedTiles.length>0},e.prototype.setStackedTiles=function(t){for(var i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];this.stackedTiles=i,this.stackTileId=t},e}(),mt=function(){function e(){this._cachedValues=new Map,this._callbacks=new Map}return e.prototype.getOrLoad=function(t,i,r){var n=this,o=this._cachedValues.get(t);if(o)r(o);else{var l=this._callbacks.get(t);l?l.push(r):(this._callbacks.set(t,[r]),i(function(s){var p,a;s&&n._cachedValues.set(t,s);var c=n._callbacks.get(t);n._callbacks.delete(t);try{for(var d=S(c),u=d.next();!u.done;u=d.next())(0,u.value)(s)}catch(w){p={error:w}}finally{try{u&&!u.done&&(a=d.return)&&a.call(d)}finally{if(p)throw p.error}}}))}},e}(),ut=function(){function e(){this._levelBackgroundTextures=new Map,this._textures=new Map}return e.prototype.setTexture=function(t,i){this._textures.set(t,i)},e.prototype.getTexture=function(t){return this._textures.get(t)},e.prototype.getLevelBackgroundTexture=function(t){return this._levelBackgroundTextures.get(t)},e.prototype.setLevelBackgroundTexture=function(t,i){this._levelBackgroundTextures.set(t,i)},e}(),At=function(e,t){var i=t.data,r=t.compression;if(!i)return i;var n=4,o=[],l=atob(i).split("").map(function(c){return c.charCodeAt(0)});try{var s=function(c,d){return c[d]+(c[d+1]<<8)+(c[d+2]<<16)+(c[d+3]<<24)>>>0};if(r==="zlib")for(var p=new Uint8Array(l),a=e.inflate(p);n<=a.length;)o.push(s(a,n-4)),n+=4;else{if(r==="zstd")return console.error("Zstandard compression is not supported for layers in a Tilemap. Use instead zlib compression or no compression."),null;for(;n<=l.length;)o.push(s(l,n-4)),n+=4}return o}catch(c){return console.error("Failed to decompress and unzip base64 layer.data string",c),null}},kt=function(e){var t=e&et,i=e&it,r=e&rt;return{id:ot(536870911&e),flippedHorizontally:!!t,flippedVertically:!!i,flippedDiagonally:!!r}};function ot(e){return e===0?void 0:e-1}var pt,It=GlobalPIXIModule.PIXI;function ft(e,t){var i=e<<16;return i+=t}(function(e){e.parseAtlas=function(t,i,r,n){if(!t.tiledversion)return console.warn("The loaded Tiled map does not contain a 'tiledversion' key. Are you sure this file has been exported from Tiled (mapeditor.org)?"),null;if(!t.tilesets.length||"source"in t.tilesets[0])return console.warn("The loaded Tiled map seems not to contain any tileset data (nothing in 'tilesets' key)."),null;var o=t.tilesets[0],l=o.tilewidth,s=o.tileheight,p=o.tilecount,a=o.image,c=o.columns,d=o.spacing,u=o.margin,w=o.firstgid===void 0?1:o.firstgid;r||(r=n(a));var A=p/c,m=l*c+d*(c-1)+2*u,g=s*A+d*(A-1)+2*u;if(r.width<m||r.height<g)return console.error("It seems the atlas file was resized, which is not supported. "+"It should be ".concat(m,"x").concat(g," px, ")+"but it's actually ".concat(r.width,"x").concat(r.height," px.")),null;r.width===m&&r.height===g||console.warn("It seems the atlas file has unused pixels. "+"It should be ".concat(m,"x").concat(g," px, ")+"but it's actually ".concat(r.width,"x").concat(r.height," px."));for(var _=new ut,f=0;f<p;f++){var T=u+Math.floor(f%c)*(l+d),H=u+Math.floor(f/c)*(s+d),I=ot(w+f);try{var h=new It.Rectangle(T,H,l,s),B=new It.Texture(r,h);_.setTexture(I,B)}catch(x){console.error("An error occurred while creating a PIXI.Texture to be used in a TileMap:",x)}}return _}})(pt||(pt={}));var ht,yt,gt,vt,Tt,lt=GlobalPIXIModule.PIXI;function Ft(e,t,i,r){var n;if(e[r])return e[r];var o=null,l=t[r];return l?.relPath?((n=(o=i(l.relPath)).baseTexture)===null||n===void 0?void 0:n.cacheId)==="res/error48.png"&&(console.error('The atlas texture "'.concat(l.relPath,`" can't be loaded`)),o=null):console.error('The tileset "'.concat(l.identifier,`" doesn't seems to contain an atlas texture`)),e[r]=o,o}(function(e){e.parseAtlas=function(t,i,r,n){var o,l,s,p,a=t.levels[i>-1?i:0];if(!a||!a.layerInstances)return null;var c={};try{for(var d=S(t.defs.tilesets),u=d.next();!u.done;u=d.next())c[(T=u.value).uid]=T}catch(M){o={error:M}}finally{try{u&&!u.done&&(l=d.return)&&l.call(d)}finally{if(o)throw o.error}}for(var w=new ut,A={},m={},g=a.layerInstances.length-1;g>=0;--g){var _=a.layerInstances[g];if(_.__type!=="Entities"){var f=_.__tilesetDefUid;if(typeof f=="number"){var T=c[f],H=Ft(m,c,n,f);if(H){var I={},h=T.tileGridSize;try{for(var B=(s=void 0,S(X(X([],N(_.autoLayerTiles),!1),N(_.gridTiles),!1))),x=B.next();!x.done;x=B.next()){var P=x.value;if(!I[P.t]){var W=ft(f,P.t);if(A[W])I[P.t]=!0;else{try{var b=N(P.src,2),L=b[0],k=b[1],F=new lt.Rectangle(L,k,h,h),D=new lt.Texture(H,F);w.setTexture(W,D)}catch(M){console.error("An error occurred while creating a PIXI.Texture to be used in a TileMap:",M)}I[P.t]=!0,A[W]=!0}}}}catch(M){s={error:M}}finally{try{x&&!x.done&&(p=B.return)&&p.call(B)}finally{if(s)throw s.error}}}}}}if(a.bgRelPath){var v=n(a.bgRelPath);F=new lt.Rectangle(0,0,a.pxWid,a.pxHei),D=new lt.Texture(v,F),w.setLevelBackgroundTexture(a.bgRelPath,D)}return w}})(ht||(ht={})),C.PixiTileMapHelper=void 0,(yt=C.PixiTileMapHelper||(C.PixiTileMapHelper={})).parseAtlas=function(e,t,i,r){return e.kind==="ldtk"?ht.parseAtlas(e.data,t,i,r):e.kind==="tiled"?pt.parseAtlas(e.data,t,i,r):(console.warn("The loaded Tiled map data does not contain a 'tiledversion' or '__header__' key. Are you sure this file has been exported from Tiled (mapeditor.org) or LDtk (ldtk.io)?"),null)},yt.updatePixiTileMap=function(e,t,i,r,n){var o,l,s,p,a,c,d=e;if(d){d.clear();var u=t.getBackgroundResourceName();if(u){var w=i.getLevelBackgroundTexture(u);d.tile(w,0,0)}try{for(var A=S(t.getLayers()),m=A.next();!m.done;m=A.next()){var g=m.value;if(!(r==="index"&&n!==g.id||r==="visible"&&!g.isVisible())){if(g instanceof wt){var _=g;try{for(var f=(s=void 0,S(_.objects)),T=f.next();!T.done;T=f.next()){var H=T.value,I=H.getTileId();if(w=i.getTexture(I)){var h=ct(I);d.tile(w,H.x,H.y-_.tileMap.getTileHeight(),{rotate:h})}}}catch(G){s={error:G}}finally{try{T&&!T.done&&(p=f.return)&&p.call(f)}finally{if(s)throw s.error}}}else if(g instanceof nt)for(var B=g,x=B.tileMap.getTileWidth(),P=B.tileMap.getTileHeight(),W=B.tileMap.getDimensionX(),b=B.tileMap.getDimensionY(),L=B.getAlpha(),k=0;k<b;k++)for(var F=0;F<W;F++){var D=x*F,v=P*k;if((I=B.getTileGID(F,k))!==void 0){var M=z.getTileId(I),V=B.tileMap.getTileDefinition(M);if(V.hasStackedTiles())try{for(var j=(a=void 0,S(V.getStackedTiles())),R=j.next();!R.done;R=j.next()){var Y=R.value,E=z.getTileId(Y);(J=i.getTexture(E))&&(h=ct(Y),d.tile(J,D,v,{alpha:L,rotate:h}))}}catch(G){a={error:G}}finally{try{R&&!R.done&&(c=j.return)&&c.call(j)}finally{if(a)throw a.error}}else{var J;if(!(J=i.getTexture(M))){console.warn("Unknown tile id: ".concat(M," at (").concat(F,", ").concat(k,")"));continue}h=ct(I);var $=d.tile(J,D,v,{alpha:L,rotate:h});V.getAnimationLength()>0&&$.tileAnimX(x,V.getAnimationLength())}}}}}}catch(G){o={error:G}}finally{try{m&&!m.done&&(l=A.return)&&l.call(A)}finally{if(o)throw o.error}}}},yt.updatePixiCollisionMask=function(e,t,i,r,n,o,l,s){var p,a,c,d;if(e){e.clear(),e.lineStyle(r,n,o),e.drawRect(0,0,t.getWidth(),t.getHeight());try{for(var u=S(t.getLayers()),w=u.next();!w.done;w=u.next()){var A=w.value,m=t.getTileWidth(),g=t.getTileHeight();if(A instanceof nt)for(var _=A,f=0;f<_.tileMap.getDimensionY();f++)for(var T=0;T<_.tileMap.getDimensionX();T++){var H=m*T,I=g*f,h=_.getTileId(T,f),B=_.isFlippedHorizontally(T,f),x=_.isFlippedVertically(T,f),P=_.isFlippedDiagonally(T,f),W=_.tileMap.getTileDefinition(h);if(W){var b=W.getHitBoxes(i);if(b)try{for(var L=(c=void 0,S(b)),k=L.next();!k.done;k=L.next()){var F=k.value;if(F.length!==0){e.beginFill(l,s);for(var D=0;D<F.length;D++){var v=F[D][0],M=F[D][1];if(P){var V=v;v=M,M=V}B&&(v=m-v),x&&(M=g-M),D===0?e.moveTo(H+v,I+M):e.lineTo(H+v,I+M)}e.closePath(),e.endFill()}}}catch(j){c={error:j}}finally{try{k&&!k.done&&(d=L.return)&&d.call(L)}finally{if(c)throw c.error}}}}}}catch(j){p={error:j}}finally{try{w&&!w.done&&(a=u.return)&&a.call(u)}finally{if(p)throw p.error}}}},function(e){e.load=function(t,i){var r,n,o,l,s=t.levels[i>-1?i:0];if(!s||!s.layerInstances)return null;for(var p=new Map,a=0,c=0,d=0,u=s.layerInstances.length-1;u>=0;--u){var w=(h=s.layerInstances[u]).__tilesetDefUid,A={};try{for(var m=(r=void 0,S(X(X([],N(h.autoLayerTiles),!1),N(h.gridTiles),!1))),g=m.next();!g.done;g=m.next())if(!A[(b=g.value).t]){var _=ft(w,b.t);if(p.has(_))A[b.t]=!0;else{var f=new Q(0);A[b.t]=!0,p.set(_,f)}}}catch(R){r={error:R}}finally{try{g&&!g.done&&(n=m.return)&&n.call(m)}finally{if(r)throw r.error}}h.__type!=="IntGrid"&&h.__type!=="AutoLayer"&&h.__type!=="Tiles"||(a===0?(a=h.__gridSize,c=h.__cWid,d=h.__cHei):h.__gridSize!==a&&console.warn("Grid size is different across layers. Only the first layer grid size will be followed."))}var T=new dt(a,a,c,d,p),H=new Map,I=268435455;for(u=s.layerInstances.length-1;u>=0;--u){var h,B=(h=s.layerInstances[u]).__gridSize,x=(w=h.__tilesetDefUid,T.addTileLayer(u));x.setAlpha(h.__opacity),x.setVisible(h.visible);try{for(var P=(o=void 0,S(X(X([],N(h.autoLayerTiles),!1),N(h.gridTiles),!1))),W=P.next();!W.done;W=P.next()){var b=W.value,L=Math.floor(b.px[0]/B),k=Math.floor(b.px[1]/B),F=(_=ft(w,b.t),x.getTileId(L,k));if(F===void 0)x.setTile(L,k,_),x.setFlippedHorizontally(L,k,b.f===1||b.f===3),x.setFlippedVertically(L,k,b.f===2||b.f===3);else{var D=Ht(_,b.f===1||b.f===3,b.f===2||b.f===3,!1),v=p.get(F);if(v?.hasStackedTiles()){var M="".concat(v.getStackedTiles().map(function(R){return"".concat(R)}).join(";"),";").concat(D);if(f=H.get(M))x.setTile(L,k,f.getStackTileId());else{var V=new Q(0);V.setStackedTiles.apply(V,X(X([I],N(v.getStackedTiles()),!1),[D],!1)),p.set(I,V),I-=1,H.set(M,V),x.setTile(L,k,V.getStackTileId())}}else{var j=x.getTileGID(L,k);M="".concat(j,";").concat(D),(f=new Q(0)).setStackedTiles(I,j,D),p.set(I,f),I-=1,H.set(M,f),x.setTile(L,k,f.getStackTileId())}}}}catch(R){o={error:R}}finally{try{W&&!W.done&&(l=P.return)&&l.call(P)}finally{if(o)throw o.error}}}return s.bgRelPath&&T.setBackgroundResourceName(s.bgRelPath),T}}(gt||(gt={})),function(e){e.load=function(t,i){var r,n,o,l,s,p,a,c,d,u;if(!t.tiledversion)return console.warn("The loaded Tiled map does not contain a 'tiledversion' key. Are you sure this file has been exported from Tiled (mapeditor.org)?"),null;var w=new Map;try{for(var A=S(t.tilesets),m=A.next();!m.done;m=A.next()){var g=m.value,_=g.firstgid===void 0?1:g.firstgid;if(g.tiles)try{for(var f=(o=void 0,S(g.tiles)),T=f.next();!T.done;T=f.next()){var H=T.value,I=new Q(H.animation?H.animation.length:0),h=H.type||H.class;if(H.objectgroup){var B=function(y){var xt=y.type||y.class||h;if(!xt||xt.length===0)return"continue";var at=null;if(y.polygon){var Mt=y.rotation*Math.PI/180,q=Math.cos(Mt),tt=Math.sin(Mt);q!==-1&&q!==1||(tt=0),tt!==-1&&tt!==1||(q=0),at=y.polygon.map(function(st){return[y.x+st.x*q-st.y*tt,y.y+st.x*tt+st.y*q]})}else y.x!==void 0&&y.y!==void 0&&y.width!==void 0&&y.height!==void 0&&(at=[[y.x,y.y],[y.x,y.y+y.height],[y.x+y.width,y.y+y.height],[y.x+y.width,y.y]]);at&&I.addHitBox(xt,at)};try{for(var x=(s=void 0,S(H.objectgroup.objects)),P=x.next();!P.done;P=x.next())B(E=P.value)}catch(y){s={error:y}}finally{try{P&&!P.done&&(p=x.return)&&p.call(x)}finally{if(s)throw s.error}}}else if(h){var W=[[0,0],[0,t.tileheight],[t.tilewidth,t.tileheight],[t.tilewidth,0]];I.addHitBox(h,W)}w.set(ot(_+H.id),I)}}catch(y){o={error:y}}finally{try{T&&!T.done&&(l=f.return)&&l.call(f)}finally{if(o)throw o.error}}for(var b=0;b<g.tilecount;b++){var L=ot(_+b);w.has(L)||w.set(L,new Q(0))}}}catch(y){r={error:y}}finally{try{m&&!m.done&&(n=A.return)&&n.call(A)}finally{if(r)throw r.error}}var k=new dt(t.tilewidth,t.tileheight,t.width,t.height,w);try{for(var F=S(t.layers),D=F.next();!D.done;D=F.next()){var v=D.value;if(v.type==="objectgroup"){var M=k.addObjectLayer(v.id);M.setVisible(v.visible);try{for(var V=(d=void 0,S(v.objects)),j=V.next();!j.done;j=V.next()){var R=j.value;if(R.visible&&R.gid){var Y=kt(R.gid),E=new Dt(R.x,R.y,Y.id);M.add(E),E.setFlippedHorizontally(Y.flippedHorizontally),E.setFlippedVertically(Y.flippedVertically),E.setFlippedDiagonally(Y.flippedDiagonally)}}}catch(y){d={error:y}}finally{try{j&&!j.done&&(u=V.return)&&u.call(V)}finally{if(d)throw d.error}}}else if(v.type==="tilelayer"){var J=0,$=null;if(v.encoding==="base64"?($=At(i,v))||console.warn("Failed to uncompress layer.data"):$=v.data,$){var G=k.addTileLayer(v.id);G.setAlpha(v.opacity),G.setVisible(v.visible);for(var O=0;O<v.height;O++)for(var K=0;K<v.width;K++){var Bt=$[J],Z=kt(Bt);Z.id!==void 0&&(G.setTile(K,O,Z.id),G.setFlippedHorizontally(K,O,Z.flippedHorizontally),G.setFlippedVertically(K,O,Z.flippedVertically),G.setFlippedDiagonally(K,O,Z.flippedDiagonally)),J+=1}}}}}catch(y){a={error:y}}finally{try{D&&!D.done&&(c=F.return)&&c.call(F)}finally{if(a)throw a.error}}return k}}(vt||(vt={})),function(e){e.load=function(t,i,r){return t.kind==="ldtk"?gt.load(t.data,i):t.kind==="tiled"?vt.load(t.data,r):(console.warn("The loaded Tile Map data does not contain a 'tiledversion' or '__header__' key. Are you sure this file has been exported from Tiled (mapeditor.org) or LDtk (ldtk.io)?"),null)}}(Tt||(Tt={}));var zt=function(){function e(){this._tileMapCache=new mt,this._textureCacheCaches=new mt}return e.getManager=function(t){return t.tileMapCollisionMaskManager||(t.tileMapCollisionMaskManager=new e),t.tileMapCollisionMaskManager},e.identify=function(t){return t.tiledversion?(console.info("Detected the json file was created in Tiled"),{kind:"tiled",data:t}):t.__header__&&t.__header__.app==="LDtk"?(console.info("Detected the json/ldtk file was created in LDtk"),{kind:"ldtk",data:t}):(console.warn("The loaded Tile Map data does not contain a 'tiledversion' or '__header__' key. Are you sure this file has been exported from Tiled (mapeditor.org) or LDtk (ldtk.io)?"),null)},e.prototype.getOrLoadTileMap=function(t,i,r,n,o,l){var s=i+"|"+r+"|"+n;this._tileMapCache.getOrLoad(s,function(p){t(i,r,function(a){if(a){var c=Tt.load(a,n,o);p(c)}else p(null)})},l)},e.prototype.getOrLoadTextureCache=function(t,i,r,n,o,l,s){var p=n+"|"+o+"|"+r+"|"+l;this._textureCacheCaches.getOrLoad(p,function(a){t(n,o,function(c){if(c){var d=r?i(r):null,u=C.PixiTileMapHelper.parseAtlas(c,l,d,i);a(u)}else a(null)})},s)},e}();C.EditableTileMap=dt,C.EditableTileMapLayer=nt,C.TileDefinition=Q,C.TileMapManager=zt,C.TileTextureCache=ut,Object.defineProperty(C,"__esModule",{value:!0})});
2
+ //# sourceMappingURL=TileMapHelper.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../GDevelop/SharedLibs/TileMapHelper/node_modules/tslib/tslib.es6.js", "../../../../../GDevelop/SharedLibs/TileMapHelper/src/model/GID.ts", "../../../../../GDevelop/SharedLibs/TileMapHelper/src/model/TileMapModel.ts", "../../../../../GDevelop/SharedLibs/TileMapHelper/src/render/ResourceCache.ts", "../../../../../GDevelop/SharedLibs/TileMapHelper/src/render/TileTextureCache.ts", "../../../../../GDevelop/SharedLibs/TileMapHelper/src/load/tiled/TiledTileMapLoaderHelper.ts", "../../../../../GDevelop/SharedLibs/TileMapHelper/src/render/tiled/TiledPixiHelper.ts", "../../../../../GDevelop/SharedLibs/TileMapHelper/src/load/ldtk/LDtkTileMapLoaderHelper.ts", "../../../../../GDevelop/SharedLibs/TileMapHelper/src/render/ldtk/LDtkPixiHelper.ts", "../../../../../GDevelop/SharedLibs/TileMapHelper/src/render/TileMapPixiHelper.ts", "../../../../../GDevelop/SharedLibs/TileMapHelper/src/load/ldtk/LDtkTileMapLoader.ts", "../../../../../GDevelop/SharedLibs/TileMapHelper/src/load/tiled/TiledTileMapLoader.ts", "../../../../../GDevelop/SharedLibs/TileMapHelper/src/load/TileMapLoader.ts", "../../../../../GDevelop/SharedLibs/TileMapHelper/src/render/TileMapManager.ts"],
4
+ "sourcesContent": ["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n", "import { integer } from \"./CommonTypes\";\n\nexport const FLIPPED_HORIZONTALLY_FLAG = 0x80000000;\nexport const FLIPPED_VERTICALLY_FLAG = 0x40000000;\nexport const FLIPPED_DIAGONALLY_FLAG = 0x20000000;\n\n/**\n * Tile identifiers making to access flipping flags.\n */\nexport namespace FlippingHelper {\n export const tileIdMask = ~(\n FLIPPED_HORIZONTALLY_FLAG |\n FLIPPED_VERTICALLY_FLAG |\n FLIPPED_DIAGONALLY_FLAG\n );\n\n export function getTileId(tileId: integer): integer {\n return tileId & FlippingHelper.tileIdMask;\n }\n\n export function setFlippedHorizontally(\n tileId: integer,\n flippedHorizontally: boolean\n ): integer {\n tileId &= ~FLIPPED_HORIZONTALLY_FLAG;\n if (flippedHorizontally) {\n tileId |= FLIPPED_HORIZONTALLY_FLAG;\n }\n return tileId;\n }\n\n export function setFlippedVertically(\n tileId: integer,\n flippedVertically: boolean\n ): integer {\n tileId &= ~FLIPPED_VERTICALLY_FLAG;\n if (flippedVertically) {\n tileId |= FLIPPED_VERTICALLY_FLAG;\n }\n return tileId;\n }\n\n export function setFlippedDiagonally(\n tileId: integer,\n flippedDiagonally: boolean\n ): integer {\n tileId &= ~FLIPPED_DIAGONALLY_FLAG;\n if (flippedDiagonally) {\n tileId |= FLIPPED_DIAGONALLY_FLAG;\n }\n return tileId;\n }\n\n export function isFlippedHorizontally(tileId: integer): boolean {\n return (tileId & FLIPPED_HORIZONTALLY_FLAG) !== 0;\n }\n\n export function isFlippedVertically(tileId: integer): boolean {\n return (tileId & FLIPPED_VERTICALLY_FLAG) !== 0;\n }\n\n export function isFlippedDiagonally(tileId: integer): boolean {\n return (tileId & FLIPPED_DIAGONALLY_FLAG) !== 0;\n }\n}\n\n/**\n * Return the texture to use for the tile with the specified uid, which can contains\n * information about rotation in bits 32, 31 and 30\n * (see https://doc.mapeditor.org/en/stable/reference/tmx-map-format/).\n *\n * @param flippedHorizontally true if the tile is flipped horizontally.\n * @param flippedVertically true if the tile is flipped vertically.\n * @param flippedDiagonally true if the tile is flipped diagonally.\n * @returns the rotation \"D8\" number used by Pixi.\n * @see https://pixijs.io/examples/#/textures/texture-rotate.js\n */\nexport function getPixiRotate(tileGID: integer) {\n const flippedDiagonally = FlippingHelper.isFlippedDiagonally(tileGID);\n const flippedHorizontally = FlippingHelper.isFlippedHorizontally(tileGID);\n const flippedVertically = FlippingHelper.isFlippedVertically(tileGID);\n\n let rotate = 0;\n if (flippedDiagonally) {\n rotate = 10;\n if (!flippedHorizontally && flippedVertically) {\n rotate = 2;\n } else if (flippedHorizontally && !flippedVertically) {\n rotate = 6;\n } else if (flippedHorizontally && flippedVertically) {\n rotate = 14;\n }\n } else {\n rotate = 0;\n if (!flippedHorizontally && flippedVertically) {\n rotate = 8;\n } else if (flippedHorizontally && !flippedVertically) {\n rotate = 12;\n } else if (flippedHorizontally && flippedVertically) {\n rotate = 4;\n }\n }\n return rotate;\n}\n\nexport function getTileGID(\n tileId: integer,\n flippedHorizontally: boolean,\n flippedVertically: boolean,\n flippedDiagonally: boolean\n): integer {\n let tileGID = tileId;\n if (flippedHorizontally) {\n tileGID |= FLIPPED_HORIZONTALLY_FLAG;\n }\n if (flippedVertically) {\n tileGID |= FLIPPED_VERTICALLY_FLAG;\n }\n if (flippedDiagonally) {\n tileGID |= FLIPPED_DIAGONALLY_FLAG;\n }\n return tileGID;\n}\n", "import { PolygonVertices, integer, float } from \"./CommonTypes\";\nimport { FlippingHelper } from \"./GID\";\n\n/**\n * A tile map model.\n *\n * Tile map files are parsed into this model by {@link TiledTileMapLoader} or {@link LDtkTileMapLoader}.\n * This model is used for rending ({@link TileMapRuntimeObjectPixiRenderer})\n * and hitboxes handling ({@link TransformedCollisionTileMap}).\n * This allows to support new file format with only a new parser.\n */\nexport class EditableTileMap {\n private _backgroundResourceName?: string;\n private _tileSet: Map<integer, TileDefinition>;\n private _layers: Array<AbstractEditableLayer>;\n /**\n * The width of a tile.\n */\n private readonly tileWidth: integer;\n /**\n * The height of a tile.\n */\n private readonly tileHeight: integer;\n /**\n * The number of tile columns in the map.\n */\n private readonly dimX: integer;\n /**\n * The number of tile rows in the map.\n */\n private readonly dimY: integer;\n\n /**\n * @param tileWidth The width of a tile.\n * @param tileHeight The height of a tile.\n * @param dimX The number of tile columns in the map.\n * @param dimY The number of tile rows in the map.\n * @param tileSet The tile set.\n */\n constructor(\n tileWidth: integer,\n tileHeight: integer,\n dimX: integer,\n dimY: integer,\n // TODO should the tile set be built internally?\n // It's not meant to change and it avoid to do a copy.\n tileSet: Map<integer, TileDefinition>\n ) {\n this.tileWidth = tileWidth;\n this.tileHeight = tileHeight;\n this.dimX = dimX;\n this.dimY = dimY;\n this._tileSet = tileSet;\n this._layers = [];\n }\n\n /**\n * @returns The tile map width in pixels.\n */\n getWidth(): integer {\n return this.tileWidth * this.dimX;\n }\n\n /**\n * @returns The tile map height in pixels.\n */\n getHeight(): integer {\n return this.tileHeight * this.dimY;\n }\n\n /**\n * @returns The tile width in pixels.\n */\n getTileHeight(): integer {\n return this.tileHeight;\n }\n\n /**\n * @returns The tile height in pixels.\n */\n getTileWidth(): integer {\n return this.tileWidth;\n }\n\n /**\n * @returns The number of tile columns in the map.\n */\n getDimensionX(): integer {\n return this.dimX;\n }\n\n /**\n * @returns The number of tile rows in the map.\n */\n getDimensionY(): integer {\n return this.dimY;\n }\n\n /**\n * @param tileId The tile identifier\n * @returns The tile definition form the tile set.\n */\n getTileDefinition(tileId: integer): TileDefinition | undefined {\n return this._tileSet.get(tileId);\n }\n\n /**\n * @returns All the tile definitions form the tile set.\n */\n getTileDefinitions(): Iterable<TileDefinition> {\n return this._tileSet.values();\n }\n\n /**\n * @param id The identifier of the new layer.\n * @returns The new layer.\n */\n addTileLayer(id: integer): EditableTileMapLayer {\n const layer = new EditableTileMapLayer(this, id);\n this._layers.push(layer);\n return layer;\n }\n\n /**\n * @param id The identifier of the new layer.\n * @returns The new layer.\n */\n addObjectLayer(id: integer): EditableObjectLayer {\n const layer = new EditableObjectLayer(this, id);\n this._layers.push(layer);\n return layer;\n }\n\n /**\n * @returns The resource name of the background\n */\n getBackgroundResourceName(): string {\n return this._backgroundResourceName;\n }\n\n /**\n * @returns All the layers of the tile map.\n */\n getLayers(): Iterable<AbstractEditableLayer> {\n return this._layers;\n }\n\n /**\n * Check if a point is inside a tile with a given tag.\n *\n * It doesn't use the tile hitboxes.\n * It only check the point is inside the tile square.\n *\n * @param x The X coordinate of the point to check.\n * @param y The Y coordinate of the point to check.\n * @param tag The tile tag\n * @returns true when the point is inside a tile with a given tag.\n */\n pointIsInsideTile(x: float, y: float, tag: string): boolean {\n const indexX = Math.floor(x / this.tileWidth);\n const indexY = Math.floor(y / this.tileHeight);\n for (const layer of this._layers) {\n const tileLayer = layer as EditableTileMapLayer;\n if (!tileLayer) {\n continue;\n }\n const tileId = tileLayer.getTileId(indexX, indexY);\n if (tileId === undefined) {\n return false;\n }\n const tileDefinition = this._tileSet.get(tileId)!;\n if (tileDefinition.hasTaggedHitBox(tag)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * @param resourceName The name of the resource\n */\n setBackgroundResourceName(resourceName: string): void {\n this._backgroundResourceName = resourceName;\n }\n}\n\n/**\n * A tile map layer.\n */\nabstract class AbstractEditableLayer {\n /**\n * The layer tile map.\n */\n readonly tileMap: EditableTileMap;\n /**\n * The layer identifier.\n */\n readonly id: integer;\n private visible: boolean = true;\n\n /**\n * @param tileMap The layer tile map.\n * @param id The layer identifier.\n */\n constructor(tileMap: EditableTileMap, id: integer) {\n this.tileMap = tileMap;\n this.id = id;\n }\n\n setVisible(visible: boolean): void {\n this.visible = visible;\n }\n\n /**\n * @returns true if the layer is visible.\n */\n isVisible(): boolean {\n return this.visible;\n }\n}\n\n/**\n * A layer where tiles are placed with pixel coordinates.\n */\nexport class EditableObjectLayer extends AbstractEditableLayer {\n readonly objects: TileObject[];\n\n /**\n * @param tileMap The layer tile map.\n * @param id The layer identifier.\n */\n constructor(tileMap: EditableTileMap, id: integer) {\n super(tileMap, id);\n this.objects = [];\n }\n\n add(object: TileObject): void {\n this.objects.push(object);\n }\n}\n\n/**\n * A tile that is placed with pixel coordinates.\n */\nexport class TileObject {\n /**\n * The tile identifier in the tile set.\n */\n private tileId: integer;\n /**\n * The coordinate of the tile left side.\n */\n readonly x: float;\n /**\n * The coordinate of the tile top side.\n */\n readonly y: float;\n\n /**\n * @param x The coordinate of the tile left side.\n * @param y The coordinate of the tile top side.\n * @param tileId The tile identifier in the tile set.\n */\n constructor(x: float, y: float, tileId: integer) {\n this.tileId = tileId;\n this.x = x;\n this.y = y;\n }\n\n /**\n * @return The tile identifier in the tile set.\n */\n getTileId(): integer {\n return FlippingHelper.getTileId(this.tileId);\n }\n\n setFlippedHorizontally(flippedHorizontally: boolean): void {\n this.tileId = FlippingHelper.setFlippedHorizontally(\n this.tileId,\n flippedHorizontally\n );\n }\n\n setFlippedVertically(flippedVertically: boolean): void {\n this.tileId = FlippingHelper.setFlippedVertically(\n this.tileId,\n flippedVertically\n );\n }\n\n setFlippedDiagonally(flippedDiagonally: boolean): void {\n this.tileId = FlippingHelper.setFlippedDiagonally(\n this.tileId,\n flippedDiagonally\n );\n }\n\n /**\n * @returns true if the tile is flipped horizontally.\n */\n isFlippedHorizontally(): boolean {\n return FlippingHelper.isFlippedHorizontally(this.tileId);\n }\n\n /**\n * @returns true if the tile is flipped vertically.\n */\n isFlippedVertically(): boolean {\n return FlippingHelper.isFlippedVertically(this.tileId);\n }\n\n /**\n * @returns true if the tile is flipped diagonally.\n */\n isFlippedDiagonally(): boolean {\n return FlippingHelper.isFlippedDiagonally(this.tileId);\n }\n}\n\n/**\n * A tile map layer with tile organized in grid.\n */\nexport class EditableTileMapLayer extends AbstractEditableLayer {\n private readonly _tiles: Int32Array[];\n private _alpha: float;\n\n /**\n * @param tileMap The layer tile map.\n * @param id The layer identifier.\n */\n constructor(tileMap: EditableTileMap, id: integer) {\n super(tileMap, id);\n this._tiles = [];\n this._tiles.length = this.tileMap.getDimensionY();\n for (let index = 0; index < this._tiles.length; index++) {\n this._tiles[index] = new Int32Array(this.tileMap.getDimensionX());\n }\n this._alpha = 1;\n }\n\n /**\n * The opacity (between 0-1) of the layer\n */\n getAlpha(): float {\n return this._alpha;\n }\n\n /**\n * @param alpha The opacity between 0-1\n */\n setAlpha(alpha: float) {\n this._alpha = alpha;\n }\n\n /**\n * @param x The layer column.\n * @param y The layer row.\n * @param tileId The tile.\n */\n setTile(x: integer, y: integer, tileId: integer): void {\n const definition = this.tileMap.getTileDefinition(tileId);\n if (!definition) {\n console.error(`Invalid tile definition index: ${tileId}`);\n return;\n }\n const tilesRow = this._tiles[y];\n if (!tilesRow || x >= tilesRow.length) {\n // Coordinates are out of bounds, don't do anything.\n return;\n }\n\n // +1 because 0 mean null\n tilesRow[x] = tileId + 1;\n }\n\n /**\n * @param x The layer column.\n * @param y The layer row.\n */\n removeTile(x: integer, y: integer): void {\n const tilesRow = this._tiles[y];\n if (!tilesRow || x >= tilesRow.length) {\n // Coordinates are out of bounds, don't do anything.\n return;\n }\n\n // 0 mean null\n tilesRow[x] = 0;\n }\n\n /**\n * @param x The layer column.\n * @param y The layer row.\n * @param flippedHorizontally true if the tile is flipped horizontally.\n */\n setFlippedHorizontally(\n x: integer,\n y: integer,\n flippedHorizontally: boolean\n ): void {\n const tilesRow = this._tiles[y];\n if (!tilesRow || x >= tilesRow.length) {\n // Coordinates are out of bounds, don't do anything.\n return;\n }\n\n const tileId = tilesRow[x];\n if (tileId === 0) {\n return;\n }\n tilesRow[x] = FlippingHelper.setFlippedHorizontally(\n tileId,\n flippedHorizontally\n );\n }\n\n /**\n * @param x The layer column.\n * @param y The layer row.\n * @param flippedVertically true if the tile is flipped vertically.\n */\n setFlippedVertically(\n x: integer,\n y: integer,\n flippedVertically: boolean\n ): void {\n const tilesRow = this._tiles[y];\n if (!tilesRow || x >= tilesRow.length) {\n // Coordinates are out of bounds, don't do anything.\n return;\n }\n\n const tileId = tilesRow[x];\n if (tileId === 0) {\n return;\n }\n tilesRow[x] = FlippingHelper.setFlippedVertically(\n tileId,\n flippedVertically\n );\n }\n\n /**\n * @param x The layer column.\n * @param y The layer row.\n * @param flippedDiagonally true if the tile is flipped diagonally.\n */\n setFlippedDiagonally(\n x: integer,\n y: integer,\n flippedDiagonally: boolean\n ): void {\n const tilesRow = this._tiles[y];\n if (!tilesRow || x >= tilesRow.length) {\n // Coordinates are out of bounds, don't do anything.\n return;\n }\n\n const tileId = tilesRow[x];\n if (tileId === 0) {\n return;\n }\n tilesRow[x] = FlippingHelper.setFlippedDiagonally(\n tileId,\n flippedDiagonally\n );\n }\n\n /**\n * @param x The layer column.\n * @param y The layer row.\n * @returns true if the tile is flipped horizontally.\n */\n isFlippedHorizontally(x: integer, y: integer): boolean {\n const tilesRow = this._tiles[y];\n if (!tilesRow || x >= tilesRow.length) {\n // Coordinates are out of bounds, don't do anything.\n return false;\n }\n\n return FlippingHelper.isFlippedHorizontally(tilesRow[x]);\n }\n\n /**\n * @param x The layer column.\n * @param y The layer row.\n * @returns true if the tile is flipped vertically.\n */\n isFlippedVertically(x: integer, y: integer): boolean {\n const tilesRow = this._tiles[y];\n if (!tilesRow || x >= tilesRow.length) {\n // Coordinates are out of bounds, don't do anything.\n return false;\n }\n\n return FlippingHelper.isFlippedVertically(tilesRow[x]);\n }\n\n /**\n * @param x The layer column.\n * @param y The layer row.\n * @returns true if the tile is flipped diagonally.\n */\n isFlippedDiagonally(x: integer, y: integer): boolean {\n const tilesRow = this._tiles[y];\n if (!tilesRow || x >= tilesRow.length) {\n // Coordinates are out of bounds, don't do anything.\n return false;\n }\n\n return FlippingHelper.isFlippedDiagonally(tilesRow[x]);\n }\n\n /**\n * @param x The layer column.\n * @param y The layer row.\n * @returns The tile's GID (id + flipping bits).\n */\n getTileGID(x: integer, y: integer): integer | undefined {\n const tilesRow = this._tiles[y];\n if (!tilesRow || x >= tilesRow.length || tilesRow[x] === 0) {\n return undefined;\n }\n // -1 because 0 is keep for null.\n return tilesRow[x] - 1;\n }\n\n /**\n * @param x The layer column.\n * @param y The layer row.\n * @returns The tile's id.\n */\n getTileId(x: integer, y: integer): integer | undefined {\n const tilesRow = this._tiles[y];\n if (!tilesRow || x >= tilesRow.length || tilesRow[x] === 0) {\n return undefined;\n }\n // -1 because 0 is keep for null.\n const tileId = FlippingHelper.getTileId(tilesRow[x] - 1);\n return tileId;\n }\n\n /**\n * The number of tile columns in the layer.\n */\n getDimensionX(): integer {\n return this._tiles.length === 0 ? 0 : this._tiles[0].length;\n }\n\n /**\n * The number of tile rows in the layer.\n */\n getDimensionY(): integer {\n return this._tiles.length;\n }\n\n /**\n * @returns The layer width in pixels.\n */\n getWidth(): integer {\n return this.tileMap.getWidth();\n }\n\n /**\n * @returns The layer height in pixels.\n */\n getHeight(): integer {\n return this.tileMap.getHeight();\n }\n}\n\n/**\n * A tile definition from the tile set.\n */\nexport class TileDefinition {\n /**\n * There will probably be at most 4 tags on a tile.\n * An array lookup should take less time than using a Map.\n */\n private readonly taggedHitBoxes: {\n tag: string;\n polygons: PolygonVertices[];\n }[];\n private readonly animationLength: integer;\n\n /**\n * A tile can be a composition of several tiles.\n */\n private stackedTiles: integer[];\n private stackTileId?: integer;\n\n /**\n * @param animationLength The number of frame in the tile animation.\n */\n constructor(animationLength?: integer) {\n this.taggedHitBoxes = [];\n this.animationLength = animationLength ?? 0;\n this.stackedTiles = [];\n }\n\n /**\n * Add a polygon for the collision layer\n * @param tag The tag to allow collision layer filtering.\n * @param polygon The polygon to use for collisions.\n */\n addHitBox(tag: string, polygon: PolygonVertices): void {\n let taggedHitBox = this.taggedHitBoxes.find((hitbox) => hitbox.tag === tag);\n if (!taggedHitBox) {\n taggedHitBox = { tag, polygons: [] };\n this.taggedHitBoxes.push(taggedHitBox);\n }\n taggedHitBox.polygons.push(polygon);\n }\n\n /**\n * This property is used by {@link TransformedCollisionTileMap}\n * to make collision classes.\n * @param tag The tag to allow collision layer filtering.\n * @returns true if this tile contains any polygon with the given tag.\n */\n hasTaggedHitBox(tag: string): boolean {\n return this.taggedHitBoxes.some((hitbox) => hitbox.tag === tag);\n }\n\n /**\n * The hitboxes positioning is done by {@link TransformedCollisionTileMap}.\n * @param tag The tag to allow collision layer filtering.\n * @returns The hit boxes for this tile.\n */\n getHitBoxes(tag: string): PolygonVertices[] | undefined {\n const taggedHitBox = this.taggedHitBoxes.find(\n (hitbox) => hitbox.tag === tag\n );\n return taggedHitBox && taggedHitBox.polygons;\n }\n\n /**\n * Animated tiles have a limitation:\n * they are only able to use frames arranged horizontally one next\n * to each other on the atlas.\n * @returns The number of frame in the tile animation.\n */\n getAnimationLength(): integer {\n return this.animationLength;\n }\n\n /**\n * @returns The tile representing the stack of tiles.\n */\n getStackTileId(): integer {\n return this.stackTileId!;\n }\n\n /**\n * @returns All the tiles composed in the stack.\n */\n getStackedTiles(): integer[] {\n return this.stackedTiles;\n }\n\n /**\n * @returns `true` if the defintion is a stack of tiles.\n */\n hasStackedTiles(): boolean {\n return this.stackedTiles.length > 0;\n }\n\n /**\n * @param stackTileId The `tileId` representing the stack.\n * @param tiles All the tiles of stack.\n */\n setStackedTiles(stackTileId: integer, ...tiles: integer[]): void {\n this.stackedTiles = tiles;\n this.stackTileId = stackTileId;\n }\n}\n", "/**\n * A cache of resources identified by a string.\n *\n * It ensures that a resource is never load twice.\n */\nexport class ResourceCache<T> {\n private _cachedValues: Map<string, T>;\n\n /**\n * Several calls can happen before the resource is loaded.\n * This allows to stack them.\n */\n private _callbacks: Map<string, Array<(value: T | null) => void>>;\n\n constructor() {\n this._cachedValues = new Map<string, T>();\n this._callbacks = new Map<string, Array<(value: T | null) => void>>();\n }\n\n /**\n * Return a resource through a call back.\n * @param key the resource identifier.\n * @param load load the resource in case of cache default.\n * Note that the load callback is used by `getOrLoad` and not by the caller.\n * @param callback called when the resource is ready.\n */\n getOrLoad(\n key: string,\n load: (callback: (value: T | null) => void) => void,\n callback: (value: T | null) => void\n ): void {\n // Check if the value is in the cache.\n {\n const value = this._cachedValues.get(key);\n if (value) {\n callback(value);\n return;\n }\n }\n // Check if the value is being loading.\n {\n const callbacks = this._callbacks.get(key);\n if (callbacks) {\n callbacks.push(callback);\n return;\n } else {\n this._callbacks.set(key, [callback]);\n }\n }\n\n load((value) => {\n if (value) {\n this._cachedValues.set(key, value);\n }\n const callbacks = this._callbacks.get(key)!;\n this._callbacks.delete(key);\n for (const callback of callbacks) {\n callback(value);\n }\n });\n }\n}\n", "import { integer } from \"../model/CommonTypes\";\n\nimport PIXI = GlobalPIXIModule.PIXI;\n\n/**\n * A cache to access the tile images.\n *\n * It's created by {@link PixiTileMapHelper.parseAtlas}\n * and used by {@link PixiTileMapHelper.updatePixiTileMap}.\n */\nexport class TileTextureCache {\n private readonly _levelBackgroundTextures: Map<string, PIXI.Texture>;\n private readonly _textures: Map<integer, PIXI.Texture>;\n\n constructor() {\n this._levelBackgroundTextures = new Map();\n this._textures = new Map();\n }\n\n setTexture(tileId: integer, texture: PIXI.Texture): void {\n this._textures.set(tileId, texture);\n }\n\n /**\n * Return the texture to use for the tile with the specified id.\n *\n * @param tileId The tile identifier\n * @returns The texture for the given tile identifier.\n */\n getTexture(tileId: integer): PIXI.Texture | undefined {\n return this._textures.get(tileId);\n }\n\n getLevelBackgroundTexture(name: string): PIXI.Texture | undefined {\n return this._levelBackgroundTextures.get(name);\n }\n\n setLevelBackgroundTexture(name: string, texture: PIXI.Texture): void {\n this._levelBackgroundTextures.set(name, texture);\n }\n}\n", "import {\n FLIPPED_DIAGONALLY_FLAG,\n FLIPPED_HORIZONTALLY_FLAG,\n FLIPPED_VERTICALLY_FLAG,\n} from \"../../model/GID\";\nimport { integer } from \"../../model/CommonTypes\";\nimport { TiledLayer } from \"./TiledFormat\";\n\n/**\n * Decodes a layer data, which can sometimes be store as a compressed base64 string\n * by Tiled.\n * See https://doc.mapeditor.org/en/stable/reference/tmx-map-format/#data.\n * @param pako The zlib library.\n * @param tiledLayer The layer data from a Tiled JSON.\n * @returns The decoded layer data.\n */\nexport const decodeBase64LayerData = (pako: any, tiledLayer: TiledLayer) => {\n const { data, compression } = tiledLayer;\n const dataBase64 = data as string;\n if (!dataBase64) {\n // The layer data is not encoded.\n return data as number[];\n }\n let index = 4;\n const decodedData: integer[] = [];\n let step1 = atob(dataBase64)\n .split(\"\")\n .map(function (x) {\n return x.charCodeAt(0);\n });\n try {\n const decodeArray = (arr: integer[] | Uint8Array, index: integer) =>\n (arr[index] +\n (arr[index + 1] << 8) +\n (arr[index + 2] << 16) +\n (arr[index + 3] << 24)) >>>\n 0;\n\n if (compression === \"zlib\") {\n const binData = new Uint8Array(step1);\n const decompressedData = pako.inflate(binData);\n while (index <= decompressedData.length) {\n decodedData.push(decodeArray(decompressedData, index - 4));\n index += 4;\n }\n } else if (compression === \"zstd\") {\n console.error(\n \"Zstandard compression is not supported for layers in a Tilemap. Use instead zlib compression or no compression.\"\n );\n return null;\n } else {\n while (index <= step1.length) {\n decodedData.push(decodeArray(step1, index - 4));\n index += 4;\n }\n }\n return decodedData;\n } catch (error) {\n console.error(\n \"Failed to decompress and unzip base64 layer.data string\",\n error\n );\n return null;\n }\n};\n\nexport type TiledGID = {\n id: integer;\n flippedHorizontally: boolean;\n flippedVertically: boolean;\n flippedDiagonally: boolean;\n};\n\n/**\n * Extract information about the rotation of a tile from the tile id.\n * @param globalTileUid The Tiled tile global uniq identifier.\n * @returns The tile identifier and orientation.\n */\nexport const extractTileUidFlippedStates = (\n globalTileUid: integer\n): TiledGID => {\n const flippedHorizontally = globalTileUid & FLIPPED_HORIZONTALLY_FLAG;\n const flippedVertically = globalTileUid & FLIPPED_VERTICALLY_FLAG;\n const flippedDiagonally = globalTileUid & FLIPPED_DIAGONALLY_FLAG;\n const tileUid = getTileIdFromTiledGUI(\n globalTileUid &\n ~(\n FLIPPED_HORIZONTALLY_FLAG |\n FLIPPED_VERTICALLY_FLAG |\n FLIPPED_DIAGONALLY_FLAG\n )\n );\n\n return {\n id: tileUid,\n flippedHorizontally: !!flippedHorizontally,\n flippedVertically: !!flippedVertically,\n flippedDiagonally: !!flippedDiagonally,\n };\n};\n\n/**\n * Tiled use 0 as null, we do too but it's black boxed.\n * This is why the id needs to be decremented.\n * @return the tile identifier.\n */\nexport function getTileIdFromTiledGUI(\n tiledGUI: number | undefined\n): number | undefined {\n return tiledGUI === 0 ? undefined : tiledGUI - 1;\n}\n", "import { TileTextureCache } from \"../TileTextureCache\";\nimport { TiledTileMap } from \"../../load/tiled/TiledFormat\";\nimport { getTileIdFromTiledGUI } from \"../../load/tiled/TiledTileMapLoaderHelper\";\nimport PIXI = GlobalPIXIModule.PIXI;\n\nexport namespace TiledPixiHelper {\n /**\n * Split an atlas image into Pixi textures.\n *\n * @param tileMap A tile map exported from Tiled.\n * @param levelIndex The level of the tile map to load from.\n * @param atlasTexture The texture containing the whole tile set.\n * @param getTexture A getter to load a texture. Used if atlasTexture is not specified.\n * @returns A textures cache.\n */\n export function parseAtlas(\n tileMap: TiledTileMap,\n levelIndex: number,\n atlasTexture: PIXI.BaseTexture<PIXI.Resource> | null,\n getTexture: (textureName: string) => PIXI.BaseTexture<PIXI.Resource>\n ): TileTextureCache | null {\n if (!tileMap.tiledversion) {\n console.warn(\n \"The loaded Tiled map does not contain a 'tiledversion' key. Are you sure this file has been exported from Tiled (mapeditor.org)?\"\n );\n\n return null;\n }\n\n // We only handle tileset embedded in the tilemap. Warn if it's not the case.\n if (!tileMap.tilesets.length || \"source\" in tileMap.tilesets[0]) {\n console.warn(\n \"The loaded Tiled map seems not to contain any tileset data (nothing in 'tilesets' key).\"\n );\n return null;\n }\n\n const tiledSet = tileMap.tilesets[0];\n const {\n tilewidth,\n tileheight,\n tilecount,\n image,\n columns,\n spacing,\n margin,\n } = tiledSet;\n const firstGid = tiledSet.firstgid === undefined ? 1 : tiledSet.firstgid;\n if (!atlasTexture) atlasTexture = getTexture(image);\n\n // We try to detect what size Tiled is expecting.\n const rows = tilecount / columns;\n const expectedAtlasWidth =\n tilewidth * columns + spacing * (columns - 1) + margin * 2;\n const expectedAtlasHeight =\n tileheight * rows + spacing * (rows - 1) + margin * 2;\n\n if (\n atlasTexture.width < expectedAtlasWidth ||\n atlasTexture.height < expectedAtlasHeight\n ) {\n console.error(\n \"It seems the atlas file was resized, which is not supported. \" +\n `It should be ${expectedAtlasWidth}x${expectedAtlasHeight} px, ` +\n `but it's actually ${atlasTexture.width}x${atlasTexture.height} px.`\n );\n return null;\n }\n // Atlas can be bigger for some valid reasons:\n // - When users use an atlas images that are not divisible by the tile width,\n // Tiled automatically chooses a number of column that fit in the atlas for\n // a given tile size.\n // So the atlas images can have unused pixels at the right and bottom.\n // - Artists also sometimes add a banner.\n //\n // It can also be that users rescaled the atlas without adapting the tile set\n // In this case, having a broken visual can help understand the issue.\n // Especially since the error can only be found in the logs.\n if (\n atlasTexture.width !== expectedAtlasWidth ||\n atlasTexture.height !== expectedAtlasHeight\n ) {\n console.warn(\n \"It seems the atlas file has unused pixels. \" +\n `It should be ${expectedAtlasWidth}x${expectedAtlasHeight} px, ` +\n `but it's actually ${atlasTexture.width}x${atlasTexture.height} px.`\n );\n }\n\n // Prepare the textures pointing to the base \"Atlas\" Texture for each tile.\n // Note that this cache can be augmented later with rotated/flipped\n // versions of the tile textures.\n const textureCache = new TileTextureCache();\n for (let tileSetIndex = 0; tileSetIndex < tilecount; tileSetIndex++) {\n const columnMultiplier = Math.floor(tileSetIndex % columns);\n const rowMultiplier = Math.floor(tileSetIndex / columns);\n const x = margin + columnMultiplier * (tilewidth + spacing);\n const y = margin + rowMultiplier * (tileheight + spacing);\n const tileId = getTileIdFromTiledGUI(firstGid + tileSetIndex);\n\n try {\n const rect = new PIXI.Rectangle(x, y, tilewidth, tileheight);\n const texture = new PIXI.Texture(atlasTexture!, rect);\n\n textureCache.setTexture(tileId, texture);\n } catch (error) {\n console.error(\n \"An error occurred while creating a PIXI.Texture to be used in a TileMap:\",\n error\n );\n }\n }\n\n return textureCache;\n }\n}\n", "export function getLDtkTileId(tileSetId: number, tileId: number): number {\n // Crude bit shifting (for speed)\n let uniqueId = tileSetId << 16;\n uniqueId += tileId;\n return uniqueId;\n\n // Cantor Pairing\n // return (0.5 * (tileSetId + tileId) * (tileSetId + tileId + 1)) + tileId;\n}\n", "import { TileTextureCache } from \"../TileTextureCache\";\nimport { LDtkTileMap, LDtkTilesetDef } from \"../../load/ldtk/LDtkFormat\";\nimport { getLDtkTileId } from \"../../load/ldtk/LDtkTileMapLoaderHelper\";\nimport PIXI = GlobalPIXIModule.PIXI;\n\ntype Texture = PIXI.BaseTexture<PIXI.Resource>;\ntype TextureLoader = (textureName: string) => PIXI.BaseTexture<PIXI.Resource>;\n\nfunction getAtlasTexture(\n atlasTextures: Record<number, Texture | null>,\n tilesetCache: Record<number, LDtkTilesetDef>,\n getTexture: TextureLoader,\n tilesetId: number\n): Texture | null {\n if (atlasTextures[tilesetId]) {\n return atlasTextures[tilesetId];\n }\n\n let texture = null;\n\n const tileset = tilesetCache[tilesetId];\n if (tileset?.relPath) {\n texture = getTexture(tileset.relPath);\n\n // @ts-ignore\n if (texture.baseTexture?.cacheId === \"res/error48.png\") {\n console.error(`The atlas texture \"${tileset.relPath}\" can't be loaded`);\n\n texture = null;\n }\n } else {\n console.error(\n `The tileset \"${tileset.identifier}\" doesn't seems to contain an atlas texture`\n );\n }\n\n atlasTextures[tilesetId] = texture;\n\n return texture;\n}\n\nexport namespace LDtkPixiHelper {\n /**\n * Split an atlas image into Pixi textures.\n *\n * @param tileMap A tile map exported from LDtk.\n * @param levelIndex The level of the tile map to load from.\n * @param atlasTexture The texture containing the whole tile set.\n * @param getTexture A getter to load a texture.\n * @returns A textures cache.\n */\n export function parseAtlas(\n tileMap: LDtkTileMap,\n levelIndex: number,\n atlasTexture: Texture | null,\n getTexture: TextureLoader\n ): TileTextureCache | null {\n const level = tileMap.levels[levelIndex > -1 ? levelIndex : 0];\n if (!level || !level.layerInstances) {\n return null;\n }\n\n const tilesetCache: Record<number, LDtkTilesetDef> = {};\n for (const tileset of tileMap.defs.tilesets) {\n tilesetCache[tileset.uid] = tileset;\n }\n\n const textureCache = new TileTextureCache();\n // List the tiles that have been loaded to Pixi by all the layers of the level.\n // The keys are a composition (getLDtkTileId) between the tileset's id and the tile's id.\n const levelTileCache: Record<number, boolean> = {};\n const atlasTextures: Record<number, Texture | null> = {};\n\n for (let iLayer = level.layerInstances.length - 1; iLayer >= 0; --iLayer) {\n const layer = level.layerInstances[iLayer];\n if (layer.__type === \"Entities\") {\n continue;\n }\n\n const tilesetId = layer.__tilesetDefUid;\n if (typeof tilesetId !== \"number\") {\n continue;\n }\n\n const tileset = tilesetCache[tilesetId];\n\n const atlasTexture = getAtlasTexture(\n atlasTextures,\n tilesetCache,\n getTexture,\n tilesetId\n );\n if (!atlasTexture) {\n continue;\n }\n\n // List the tiles that have been loaded to Pixi by the current layer.\n // Since layer can only have tiles from 1 tileset, the keys are only the tile's id.\n const layerTileCache: Record<number, boolean> = {};\n const gridSize = tileset.tileGridSize;\n\n for (const tile of [...layer.autoLayerTiles, ...layer.gridTiles]) {\n if (layerTileCache[tile.t]) {\n continue;\n }\n\n const tileId = getLDtkTileId(tilesetId, tile.t);\n if (levelTileCache[tileId]) {\n layerTileCache[tile.t] = true;\n continue;\n }\n\n try {\n const [x, y] = tile.src;\n const rect = new PIXI.Rectangle(x, y, gridSize, gridSize);\n\n const texture = new PIXI.Texture(atlasTexture, rect);\n\n textureCache.setTexture(tileId, texture);\n } catch (error) {\n console.error(\n \"An error occurred while creating a PIXI.Texture to be used in a TileMap:\",\n error\n );\n }\n\n layerTileCache[tile.t] = true;\n levelTileCache[tileId] = true;\n }\n }\n\n if (level.bgRelPath) {\n const atlasTexture = getTexture(level.bgRelPath);\n const rect = new PIXI.Rectangle(0, 0, level.pxWid, level.pxHei);\n const texture = new PIXI.Texture(atlasTexture!, rect);\n\n textureCache.setLevelBackgroundTexture(level.bgRelPath, texture);\n }\n\n return textureCache;\n }\n}\n", "import { integer, float } from \"../model/CommonTypes\";\nimport {\n EditableObjectLayer,\n EditableTileMap,\n EditableTileMapLayer,\n} from \"../model/TileMapModel\";\nimport { TiledPixiHelper } from \"./tiled/TiledPixiHelper\";\nimport { LDtkPixiHelper } from \"./ldtk/LDtkPixiHelper\";\nimport { TileMapFileContent } from \"../load/TileMapFileContent\";\nimport { TileTextureCache } from \"./TileTextureCache\";\nimport { FlippingHelper, getPixiRotate } from \"../model/GID\";\n\nimport PIXI = GlobalPIXIModule.PIXI;\n\nexport namespace PixiTileMapHelper {\n /**\n * Split an atlas image into Pixi textures.\n *\n * @param tiledMap A tile map exported from Tiled.\n * @param levelIndex The level of the tile map to load from.\n * @param atlasTexture The texture containing the whole tile set.\n * @param getTexture A getter to load a texture. Used if atlasTexture is not specified.\n * @returns A textures cache.\n */\n export function parseAtlas(\n tileMap: TileMapFileContent,\n levelIndex: number,\n atlasTexture: PIXI.BaseTexture<PIXI.Resource> | null,\n getTexture: (textureName: string) => PIXI.BaseTexture<PIXI.Resource>\n ): TileTextureCache | null {\n if (tileMap.kind === \"ldtk\") {\n return LDtkPixiHelper.parseAtlas(\n tileMap.data,\n levelIndex,\n atlasTexture,\n getTexture\n );\n }\n if (tileMap.kind === \"tiled\") {\n return TiledPixiHelper.parseAtlas(\n tileMap.data,\n levelIndex,\n atlasTexture,\n getTexture\n );\n }\n\n console.warn(\n \"The loaded Tiled map data does not contain a 'tiledversion' or '__header__' key. Are you sure this file has been exported from Tiled (mapeditor.org) or LDtk (ldtk.io)?\"\n );\n\n return null;\n }\n\n /**\n * Re-renders the tile map whenever its rendering settings have been changed\n *\n * @param untypedPixiTileMap the tile map renderer\n * @param tileMap the tile map model\n * @param textureCache the tile set textures\n * @param displayMode What to display:\n * - only a single layer (`index`)\n * - only visible layers (`visible`)\n * - everything (`all`).\n * @param layerIndex If `displayMode` is set to `index`, the layer index to be\n * displayed.\n */\n export function updatePixiTileMap(\n untypedPixiTileMap: any,\n tileMap: EditableTileMap,\n textureCache: TileTextureCache,\n displayMode: \"index\" | \"visible\" | \"all\",\n layerIndex: number\n ): void {\n // The extension doesn't handle the Pixi sub-namespace very well.\n const pixiTileMap = untypedPixiTileMap as PIXI.tilemap.CompositeTilemap;\n if (!pixiTileMap) return;\n pixiTileMap.clear();\n\n const bgResourceName = tileMap.getBackgroundResourceName();\n if (bgResourceName) {\n const texture = textureCache.getLevelBackgroundTexture(bgResourceName);\n pixiTileMap.tile(texture, 0, 0);\n }\n\n for (const layer of tileMap.getLayers()) {\n if (\n (displayMode === \"index\" && layerIndex !== layer.id) ||\n (displayMode === \"visible\" && !layer.isVisible())\n ) {\n continue;\n }\n\n if (layer instanceof EditableObjectLayer) {\n const objectLayer = layer as EditableObjectLayer;\n\n for (const object of objectLayer.objects) {\n const tileGID = object.getTileId();\n const texture = textureCache.getTexture(tileGID);\n\n if (texture) {\n const rotate = getPixiRotate(tileGID);\n\n pixiTileMap.tile(\n texture,\n object.x,\n object.y - objectLayer.tileMap.getTileHeight(),\n { rotate }\n );\n }\n }\n } else if (layer instanceof EditableTileMapLayer) {\n const tileLayer = layer as EditableTileMapLayer;\n\n const tileWidth = tileLayer.tileMap.getTileWidth();\n const tileHeight = tileLayer.tileMap.getTileHeight();\n const dimensionX = tileLayer.tileMap.getDimensionX();\n const dimensionY = tileLayer.tileMap.getDimensionY();\n const alpha = tileLayer.getAlpha();\n\n for (let y = 0; y < dimensionY; y++) {\n for (let x = 0; x < dimensionX; x++) {\n const xPos = tileWidth * x;\n const yPos = tileHeight * y;\n\n const tileGID = tileLayer.getTileGID(x, y);\n if (tileGID === undefined) {\n continue;\n }\n const tileId = FlippingHelper.getTileId(tileGID);\n\n const tileDefinition = tileLayer.tileMap.getTileDefinition(tileId);\n\n if (tileDefinition.hasStackedTiles()) {\n for (const tileGID of tileDefinition.getStackedTiles()) {\n const tileId = FlippingHelper.getTileId(tileGID);\n const tileTexture = textureCache.getTexture(tileId);\n if (!tileTexture) {\n continue;\n }\n\n const rotate = getPixiRotate(tileGID);\n\n void pixiTileMap.tile(tileTexture, xPos, yPos, {\n alpha,\n rotate,\n });\n }\n } else {\n const tileTexture = textureCache.getTexture(tileId);\n if (!tileTexture) {\n console.warn(`Unknown tile id: ${tileId} at (${x}, ${y})`);\n continue;\n }\n const rotate = getPixiRotate(tileGID);\n const pixiTilemapFrame = pixiTileMap.tile(\n tileTexture,\n xPos,\n yPos,\n {\n alpha,\n rotate,\n }\n );\n\n // Animated tiles have a limitation:\n // they are only able to use frames arranged horizontally one next\n // to each other on the atlas.\n if (tileDefinition.getAnimationLength() > 0) {\n pixiTilemapFrame.tileAnimX(\n tileWidth,\n tileDefinition.getAnimationLength()\n );\n }\n }\n }\n }\n }\n }\n }\n\n /**\n * Re-renders the collision mask\n */\n export function updatePixiCollisionMask(\n pixiGraphics: PIXI.Graphics,\n tileMap: EditableTileMap,\n typeFilter: string,\n outlineSize: integer,\n outlineColor: integer,\n outlineOpacity: float,\n fillColor: integer,\n fillOpacity: float\n ): void {\n if (!pixiGraphics) return;\n pixiGraphics.clear();\n\n pixiGraphics.lineStyle(outlineSize, outlineColor, outlineOpacity);\n pixiGraphics.drawRect(0, 0, tileMap.getWidth(), tileMap.getHeight());\n\n for (const layer of tileMap.getLayers()) {\n const tileWidth = tileMap.getTileWidth();\n const tileHeight = tileMap.getTileHeight();\n\n if (layer instanceof EditableTileMapLayer) {\n const tileLayer = layer as EditableTileMapLayer;\n\n for (let y = 0; y < tileLayer.tileMap.getDimensionY(); y++) {\n for (let x = 0; x < tileLayer.tileMap.getDimensionX(); x++) {\n const xPos = tileWidth * x;\n const yPos = tileHeight * y;\n\n const tileId = tileLayer.getTileId(x, y)!;\n const isFlippedHorizontally = tileLayer.isFlippedHorizontally(x, y);\n const isFlippedVertically = tileLayer.isFlippedVertically(x, y);\n const isFlippedDiagonally = tileLayer.isFlippedDiagonally(x, y);\n const tileDefinition = tileLayer.tileMap.getTileDefinition(tileId);\n if (!tileDefinition) {\n continue;\n }\n const hitboxes = tileDefinition.getHitBoxes(typeFilter);\n if (!hitboxes) {\n continue;\n }\n for (const vertices of hitboxes) {\n if (vertices.length === 0) continue;\n\n pixiGraphics.beginFill(fillColor, fillOpacity);\n for (let index = 0; index < vertices.length; index++) {\n let vertexX = vertices[index][0];\n let vertexY = vertices[index][1];\n // It's important to do the diagonal flipping first,\n // because the other flipping \"move\" the origin.\n if (isFlippedDiagonally) {\n const swap = vertexX;\n vertexX = vertexY;\n vertexY = swap;\n }\n if (isFlippedHorizontally) {\n vertexX = tileWidth - vertexX;\n }\n if (isFlippedVertically) {\n vertexY = tileHeight - vertexY;\n }\n if (index === 0) {\n pixiGraphics.moveTo(xPos + vertexX, yPos + vertexY);\n } else {\n pixiGraphics.lineTo(xPos + vertexX, yPos + vertexY);\n }\n }\n pixiGraphics.closePath();\n pixiGraphics.endFill();\n }\n }\n }\n }\n }\n }\n}\n", "import { integer } from \"../../model/CommonTypes\";\nimport { EditableTileMap, TileDefinition } from \"../../model/TileMapModel\";\nimport { getLDtkTileId } from \"./LDtkTileMapLoaderHelper\";\nimport { LDtkTileMap } from \"./LDtkFormat\";\nimport { getTileGID } from \"../../model/GID\";\n\nexport namespace LDtkTileMapLoader {\n /**\n * Create a {@link EditableTileMap} from the LDtk JSON.\n *\n * @param ldtkTileMap A tile map exported from LDtk.\n * @param levelIndex The level of the tile map to load from.\n * @returns A {@link EditableTileMap}\n */\n export function load(\n ldtkTileMap: LDtkTileMap,\n levelIndex: number\n ): EditableTileMap | null {\n const ldtkLevel = ldtkTileMap.levels[levelIndex > -1 ? levelIndex : 0];\n if (!ldtkLevel || !ldtkLevel.layerInstances) {\n return null;\n }\n\n const tileSet = new Map<integer, TileDefinition>();\n let gridSize = 0;\n let dimX = 0;\n let dimY = 0;\n\n for (\n let iLayer = ldtkLevel.layerInstances.length - 1;\n iLayer >= 0;\n --iLayer\n ) {\n const layer = ldtkLevel.layerInstances[iLayer];\n const tilesetId = layer.__tilesetDefUid;\n const tileCache: Record<number, boolean> = {};\n\n // Cache the tile definitions.\n for (const tile of [...layer.autoLayerTiles, ...layer.gridTiles]) {\n if (tileCache[tile.t]) {\n continue;\n }\n\n const tileId = getLDtkTileId(tilesetId, tile.t);\n if (tileSet.has(tileId)) {\n tileCache[tile.t] = true;\n continue;\n }\n\n const tileDef = new TileDefinition(0);\n\n tileCache[tile.t] = true;\n tileSet.set(tileId, tileDef);\n }\n\n if (\n layer.__type === \"IntGrid\" ||\n layer.__type === \"AutoLayer\" ||\n layer.__type === \"Tiles\"\n ) {\n if (gridSize === 0) {\n gridSize = layer.__gridSize;\n dimX = layer.__cWid;\n dimY = layer.__cHei;\n } else if (layer.__gridSize !== gridSize) {\n console.warn(\n \"Grid size is different across layers. Only the first layer grid size will be followed.\"\n );\n }\n }\n }\n\n const editableTileMap = new EditableTileMap(\n gridSize,\n gridSize,\n dimX,\n dimY,\n tileSet\n );\n const composedTileMap = new Map<string, TileDefinition>();\n let nextComposedTileId = 0xfffffff;\n\n for (\n let iLayer = ldtkLevel.layerInstances.length - 1;\n iLayer >= 0;\n --iLayer\n ) {\n const layer = ldtkLevel.layerInstances[iLayer];\n const gridSize = layer.__gridSize;\n const tilesetId = layer.__tilesetDefUid;\n\n const editableTileLayer = editableTileMap.addTileLayer(iLayer);\n editableTileLayer.setAlpha(layer.__opacity);\n editableTileLayer.setVisible(layer.visible);\n\n for (const tile of [...layer.autoLayerTiles, ...layer.gridTiles]) {\n const x = Math.floor(tile.px[0] / gridSize);\n const y = Math.floor(tile.px[1] / gridSize);\n const tileId = getLDtkTileId(tilesetId, tile.t);\n\n const oldTileId = editableTileLayer.getTileId(x, y);\n if (oldTileId === undefined) {\n editableTileLayer.setTile(x, y, tileId);\n editableTileLayer.setFlippedHorizontally(\n x,\n y,\n tile.f === 1 || tile.f === 3\n );\n editableTileLayer.setFlippedVertically(\n x,\n y,\n tile.f === 2 || tile.f === 3\n );\n } else {\n const tileGID = getTileGID(\n tileId,\n tile.f === 1 || tile.f === 3,\n tile.f === 2 || tile.f === 3,\n false\n );\n const oldTileDef = tileSet.get(oldTileId);\n\n if (oldTileDef?.hasStackedTiles()) {\n const hash = `${oldTileDef\n .getStackedTiles()\n .map((tileId) => `${tileId}`)\n .join(\";\")};${tileGID}`;\n const tileDef = composedTileMap.get(hash);\n if (tileDef) {\n editableTileLayer.setTile(x, y, tileDef.getStackTileId());\n } else {\n const tileDef = new TileDefinition(0);\n\n tileDef.setStackedTiles(\n nextComposedTileId,\n ...oldTileDef.getStackedTiles(),\n tileGID\n );\n\n tileSet.set(nextComposedTileId, tileDef);\n nextComposedTileId -= 1;\n\n composedTileMap.set(hash, tileDef);\n\n editableTileLayer.setTile(x, y, tileDef.getStackTileId());\n }\n } else {\n const oldTileGID = editableTileLayer.getTileGID(x, y)!;\n const hash = `${oldTileGID};${tileGID}`;\n const tileDef = new TileDefinition(0);\n\n tileDef.setStackedTiles(nextComposedTileId, oldTileGID, tileGID);\n\n tileSet.set(nextComposedTileId, tileDef);\n nextComposedTileId -= 1;\n\n composedTileMap.set(hash, tileDef);\n\n editableTileLayer.setTile(x, y, tileDef.getStackTileId());\n }\n }\n }\n }\n\n if (ldtkLevel.bgRelPath) {\n void editableTileMap.setBackgroundResourceName(ldtkLevel.bgRelPath);\n }\n\n return editableTileMap;\n }\n}\n", "import { integer, PolygonVertices } from \"../../model/CommonTypes\";\nimport {\n EditableTileMap,\n TileDefinition,\n TileObject,\n} from \"../../model/TileMapModel\";\nimport { TiledTileMap } from \"./TiledFormat\";\nimport {\n decodeBase64LayerData,\n extractTileUidFlippedStates,\n getTileIdFromTiledGUI,\n} from \"./TiledTileMapLoaderHelper\";\n\n/**\n * It creates a {@link EditableTileMap} from a Tiled JSON.\n */\nexport namespace TiledTileMapLoader {\n /**\n * Create a {@link EditableTileMap} from the Tiled JSON.\n *\n * @param tiledTileMap A tile map exported from Tiled.\n * @param pako The zlib library.\n * @returns A {@link EditableTileMap}\n */\n export function load(\n tiledTileMap: TiledTileMap,\n pako: any\n ): EditableTileMap | null {\n if (!tiledTileMap.tiledversion) {\n console.warn(\n \"The loaded Tiled map does not contain a 'tiledversion' key. Are you sure this file has been exported from Tiled (mapeditor.org)?\"\n );\n\n return null;\n }\n\n const definitions = new Map<integer, TileDefinition>();\n for (const tiledTileSet of tiledTileMap.tilesets) {\n const firstGid =\n tiledTileSet.firstgid === undefined ? 1 : tiledTileSet.firstgid;\n if (tiledTileSet.tiles) {\n for (const tile of tiledTileSet.tiles) {\n const tileDefinition = new TileDefinition(\n tile.animation ? tile.animation.length : 0\n );\n const tileClass = tile.type || tile.class;\n if (tile.objectgroup) {\n for (const object of tile.objectgroup.objects) {\n const tag = object.type || object.class || tileClass;\n if (!tag || tag.length === 0) {\n continue;\n }\n let polygon: PolygonVertices | null = null;\n if (object.polygon) {\n const angle = (object.rotation * Math.PI) / 180;\n let cos = Math.cos(angle);\n let sin = Math.sin(angle);\n // Avoid rounding errors around 0.\n if (cos === -1 || cos === 1) {\n sin = 0;\n }\n if (sin === -1 || sin === 1) {\n cos = 0;\n }\n polygon = object.polygon.map((point) => [\n object.x + point.x * cos - point.y * sin,\n object.y + point.x * sin + point.y * cos,\n ]);\n //TODO check that polygons are convex or split them?\n }\n // TODO handle ellipses by creating a polygon?\n // Make an object property for the number of vertices or always create 8 ones?\n // Will the user need the same vertices number for every ellipse?\n else if (\n object.x !== undefined &&\n object.y !== undefined &&\n object.width !== undefined &&\n object.height !== undefined\n ) {\n polygon = [\n [object.x, object.y],\n [object.x, object.y + object.height],\n [object.x + object.width, object.y + object.height],\n [object.x + object.width, object.y],\n ];\n }\n if (polygon) {\n tileDefinition.addHitBox(tag, polygon);\n }\n }\n } else if (tileClass) {\n // When there is no shape, default to the whole tile.\n const polygon: PolygonVertices = [\n [0, 0],\n [0, tiledTileMap.tileheight],\n [tiledTileMap.tilewidth, tiledTileMap.tileheight],\n [tiledTileMap.tilewidth, 0],\n ];\n tileDefinition.addHitBox(tileClass, polygon);\n }\n definitions.set(\n getTileIdFromTiledGUI(firstGid + tile.id),\n tileDefinition\n );\n }\n }\n for (let tileIndex = 0; tileIndex < tiledTileSet.tilecount; tileIndex++) {\n const tileId = getTileIdFromTiledGUI(firstGid + tileIndex);\n if (!definitions.has(tileId)) {\n definitions.set(tileId, new TileDefinition(0));\n }\n }\n }\n\n const collisionTileMap = new EditableTileMap(\n tiledTileMap.tilewidth,\n tiledTileMap.tileheight,\n tiledTileMap.width,\n tiledTileMap.height,\n definitions\n );\n\n for (const tiledLayer of tiledTileMap.layers) {\n if (tiledLayer.type === \"objectgroup\") {\n const objectLayer = collisionTileMap.addObjectLayer(tiledLayer.id);\n objectLayer.setVisible(tiledLayer.visible);\n for (const tiledObject of tiledLayer.objects) {\n if (!tiledObject.visible || !tiledObject.gid) {\n // Objects layer are nice to put decorations but dynamic objects\n // must be done with GDevelop objects.\n // So, there is no point to load it as there won't be any action to\n // make objects visible individually.\n continue;\n }\n const tileGid = extractTileUidFlippedStates(tiledObject.gid);\n const object = new TileObject(\n tiledObject.x,\n tiledObject.y,\n tileGid.id\n );\n objectLayer.add(object);\n object.setFlippedHorizontally(tileGid.flippedHorizontally);\n object.setFlippedVertically(tileGid.flippedVertically);\n object.setFlippedDiagonally(tileGid.flippedDiagonally);\n }\n } else if (tiledLayer.type === \"tilelayer\") {\n let tileSlotIndex = 0;\n let layerData: integer[] | null = null;\n\n if (tiledLayer.encoding === \"base64\") {\n layerData = decodeBase64LayerData(pako, tiledLayer);\n if (!layerData) {\n console.warn(\"Failed to uncompress layer.data\");\n }\n } else {\n layerData = tiledLayer.data as integer[];\n }\n if (layerData) {\n const collisionTileLayer = collisionTileMap.addTileLayer(\n tiledLayer.id\n );\n collisionTileLayer.setAlpha(tiledLayer.opacity);\n collisionTileLayer.setVisible(tiledLayer.visible);\n // TODO handle layer offset\n\n for (let y = 0; y < tiledLayer.height; y++) {\n for (let x = 0; x < tiledLayer.width; x++) {\n // The \"globalTileUid\" is the tile UID with encoded\n // bits about the flipping/rotation of the tile.\n const globalTileUid = layerData[tileSlotIndex];\n // Extract the tile UID and the texture.\n const tileUid = extractTileUidFlippedStates(globalTileUid);\n if (tileUid.id !== undefined) {\n collisionTileLayer.setTile(x, y, tileUid.id);\n collisionTileLayer.setFlippedHorizontally(\n x,\n y,\n tileUid.flippedHorizontally\n );\n collisionTileLayer.setFlippedVertically(\n x,\n y,\n tileUid.flippedVertically\n );\n collisionTileLayer.setFlippedDiagonally(\n x,\n y,\n tileUid.flippedDiagonally\n );\n }\n tileSlotIndex += 1;\n }\n }\n }\n }\n }\n\n return collisionTileMap;\n }\n}\n", "import type { EditableTileMap } from \"../model/TileMapModel\";\nimport { TileMapFileContent } from \"./TileMapFileContent\";\nimport { LDtkTileMapLoader } from \"./ldtk/LDtkTileMapLoader\";\nimport { TiledTileMapLoader } from \"./tiled/TiledTileMapLoader\";\n\nexport namespace TileMapLoader {\n /**\n * Create a {@link EditableTileMap} from the raw data.\n *\n * @param tileMapFileContent The data exported from Tiled/LDtk.\n * @param levelIndex The level of the tile map to load from.\n * @param pako The zlib library.\n * @returns A {@link EditableTileMap}\n */\n export function load(\n tileMapFileContent: TileMapFileContent,\n levelIndex: number,\n pako: any\n ): EditableTileMap | null {\n if (tileMapFileContent.kind === \"ldtk\") {\n return LDtkTileMapLoader.load(tileMapFileContent.data, levelIndex);\n }\n if (tileMapFileContent.kind === \"tiled\") {\n return TiledTileMapLoader.load(tileMapFileContent.data, pako);\n }\n\n console.warn(\n \"The loaded Tile Map data does not contain a 'tiledversion' or '__header__' key. Are you sure this file has been exported from Tiled (mapeditor.org) or LDtk (ldtk.io)?\"\n );\n\n return null;\n }\n}\n", "import { ResourceCache } from \"./ResourceCache\";\nimport { EditableTileMap } from \"../model/TileMapModel\";\nimport { TileTextureCache } from \"./TileTextureCache\";\nimport { PixiTileMapHelper } from \"./TileMapPixiHelper\";\n\nimport PIXI = GlobalPIXIModule.PIXI;\nimport { TileMapLoader } from \"../load/TileMapLoader\";\nimport { TileMapFileContent } from \"../load/TileMapFileContent\";\n\n/**\n * A holder to share tile maps across the 2 extension objects.\n *\n * Every instance with the same files path in properties will\n * share the same {@link EditableTileMap} and {@link TileTextureCache}.\n *\n * @see {@link TileMapRuntimeManager}\n */\nexport class TileMapManager {\n private _tileMapCache: ResourceCache<EditableTileMap>;\n private _textureCacheCaches: ResourceCache<TileTextureCache>;\n\n constructor() {\n this._tileMapCache = new ResourceCache<EditableTileMap>();\n this._textureCacheCaches = new ResourceCache<TileTextureCache>();\n }\n\n /**\n * @param instanceHolder Where to set the manager instance.\n * @returns The shared manager.\n */\n static getManager(instanceHolder: Object): TileMapManager {\n // @ts-ignore\n if (!instanceHolder.tileMapCollisionMaskManager) {\n //Create the shared manager if necessary.\n // @ts-ignore\n instanceHolder.tileMapCollisionMaskManager = new TileMapManager();\n }\n // @ts-ignore\n return instanceHolder.tileMapCollisionMaskManager;\n }\n\n /**\n * @param data JSON data.\n * @returns The data enclosed with its detected kind.\n */\n static identify(data: any): TileMapFileContent | null {\n if (data.tiledversion) {\n console.info(\"Detected the json file was created in Tiled\");\n return {\n kind: \"tiled\",\n data,\n };\n }\n\n if (data.__header__ && data.__header__.app === \"LDtk\") {\n console.info(\"Detected the json/ldtk file was created in LDtk\");\n return {\n kind: \"ldtk\",\n data,\n };\n }\n\n console.warn(\n \"The loaded Tile Map data does not contain a 'tiledversion' or '__header__' key. Are you sure this file has been exported from Tiled (mapeditor.org) or LDtk (ldtk.io)?\"\n );\n\n return null;\n }\n\n /**\n * @param loadTileMap The method that loads the Tiled JSON file in memory.\n * @param tileMapJsonResourceName The resource name of the tile map.\n * @param tileSetJsonResourceName The resource name of the tile set.\n * @param levelIndex The level of the tile map to load from.\n * @param pako The zlib library.\n * @param callback A function called when the tile map is parsed.\n */\n getOrLoadTileMap(\n loadTileMap: (\n tileMapJsonResourceName: string,\n tileSetJsonResourceName: string,\n callback: (tileMapFileContent: TileMapFileContent | null) => void\n ) => void,\n tileMapJsonResourceName: string,\n tileSetJsonResourceName: string,\n levelIndex: number,\n pako: any,\n callback: (tileMap: EditableTileMap | null) => void\n ): void {\n const key =\n tileMapJsonResourceName +\n \"|\" +\n tileSetJsonResourceName +\n \"|\" +\n levelIndex;\n\n this._tileMapCache.getOrLoad(\n key,\n (callback) => {\n loadTileMap(\n tileMapJsonResourceName,\n tileSetJsonResourceName,\n (tileMapFileContent: TileMapFileContent | null) => {\n if (!tileMapFileContent) {\n callback(null);\n return;\n }\n\n const editableTileMap = TileMapLoader.load(\n tileMapFileContent,\n levelIndex,\n pako\n );\n callback(editableTileMap);\n }\n );\n },\n callback\n );\n }\n\n /**\n * @param loadTileMap The method that loads the Tiled JSON file in memory.\n * @param getTexture The method that loads the atlas image file in memory.\n * @param atlasImageResourceName The resource name of the atlas image.\n * @param tileMapJsonResourceName The resource name of the tile map.\n * @param tileSetJsonResourceName The resource name of the tile set.\n * @param levelIndex The level of the tile map to load from.\n * @param callback A function called when the tiles textures are split.\n */\n getOrLoadTextureCache(\n loadTileMap: (\n tileMapJsonResourceName: string,\n tileSetJsonResourceName: string,\n callback: (tileMapFileContent: TileMapFileContent | null) => void\n ) => void,\n getTexture: (textureName: string) => PIXI.BaseTexture<PIXI.Resource>,\n atlasImageResourceName: string,\n tileMapJsonResourceName: string,\n tileSetJsonResourceName: string,\n levelIndex: number,\n callback: (textureCache: TileTextureCache | null) => void\n ): void {\n const key =\n tileMapJsonResourceName +\n \"|\" +\n tileSetJsonResourceName +\n \"|\" +\n atlasImageResourceName +\n \"|\" +\n levelIndex;\n\n this._textureCacheCaches.getOrLoad(\n key,\n (callback) => {\n loadTileMap(\n tileMapJsonResourceName,\n tileSetJsonResourceName,\n (tileMapFileContent: TileMapFileContent | null) => {\n if (!tileMapFileContent) {\n // loadTileMap already log errors.\n callback(null);\n return;\n }\n\n const atlasTexture = atlasImageResourceName\n ? getTexture(atlasImageResourceName)\n : null;\n const textureCache = PixiTileMapHelper.parseAtlas(\n tileMapFileContent,\n levelIndex,\n atlasTexture,\n getTexture\n );\n callback(textureCache);\n }\n );\n },\n callback\n );\n }\n}\n"],
5
+ "mappings": "qOAgBA,IAAIA,EAAgB,SAASC,EAAGC,EAAAA,CAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,CAAA,CAAA,YAAgBC,OAAS,SAAUL,EAAGC,EAAAA,CAAKD,EAAEI,UAAYH,CAAAA,GACvE,SAAUD,EAAGC,EAAAA,CAAK,QAASK,KAAKL,EAAOC,OAAOK,UAAUC,eAAeC,KAAKR,EAAGK,CAAAA,IAAIN,EAAEM,CAAAA,EAAKL,EAAEK,CAAAA,EAAAA,EACzFP,EAAcC,EAAGC,CAAAA,CAAAA,EAGrB,SAASS,GAAUV,EAAGC,EAAAA,CACzB,GAAiB,OAANA,GAAM,YAAcA,IAAM,KACjC,MAAM,IAAIU,UAAU,uBAAyBC,OAAOX,CAAAA,EAAK,+BAAA,EAE7D,SAASY,GAAAA,CAAOC,KAAKC,YAAcf,CAAAA,CADnCD,EAAcC,EAAGC,CAAAA,EAEjBD,EAAEO,UAAYN,IAAM,KAAOC,OAAOc,OAAOf,CAAAA,GAAMY,EAAGN,UAAYN,EAAEM,UAAW,IAAIM,EAAAA,CA2F5E,SAASI,EAASC,EAAAA,CACrB,IAAIC,EAAsB,OAAXC,QAAW,YAAcA,OAAOC,SAAUC,EAAIH,GAAKD,EAAEC,CAAAA,EAAII,EAAI,EAC5E,GAAID,EAAG,OAAOA,EAAEb,KAAKS,CAAAA,EACrB,GAAIA,GAAy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,EAAAA,CAEA,IAAMF,EACJgP,EACA,IACAC,EACA,IACAzM,EAEFzJ,KAAKwV,cAAcW,UACjBlP,EACA,SAACE,EAAAA,CACC6O,EACEC,EACAC,EACA,SAACX,EAAAA,CACC,GAAKA,EAAL,CAKA,IAAM5D,EAAkBnG,GAActE,KACpCqO,EACA9L,EACA1B,CAAAA,EAEFZ,EAASwK,CAAAA,CAAAA,MATPxK,EAAS,IAAA,CAAA,CAAA,CAAA,EAajBA,CAAAA,CAAAA,EAaJuO,EAAAA,UAAAA,sBAAA,SACEM,EAKArM,EACAyM,EACAH,EACAC,EACAzM,EACAtC,EAAAA,CAEA,IAAMF,EACJgP,EACA,IACAC,EACA,IACAE,EACA,IACA3M,EAEFzJ,KAAKyV,oBAAoBU,UACvBlP,EACA,SAACE,EAAAA,CACC6O,EACEC,EACAC,EACA,SAACX,EAAAA,CACC,GAAKA,EAAL,CAMA,IAAM7L,EAAe0M,EACjBzM,EAAWyM,CAAAA,EACX,KACEtL,EAAeO,EAAAA,kBAAkByC,WACrCyH,EACA9L,EACAC,EACAC,CAAAA,EAEFxC,EAAS2D,CAAAA,CAAAA,MAbP3D,EAAS,IAAA,CAAA,CAAA,CAAA,EAiBjBA,CAAAA,CAAAA,EAAAA,CAAAA,EAAAA,EAAAA,EAAAA,gBAAAA,GAAAA,EAAAA,qBAAAA,GAAAA,EAAAA,eAAAA,EAAAA,EAAAA,eAAAA,GAAAA,EAAAA,iBAAAA,GAAAA,OAAAA,eAAAA,EAAAA,aAAAA,CAAAA,MAAAA,EAAAA,CAAAA,CAAAA,CAAAA",
6
+ "names": ["extendStatics", "d", "b", "Object", "setPrototypeOf", "__proto__", "Array", "p", "prototype", "hasOwnProperty", "call", "__extends", "TypeError", "String", "__", "this", "constructor", "create", "__values", "o", "s", "Symbol", "iterator", "m", "i", "length", "next", "value", "done", "__read", "n", "r", "e", "ar", "push", "error", "__spreadArray", "to", "from", "pack", "arguments", "l", "slice", "concat", "FlippingHelper", "FLIPPED_HORIZONTALLY_FLAG", "FLIPPED_VERTICALLY_FLAG", "FLIPPED_DIAGONALLY_FLAG", "getPixiRotate", "tileGID", "flippedDiagonally", "isFlippedDiagonally", "flippedHorizontally", "isFlippedHorizontally", "flippedVertically", "isFlippedVertically", "rotate", "getTileGID", "tileId", "tileIdMask", "tileWidth", "tileHeight", "dimX", "dimY", "tileSet", "_tileSet", "_layers", "EditableTileMap", "get", "values", "id", "layer", "EditableTileMapLayer", "EditableObjectLayer", "_backgroundResourceName", "x", "y", "tag", "indexX", "Math", "floor", "indexY", "_b", "getTileId", "hasTaggedHitBox", "c", "resourceName", "tileMap", "AbstractEditableLayer", "visible", "_super", "_this", "objects", "object", "TileObject", "setFlippedHorizontally", "setFlippedVertically", "setFlippedDiagonally", "_tiles", "getDimensionY", "index", "Int32Array", "getDimensionX", "_alpha", "alpha", "getTileDefinition", "tilesRow", "console", "getWidth", "getHeight", "animationLength", "taggedHitBoxes", "stackedTiles", "TileDefinition", "polygon", "taggedHitBox", "find", "hitbox", "polygons", "some", "stackTileId", "t", "_i", "tiles", "_cachedValues", "Map", "_callbacks", "ResourceCache", "key", "load", "callback", "callbacks", "set", "delete", "callbacks_1", "callback_1", "_levelBackgroundTextures", "_textures", "TileTextureCache", "texture", "name", "decodeBase64LayerData", "pako", "tiledLayer", "data", "compression", "decodedData", "step1", "atob", "split", "map", "charCodeAt", "decodeArray", "arr", "binData", "Uint8Array", "decompressedData", "inflate", "extractTileUidFlippedStates", "globalTileUid", "getTileIdFromTiledGUI", "tiledGUI", "TiledPixiHelper", "PIXI", "GlobalPIXIModule", "getLDtkTileId", "tileSetId", "uniqueId", "levelIndex", "atlasTexture", "getTexture", "tiledversion", "warn", "tilesets", "tiledSet", "tilewidth", "tileheight", "tilecount", "image", "columns", "spacing", "margin", "firstGid", "firstgid", "rows", "expectedAtlasWidth", "expectedAtlasHeight", "width", "height", "textureCache", "tileSetIndex", "rect", "Rectangle", "Texture", "setTexture", "LDtkPixiHelper", "PixiTileMapHelper", "LDtkTileMapLoader", "TiledTileMapLoader", "TileMapLoader", "getAtlasTexture", "atlasTextures", "tilesetCache", "tilesetId", "tileset", "relPath", "baseTexture", "cacheId", "identifier", "level", "levels", "layerInstances", "_c", "defs", "uid", "levelTileCache", "iLayer", "__type", "__tilesetDefUid", "atlasTexture_1", "layerTileCache", "gridSize", "tileGridSize", "_e", "autoLayerTiles", "gridTiles", "tile", "_g", "src", "F", "H", "bgRelPath", "atlasTexture_2", "pxWid", "pxHei", "setLevelBackgroundTexture", "kind", "parseAtlas", "untypedPixiTileMap", "displayMode", "layerIndex", "pixiTileMap", "clear", "bgResourceName", "getBackgroundResourceName", "getLevelBackgroundTexture", "_d", "getLayers", "isVisible", "objectLayer", "_f", "getTileHeight", "tileLayer", "getTileWidth", "dimensionX", "dimensionY", "getAlpha", "xPos", "yPos", "tileDefinition", "hasStackedTiles", "_h", "getStackedTiles", "tileGID_1", "tileId_1", "tileTexture", "pixiTilemapFrame", "getAnimationLength", "tileAnimX", "pixiGraphics", "typeFilter", "outlineSize", "outlineColor", "outlineOpacity", "fillColor", "fillOpacity", "lineStyle", "drawRect", "hitboxes", "getHitBoxes", "hitboxes_1", "vertices", "beginFill", "vertexX", "vertexY", "swap", "moveTo", "lineTo", "closePath", "endFill", "ldtkTileMap", "ldtkLevel", "tileCache", "has", "tileDef", "__gridSize", "__cWid", "__cHei", "editableTileMap", "composedTileMap", "nextComposedTileId", "gridSize_1", "editableTileLayer", "addTileLayer", "setAlpha", "__opacity", "setVisible", "px", "oldTileId", "setTile", "f", "oldTileDef", "hash", "join", "getStackTileId", "tileDef_1", "setStackedTiles", "oldTileGID", "setBackgroundResourceName", "tiledTileMap", "definitions", "tiledTileSet", "animation", "tileClass", "type", "class", "objectgroup", "D", "angle", "rotation", "PI", "cos_1", "cos", "sin_1", "sin", "point", "addHitBox", "_k", "tileIndex", "T", "g", "collisionTileMap", "_m", "layers", "addObjectLayer", "_p", "tiledObject", "gid", "tileGid", "add", "tileSlotIndex", "layerData", "encoding", "collisionTileLayer", "opacity", "tileUid", "j", "B", "tileMapFileContent", "_tileMapCache", "_textureCacheCaches", "TileMapManager", "instanceHolder", "tileMapCollisionMaskManager", "info", "__header__", "app", "loadTileMap", "tileMapJsonResourceName", "tileSetJsonResourceName", "getOrLoad", "atlasImageResourceName"]
7
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * @module TileMapHelper
4
+ */
5
+ export {
6
+ EditableTileMap,
7
+ EditableTileMapLayer,
8
+ TileDefinition,
9
+ } from './model/TileMapModel';
10
+ export { TileMapManager } from './render/TileMapManager';
11
+ export { TileTextureCache } from './render/TileTextureCache';
12
+ export { PixiTileMapHelper } from './render/TileMapPixiHelper';
13
+ export * from './load/TileMapFileContent';
14
+ export * from './model/CommonTypes';
15
+ export { TiledTileset } from './load/tiled/TiledFormat';
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,cAAc,GACf,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { LDtkTileMap } from '../load/ldtk/LDtkFormat';
2
+ import { TiledTileMap } from '../load/tiled/TiledFormat';
3
+ export declare type TileMapFileContent =
4
+ | {
5
+ kind: 'tiled';
6
+ data: TiledTileMap;
7
+ }
8
+ | {
9
+ kind: 'ldtk';
10
+ data: LDtkTileMap;
11
+ };
12
+ //# sourceMappingURL=TileMapFileContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TileMapFileContent.d.ts","sourceRoot":"","sources":["../../src/load/TileMapFileContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,oBAAY,kBAAkB,GAC1B;IACE,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,YAAY,CAAC;CACpB,GACD;IACE,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,WAAW,CAAC;CACnB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { EditableTileMap } from '../model/TileMapModel';
2
+ import { TileMapFileContent } from './TileMapFileContent';
3
+ export declare namespace TileMapLoader {
4
+ /**
5
+ * Create a {@link EditableTileMap} from the raw data.
6
+ *
7
+ * @param tileMapFileContent The data exported from Tiled/LDtk.
8
+ * @param levelIndex The level of the tile map to load from.
9
+ * @param pako The zlib library.
10
+ * @returns A {@link EditableTileMap}
11
+ */
12
+ function load(
13
+ tileMapFileContent: TileMapFileContent,
14
+ levelIndex: number,
15
+ pako: any
16
+ ): EditableTileMap | null;
17
+ }
18
+ //# sourceMappingURL=TileMapLoader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TileMapLoader.d.ts","sourceRoot":"","sources":["../../src/load/TileMapLoader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAI1D,yBAAiB,aAAa,CAAC;IAC7B;;;;;;;OAOG;IACH,SAAgB,IAAI,CAClB,kBAAkB,EAAE,kBAAkB,EACtC,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,GAAG,GACR,eAAe,GAAG,IAAI,CAaxB;CACF"}