@p100-web/core 100.0.65 → 100.0.66

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 (345) hide show
  1. package/package.json +1 -1
  2. package/dist/src/AdaptivePerformance.d.ts +0 -20
  3. package/dist/src/AdaptivePerformance.d.ts.map +0 -1
  4. package/dist/src/AdaptivePerformance.js +0 -110
  5. package/dist/src/AdaptivePerformance.js.map +0 -1
  6. package/dist/src/DBEvent.d.ts +0 -22
  7. package/dist/src/DBEvent.d.ts.map +0 -1
  8. package/dist/src/DBEvent.js +0 -19
  9. package/dist/src/DBEvent.js.map +0 -1
  10. package/dist/src/DBNode.d.ts +0 -33
  11. package/dist/src/DBNode.d.ts.map +0 -1
  12. package/dist/src/DBNode.js +0 -31
  13. package/dist/src/DBNode.js.map +0 -1
  14. package/dist/src/DBScene.d.ts +0 -11
  15. package/dist/src/DBScene.d.ts.map +0 -1
  16. package/dist/src/DBScene.js +0 -9
  17. package/dist/src/DBScene.js.map +0 -1
  18. package/dist/src/DBVariable.d.ts +0 -22
  19. package/dist/src/DBVariable.d.ts.map +0 -1
  20. package/dist/src/DBVariable.js +0 -19
  21. package/dist/src/DBVariable.js.map +0 -1
  22. package/dist/src/DevTools.d.ts +0 -4
  23. package/dist/src/DevTools.d.ts.map +0 -1
  24. package/dist/src/DevTools.js +0 -10
  25. package/dist/src/DevTools.js.map +0 -1
  26. package/dist/src/GameContext.d.ts +0 -179
  27. package/dist/src/GameContext.d.ts.map +0 -1
  28. package/dist/src/GameContext.js +0 -594
  29. package/dist/src/GameContext.js.map +0 -1
  30. package/dist/src/IAudioListener.d.ts +0 -4
  31. package/dist/src/IAudioListener.d.ts.map +0 -1
  32. package/dist/src/IAudioListener.js +0 -2
  33. package/dist/src/IAudioListener.js.map +0 -1
  34. package/dist/src/ICameraControls.d.ts +0 -14
  35. package/dist/src/ICameraControls.d.ts.map +0 -1
  36. package/dist/src/ICameraControls.js +0 -2
  37. package/dist/src/ICameraControls.js.map +0 -1
  38. package/dist/src/ICameraNode.d.ts +0 -6
  39. package/dist/src/ICameraNode.d.ts.map +0 -1
  40. package/dist/src/ICameraNode.js +0 -2
  41. package/dist/src/ICameraNode.js.map +0 -1
  42. package/dist/src/IComponentFactory.d.ts +0 -8
  43. package/dist/src/IComponentFactory.d.ts.map +0 -1
  44. package/dist/src/IComponentFactory.js +0 -2
  45. package/dist/src/IComponentFactory.js.map +0 -1
  46. package/dist/src/IEngine.d.ts +0 -26
  47. package/dist/src/IEngine.d.ts.map +0 -1
  48. package/dist/src/IEngine.js +0 -2
  49. package/dist/src/IEngine.js.map +0 -1
  50. package/dist/src/IMaterial.d.ts +0 -5
  51. package/dist/src/IMaterial.d.ts.map +0 -1
  52. package/dist/src/IMaterial.js +0 -2
  53. package/dist/src/IMaterial.js.map +0 -1
  54. package/dist/src/IPCanvas.d.ts +0 -45
  55. package/dist/src/IPCanvas.d.ts.map +0 -1
  56. package/dist/src/IPCanvas.js +0 -2
  57. package/dist/src/IPCanvas.js.map +0 -1
  58. package/dist/src/IPNodeRenderer.d.ts +0 -23
  59. package/dist/src/IPNodeRenderer.d.ts.map +0 -1
  60. package/dist/src/IPNodeRenderer.js +0 -2
  61. package/dist/src/IPNodeRenderer.js.map +0 -1
  62. package/dist/src/IStats.d.ts +0 -9
  63. package/dist/src/IStats.d.ts.map +0 -1
  64. package/dist/src/IStats.js +0 -3
  65. package/dist/src/IStats.js.map +0 -1
  66. package/dist/src/MathTools.d.ts +0 -4
  67. package/dist/src/MathTools.d.ts.map +0 -1
  68. package/dist/src/MathTools.js +0 -7
  69. package/dist/src/MathTools.js.map +0 -1
  70. package/dist/src/PAction.d.ts +0 -64
  71. package/dist/src/PAction.d.ts.map +0 -1
  72. package/dist/src/PAction.js +0 -209
  73. package/dist/src/PAction.js.map +0 -1
  74. package/dist/src/PComponent.d.ts +0 -60
  75. package/dist/src/PComponent.d.ts.map +0 -1
  76. package/dist/src/PComponent.js +0 -44
  77. package/dist/src/PComponent.js.map +0 -1
  78. package/dist/src/PEnums.d.ts +0 -98
  79. package/dist/src/PEnums.d.ts.map +0 -1
  80. package/dist/src/PEnums.js +0 -110
  81. package/dist/src/PEnums.js.map +0 -1
  82. package/dist/src/PEvent.d.ts +0 -27
  83. package/dist/src/PEvent.d.ts.map +0 -1
  84. package/dist/src/PEvent.js +0 -40
  85. package/dist/src/PEvent.js.map +0 -1
  86. package/dist/src/PNode.d.ts +0 -111
  87. package/dist/src/PNode.d.ts.map +0 -1
  88. package/dist/src/PNode.js +0 -488
  89. package/dist/src/PNode.js.map +0 -1
  90. package/dist/src/PPayload.d.ts +0 -7
  91. package/dist/src/PPayload.d.ts.map +0 -1
  92. package/dist/src/PPayload.js +0 -19
  93. package/dist/src/PPayload.js.map +0 -1
  94. package/dist/src/PTypes.d.ts +0 -140
  95. package/dist/src/PTypes.d.ts.map +0 -1
  96. package/dist/src/PTypes.js +0 -2
  97. package/dist/src/PTypes.js.map +0 -1
  98. package/dist/src/PVariable.d.ts +0 -29
  99. package/dist/src/PVariable.d.ts.map +0 -1
  100. package/dist/src/PVariable.js +0 -51
  101. package/dist/src/PVariable.js.map +0 -1
  102. package/dist/src/PVector2.d.ts +0 -14
  103. package/dist/src/PVector2.d.ts.map +0 -1
  104. package/dist/src/PVector2.js +0 -25
  105. package/dist/src/PVector2.js.map +0 -1
  106. package/dist/src/PVector3.d.ts +0 -17
  107. package/dist/src/PVector3.d.ts.map +0 -1
  108. package/dist/src/PVector3.js +0 -36
  109. package/dist/src/PVector3.js.map +0 -1
  110. package/dist/src/animations/IAnimationAction.d.ts +0 -9
  111. package/dist/src/animations/IAnimationAction.d.ts.map +0 -1
  112. package/dist/src/animations/IAnimationAction.js +0 -2
  113. package/dist/src/animations/IAnimationAction.js.map +0 -1
  114. package/dist/src/animations/IAnimationClip.d.ts +0 -5
  115. package/dist/src/animations/IAnimationClip.d.ts.map +0 -1
  116. package/dist/src/animations/IAnimationClip.js +0 -2
  117. package/dist/src/animations/IAnimationClip.js.map +0 -1
  118. package/dist/src/animations/IAnimationMixer.d.ts +0 -7
  119. package/dist/src/animations/IAnimationMixer.d.ts.map +0 -1
  120. package/dist/src/animations/IAnimationMixer.js +0 -2
  121. package/dist/src/animations/IAnimationMixer.js.map +0 -1
  122. package/dist/src/media/IMediaLoader.d.ts +0 -31
  123. package/dist/src/media/IMediaLoader.d.ts.map +0 -1
  124. package/dist/src/media/IMediaLoader.js +0 -2
  125. package/dist/src/media/IMediaLoader.js.map +0 -1
  126. package/dist/src/media/MediaManager.d.ts +0 -17
  127. package/dist/src/media/MediaManager.d.ts.map +0 -1
  128. package/dist/src/media/MediaManager.js +0 -19
  129. package/dist/src/media/MediaManager.js.map +0 -1
  130. package/dist/src/media/PFile.d.ts +0 -13
  131. package/dist/src/media/PFile.d.ts.map +0 -1
  132. package/dist/src/media/PFile.js +0 -28
  133. package/dist/src/media/PFile.js.map +0 -1
  134. package/dist/src/pcomponents/BaseBackground.d.ts +0 -27
  135. package/dist/src/pcomponents/BaseBackground.d.ts.map +0 -1
  136. package/dist/src/pcomponents/BaseBackground.js +0 -21
  137. package/dist/src/pcomponents/BaseBackground.js.map +0 -1
  138. package/dist/src/pcomponents/BaseMaterial.d.ts +0 -45
  139. package/dist/src/pcomponents/BaseMaterial.d.ts.map +0 -1
  140. package/dist/src/pcomponents/BaseMaterial.js +0 -47
  141. package/dist/src/pcomponents/BaseMaterial.js.map +0 -1
  142. package/dist/src/pcomponents/PAnimator.d.ts +0 -37
  143. package/dist/src/pcomponents/PAnimator.d.ts.map +0 -1
  144. package/dist/src/pcomponents/PAnimator.js +0 -43
  145. package/dist/src/pcomponents/PAnimator.js.map +0 -1
  146. package/dist/src/pcomponents/PBasicMaterial.d.ts +0 -23
  147. package/dist/src/pcomponents/PBasicMaterial.d.ts.map +0 -1
  148. package/dist/src/pcomponents/PBasicMaterial.js +0 -38
  149. package/dist/src/pcomponents/PBasicMaterial.js.map +0 -1
  150. package/dist/src/pcomponents/PCallAction.d.ts +0 -19
  151. package/dist/src/pcomponents/PCallAction.d.ts.map +0 -1
  152. package/dist/src/pcomponents/PCallAction.js +0 -25
  153. package/dist/src/pcomponents/PCallAction.js.map +0 -1
  154. package/dist/src/pcomponents/PCallActions.d.ts +0 -24
  155. package/dist/src/pcomponents/PCallActions.d.ts.map +0 -1
  156. package/dist/src/pcomponents/PCallActions.js +0 -38
  157. package/dist/src/pcomponents/PCallActions.js.map +0 -1
  158. package/dist/src/pcomponents/PCameraPosition.d.ts +0 -29
  159. package/dist/src/pcomponents/PCameraPosition.d.ts.map +0 -1
  160. package/dist/src/pcomponents/PCameraPosition.js +0 -76
  161. package/dist/src/pcomponents/PCameraPosition.js.map +0 -1
  162. package/dist/src/pcomponents/PCameraTarget.d.ts +0 -29
  163. package/dist/src/pcomponents/PCameraTarget.d.ts.map +0 -1
  164. package/dist/src/pcomponents/PCameraTarget.js +0 -77
  165. package/dist/src/pcomponents/PCameraTarget.js.map +0 -1
  166. package/dist/src/pcomponents/PCollider.d.ts +0 -39
  167. package/dist/src/pcomponents/PCollider.d.ts.map +0 -1
  168. package/dist/src/pcomponents/PCollider.js +0 -56
  169. package/dist/src/pcomponents/PCollider.js.map +0 -1
  170. package/dist/src/pcomponents/PCompareBoolean.d.ts +0 -23
  171. package/dist/src/pcomponents/PCompareBoolean.d.ts.map +0 -1
  172. package/dist/src/pcomponents/PCompareBoolean.js +0 -39
  173. package/dist/src/pcomponents/PCompareBoolean.js.map +0 -1
  174. package/dist/src/pcomponents/PCompareNumber.d.ts +0 -25
  175. package/dist/src/pcomponents/PCompareNumber.d.ts.map +0 -1
  176. package/dist/src/pcomponents/PCompareNumber.js +0 -45
  177. package/dist/src/pcomponents/PCompareNumber.js.map +0 -1
  178. package/dist/src/pcomponents/PCompareString.d.ts +0 -25
  179. package/dist/src/pcomponents/PCompareString.d.ts.map +0 -1
  180. package/dist/src/pcomponents/PCompareString.js +0 -43
  181. package/dist/src/pcomponents/PCompareString.js.map +0 -1
  182. package/dist/src/pcomponents/PCompareVariable.d.ts +0 -28
  183. package/dist/src/pcomponents/PCompareVariable.d.ts.map +0 -1
  184. package/dist/src/pcomponents/PCompareVariable.js +0 -51
  185. package/dist/src/pcomponents/PCompareVariable.js.map +0 -1
  186. package/dist/src/pcomponents/PControllerInput.d.ts +0 -30
  187. package/dist/src/pcomponents/PControllerInput.d.ts.map +0 -1
  188. package/dist/src/pcomponents/PControllerInput.js +0 -42
  189. package/dist/src/pcomponents/PControllerInput.js.map +0 -1
  190. package/dist/src/pcomponents/PCubeGeometry.d.ts +0 -18
  191. package/dist/src/pcomponents/PCubeGeometry.d.ts.map +0 -1
  192. package/dist/src/pcomponents/PCubeGeometry.js +0 -22
  193. package/dist/src/pcomponents/PCubeGeometry.js.map +0 -1
  194. package/dist/src/pcomponents/PDebug.d.ts +0 -21
  195. package/dist/src/pcomponents/PDebug.d.ts.map +0 -1
  196. package/dist/src/pcomponents/PDebug.js +0 -31
  197. package/dist/src/pcomponents/PDebug.js.map +0 -1
  198. package/dist/src/pcomponents/PEnvironment.d.ts +0 -28
  199. package/dist/src/pcomponents/PEnvironment.d.ts.map +0 -1
  200. package/dist/src/pcomponents/PEnvironment.js +0 -44
  201. package/dist/src/pcomponents/PEnvironment.js.map +0 -1
  202. package/dist/src/pcomponents/PFadeAnimation.d.ts +0 -30
  203. package/dist/src/pcomponents/PFadeAnimation.d.ts.map +0 -1
  204. package/dist/src/pcomponents/PFadeAnimation.js +0 -94
  205. package/dist/src/pcomponents/PFadeAnimation.js.map +0 -1
  206. package/dist/src/pcomponents/PHud.d.ts +0 -12
  207. package/dist/src/pcomponents/PHud.d.ts.map +0 -1
  208. package/dist/src/pcomponents/PHud.js +0 -12
  209. package/dist/src/pcomponents/PHud.js.map +0 -1
  210. package/dist/src/pcomponents/PImageBackground.d.ts +0 -13
  211. package/dist/src/pcomponents/PImageBackground.d.ts.map +0 -1
  212. package/dist/src/pcomponents/PImageBackground.js +0 -18
  213. package/dist/src/pcomponents/PImageBackground.js.map +0 -1
  214. package/dist/src/pcomponents/PImageCache.d.ts +0 -22
  215. package/dist/src/pcomponents/PImageCache.d.ts.map +0 -1
  216. package/dist/src/pcomponents/PImageCache.js +0 -69
  217. package/dist/src/pcomponents/PImageCache.js.map +0 -1
  218. package/dist/src/pcomponents/PImageDetector.d.ts +0 -28
  219. package/dist/src/pcomponents/PImageDetector.d.ts.map +0 -1
  220. package/dist/src/pcomponents/PImageDetector.js +0 -38
  221. package/dist/src/pcomponents/PImageDetector.js.map +0 -1
  222. package/dist/src/pcomponents/PLight.d.ts +0 -15
  223. package/dist/src/pcomponents/PLight.d.ts.map +0 -1
  224. package/dist/src/pcomponents/PLight.js +0 -18
  225. package/dist/src/pcomponents/PLight.js.map +0 -1
  226. package/dist/src/pcomponents/PLightDirectional.d.ts +0 -19
  227. package/dist/src/pcomponents/PLightDirectional.d.ts.map +0 -1
  228. package/dist/src/pcomponents/PLightDirectional.js +0 -24
  229. package/dist/src/pcomponents/PLightDirectional.js.map +0 -1
  230. package/dist/src/pcomponents/PMaskedMaterial.d.ts +0 -20
  231. package/dist/src/pcomponents/PMaskedMaterial.d.ts.map +0 -1
  232. package/dist/src/pcomponents/PMaskedMaterial.js +0 -35
  233. package/dist/src/pcomponents/PMaskedMaterial.js.map +0 -1
  234. package/dist/src/pcomponents/PModelGLTF.d.ts +0 -33
  235. package/dist/src/pcomponents/PModelGLTF.d.ts.map +0 -1
  236. package/dist/src/pcomponents/PModelGLTF.js +0 -53
  237. package/dist/src/pcomponents/PModelGLTF.js.map +0 -1
  238. package/dist/src/pcomponents/PMoveAnimation.d.ts +0 -22
  239. package/dist/src/pcomponents/PMoveAnimation.d.ts.map +0 -1
  240. package/dist/src/pcomponents/PMoveAnimation.js +0 -44
  241. package/dist/src/pcomponents/PMoveAnimation.js.map +0 -1
  242. package/dist/src/pcomponents/PMoveToAnimation.d.ts +0 -26
  243. package/dist/src/pcomponents/PMoveToAnimation.d.ts.map +0 -1
  244. package/dist/src/pcomponents/PMoveToAnimation.js +0 -79
  245. package/dist/src/pcomponents/PMoveToAnimation.js.map +0 -1
  246. package/dist/src/pcomponents/PPhysicalMaterial.d.ts +0 -27
  247. package/dist/src/pcomponents/PPhysicalMaterial.d.ts.map +0 -1
  248. package/dist/src/pcomponents/PPhysicalMaterial.js +0 -41
  249. package/dist/src/pcomponents/PPhysicalMaterial.js.map +0 -1
  250. package/dist/src/pcomponents/PPlaneDetector.d.ts +0 -20
  251. package/dist/src/pcomponents/PPlaneDetector.d.ts.map +0 -1
  252. package/dist/src/pcomponents/PPlaneDetector.js +0 -26
  253. package/dist/src/pcomponents/PPlaneDetector.js.map +0 -1
  254. package/dist/src/pcomponents/PPlaneGeometry.d.ts +0 -20
  255. package/dist/src/pcomponents/PPlaneGeometry.d.ts.map +0 -1
  256. package/dist/src/pcomponents/PPlaneGeometry.js +0 -25
  257. package/dist/src/pcomponents/PPlaneGeometry.js.map +0 -1
  258. package/dist/src/pcomponents/PProjectRoot.d.ts +0 -38
  259. package/dist/src/pcomponents/PProjectRoot.d.ts.map +0 -1
  260. package/dist/src/pcomponents/PProjectRoot.js +0 -82
  261. package/dist/src/pcomponents/PProjectRoot.js.map +0 -1
  262. package/dist/src/pcomponents/PRotateAnimation.d.ts +0 -30
  263. package/dist/src/pcomponents/PRotateAnimation.d.ts.map +0 -1
  264. package/dist/src/pcomponents/PRotateAnimation.js +0 -72
  265. package/dist/src/pcomponents/PRotateAnimation.js.map +0 -1
  266. package/dist/src/pcomponents/PScaleAnimation.d.ts +0 -28
  267. package/dist/src/pcomponents/PScaleAnimation.d.ts.map +0 -1
  268. package/dist/src/pcomponents/PScaleAnimation.js +0 -75
  269. package/dist/src/pcomponents/PScaleAnimation.js.map +0 -1
  270. package/dist/src/pcomponents/PSceneContainer.d.ts +0 -22
  271. package/dist/src/pcomponents/PSceneContainer.d.ts.map +0 -1
  272. package/dist/src/pcomponents/PSceneContainer.js +0 -50
  273. package/dist/src/pcomponents/PSceneContainer.js.map +0 -1
  274. package/dist/src/pcomponents/PSceneRoot.d.ts +0 -16
  275. package/dist/src/pcomponents/PSceneRoot.d.ts.map +0 -1
  276. package/dist/src/pcomponents/PSceneRoot.js +0 -22
  277. package/dist/src/pcomponents/PSceneRoot.js.map +0 -1
  278. package/dist/src/pcomponents/PSlider.d.ts +0 -28
  279. package/dist/src/pcomponents/PSlider.d.ts.map +0 -1
  280. package/dist/src/pcomponents/PSlider.js +0 -37
  281. package/dist/src/pcomponents/PSlider.js.map +0 -1
  282. package/dist/src/pcomponents/PSound.d.ts +0 -34
  283. package/dist/src/pcomponents/PSound.d.ts.map +0 -1
  284. package/dist/src/pcomponents/PSound.js +0 -44
  285. package/dist/src/pcomponents/PSound.js.map +0 -1
  286. package/dist/src/pcomponents/PSphereGeometry.d.ts +0 -19
  287. package/dist/src/pcomponents/PSphereGeometry.d.ts.map +0 -1
  288. package/dist/src/pcomponents/PSphereGeometry.js +0 -24
  289. package/dist/src/pcomponents/PSphereGeometry.js.map +0 -1
  290. package/dist/src/pcomponents/PSprite.d.ts +0 -19
  291. package/dist/src/pcomponents/PSprite.d.ts.map +0 -1
  292. package/dist/src/pcomponents/PSprite.js +0 -26
  293. package/dist/src/pcomponents/PSprite.js.map +0 -1
  294. package/dist/src/pcomponents/PSpriteAnimation.d.ts +0 -25
  295. package/dist/src/pcomponents/PSpriteAnimation.d.ts.map +0 -1
  296. package/dist/src/pcomponents/PSpriteAnimation.js +0 -29
  297. package/dist/src/pcomponents/PSpriteAnimation.js.map +0 -1
  298. package/dist/src/pcomponents/PText.d.ts +0 -35
  299. package/dist/src/pcomponents/PText.d.ts.map +0 -1
  300. package/dist/src/pcomponents/PText.js +0 -48
  301. package/dist/src/pcomponents/PText.js.map +0 -1
  302. package/dist/src/pcomponents/PTransform.d.ts +0 -22
  303. package/dist/src/pcomponents/PTransform.d.ts.map +0 -1
  304. package/dist/src/pcomponents/PTransform.js +0 -37
  305. package/dist/src/pcomponents/PTransform.js.map +0 -1
  306. package/dist/src/pcomponents/PVarList.d.ts +0 -26
  307. package/dist/src/pcomponents/PVarList.d.ts.map +0 -1
  308. package/dist/src/pcomponents/PVarList.js +0 -52
  309. package/dist/src/pcomponents/PVarList.js.map +0 -1
  310. package/dist/src/pcomponents/PVarReader.d.ts +0 -19
  311. package/dist/src/pcomponents/PVarReader.d.ts.map +0 -1
  312. package/dist/src/pcomponents/PVarReader.js +0 -26
  313. package/dist/src/pcomponents/PVarReader.js.map +0 -1
  314. package/dist/src/pcomponents/PVarWriter.d.ts +0 -25
  315. package/dist/src/pcomponents/PVarWriter.d.ts.map +0 -1
  316. package/dist/src/pcomponents/PVarWriter.js +0 -46
  317. package/dist/src/pcomponents/PVarWriter.js.map +0 -1
  318. package/dist/src/pcomponents/PVideoBackground.d.ts +0 -36
  319. package/dist/src/pcomponents/PVideoBackground.d.ts.map +0 -1
  320. package/dist/src/pcomponents/PVideoBackground.js +0 -89
  321. package/dist/src/pcomponents/PVideoBackground.js.map +0 -1
  322. package/dist/src/pcomponents/PVideoMaterial.d.ts +0 -26
  323. package/dist/src/pcomponents/PVideoMaterial.d.ts.map +0 -1
  324. package/dist/src/pcomponents/PVideoMaterial.js +0 -40
  325. package/dist/src/pcomponents/PVideoMaterial.js.map +0 -1
  326. package/dist/src/pcomponents/PVideoPlayer.d.ts +0 -31
  327. package/dist/src/pcomponents/PVideoPlayer.d.ts.map +0 -1
  328. package/dist/src/pcomponents/PVideoPlayer.js +0 -70
  329. package/dist/src/pcomponents/PVideoPlayer.js.map +0 -1
  330. package/dist/src/pcomponents/PVisibility.d.ts +0 -33
  331. package/dist/src/pcomponents/PVisibility.d.ts.map +0 -1
  332. package/dist/src/pcomponents/PVisibility.js +0 -62
  333. package/dist/src/pcomponents/PVisibility.js.map +0 -1
  334. package/dist/src/pcomponents/PXRTools.d.ts +0 -32
  335. package/dist/src/pcomponents/PXRTools.d.ts.map +0 -1
  336. package/dist/src/pcomponents/PXRTools.js +0 -45
  337. package/dist/src/pcomponents/PXRTools.js.map +0 -1
  338. package/dist/src/settings/Settings_Base.d.ts +0 -7
  339. package/dist/src/settings/Settings_Base.d.ts.map +0 -1
  340. package/dist/src/settings/Settings_Base.js +0 -18
  341. package/dist/src/settings/Settings_Base.js.map +0 -1
  342. package/dist/src/settings/Settings_Threejs.d.ts +0 -9
  343. package/dist/src/settings/Settings_Threejs.d.ts.map +0 -1
  344. package/dist/src/settings/Settings_Threejs.js +0 -172
  345. package/dist/src/settings/Settings_Threejs.js.map +0 -1
@@ -1,43 +0,0 @@
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
- //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AAE,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"}
@@ -1,23 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,38 +0,0 @@
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
@@ -1 +0,0 @@
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,MAAM,CAAC,OAAO,OAAgB,cAAe,SAAQ,YAAY;IAC/D,kBAAkB,CAAmB;IAErC,MAAM,CAAW;IACjB,MAAM,CAAW;IAEjB,YAAY,WAA4B,EAAE,IAAW,EAAE,OAAoB;QACzE,KAAK,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEtE,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,CAC7C,aAAa,EACb,WAAW,CAAC,kBAAkB,EAC9B,CAAC,YAA2B,EAAE,EAAE,CAAC,IAAI,CAAC,mBAAmB,CAAC,YAAY,CAAC,EACvE,QAAQ,CAAC,MAAM,CAChB,CAAC;QAEF,IAAI,CAAC,MAAM,GAAG,IAAI,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAC/C,IAAI,CAAC,MAAM,GAAG,IAAI,QAAQ,CAAC,WAAW,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QAEjE,gBAAgB;QAChB,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;QAC5B,gBAAgB;QAChB,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;IAC9B,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,kBAAkB,EAAE,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC;YAC3D,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC;IACJ,CAAC;IAUD,QAAQ;QACN,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACpB,mCAAmC;QACnC,IAAI,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IAC5B,CAAC;IAED,OAAO;QACL,gBAAgB;QAChB,IAAI,IAAI,CAAC,YAAY;YAAE,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACrE,CAAC;CACF"}
@@ -1,19 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,25 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,24 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,38 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,29 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,76 +0,0 @@
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
@@ -1 +0,0 @@
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,CAAS;IAEP,MAAM,GAAsB,IAAI,CAAC;IAE3C,YACE,WAA6B,EAC7B,IAAW,EACX,OAAoB;QAEpB,KAAK,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAC3D,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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
- 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
@@ -1 +0,0 @@
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"}
@@ -1,77 +0,0 @@
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
@@ -1 +0,0 @@
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,CA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C,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"}
@@ -1,39 +0,0 @@
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=P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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"}
@@ -1,56 +0,0 @@
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
@@ -1 +0,0 @@
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,EAAE,MAAM,WAAW,CAAC;AAqBrC,MAAM,CAAC,OAAO,OAAgB,SAC5B,SAAQ,UAAU;IAGlB,MAAM,CAAU;IAChB,GAAG,CAAU;IAEb,aAAa,CAAS;IACtB,QAAQ,CAAW;IAEnB,QAAQ,CAAU;IAElB,oBAAoB,GAAG,KAAK,CAAC;IAE7B,qBAAqB,CAAoB;IACzC,oBAAoB,CAAoB;IACxC,gBAAgB,CAAoB;IAEpC,YAAY;IAEZ,MAAM,GAAG,IAAI,CAAC;IAEd,YAAY,WAAuB,EAAE,IAAW,EAAE,OAAoB;QACpE,KAAK,CAAC,WAAW,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAE9C,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC;QACjC,IAAI,CAAC,GAAG,GAAG,WAAW,CAAC,GAAG,CAAC;QAE3B,IAAI,CAAC,aAAa,GAAG,WAAW,CAAC,aAAa,CAAC;QAC/C,IAAI,CAAC,QAAQ,GAAG,IAAI,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAEnD,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC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AC,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"}
@@ -1,23 +0,0 @@
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
@@ -1 +0,0 @@
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"}