@p100-web/core 100.0.61

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 (349) hide show
  1. package/dist/index.d.ts +136 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +101 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/src/AdaptivePerformance.d.ts +20 -0
  6. package/dist/src/AdaptivePerformance.d.ts.map +1 -0
  7. package/dist/src/AdaptivePerformance.js +110 -0
  8. package/dist/src/AdaptivePerformance.js.map +1 -0
  9. package/dist/src/DBEvent.d.ts +22 -0
  10. package/dist/src/DBEvent.d.ts.map +1 -0
  11. package/dist/src/DBEvent.js +19 -0
  12. package/dist/src/DBEvent.js.map +1 -0
  13. package/dist/src/DBNode.d.ts +33 -0
  14. package/dist/src/DBNode.d.ts.map +1 -0
  15. package/dist/src/DBNode.js +31 -0
  16. package/dist/src/DBNode.js.map +1 -0
  17. package/dist/src/DBScene.d.ts +11 -0
  18. package/dist/src/DBScene.d.ts.map +1 -0
  19. package/dist/src/DBScene.js +9 -0
  20. package/dist/src/DBScene.js.map +1 -0
  21. package/dist/src/DBVariable.d.ts +22 -0
  22. package/dist/src/DBVariable.d.ts.map +1 -0
  23. package/dist/src/DBVariable.js +19 -0
  24. package/dist/src/DBVariable.js.map +1 -0
  25. package/dist/src/DevTools.d.ts +4 -0
  26. package/dist/src/DevTools.d.ts.map +1 -0
  27. package/dist/src/DevTools.js +10 -0
  28. package/dist/src/DevTools.js.map +1 -0
  29. package/dist/src/GameContext.d.ts +179 -0
  30. package/dist/src/GameContext.d.ts.map +1 -0
  31. package/dist/src/GameContext.js +594 -0
  32. package/dist/src/GameContext.js.map +1 -0
  33. package/dist/src/IAudioListener.d.ts +4 -0
  34. package/dist/src/IAudioListener.d.ts.map +1 -0
  35. package/dist/src/IAudioListener.js +2 -0
  36. package/dist/src/IAudioListener.js.map +1 -0
  37. package/dist/src/ICameraControls.d.ts +14 -0
  38. package/dist/src/ICameraControls.d.ts.map +1 -0
  39. package/dist/src/ICameraControls.js +2 -0
  40. package/dist/src/ICameraControls.js.map +1 -0
  41. package/dist/src/ICameraNode.d.ts +6 -0
  42. package/dist/src/ICameraNode.d.ts.map +1 -0
  43. package/dist/src/ICameraNode.js +2 -0
  44. package/dist/src/ICameraNode.js.map +1 -0
  45. package/dist/src/IComponentFactory.d.ts +8 -0
  46. package/dist/src/IComponentFactory.d.ts.map +1 -0
  47. package/dist/src/IComponentFactory.js +2 -0
  48. package/dist/src/IComponentFactory.js.map +1 -0
  49. package/dist/src/IEngine.d.ts +26 -0
  50. package/dist/src/IEngine.d.ts.map +1 -0
  51. package/dist/src/IEngine.js +2 -0
  52. package/dist/src/IEngine.js.map +1 -0
  53. package/dist/src/IMaterial.d.ts +5 -0
  54. package/dist/src/IMaterial.d.ts.map +1 -0
  55. package/dist/src/IMaterial.js +2 -0
  56. package/dist/src/IMaterial.js.map +1 -0
  57. package/dist/src/IPCanvas.d.ts +45 -0
  58. package/dist/src/IPCanvas.d.ts.map +1 -0
  59. package/dist/src/IPCanvas.js +2 -0
  60. package/dist/src/IPCanvas.js.map +1 -0
  61. package/dist/src/IPNodeRenderer.d.ts +23 -0
  62. package/dist/src/IPNodeRenderer.d.ts.map +1 -0
  63. package/dist/src/IPNodeRenderer.js +2 -0
  64. package/dist/src/IPNodeRenderer.js.map +1 -0
  65. package/dist/src/IStats.d.ts +9 -0
  66. package/dist/src/IStats.d.ts.map +1 -0
  67. package/dist/src/IStats.js +3 -0
  68. package/dist/src/IStats.js.map +1 -0
  69. package/dist/src/MathTools.d.ts +4 -0
  70. package/dist/src/MathTools.d.ts.map +1 -0
  71. package/dist/src/MathTools.js +7 -0
  72. package/dist/src/MathTools.js.map +1 -0
  73. package/dist/src/PAction.d.ts +64 -0
  74. package/dist/src/PAction.d.ts.map +1 -0
  75. package/dist/src/PAction.js +209 -0
  76. package/dist/src/PAction.js.map +1 -0
  77. package/dist/src/PComponent.d.ts +60 -0
  78. package/dist/src/PComponent.d.ts.map +1 -0
  79. package/dist/src/PComponent.js +44 -0
  80. package/dist/src/PComponent.js.map +1 -0
  81. package/dist/src/PEnums.d.ts +98 -0
  82. package/dist/src/PEnums.d.ts.map +1 -0
  83. package/dist/src/PEnums.js +110 -0
  84. package/dist/src/PEnums.js.map +1 -0
  85. package/dist/src/PEvent.d.ts +27 -0
  86. package/dist/src/PEvent.d.ts.map +1 -0
  87. package/dist/src/PEvent.js +40 -0
  88. package/dist/src/PEvent.js.map +1 -0
  89. package/dist/src/PNode.d.ts +111 -0
  90. package/dist/src/PNode.d.ts.map +1 -0
  91. package/dist/src/PNode.js +488 -0
  92. package/dist/src/PNode.js.map +1 -0
  93. package/dist/src/PPayload.d.ts +7 -0
  94. package/dist/src/PPayload.d.ts.map +1 -0
  95. package/dist/src/PPayload.js +19 -0
  96. package/dist/src/PPayload.js.map +1 -0
  97. package/dist/src/PTypes.d.ts +140 -0
  98. package/dist/src/PTypes.d.ts.map +1 -0
  99. package/dist/src/PTypes.js +2 -0
  100. package/dist/src/PTypes.js.map +1 -0
  101. package/dist/src/PVariable.d.ts +29 -0
  102. package/dist/src/PVariable.d.ts.map +1 -0
  103. package/dist/src/PVariable.js +51 -0
  104. package/dist/src/PVariable.js.map +1 -0
  105. package/dist/src/PVector2.d.ts +14 -0
  106. package/dist/src/PVector2.d.ts.map +1 -0
  107. package/dist/src/PVector2.js +25 -0
  108. package/dist/src/PVector2.js.map +1 -0
  109. package/dist/src/PVector3.d.ts +17 -0
  110. package/dist/src/PVector3.d.ts.map +1 -0
  111. package/dist/src/PVector3.js +36 -0
  112. package/dist/src/PVector3.js.map +1 -0
  113. package/dist/src/animations/IAnimationAction.d.ts +9 -0
  114. package/dist/src/animations/IAnimationAction.d.ts.map +1 -0
  115. package/dist/src/animations/IAnimationAction.js +2 -0
  116. package/dist/src/animations/IAnimationAction.js.map +1 -0
  117. package/dist/src/animations/IAnimationClip.d.ts +5 -0
  118. package/dist/src/animations/IAnimationClip.d.ts.map +1 -0
  119. package/dist/src/animations/IAnimationClip.js +2 -0
  120. package/dist/src/animations/IAnimationClip.js.map +1 -0
  121. package/dist/src/animations/IAnimationMixer.d.ts +7 -0
  122. package/dist/src/animations/IAnimationMixer.d.ts.map +1 -0
  123. package/dist/src/animations/IAnimationMixer.js +2 -0
  124. package/dist/src/animations/IAnimationMixer.js.map +1 -0
  125. package/dist/src/media/IMediaLoader.d.ts +31 -0
  126. package/dist/src/media/IMediaLoader.d.ts.map +1 -0
  127. package/dist/src/media/IMediaLoader.js +2 -0
  128. package/dist/src/media/IMediaLoader.js.map +1 -0
  129. package/dist/src/media/MediaManager.d.ts +17 -0
  130. package/dist/src/media/MediaManager.d.ts.map +1 -0
  131. package/dist/src/media/MediaManager.js +19 -0
  132. package/dist/src/media/MediaManager.js.map +1 -0
  133. package/dist/src/media/PFile.d.ts +13 -0
  134. package/dist/src/media/PFile.d.ts.map +1 -0
  135. package/dist/src/media/PFile.js +28 -0
  136. package/dist/src/media/PFile.js.map +1 -0
  137. package/dist/src/pcomponents/BaseBackground.d.ts +27 -0
  138. package/dist/src/pcomponents/BaseBackground.d.ts.map +1 -0
  139. package/dist/src/pcomponents/BaseBackground.js +21 -0
  140. package/dist/src/pcomponents/BaseBackground.js.map +1 -0
  141. package/dist/src/pcomponents/BaseMaterial.d.ts +45 -0
  142. package/dist/src/pcomponents/BaseMaterial.d.ts.map +1 -0
  143. package/dist/src/pcomponents/BaseMaterial.js +47 -0
  144. package/dist/src/pcomponents/BaseMaterial.js.map +1 -0
  145. package/dist/src/pcomponents/PAnimator.d.ts +37 -0
  146. package/dist/src/pcomponents/PAnimator.d.ts.map +1 -0
  147. package/dist/src/pcomponents/PAnimator.js +43 -0
  148. package/dist/src/pcomponents/PAnimator.js.map +1 -0
  149. package/dist/src/pcomponents/PBasicMaterial.d.ts +23 -0
  150. package/dist/src/pcomponents/PBasicMaterial.d.ts.map +1 -0
  151. package/dist/src/pcomponents/PBasicMaterial.js +38 -0
  152. package/dist/src/pcomponents/PBasicMaterial.js.map +1 -0
  153. package/dist/src/pcomponents/PCallAction.d.ts +19 -0
  154. package/dist/src/pcomponents/PCallAction.d.ts.map +1 -0
  155. package/dist/src/pcomponents/PCallAction.js +25 -0
  156. package/dist/src/pcomponents/PCallAction.js.map +1 -0
  157. package/dist/src/pcomponents/PCallActions.d.ts +24 -0
  158. package/dist/src/pcomponents/PCallActions.d.ts.map +1 -0
  159. package/dist/src/pcomponents/PCallActions.js +38 -0
  160. package/dist/src/pcomponents/PCallActions.js.map +1 -0
  161. package/dist/src/pcomponents/PCameraPosition.d.ts +29 -0
  162. package/dist/src/pcomponents/PCameraPosition.d.ts.map +1 -0
  163. package/dist/src/pcomponents/PCameraPosition.js +76 -0
  164. package/dist/src/pcomponents/PCameraPosition.js.map +1 -0
  165. package/dist/src/pcomponents/PCameraTarget.d.ts +29 -0
  166. package/dist/src/pcomponents/PCameraTarget.d.ts.map +1 -0
  167. package/dist/src/pcomponents/PCameraTarget.js +77 -0
  168. package/dist/src/pcomponents/PCameraTarget.js.map +1 -0
  169. package/dist/src/pcomponents/PCollider.d.ts +39 -0
  170. package/dist/src/pcomponents/PCollider.d.ts.map +1 -0
  171. package/dist/src/pcomponents/PCollider.js +56 -0
  172. package/dist/src/pcomponents/PCollider.js.map +1 -0
  173. package/dist/src/pcomponents/PCompareBoolean.d.ts +23 -0
  174. package/dist/src/pcomponents/PCompareBoolean.d.ts.map +1 -0
  175. package/dist/src/pcomponents/PCompareBoolean.js +39 -0
  176. package/dist/src/pcomponents/PCompareBoolean.js.map +1 -0
  177. package/dist/src/pcomponents/PCompareNumber.d.ts +25 -0
  178. package/dist/src/pcomponents/PCompareNumber.d.ts.map +1 -0
  179. package/dist/src/pcomponents/PCompareNumber.js +45 -0
  180. package/dist/src/pcomponents/PCompareNumber.js.map +1 -0
  181. package/dist/src/pcomponents/PCompareString.d.ts +25 -0
  182. package/dist/src/pcomponents/PCompareString.d.ts.map +1 -0
  183. package/dist/src/pcomponents/PCompareString.js +43 -0
  184. package/dist/src/pcomponents/PCompareString.js.map +1 -0
  185. package/dist/src/pcomponents/PCompareVariable.d.ts +28 -0
  186. package/dist/src/pcomponents/PCompareVariable.d.ts.map +1 -0
  187. package/dist/src/pcomponents/PCompareVariable.js +51 -0
  188. package/dist/src/pcomponents/PCompareVariable.js.map +1 -0
  189. package/dist/src/pcomponents/PControllerInput.d.ts +30 -0
  190. package/dist/src/pcomponents/PControllerInput.d.ts.map +1 -0
  191. package/dist/src/pcomponents/PControllerInput.js +42 -0
  192. package/dist/src/pcomponents/PControllerInput.js.map +1 -0
  193. package/dist/src/pcomponents/PCubeGeometry.d.ts +18 -0
  194. package/dist/src/pcomponents/PCubeGeometry.d.ts.map +1 -0
  195. package/dist/src/pcomponents/PCubeGeometry.js +22 -0
  196. package/dist/src/pcomponents/PCubeGeometry.js.map +1 -0
  197. package/dist/src/pcomponents/PDebug.d.ts +21 -0
  198. package/dist/src/pcomponents/PDebug.d.ts.map +1 -0
  199. package/dist/src/pcomponents/PDebug.js +31 -0
  200. package/dist/src/pcomponents/PDebug.js.map +1 -0
  201. package/dist/src/pcomponents/PEnvironment.d.ts +28 -0
  202. package/dist/src/pcomponents/PEnvironment.d.ts.map +1 -0
  203. package/dist/src/pcomponents/PEnvironment.js +44 -0
  204. package/dist/src/pcomponents/PEnvironment.js.map +1 -0
  205. package/dist/src/pcomponents/PFadeAnimation.d.ts +30 -0
  206. package/dist/src/pcomponents/PFadeAnimation.d.ts.map +1 -0
  207. package/dist/src/pcomponents/PFadeAnimation.js +94 -0
  208. package/dist/src/pcomponents/PFadeAnimation.js.map +1 -0
  209. package/dist/src/pcomponents/PHud.d.ts +12 -0
  210. package/dist/src/pcomponents/PHud.d.ts.map +1 -0
  211. package/dist/src/pcomponents/PHud.js +12 -0
  212. package/dist/src/pcomponents/PHud.js.map +1 -0
  213. package/dist/src/pcomponents/PImageBackground.d.ts +13 -0
  214. package/dist/src/pcomponents/PImageBackground.d.ts.map +1 -0
  215. package/dist/src/pcomponents/PImageBackground.js +18 -0
  216. package/dist/src/pcomponents/PImageBackground.js.map +1 -0
  217. package/dist/src/pcomponents/PImageCache.d.ts +22 -0
  218. package/dist/src/pcomponents/PImageCache.d.ts.map +1 -0
  219. package/dist/src/pcomponents/PImageCache.js +69 -0
  220. package/dist/src/pcomponents/PImageCache.js.map +1 -0
  221. package/dist/src/pcomponents/PImageDetector.d.ts +28 -0
  222. package/dist/src/pcomponents/PImageDetector.d.ts.map +1 -0
  223. package/dist/src/pcomponents/PImageDetector.js +38 -0
  224. package/dist/src/pcomponents/PImageDetector.js.map +1 -0
  225. package/dist/src/pcomponents/PLight.d.ts +15 -0
  226. package/dist/src/pcomponents/PLight.d.ts.map +1 -0
  227. package/dist/src/pcomponents/PLight.js +18 -0
  228. package/dist/src/pcomponents/PLight.js.map +1 -0
  229. package/dist/src/pcomponents/PLightDirectional.d.ts +19 -0
  230. package/dist/src/pcomponents/PLightDirectional.d.ts.map +1 -0
  231. package/dist/src/pcomponents/PLightDirectional.js +24 -0
  232. package/dist/src/pcomponents/PLightDirectional.js.map +1 -0
  233. package/dist/src/pcomponents/PMaskedMaterial.d.ts +20 -0
  234. package/dist/src/pcomponents/PMaskedMaterial.d.ts.map +1 -0
  235. package/dist/src/pcomponents/PMaskedMaterial.js +35 -0
  236. package/dist/src/pcomponents/PMaskedMaterial.js.map +1 -0
  237. package/dist/src/pcomponents/PModelGLTF.d.ts +33 -0
  238. package/dist/src/pcomponents/PModelGLTF.d.ts.map +1 -0
  239. package/dist/src/pcomponents/PModelGLTF.js +53 -0
  240. package/dist/src/pcomponents/PModelGLTF.js.map +1 -0
  241. package/dist/src/pcomponents/PMoveAnimation.d.ts +22 -0
  242. package/dist/src/pcomponents/PMoveAnimation.d.ts.map +1 -0
  243. package/dist/src/pcomponents/PMoveAnimation.js +44 -0
  244. package/dist/src/pcomponents/PMoveAnimation.js.map +1 -0
  245. package/dist/src/pcomponents/PMoveToAnimation.d.ts +26 -0
  246. package/dist/src/pcomponents/PMoveToAnimation.d.ts.map +1 -0
  247. package/dist/src/pcomponents/PMoveToAnimation.js +79 -0
  248. package/dist/src/pcomponents/PMoveToAnimation.js.map +1 -0
  249. package/dist/src/pcomponents/PPhysicalMaterial.d.ts +27 -0
  250. package/dist/src/pcomponents/PPhysicalMaterial.d.ts.map +1 -0
  251. package/dist/src/pcomponents/PPhysicalMaterial.js +41 -0
  252. package/dist/src/pcomponents/PPhysicalMaterial.js.map +1 -0
  253. package/dist/src/pcomponents/PPlaneDetector.d.ts +20 -0
  254. package/dist/src/pcomponents/PPlaneDetector.d.ts.map +1 -0
  255. package/dist/src/pcomponents/PPlaneDetector.js +26 -0
  256. package/dist/src/pcomponents/PPlaneDetector.js.map +1 -0
  257. package/dist/src/pcomponents/PPlaneGeometry.d.ts +20 -0
  258. package/dist/src/pcomponents/PPlaneGeometry.d.ts.map +1 -0
  259. package/dist/src/pcomponents/PPlaneGeometry.js +25 -0
  260. package/dist/src/pcomponents/PPlaneGeometry.js.map +1 -0
  261. package/dist/src/pcomponents/PProjectRoot.d.ts +38 -0
  262. package/dist/src/pcomponents/PProjectRoot.d.ts.map +1 -0
  263. package/dist/src/pcomponents/PProjectRoot.js +82 -0
  264. package/dist/src/pcomponents/PProjectRoot.js.map +1 -0
  265. package/dist/src/pcomponents/PRotateAnimation.d.ts +30 -0
  266. package/dist/src/pcomponents/PRotateAnimation.d.ts.map +1 -0
  267. package/dist/src/pcomponents/PRotateAnimation.js +72 -0
  268. package/dist/src/pcomponents/PRotateAnimation.js.map +1 -0
  269. package/dist/src/pcomponents/PScaleAnimation.d.ts +28 -0
  270. package/dist/src/pcomponents/PScaleAnimation.d.ts.map +1 -0
  271. package/dist/src/pcomponents/PScaleAnimation.js +75 -0
  272. package/dist/src/pcomponents/PScaleAnimation.js.map +1 -0
  273. package/dist/src/pcomponents/PSceneContainer.d.ts +22 -0
  274. package/dist/src/pcomponents/PSceneContainer.d.ts.map +1 -0
  275. package/dist/src/pcomponents/PSceneContainer.js +50 -0
  276. package/dist/src/pcomponents/PSceneContainer.js.map +1 -0
  277. package/dist/src/pcomponents/PSceneRoot.d.ts +16 -0
  278. package/dist/src/pcomponents/PSceneRoot.d.ts.map +1 -0
  279. package/dist/src/pcomponents/PSceneRoot.js +22 -0
  280. package/dist/src/pcomponents/PSceneRoot.js.map +1 -0
  281. package/dist/src/pcomponents/PSlider.d.ts +28 -0
  282. package/dist/src/pcomponents/PSlider.d.ts.map +1 -0
  283. package/dist/src/pcomponents/PSlider.js +37 -0
  284. package/dist/src/pcomponents/PSlider.js.map +1 -0
  285. package/dist/src/pcomponents/PSound.d.ts +34 -0
  286. package/dist/src/pcomponents/PSound.d.ts.map +1 -0
  287. package/dist/src/pcomponents/PSound.js +44 -0
  288. package/dist/src/pcomponents/PSound.js.map +1 -0
  289. package/dist/src/pcomponents/PSphereGeometry.d.ts +19 -0
  290. package/dist/src/pcomponents/PSphereGeometry.d.ts.map +1 -0
  291. package/dist/src/pcomponents/PSphereGeometry.js +24 -0
  292. package/dist/src/pcomponents/PSphereGeometry.js.map +1 -0
  293. package/dist/src/pcomponents/PSprite.d.ts +19 -0
  294. package/dist/src/pcomponents/PSprite.d.ts.map +1 -0
  295. package/dist/src/pcomponents/PSprite.js +26 -0
  296. package/dist/src/pcomponents/PSprite.js.map +1 -0
  297. package/dist/src/pcomponents/PSpriteAnimation.d.ts +25 -0
  298. package/dist/src/pcomponents/PSpriteAnimation.d.ts.map +1 -0
  299. package/dist/src/pcomponents/PSpriteAnimation.js +29 -0
  300. package/dist/src/pcomponents/PSpriteAnimation.js.map +1 -0
  301. package/dist/src/pcomponents/PText.d.ts +35 -0
  302. package/dist/src/pcomponents/PText.d.ts.map +1 -0
  303. package/dist/src/pcomponents/PText.js +48 -0
  304. package/dist/src/pcomponents/PText.js.map +1 -0
  305. package/dist/src/pcomponents/PTransform.d.ts +22 -0
  306. package/dist/src/pcomponents/PTransform.d.ts.map +1 -0
  307. package/dist/src/pcomponents/PTransform.js +37 -0
  308. package/dist/src/pcomponents/PTransform.js.map +1 -0
  309. package/dist/src/pcomponents/PVarList.d.ts +26 -0
  310. package/dist/src/pcomponents/PVarList.d.ts.map +1 -0
  311. package/dist/src/pcomponents/PVarList.js +52 -0
  312. package/dist/src/pcomponents/PVarList.js.map +1 -0
  313. package/dist/src/pcomponents/PVarReader.d.ts +19 -0
  314. package/dist/src/pcomponents/PVarReader.d.ts.map +1 -0
  315. package/dist/src/pcomponents/PVarReader.js +26 -0
  316. package/dist/src/pcomponents/PVarReader.js.map +1 -0
  317. package/dist/src/pcomponents/PVarWriter.d.ts +25 -0
  318. package/dist/src/pcomponents/PVarWriter.d.ts.map +1 -0
  319. package/dist/src/pcomponents/PVarWriter.js +46 -0
  320. package/dist/src/pcomponents/PVarWriter.js.map +1 -0
  321. package/dist/src/pcomponents/PVideoBackground.d.ts +36 -0
  322. package/dist/src/pcomponents/PVideoBackground.d.ts.map +1 -0
  323. package/dist/src/pcomponents/PVideoBackground.js +89 -0
  324. package/dist/src/pcomponents/PVideoBackground.js.map +1 -0
  325. package/dist/src/pcomponents/PVideoMaterial.d.ts +26 -0
  326. package/dist/src/pcomponents/PVideoMaterial.d.ts.map +1 -0
  327. package/dist/src/pcomponents/PVideoMaterial.js +40 -0
  328. package/dist/src/pcomponents/PVideoMaterial.js.map +1 -0
  329. package/dist/src/pcomponents/PVideoPlayer.d.ts +31 -0
  330. package/dist/src/pcomponents/PVideoPlayer.d.ts.map +1 -0
  331. package/dist/src/pcomponents/PVideoPlayer.js +70 -0
  332. package/dist/src/pcomponents/PVideoPlayer.js.map +1 -0
  333. package/dist/src/pcomponents/PVisibility.d.ts +33 -0
  334. package/dist/src/pcomponents/PVisibility.d.ts.map +1 -0
  335. package/dist/src/pcomponents/PVisibility.js +62 -0
  336. package/dist/src/pcomponents/PVisibility.js.map +1 -0
  337. package/dist/src/pcomponents/PXRTools.d.ts +32 -0
  338. package/dist/src/pcomponents/PXRTools.d.ts.map +1 -0
  339. package/dist/src/pcomponents/PXRTools.js +45 -0
  340. package/dist/src/pcomponents/PXRTools.js.map +1 -0
  341. package/dist/src/settings/Settings_Base.d.ts +7 -0
  342. package/dist/src/settings/Settings_Base.d.ts.map +1 -0
  343. package/dist/src/settings/Settings_Base.js +18 -0
  344. package/dist/src/settings/Settings_Base.js.map +1 -0
  345. package/dist/src/settings/Settings_Threejs.d.ts +9 -0
  346. package/dist/src/settings/Settings_Threejs.d.ts.map +1 -0
  347. package/dist/src/settings/Settings_Threejs.js +172 -0
  348. package/dist/src/settings/Settings_Threejs.js.map +1 -0
  349. package/package.json +23 -0
@@ -0,0 +1,43 @@
1
+ import PComponent from "../PComponent";
2
+ import { PInAction, POutAction } from "../PAction";
3
+ export default class PAnimator extends PComponent {
4
+ inevent_play;
5
+ inevent_stop;
6
+ outevent_onPlay;
7
+ outevent_onFinished;
8
+ outevent_onStopped;
9
+ clip;
10
+ segment;
11
+ from;
12
+ to;
13
+ loop;
14
+ constructor(dbComponent, node, context) {
15
+ super("PAnimator", "Animator", node, context);
16
+ this.inevent_play = node.registerInAction("Play", dbComponent.inevent_play, () => this.callback_onPlay());
17
+ this.inevent_stop = node.registerInAction("Stop", dbComponent.inevent_stop, () => this.callback_onStop());
18
+ this.outevent_onPlay = node.registerOutAction(dbComponent.outevent_onPlay);
19
+ this.outevent_onFinished = node.registerOutAction(dbComponent.outevent_onFinished);
20
+ this.outevent_onStopped = node.registerOutAction(dbComponent.outevent_onStopped);
21
+ this.from = dbComponent.from || 0;
22
+ this.to = dbComponent.to || 0;
23
+ this.loop = dbComponent.loop || 2200;
24
+ this.segment = dbComponent.segment;
25
+ this.clip = dbComponent.clip;
26
+ }
27
+ toDB() {
28
+ return {
29
+ ...super.toDB(),
30
+ inevent_play: PInAction.toDB(this.inevent_play),
31
+ inevent_stop: PInAction.toDB(this.inevent_stop),
32
+ outevent_onPlay: POutAction.toDB(this.outevent_onPlay),
33
+ outevent_onFinished: POutAction.toDB(this.outevent_onFinished),
34
+ outevent_onStopped: POutAction.toDB(this.outevent_onStopped),
35
+ clip: this.clip,
36
+ segment: this.segment,
37
+ from: this.from,
38
+ to: this.to,
39
+ loop: this.loop,
40
+ };
41
+ }
42
+ }
43
+ //# sourceMappingURL=PAnimator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PAnimator.js","sourceRoot":"","sources":["../../../src/pcomponents/PAnimator.ts"],"names":[],"mappings":"AAAA,OAAO,UAA2B,MAAM,eAAe,CAAC;AACxD,OAAO,EAAyB,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAoB1E,MAAM,CAAC,OAAO,OAAgB,SAAU,SAAQ,UAAU;IACxD,YAAY,CAAmB;IAC/B,YAAY,CAAmB;IAC/B,eAAe,CAAoB;IACnC,mBAAmB,CAAoB;IACvC,kBAAkB,CAAoB;IAEtC,IAAI,CAAS;IACb,OAAO,CAAU;IACjB,IAAI,CAAS;IACb,EAAE,CAAS;IACX,IAAI,CAAS;IAEb,YAAY,WAAuB,EAAE,IAAW,EAAE,OAAoB;QACpE,KAAK,CAAC,WAAW,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAE9C,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,gBAAgB,CACvC,MAAM,EACN,WAAW,CAAC,YAAY,EACxB,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,EAAE,CAC7B,CAAC;QACF,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,gBAAgB,CACvC,MAAM,EACN,WAAW,CAAC,YAAY,EACxB,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,EAAE,CAC7B,CAAC;QAEF,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QAC3E,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,iBAAiB,CAC/C,WAAW,CAAC,mBAAmB,CAChC,CAAC;QACF,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,iBAAiB,CAC9C,WAAW,CAAC,kBAAkB,CAC/B,CAAC;QAEF,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,IAAI,CAAC,CAAC;QAClC,IAAI,CAAC,EAAE,GAAG,WAAW,CAAC,EAAE,IAAI,CAAC,CAAC;QAE9B,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,IAAI,IAAI,CAAC;QAErC,IAAI,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;IAC/B,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,YAAY,EAAE,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;YAC/C,YAAY,EAAE,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;YAC/C,eAAe,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC;YACtD,mBAAmB,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC;YAC9D,kBAAkB,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC;YAC5D,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC;IACJ,CAAC;CAQF"}
@@ -0,0 +1,23 @@
1
+ import BaseMaterial, { DBBaseMaterial } from "./BaseMaterial";
2
+ import PVector2, { IVector2 } from "../PVector2";
3
+ import { IInAction, PInAction } from "../PAction";
4
+ import GameContext from "../GameContext";
5
+ import PNode from "../PNode";
6
+ interface DBBasicMaterial extends DBBaseMaterial {
7
+ inevent_setOpacity: IInAction | null;
8
+ repeat: IVector2;
9
+ offset: IVector2;
10
+ }
11
+ export type { DBBasicMaterial };
12
+ export default abstract class PBasicMaterial extends BaseMaterial {
13
+ inevent_setOpacity: PInAction | null;
14
+ repeat: PVector2;
15
+ offset: PVector2;
16
+ constructor(dbComponent: DBBasicMaterial, node: PNode, context: GameContext);
17
+ toDB(): DBBasicMaterial;
18
+ protected abstract callback_setOpacity(payloadValue: string | null): void;
19
+ protected abstract _dispose(unrender: boolean): void;
20
+ unrender(): void;
21
+ dispose(): void;
22
+ }
23
+ //# sourceMappingURL=PBasicMaterial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PBasicMaterial.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PBasicMaterial.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,EAAE,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,QAAQ,EAAE,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAG7B,UAAU,eAAgB,SAAQ,cAAc;IAC9C,kBAAkB,EAAE,SAAS,GAAG,IAAI,CAAC;IACrC,MAAM,EAAE,QAAQ,CAAC;IACjB,MAAM,EAAE,QAAQ,CAAC;CAClB;AAED,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,cAAe,SAAQ,YAAY;IAC/D,kBAAkB,EAAE,SAAS,GAAG,IAAI,CAAC;IAErC,MAAM,EAAE,QAAQ,CAAC;IACjB,MAAM,EAAE,QAAQ,CAAC;gBAEL,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAmB3E,IAAI,IAAI,eAAe;IASvB,SAAS,CAAC,QAAQ,CAAC,mBAAmB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAMzE,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAEpD,QAAQ;IAMR,OAAO;CAIR"}
@@ -0,0 +1,38 @@
1
+ import BaseMaterial from "./BaseMaterial";
2
+ import PVector2 from "../PVector2";
3
+ import { PInAction } from "../PAction";
4
+ import { DataType } from "../PEnums";
5
+ export default class PBasicMaterial extends BaseMaterial {
6
+ inevent_setOpacity;
7
+ repeat;
8
+ offset;
9
+ constructor(dbComponent, node, context) {
10
+ super("PBasicMaterial", "Basic Material", dbComponent, node, context);
11
+ this.inevent_setOpacity = node.registerInAction("Set Opacity", dbComponent.inevent_setOpacity, (payloadValue) => this.callback_setOpacity(payloadValue), DataType.Number);
12
+ this.repeat = new PVector2(dbComponent.repeat);
13
+ this.offset = new PVector2(dbComponent.offset || { x: 0, y: 0 });
14
+ // Support image
15
+ this.isImageMaterial = true;
16
+ // Support video
17
+ this.isVideoMaterial = true;
18
+ }
19
+ toDB() {
20
+ return {
21
+ ...super.toDB(),
22
+ inevent_setOpacity: PInAction.toDB(this.inevent_setOpacity),
23
+ repeat: this.repeat,
24
+ offset: this.offset,
25
+ };
26
+ }
27
+ unrender() {
28
+ this._dispose(true);
29
+ // Unregister as material for PNode
30
+ this.node.material = null;
31
+ }
32
+ dispose() {
33
+ // Release files
34
+ if (this.file_texture)
35
+ this.context.releaseFile(this.file_texture);
36
+ }
37
+ }
38
+ //# sourceMappingURL=PBasicMaterial.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PBasicMaterial.js","sourceRoot":"","sources":["../../../src/pcomponents/PBasicMaterial.ts"],"names":[],"mappings":"AAAA,OAAO,YAAgC,MAAM,gBAAgB,CAAC;AAC9D,OAAO,QAAsB,MAAM,aAAa,CAAC;AACjD,OAAO,EAAa,SAAS,EAAE,MAAM,YAAY,CAAC;AAGlD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAUrC,MAA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AAO,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACrE,CAAC;CACF"}
@@ -0,0 +1,19 @@
1
+ import { IInAction, IOutAction, PInAction, POutAction } from "../PAction";
2
+ import PComponent, { DBComponent } from "../PComponent";
3
+ import GameContext from "../GameContext";
4
+ import PNode from "../PNode";
5
+ interface DBCallAction extends DBComponent {
6
+ inevent_on: IInAction | null;
7
+ outevent_do: IOutAction | null;
8
+ }
9
+ export { type DBCallAction };
10
+ export default class PCallAction extends PComponent {
11
+ inevent_on: PInAction | null;
12
+ outevent_do: POutAction | null;
13
+ constructor(dbComponent: DBCallAction, node: PNode, context: GameContext);
14
+ toDB(): DBCallAction;
15
+ onTrigger: (_payloadValue: string | null) => void;
16
+ render(): void;
17
+ unrender(): void;
18
+ }
19
+ //# sourceMappingURL=PCallAction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PCallAction.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PCallAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAE7B,UAAU,YAAa,SAAQ,WAAW;IACxC,UAAU,EAAE,SAAS,GAAG,IAAI,CAAC;IAC7B,WAAW,EAAE,UAAU,GAAG,IAAI,CAAC;CAChC;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,CAAC;AAE7B,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,UAAU;IACjD,UAAU,EAAE,SAAS,GAAG,IAAI,CAAC;IAC7B,WAAW,EAAE,UAAU,GAAG,IAAI,CAAC;gBAEnB,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAYxE,IAAI,IAAI,YAAY;IAQpB,SAAS,GAAI,eAAe,MAAM,GAAG,IAAI,UAEvC;IAEF,MAAM,IAAI,IAAI;IAEd,QAAQ,IAAI,IAAI;CACjB"}
@@ -0,0 +1,25 @@
1
+ import { PInAction, POutAction } from "../PAction";
2
+ import PComponent from "../PComponent";
3
+ export default class PCallAction extends PComponent {
4
+ inevent_on;
5
+ outevent_do;
6
+ constructor(dbComponent, node, context) {
7
+ super("PCallAction", "Single Action", node, context);
8
+ this.abstract = true;
9
+ this.inevent_on = node.registerInAction("Trigger", dbComponent.inevent_on, this.onTrigger);
10
+ this.outevent_do = node.registerOutAction(dbComponent.outevent_do);
11
+ }
12
+ toDB() {
13
+ return {
14
+ ...super.toDB(),
15
+ outevent_do: POutAction.toDB(this.outevent_do),
16
+ inevent_on: PInAction.toDB(this.inevent_on),
17
+ };
18
+ }
19
+ onTrigger = (_payloadValue) => {
20
+ this.outevent_do?.emit(null, this);
21
+ };
22
+ render() { }
23
+ unrender() { }
24
+ }
25
+ //# sourceMappingURL=PCallAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PCallAction.js","sourceRoot":"","sources":["../../../src/pcomponents/PCallAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,UAA2B,MAAM,eAAe,CAAC;AAWxD,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,UAAU;IACjD,UAAU,CAAmB;IAC7B,WAAW,CAAoB;IAE/B,YAAY,WAAyB,EAAE,IAAW,EAAE,OAAoB;QACtE,KAAK,CAAC,aAAa,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QACrD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QAErB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,gBAAgB,CACrC,SAAS,EACT,WAAW,CAAC,UAAU,EACtB,IAAI,CAAC,SAAS,CACf,CAAC;QACF,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;IACrE,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,WAAW,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC;YAC9C,UAAU,EAAE,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC;SAC5C,CAAC;IACJ,CAAC;IAED,SAAS,GAAG,CAAC,aAA4B,EAAE,EAAE;QAC3C,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACrC,CAAC,CAAC;IAEF,MAAM,KAAU,CAAC;IAEjB,QAAQ,KAAU,CAAC;CACpB"}
@@ -0,0 +1,24 @@
1
+ import { IInAction, IOutAction, PInAction, POutAction } from "../PAction";
2
+ import { DataType } from "../PEnums";
3
+ import PComponent, { DBComponent } from "../PComponent";
4
+ import GameContext from "../GameContext";
5
+ import PNode from "../PNode";
6
+ interface DBCallActions extends DBComponent {
7
+ size: number;
8
+ dataType: DataType;
9
+ inevent_on: IInAction | null;
10
+ outevents_do: (IOutAction | null)[];
11
+ }
12
+ export { type DBCallActions };
13
+ export default class PCallActions extends PComponent {
14
+ size: number;
15
+ dataType: DataType;
16
+ inevent_on: PInAction | null;
17
+ outevents_do: (POutAction | null)[];
18
+ constructor(dbComponent: DBCallActions, node: PNode, context: GameContext);
19
+ toDB(): DBCallActions;
20
+ onTrigger: (_payloadValue: string | null) => void;
21
+ render(): void;
22
+ unrender(): void;
23
+ }
24
+ //# sourceMappingURL=PCallActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PCallActions.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PCallActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAE7B,UAAU,aAAc,SAAQ,WAAW;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,SAAS,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,CAAC,UAAU,GAAG,IAAI,CAAC,EAAE,CAAC;CACrC;AAED,OAAO,EAAE,KAAK,aAAa,EAAE,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,UAAU;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,SAAS,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,CAAC,UAAU,GAAG,IAAI,CAAC,EAAE,CAAC;gBAExB,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAqBzE,IAAI,IAAI,aAAa;IAUrB,SAAS,GAAI,eAAe,MAAM,GAAG,IAAI,UAIvC;IAEF,MAAM,IAAI,IAAI;IAEd,QAAQ,IAAI,IAAI;CACjB"}
@@ -0,0 +1,38 @@
1
+ import { PInAction, POutAction } from "../PAction";
2
+ import { DataType } from "../PEnums";
3
+ import PComponent from "../PComponent";
4
+ export default class PCallActions extends PComponent {
5
+ size;
6
+ dataType;
7
+ inevent_on;
8
+ outevents_do;
9
+ constructor(dbComponent, node, context) {
10
+ super("PCallActions", "Multiple Actions", node, context);
11
+ this.abstract = true;
12
+ this.size = dbComponent.size || 1;
13
+ this.dataType = dbComponent.dataType || DataType.None;
14
+ this.inevent_on = node.registerInAction("Trigger", dbComponent.inevent_on, this.onTrigger, this.dataType);
15
+ this.outevents_do = new Array(this.size);
16
+ const inArray = dbComponent.outevents_do || new Array(this.size);
17
+ for (let i = 0; i < this.size; i++) {
18
+ this.outevents_do[i] = node.registerOutAction(inArray[i], this.dataType);
19
+ }
20
+ }
21
+ toDB() {
22
+ return {
23
+ ...super.toDB(),
24
+ size: this.size,
25
+ dataType: this.dataType,
26
+ outevents_do: this.outevents_do.map((e) => POutAction.toDB(e)),
27
+ inevent_on: PInAction.toDB(this.inevent_on),
28
+ };
29
+ }
30
+ onTrigger = (_payloadValue) => {
31
+ for (const e of this.outevents_do) {
32
+ e?.emit(_payloadValue, this);
33
+ }
34
+ };
35
+ render() { }
36
+ unrender() { }
37
+ }
38
+ //# sourceMappingURL=PCallActions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PCallActions.js","sourceRoot":"","sources":["../../../src/pcomponents/PCallActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,UAA2B,MAAM,eAAe,CAAC;AAaxD,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,UAAU;IAClD,IAAI,CAAS;IACb,QAAQ,CAAW;IACnB,UAAU,CAAmB;IAC7B,YAAY,CAAwB;IAEpC,YAAY,WAA0B,EAAE,IAAW,EAAE,OAAoB;QACvE,KAAK,CAAC,cAAc,EAAE,kBAAkB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QACzD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QAErB,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,IAAI,CAAC,CAAC;QAClC,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC,QAAQ,IAAI,QAAQ,CAAC,IAAI,CAAC;QAEtD,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,gBAAgB,CACrC,SAAS,EACT,WAAW,CAAC,UAAU,EACtB,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,QAAQ,CACd,CAAC;QAEF,IAAI,CAAC,YAAY,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,MAAM,OAAO,GAAG,WAAW,CAAC,YAAY,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC;YACnC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC3E,CAAC;IACH,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAC9D,UAAU,EAAE,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC;SAC5C,CAAC;IACJ,CAAC;IAED,SAAS,GAAG,CAAC,aAA4B,EAAE,EAAE;QAC3C,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;YAClC,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,KAAU,CAAC;IAEjB,QAAQ,KAAU,CAAC;CACpB"}
@@ -0,0 +1,29 @@
1
+ import GameContext from "../GameContext";
2
+ import PNode from "../PNode";
3
+ import { IInAction, IOutAction, PInAction, POutAction } from "../PAction";
4
+ import PComponent, { DBComponent } from "../PComponent";
5
+ import { Tween } from "@tweenjs/tween.js";
6
+ interface DBCameraPosition extends DBComponent {
7
+ inevent_jump: IInAction | null;
8
+ inevent_animate: IInAction | null;
9
+ outevent_onAnimated: IOutAction | null;
10
+ outevent_onJumped: IOutAction | null;
11
+ duration: number;
12
+ }
13
+ export type { DBCameraPosition };
14
+ export default class PCameraPosition extends PComponent {
15
+ inevent_jump: PInAction | null;
16
+ inevent_animate: PInAction | null;
17
+ outevent_onAnimated: POutAction | null;
18
+ outevent_onJumped: POutAction | null;
19
+ duration: number;
20
+ protected _tween: Tween<any> | null;
21
+ constructor(dbComponent: DBCameraPosition, node: PNode, context: GameContext);
22
+ toDB(): DBCameraPosition;
23
+ render(): void;
24
+ unrender(): void;
25
+ callback_onJump: () => void;
26
+ callback_onAnimate: () => void;
27
+ onComplete: () => void;
28
+ }
29
+ //# sourceMappingURL=PCameraPosition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PCameraPosition.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PCameraPosition.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,UAAU,gBAAiB,SAAQ,WAAW;IAC5C,YAAY,EAAE,SAAS,GAAG,IAAI,CAAC;IAC/B,eAAe,EAAE,SAAS,GAAG,IAAI,CAAC;IAClC,mBAAmB,EAAE,UAAU,GAAG,IAAI,CAAC;IACvC,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;IACrC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAEjC,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU;IACrD,YAAY,EAAE,SAAS,GAAG,IAAI,CAAC;IAC/B,eAAe,EAAE,SAAS,GAAG,IAAI,CAAC;IAElC,mBAAmB,EAAE,UAAU,GAAG,IAAI,CAAC;IACvC,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;IAErC,QAAQ,EAAE,MAAM,CAAC;IAEjB,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAQ;gBAGzC,WAAW,EAAE,gBAAgB,EAC7B,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,WAAW;IAwBtB,IAAI,IAAI,gBAAgB;IAWxB,MAAM,IAAI,IAAI;IAEd,QAAQ;IAOR,eAAe,aAMb;IAEF,kBAAkB,aAiChB;IAEF,UAAU,aAGR;CACH"}
@@ -0,0 +1,76 @@
1
+ import { PInAction, POutAction } from "../PAction";
2
+ import PComponent from "../PComponent";
3
+ import { Tween } from "@tweenjs/tween.js";
4
+ import PVector3 from "../PVector3";
5
+ export default class PCameraPosition extends PComponent {
6
+ inevent_jump;
7
+ inevent_animate;
8
+ outevent_onAnimated;
9
+ outevent_onJumped;
10
+ duration;
11
+ _tween = null;
12
+ constructor(dbComponent, node, context) {
13
+ super("PCameraPosition", "Camera Position", node, context);
14
+ this.inevent_jump = node.registerInAction("Jump", dbComponent.inevent_jump, this.callback_onJump);
15
+ this.inevent_animate = node.registerInAction("Animate", dbComponent.inevent_animate, this.callback_onAnimate);
16
+ this.outevent_onAnimated = node.registerOutAction(dbComponent.outevent_onAnimated);
17
+ this.outevent_onJumped = node.registerOutAction(dbComponent.outevent_onJumped);
18
+ this.duration = dbComponent.duration;
19
+ }
20
+ toDB() {
21
+ return {
22
+ ...super.toDB(),
23
+ inevent_jump: PInAction.toDB(this.inevent_jump),
24
+ inevent_animate: PInAction.toDB(this.inevent_animate),
25
+ outevent_onAnimated: POutAction.toDB(this.outevent_onAnimated),
26
+ outevent_onJumped: POutAction.toDB(this.outevent_onJumped),
27
+ duration: this.duration,
28
+ };
29
+ }
30
+ render() { }
31
+ unrender() {
32
+ if (this._tween !== null) {
33
+ this._tween.stop();
34
+ this._tween = null;
35
+ }
36
+ }
37
+ callback_onJump = () => {
38
+ const transform = this.node.findComponent("PTransform");
39
+ const controls = this.context.getCameraControls();
40
+ controls?.setPosition(transform.position);
41
+ controls?.lookAtTarget();
42
+ this.outevent_onJumped?.emit(null, this);
43
+ };
44
+ callback_onAnimate = () => {
45
+ if (this._tween !== null) {
46
+ this._tween.stop();
47
+ }
48
+ // Turn off controls
49
+ this.context.disableInput();
50
+ const camera = this.context.getCameraNode();
51
+ const controls = this.context.getCameraControls();
52
+ const from = {
53
+ position: new PVector3(camera.position),
54
+ };
55
+ const position = this.context
56
+ .getNodeRenderer()
57
+ .getPositionVector(this.node);
58
+ const to = {
59
+ position: new PVector3(position),
60
+ };
61
+ this._tween = new Tween(from)
62
+ .to(to, this.duration)
63
+ .onUpdate((value) => {
64
+ controls?.setPosition(value.position);
65
+ controls?.lookAtTarget();
66
+ })
67
+ .onComplete(this.onComplete)
68
+ .start();
69
+ this.context.addTween(this._tween);
70
+ };
71
+ onComplete = () => {
72
+ this.context.enableInput();
73
+ this.outevent_onAnimated?.emit(null, this);
74
+ };
75
+ }
76
+ //# sourceMappingURL=PCameraPosition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PCameraPosition.js","sourceRoot":"","sources":["../../../src/pcomponents/PCameraPosition.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyB,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,UAA2B,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,QAAQ,MAAM,aAAa,CAAC;AAYnC,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU;IACrD,YAAY,CAAmB;IAC/B,eAAe,CAAmB;IAElC,mBAAmB,CAAoB;IACvC,iBAAiB,CAAoB;IAErC,QAAQ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,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YACtC,QAAQ,EAAE,YAAY,EAAE,CAAC;QAC3B,CAAC,CAAC;aACD,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC;aAC3B,KAAK,EAAE,CAAC;QAEX,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC,CAAC;IAEF,UAAU,GAAG,GAAG,EAAE;QAChB,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;QAC3B,IAAI,CAAC,mBAAmB,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC7C,CAAC,CAAC;CACH"}
@@ -0,0 +1,29 @@
1
+ import GameContext from "../GameContext";
2
+ import PNode from "../PNode";
3
+ import { type IInAction, type IOutAction, PInAction, POutAction } from "../PAction";
4
+ import PComponent, { DBComponent } from "../PComponent";
5
+ import { Tween } from "@tweenjs/tween.js";
6
+ interface DBCameraTarget extends DBComponent {
7
+ inevent_jump: IInAction | null;
8
+ inevent_animate: IInAction | null;
9
+ outevent_onAnimated: IOutAction | null;
10
+ outevent_onJumped: IOutAction | null;
11
+ duration: number;
12
+ }
13
+ export type { DBCameraTarget };
14
+ export default class PCameraTarget extends PComponent {
15
+ inevent_jump: PInAction | null;
16
+ inevent_animate: PInAction | null;
17
+ outevent_onAnimated: POutAction | null;
18
+ outevent_onJumped: POutAction | null;
19
+ duration: number;
20
+ protected _tween: Tween<any> | null;
21
+ constructor(dbComponent: DBCameraTarget, node: PNode, context: GameContext);
22
+ toDB(): DBCameraTarget;
23
+ render(): void;
24
+ unrender(): void;
25
+ callback_onJump: () => void;
26
+ callback_onAnimate: () => void;
27
+ onComplete: () => void;
28
+ }
29
+ //# sourceMappingURL=PCameraTarget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PCameraTarget.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PCameraTarget.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,EACL,KAAK,SAAS,EACd,KAAK,UAAU,EACf,SAAS,EACT,UAAU,EACX,MAAM,YAAY,CAAC;AACpB,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,UAAU,cAAe,SAAQ,WAAW;IAC1C,YAAY,EAAE,SAAS,GAAG,IAAI,CAAC;IAC/B,eAAe,EAAE,SAAS,GAAG,IAAI,CAAC;IAElC,mBAAmB,EAAE,UAAU,GAAG,IAAI,CAAC;IACvC,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;IAErC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU;IACnD,YAAY,EAAE,SAAS,GAAG,IAAI,CAAC;IAC/B,eAAe,EAAE,SAAS,GAAG,IAAI,CAAC;IAElC,mBAAmB,EAAE,UAAU,GAAG,IAAI,CAAC;IACvC,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;IAErC,QAAQ,EAAE,MAAM,CAAC;IAEjB,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAQ;gBAE/B,WAAW,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAuB1E,IAAI,IAAI,cAAc;IAWtB,MAAM,IAAI,IAAI;IAEd,QAAQ;IAOR,eAAe,aAUb;IAEF,kBAAkB,aAgChB;IAEF,UAAU,aAGR;CACH"}
@@ -0,0 +1,77 @@
1
+ import { PInAction, POutAction, } from "../PAction";
2
+ import PComponent from "../PComponent";
3
+ import { Tween } from "@tweenjs/tween.js";
4
+ import PVector3 from "../PVector3";
5
+ export default class PCameraTarget extends PComponent {
6
+ inevent_jump;
7
+ inevent_animate;
8
+ outevent_onAnimated;
9
+ outevent_onJumped;
10
+ duration;
11
+ _tween = null;
12
+ constructor(dbComponent, node, context) {
13
+ super("PCameraTarget", "Camera Target", node, context);
14
+ this.inevent_jump = node.registerInAction("Jump", dbComponent.inevent_jump, this.callback_onJump);
15
+ this.inevent_animate = node.registerInAction("Animate", dbComponent.inevent_animate, this.callback_onAnimate);
16
+ this.outevent_onAnimated = node.registerOutAction(dbComponent.outevent_onAnimated);
17
+ this.outevent_onJumped = node.registerOutAction(dbComponent.outevent_onJumped);
18
+ this.duration = dbComponent.duration;
19
+ }
20
+ toDB() {
21
+ return {
22
+ ...super.toDB(),
23
+ inevent_jump: PInAction.toDB(this.inevent_jump),
24
+ inevent_animate: PInAction.toDB(this.inevent_animate),
25
+ outevent_onAnimated: POutAction.toDB(this.outevent_onAnimated),
26
+ outevent_onJumped: POutAction.toDB(this.outevent_onJumped),
27
+ duration: this.duration,
28
+ };
29
+ }
30
+ render() { }
31
+ unrender() {
32
+ if (this._tween !== null) {
33
+ this._tween.stop();
34
+ this._tween = null;
35
+ }
36
+ }
37
+ callback_onJump = () => {
38
+ const controls = this.context.getCameraControls();
39
+ const worldPosition = this.context
40
+ .getNodeRenderer()
41
+ .getWorldPosition(this.node);
42
+ controls?.setTarget(worldPosition);
43
+ controls?.lookAtTarget();
44
+ this.outevent_onJumped?.emit(null, this);
45
+ };
46
+ callback_onAnimate = () => {
47
+ if (this._tween !== null) {
48
+ this._tween.stop();
49
+ }
50
+ // Turn off controls
51
+ this.context.disableInput();
52
+ const controls = this.context.getCameraControls();
53
+ const from = {
54
+ position: new PVector3(controls.getTarget()),
55
+ };
56
+ const worldPosition = this.context
57
+ .getNodeRenderer()
58
+ .getWorldPosition(this.node);
59
+ const to = {
60
+ position: new PVector3(worldPosition),
61
+ };
62
+ this._tween = new Tween(from)
63
+ .to(to, this.duration)
64
+ .onUpdate((value) => {
65
+ controls.setTarget(value.position);
66
+ controls.lookAtTarget();
67
+ })
68
+ .onComplete(this.onComplete)
69
+ .start();
70
+ this.context.addTween(this._tween);
71
+ };
72
+ onComplete = () => {
73
+ this.context.enableInput();
74
+ this.outevent_onAnimated?.emit(null, this);
75
+ };
76
+ }
77
+ //# sourceMappingURL=PCameraTarget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PCameraTarget.js","sourceRoot":"","sources":["../../../src/pcomponents/PCameraTarget.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,SAAS,EACT,UAAU,GACX,MAAM,YAAY,CAAC;AACpB,OAAO,UAA2B,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,QAAQ,MAAM,aAAa,CAAC;AAcnC,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU;IACnD,YAAY,CAAmB;IAC/B,eAAe,CAAmB;IAElC,mBAAmB,CAAoB;IACvC,iBAAiB,CAAoB;IAErC,QAAQ,CAAS;IAEP,MAAM,GAAsB,IAAI,CAAC;IAE3C,YAAY,WAA2B,EAAE,IAAW,EAAE,OAAoB;QACxE,KAAK,CAAC,eAAe,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QACvD,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,gBAAgB,CACvC,MAAM,EACN,WAAW,CAAC,YAAY,EACxB,IAAI,CAAC,eAAe,CACrB,CAAC;QACF,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,gBAAgB,CAC1C,SAAS,EACT,WAAW,CAAC,eAAe,EAC3B,IAAI,CAAC,kBAAkB,CACxB,CAAC;QAEF,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,iBAAiB,CAC/C,WAAW,CAAC,mBAAmB,CAChC,CAAC;QACF,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAC7C,WAAW,CAAC,iBAAiB,CAC9B,CAAC;QAEF,IAAI,CAAC,QAAQ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,EAAE,CAAC;QAE5B,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAG,CAAC;QAEnD,MAAM,IAAI,GAAG;YACX,QAAQ,EAAE,IAAI,QAAQ,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC;SAC7C,CAAC;QAEF,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO;aAC/B,eAAe,EAAE;aACjB,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE/B,MAAM,EAAE,GAAG;YACT,QAAQ,EAAE,IAAI,QAAQ,CAAC,aAAa,CAAC;SACtC,CAAC;QAEF,IAAI,CAAC,MAAM,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC;aAC1B,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,QAAQ,CAAC;aACrB,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;YAClB,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YACnC,QAAQ,CAAC,YAAY,EAAE,CAAC;QAC1B,CAAC,CAAC;aACD,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC;aAC3B,KAAK,EAAE,CAAC;QAEX,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC,CAAC;IAEF,UAAU,GAAG,GAAG,EAAE;QAChB,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;QAC3B,IAAI,CAAC,mBAAmB,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC7C,CAAC,CAAC;CACH"}
@@ -0,0 +1,39 @@
1
+ import PComponent, { DBComponent } from "../PComponent";
2
+ import PNode from "../PNode";
3
+ import PVector3, { IVector3 } from "../PVector3";
4
+ import { IOutAction, POutAction } from "../PAction";
5
+ import { IColliderComponent, IColliderObject } from "../PTypes";
6
+ import GameContext from "../GameContext";
7
+ interface DBCollider extends DBComponent {
8
+ sphere: boolean;
9
+ box: boolean;
10
+ sphere_radius: number;
11
+ box_size: IVector3;
12
+ autoSize: boolean;
13
+ editor_showColliders: boolean;
14
+ outevent_onHoverEnter: IOutAction | null;
15
+ outevent_onHoverExit: IOutAction | null;
16
+ outevent_onClick: IOutAction | null;
17
+ }
18
+ export { type DBCollider };
19
+ export default abstract class PCollider extends PComponent implements IColliderComponent {
20
+ sphere: boolean;
21
+ box: boolean;
22
+ sphere_radius: number;
23
+ box_size: PVector3;
24
+ autoSize: boolean;
25
+ editor_showColliders: boolean;
26
+ outevent_onHoverEnter: POutAction | null;
27
+ outevent_onHoverExit: POutAction | null;
28
+ outevent_onClick: POutAction | null;
29
+ hidden: boolean;
30
+ constructor(dbComponent: DBCollider, node: PNode, context: GameContext);
31
+ toDB(): DBCollider;
32
+ abstract getColliderObject(): IColliderObject | null;
33
+ abstract addColliderNode(): void;
34
+ abstract computeBounds(): void;
35
+ native_onHoverEnter: () => void;
36
+ native_onHoverExit: () => void;
37
+ native_onClick: () => void;
38
+ }
39
+ //# sourceMappingURL=PCollider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PCollider.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PCollider.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,QAAQ,EAAE,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAEpD,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAChE,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,UAAU,UAAW,SAAQ,WAAW;IACtC,MAAM,EAAE,OAAO,CAAC;IAChB,GAAG,EAAE,OAAO,CAAC;IAEb,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,QAAQ,CAAC;IAEnB,QAAQ,EAAE,OAAO,CAAC;IAClB,oBAAoB,EAAE,OAAO,CAAC;IAE9B,qBAAqB,EAAE,UAAU,GAAG,IAAI,CAAC;IACzC,oBAAoB,EAAE,UAAU,GAAG,IAAI,CAAC;IACxC,gBAAgB,EAAE,UAAU,GAAG,IAAI,CAAC;CACrC;AAED,OAAO,EAAE,KAAK,UAAU,EAAE,CAAC;AAE3B,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,SAC5B,SAAQ,UACR,YAAW,kBAAkB;IAE7B,MAAM,EAAE,OAAO,CAAC;IAChB,GAAG,EAAE,OAAO,CAAC;IAEb,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,QAAQ,CAAC;IAEnB,QAAQ,EAAE,OAAO,CAAC;IAElB,oBAAoB,UAAS;IAE7B,qBAAqB,EAAE,UAAU,GAAG,IAAI,CAAC;IACzC,oBAAoB,EAAE,UAAU,GAAG,IAAI,CAAC;IACxC,gBAAgB,EAAE,UAAU,GAAG,IAAI,CAAC;IAIpC,MAAM,UAAQ;gBAEF,WAAW,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IA2BtE,IAAI,IAAI,UAAU;IAelB,QAAQ,CAAC,iBAAiB,IAAI,eAAe,GAAG,IAAI;IAEpD,QAAQ,CAAC,eAAe,IAAI,IAAI;IAChC,QAAQ,CAAC,aAAa,IAAI,IAAI;IAM9B,mBAAmB,aAEjB;IAEF,kBAAkB,aAEhB;IAEF,cAAc,aAEZ;CACH"}
@@ -0,0 +1,56 @@
1
+ import PComponent from "../PComponent";
2
+ import PVector3 from "../PVector3";
3
+ import { POutAction } from "../PAction";
4
+ import { DataType } from "../PEnums";
5
+ export default class PCollider extends PComponent {
6
+ sphere;
7
+ box;
8
+ sphere_radius;
9
+ box_size;
10
+ autoSize;
11
+ editor_showColliders = false;
12
+ outevent_onHoverEnter;
13
+ outevent_onHoverExit;
14
+ outevent_onClick;
15
+ // el: any;
16
+ hidden = true;
17
+ constructor(dbComponent, node, context) {
18
+ super("PCollider", "Collider", node, context);
19
+ this.sphere = dbComponent.sphere;
20
+ this.box = dbComponent.box;
21
+ this.sphere_radius = dbComponent.sphere_radius;
22
+ this.box_size = new PVector3(dbComponent.box_size);
23
+ this.autoSize = dbComponent.autoSize;
24
+ this.editor_showColliders = dbComponent.editor_showColliders;
25
+ this.outevent_onHoverEnter = node.registerOutAction(dbComponent.outevent_onHoverEnter, DataType.Node);
26
+ this.outevent_onHoverExit = node.registerOutAction(dbComponent.outevent_onHoverExit, DataType.Node);
27
+ this.outevent_onClick = node.registerOutAction(dbComponent.outevent_onClick, DataType.Node);
28
+ }
29
+ toDB() {
30
+ return {
31
+ ...super.toDB(),
32
+ sphere: this.sphere,
33
+ box: this.box,
34
+ sphere_radius: this.sphere_radius,
35
+ box_size: this.box_size,
36
+ autoSize: this.autoSize,
37
+ editor_showColliders: this.editor_showColliders,
38
+ outevent_onHoverEnter: POutAction.toDB(this.outevent_onHoverEnter),
39
+ outevent_onHoverExit: POutAction.toDB(this.outevent_onHoverExit),
40
+ outevent_onClick: POutAction.toDB(this.outevent_onClick),
41
+ };
42
+ }
43
+ //
44
+ // EVENTS
45
+ //
46
+ native_onHoverEnter = () => {
47
+ this.outevent_onHoverEnter?.emit(this.node.id, this);
48
+ };
49
+ native_onHoverExit = () => {
50
+ this.outevent_onHoverExit?.emit(this.node.id, this);
51
+ };
52
+ native_onClick = () => {
53
+ this.outevent_onClick?.emit(this.node.id, this);
54
+ };
55
+ }
56
+ //# sourceMappingURL=PCollider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PCollider.js","sourceRoot":"","sources":["../../../src/pcomponents/PCollider.ts"],"names":[],"mappings":"AAAA,OAAO,UAA2B,MAAM,eAAe,CAAC;AAExD,OAAO,QAAsB,MAAM,aAAa,CAAC;AACjD,OAAO,EAAc,UAAU,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,QAAQ,EAA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,CAAC,MAAM;YACnB,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;YAC/C,qBAAqB,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC;YAClE,oBAAoB,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC;YAChE,gBAAgB,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC;SACzD,CAAC;IACJ,CAAC;IAOD,EAAE;IACF,SAAS;IACT,EAAE;IAEF,mBAAmB,GAAG,GAAG,EAAE;QACzB,IAAI,CAAC,qBAAqB,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC,CAAC;IAEF,kBAAkB,GAAG,GAAG,EAAE;QACxB,IAAI,CAAC,oBAAoB,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC,CAAC;IAEF,cAAc,GAAG,GAAG,EAAE;QACpB,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC,CAAC;CACH"}
@@ -0,0 +1,23 @@
1
+ import { IInAction, IOutAction, PInAction, POutAction } from "../PAction";
2
+ import PComponent, { DBComponent } from "../PComponent";
3
+ import GameContext from "../GameContext";
4
+ import PNode from "../PNode";
5
+ interface DBCompareBoolean extends DBComponent {
6
+ inevent_compare: IInAction | null;
7
+ outevent_onCompare: IOutAction | null;
8
+ outevent_onTrue: IOutAction | null;
9
+ outevent_onFalse: IOutAction | null;
10
+ }
11
+ export { type DBCompareBoolean };
12
+ export default class PCompareBoolean extends PComponent {
13
+ inevent_compare: PInAction | null;
14
+ outevent_onCompare: POutAction | null;
15
+ outevent_onTrue: POutAction | null;
16
+ outevent_onFalse: POutAction | null;
17
+ constructor(dbComponent: DBCompareBoolean, node: PNode, context: GameContext);
18
+ toDB(): DBCompareBoolean;
19
+ callback_compare: (_payloadValue: string | null) => void;
20
+ render(): void;
21
+ unrender(): void;
22
+ }
23
+ //# sourceMappingURL=PCompareBoolean.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PCompareBoolean.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PCompareBoolean.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE1E,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAE7B,UAAU,gBAAiB,SAAQ,WAAW;IAC5C,eAAe,EAAE,SAAS,GAAG,IAAI,CAAC;IAClC,kBAAkB,EAAE,UAAU,GAAG,IAAI,CAAC;IACtC,eAAe,EAAE,UAAU,GAAG,IAAI,CAAC;IACnC,gBAAgB,EAAE,UAAU,GAAG,IAAI,CAAC;CACrC;AAED,OAAO,EAAE,KAAK,gBAAgB,EAAE,CAAC;AAEjC,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU;IACrD,eAAe,EAAE,SAAS,GAAG,IAAI,CAAC;IAClC,kBAAkB,EAAE,UAAU,GAAG,IAAI,CAAC;IACtC,eAAe,EAAE,UAAU,GAAG,IAAI,CAAC;IACnC,gBAAgB,EAAE,UAAU,GAAG,IAAI,CAAC;gBAGlC,WAAW,EAAE,gBAAgB,EAC7B,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,WAAW;IAwBtB,IAAI,IAAI,gBAAgB;IAUxB,gBAAgB,GAAI,eAAe,MAAM,GAAG,IAAI,UAQ9C;IAEF,MAAM,IAAI,IAAI;IAEd,QAAQ,IAAI,IAAI;CACjB"}