@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,39 @@
1
+ import { PInAction, POutAction } from "../PAction";
2
+ import { DataType } from "../PEnums";
3
+ import PComponent from "../PComponent";
4
+ export default class PCompareBoolean extends PComponent {
5
+ inevent_compare;
6
+ outevent_onCompare;
7
+ outevent_onTrue;
8
+ outevent_onFalse;
9
+ constructor(dbComponent, node, context) {
10
+ super("PCompareBoolean", "Compare Boolean", node, context);
11
+ this.abstract = true;
12
+ this.inevent_compare = node.registerInAction("Compare", dbComponent.inevent_compare, this.callback_compare, DataType.Boolean);
13
+ this.outevent_onCompare = node.registerOutAction(dbComponent.outevent_onCompare, DataType.Boolean);
14
+ this.outevent_onTrue = node.registerOutAction(dbComponent.outevent_onTrue);
15
+ this.outevent_onFalse = node.registerOutAction(dbComponent.outevent_onFalse);
16
+ }
17
+ toDB() {
18
+ return {
19
+ ...super.toDB(),
20
+ inevent_compare: PInAction.toDB(this.inevent_compare),
21
+ outevent_onCompare: POutAction.toDB(this.outevent_onCompare),
22
+ outevent_onTrue: POutAction.toDB(this.outevent_onTrue),
23
+ outevent_onFalse: POutAction.toDB(this.outevent_onFalse),
24
+ };
25
+ }
26
+ callback_compare = (_payloadValue) => {
27
+ const value = _payloadValue === "1";
28
+ this.outevent_onCompare?.emit(value ? "1" : "0", this);
29
+ if (value) {
30
+ this.outevent_onTrue?.emit(null, this);
31
+ }
32
+ else {
33
+ this.outevent_onFalse?.emit(null, this);
34
+ }
35
+ };
36
+ render() { }
37
+ unrender() { }
38
+ }
39
+ //# sourceMappingURL=PCompareBoolean.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PCompareBoolean.js","sourceRoot":"","sources":["../../../src/pcomponents/PCompareBoolean.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,eAAgB,SAAQ,UAAU;IACrD,eAAe,CAAmB;IAClC,kBAAkB,CAAoB;IACtC,eAAe,CAAoB;IACnC,gBAAgB,CAAoB;IAEpC,YACE,WAA6B,EAC7B,IAAW,EACX,OAAoB;QAEpB,KAAK,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAC3D,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QAErB,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,gBAAgB,CAC1C,SAAS,EACT,WAAW,CAAC,eAAe,EAC3B,IAAI,CAAC,gBAAgB,EACrB,QAAQ,CAAC,OAAO,CACjB,CAAC;QAEF,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,iBAAiB,CAC9C,WAAW,CAAC,kBAAkB,EAC9B,QAAQ,CAAC,OAAO,CACjB,CAAC;QAEF,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QAE3E,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,iBAAiB,CAC5C,WAAW,CAAC,gBAAgB,CAC7B,CAAC;IACJ,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,eAAe,EAAE,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC;YACrD,kBAAkB,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC;YAC5D,eAAe,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC;YACtD,gBAAgB,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC;SACzD,CAAC;IACJ,CAAC;IAED,gBAAgB,GAAG,CAAC,aAA4B,EAAE,EAAE;QAClD,MAAM,KAAK,GAAG,aAAa,KAAK,GAAG,CAAC;QACpC,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACvD,IAAI,KAAK,EAAE,CAAC;YACV,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACzC,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,KAAU,CAAC;IAEjB,QAAQ,KAAU,CAAC;CACpB"}
@@ -0,0 +1,25 @@
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 DBCompareNumber extends DBComponent {
6
+ inevent_compare: IInAction | null;
7
+ outevent_onCompare: IOutAction | null;
8
+ outevent_onTrue: IOutAction | null;
9
+ outevent_onFalse: IOutAction | null;
10
+ compareTo: number;
11
+ }
12
+ export { type DBCompareNumber };
13
+ export default class PCompareNumber extends PComponent {
14
+ inevent_compare: PInAction | null;
15
+ outevent_onCompare: POutAction | null;
16
+ outevent_onTrue: POutAction | null;
17
+ outevent_onFalse: POutAction | null;
18
+ compareTo: number;
19
+ constructor(dbComponent: DBCompareNumber, node: PNode, context: GameContext);
20
+ toDB(): DBCompareNumber;
21
+ callback_compare: (payload: string | null) => void;
22
+ render(): void;
23
+ unrender(): void;
24
+ }
25
+ //# sourceMappingURL=PCompareNumber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PCompareNumber.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PCompareNumber.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG1E,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAE7B,UAAU,eAAgB,SAAQ,WAAW;IAC3C,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;IACpC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,OAAO,EAAE,KAAK,eAAe,EAAE,CAAC;AAEhC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,UAAU;IACpD,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;IAEpC,SAAS,EAAE,MAAM,CAAC;gBAEN,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAyB3E,IAAI,IAAI,eAAe;IAWvB,gBAAgB,GAAI,SAAS,MAAM,GAAG,IAAI,UAWxC;IAEF,MAAM,IAAI,IAAI;IAEd,QAAQ,IAAI,IAAI;CACjB"}
@@ -0,0 +1,45 @@
1
+ import { PInAction, POutAction } from "../PAction";
2
+ import { DataType } from "../PEnums";
3
+ import PPayload from "../PPayload";
4
+ import PComponent from "../PComponent";
5
+ export default class PCompareNumber extends PComponent {
6
+ inevent_compare;
7
+ outevent_onCompare;
8
+ outevent_onTrue;
9
+ outevent_onFalse;
10
+ compareTo;
11
+ constructor(dbComponent, node, context) {
12
+ super("PCompareNumber", "Compare Number", node, context);
13
+ this.abstract = true;
14
+ this.compareTo = dbComponent.compareTo || 0;
15
+ this.inevent_compare = node.registerInAction("Compare", dbComponent.inevent_compare, this.callback_compare, DataType.Number);
16
+ this.outevent_onCompare = node.registerOutAction(dbComponent.outevent_onCompare, DataType.Boolean);
17
+ this.outevent_onTrue = node.registerOutAction(dbComponent.outevent_onTrue);
18
+ this.outevent_onFalse = node.registerOutAction(dbComponent.outevent_onFalse);
19
+ }
20
+ toDB() {
21
+ return {
22
+ ...super.toDB(),
23
+ inevent_compare: PInAction.toDB(this.inevent_compare),
24
+ outevent_onCompare: POutAction.toDB(this.outevent_onCompare),
25
+ outevent_onTrue: POutAction.toDB(this.outevent_onTrue),
26
+ outevent_onFalse: POutAction.toDB(this.outevent_onFalse),
27
+ compareTo: this.compareTo,
28
+ };
29
+ }
30
+ callback_compare = (payload) => {
31
+ if (!payload)
32
+ return;
33
+ const result = payload === "" + this.compareTo;
34
+ this.outevent_onCompare?.emit(PPayload.fromBoolean(result), this);
35
+ if (result) {
36
+ this.outevent_onTrue?.emit(null, this);
37
+ }
38
+ else {
39
+ this.outevent_onFalse?.emit(null, this);
40
+ }
41
+ };
42
+ render() { }
43
+ unrender() { }
44
+ }
45
+ //# sourceMappingURL=PCompareNumber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PCompareNumber.js","sourceRoot":"","sources":["../../../src/pcomponents/PCompareNumber.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC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AAC,gBAAgB,CAAC;YACxD,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC;IACJ,CAAC;IAED,gBAAgB,GAAG,CAAC,OAAsB,EAAE,EAAE;QAC5C,IAAI,CAAC,OAAO;YAAE,OAAO;QAErB,MAAM,MAAM,GAAG,OAAO,KAAK,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC;QAC/C,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC;QAElE,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACzC,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,KAAU,CAAC;IAEjB,QAAQ,KAAU,CAAC;CACpB"}
@@ -0,0 +1,25 @@
1
+ import { type IInAction, type IOutAction, PInAction, POutAction } from "../PAction";
2
+ import PComponent, { DBComponent } from "../PComponent";
3
+ import GameContext from "../GameContext";
4
+ import PNode from "../PNode";
5
+ interface DBCompareString extends DBComponent {
6
+ inevent_compare: IInAction | null;
7
+ outevent_onCompare: IOutAction | null;
8
+ outevent_onTrue: IOutAction | null;
9
+ outevent_onFalse: IOutAction | null;
10
+ compareTo: string | null;
11
+ }
12
+ export { type DBCompareString };
13
+ export default class PCompareString extends PComponent {
14
+ inevent_compare: PInAction | null;
15
+ outevent_onCompare: POutAction | null;
16
+ outevent_onTrue: POutAction | null;
17
+ outevent_onFalse: POutAction | null;
18
+ compareTo: string;
19
+ constructor(dbComponent: DBCompareString, node: PNode, context: GameContext);
20
+ toDB(): DBCompareString;
21
+ callback_compare: (payloadValue: string | null) => void;
22
+ render(): void;
23
+ unrender(): void;
24
+ }
25
+ //# sourceMappingURL=PCompareString.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PCompareString.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PCompareString.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,UAAU,EACf,SAAS,EACT,UAAU,EACX,MAAM,YAAY,CAAC;AAEpB,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAE7B,UAAU,eAAgB,SAAQ,WAAW;IAC3C,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;IACpC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,OAAO,EAAE,KAAK,eAAe,EAAE,CAAC;AAEhC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,UAAU;IACpD,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;IAEpC,SAAS,EAAE,MAAM,CAAC;gBAEN,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAyB3E,IAAI,IAAI,eAAe;IAWvB,gBAAgB,GAAI,cAAc,MAAM,GAAG,IAAI,UAW7C;IAEF,MAAM,IAAI,IAAI;IAEd,QAAQ,IAAI,IAAI;CACjB"}
@@ -0,0 +1,43 @@
1
+ import { PInAction, POutAction, } from "../PAction";
2
+ import { DataType } from "../PEnums";
3
+ import PComponent from "../PComponent";
4
+ export default class PCompareString extends PComponent {
5
+ inevent_compare;
6
+ outevent_onCompare;
7
+ outevent_onTrue;
8
+ outevent_onFalse;
9
+ compareTo;
10
+ constructor(dbComponent, node, context) {
11
+ super("PCompareString", "Compare String", node, context);
12
+ this.abstract = true;
13
+ this.compareTo = dbComponent.compareTo || "";
14
+ this.inevent_compare = node.registerInAction("Compare", dbComponent.inevent_compare, this.callback_compare, DataType.String);
15
+ this.outevent_onCompare = node.registerOutAction(dbComponent.outevent_onCompare, DataType.Boolean);
16
+ this.outevent_onTrue = node.registerOutAction(dbComponent.outevent_onTrue);
17
+ this.outevent_onFalse = node.registerOutAction(dbComponent.outevent_onFalse);
18
+ }
19
+ toDB() {
20
+ return {
21
+ ...super.toDB(),
22
+ inevent_compare: PInAction.toDB(this.inevent_compare),
23
+ outevent_onCompare: POutAction.toDB(this.outevent_onCompare),
24
+ outevent_onTrue: POutAction.toDB(this.outevent_onTrue),
25
+ outevent_onFalse: POutAction.toDB(this.outevent_onFalse),
26
+ compareTo: this.compareTo === "" ? null : this.compareTo,
27
+ };
28
+ }
29
+ callback_compare = (payloadValue) => {
30
+ payloadValue = payloadValue || "";
31
+ const result = payloadValue === this.compareTo;
32
+ this.outevent_onCompare?.emit(result ? "1" : "0", this);
33
+ if (result) {
34
+ this.outevent_onTrue?.emit(null, this);
35
+ }
36
+ else {
37
+ this.outevent_onFalse?.emit(null, this);
38
+ }
39
+ };
40
+ render() { }
41
+ unrender() { }
42
+ }
43
+ //# sourceMappingURL=PCompareString.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PCompareString.js","sourceRoot":"","sources":["../../../src/pcomponents/PCompareString.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,SAAS,EACT,UAAU,GACX,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,UAA2B,MAAM,eAAe,CAAC;AAcxD,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,UAAU;IACpD,eAAe,CAAmB;IAClC,kBAAkB,CAAoB;IAC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AAG,CAAC,YAA2B,EAAE,EAAE;QACjD,YAAY,GAAG,YAAY,IAAI,EAAE,CAAC;QAElC,MAAM,MAAM,GAAG,YAAY,KAAK,IAAI,CAAC,SAAS,CAAC;QAE/C,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACxD,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACzC,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,KAAU,CAAC;IAEjB,QAAQ,KAAU,CAAC;CACpB"}
@@ -0,0 +1,28 @@
1
+ import { IInAction, IOutAction, PInAction, POutAction } from "../PAction";
2
+ import { PVariable } from "../PVariable";
3
+ import PComponent, { DBComponent } from "../PComponent";
4
+ import GameContext from "../GameContext";
5
+ import PNode from "../PNode";
6
+ interface DBCompareVariable extends DBComponent {
7
+ var_target: string | null;
8
+ inevent_compare: IInAction | null;
9
+ outevent_onCompare: IOutAction | null;
10
+ outevent_onTrue: IOutAction | null;
11
+ outevent_onFalse: IOutAction | null;
12
+ compareTo: string;
13
+ }
14
+ export { type DBCompareVariable };
15
+ export default class PCompareVariable extends PComponent {
16
+ var_target: PVariable | null;
17
+ inevent_compare: PInAction | null;
18
+ outevent_onCompare: POutAction | null;
19
+ outevent_onTrue: POutAction | null;
20
+ outevent_onFalse: POutAction | null;
21
+ compareTo: string;
22
+ constructor(dbComponent: DBCompareVariable, node: PNode, context: GameContext);
23
+ toDB(): DBCompareVariable;
24
+ callback_compare: (_payload: string | null) => void;
25
+ render(): void;
26
+ unrender(): void;
27
+ }
28
+ //# sourceMappingURL=PCompareVariable.d.ts.map
@@ -0,0 +1 @@
1
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Action, POutAction } from "../PAction";
2
+ import { DataType } from "../PEnums";
3
+ import { PVariable } from "../PVariable";
4
+ import PComponent from "../PComponent";
5
+ export default class PCompareVariable extends PComponent {
6
+ var_target;
7
+ inevent_compare;
8
+ outevent_onCompare;
9
+ outevent_onTrue;
10
+ outevent_onFalse;
11
+ compareTo;
12
+ constructor(dbComponent, node, context) {
13
+ super("PCompareVariable", "Compare Variable", node, context);
14
+ this.abstract = true;
15
+ this.compareTo = dbComponent.compareTo || "";
16
+ this.var_target = dbComponent.var_target
17
+ ? context.getVariable(dbComponent.var_target)
18
+ : null;
19
+ this.inevent_compare = node.registerInAction("Compare", dbComponent.inevent_compare, this.callback_compare, DataType.None);
20
+ this.outevent_onCompare = node.registerOutAction(dbComponent.outevent_onCompare, DataType.Boolean);
21
+ this.outevent_onTrue = node.registerOutAction(dbComponent.outevent_onTrue);
22
+ this.outevent_onFalse = node.registerOutAction(dbComponent.outevent_onFalse);
23
+ }
24
+ toDB() {
25
+ return {
26
+ ...super.toDB(),
27
+ var_target: PVariable.toDB(this.var_target),
28
+ inevent_compare: PInAction.toDB(this.inevent_compare),
29
+ outevent_onCompare: POutAction.toDB(this.outevent_onCompare),
30
+ outevent_onTrue: POutAction.toDB(this.outevent_onTrue),
31
+ outevent_onFalse: POutAction.toDB(this.outevent_onFalse),
32
+ compareTo: this.compareTo,
33
+ };
34
+ }
35
+ callback_compare = (_payload) => {
36
+ if (!this.var_target) {
37
+ return;
38
+ }
39
+ const result = this.var_target.string_value() === this.compareTo;
40
+ this.outevent_onCompare?.emit(result ? "1" : "0", this);
41
+ if (result) {
42
+ this.outevent_onTrue?.emit(null, this);
43
+ }
44
+ else {
45
+ this.outevent_onFalse?.emit(null, this);
46
+ }
47
+ };
48
+ render() { }
49
+ unrender() { }
50
+ }
51
+ //# sourceMappingURL=PCompareVariable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PCompareVariable.js","sourceRoot":"","sources":["../../../src/pcomponents/PCompareVariable.ts"],"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I;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,UAAU,EAAE,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC;YAC3C,eAAe,EAAE,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC;YACrD,kBAAkB,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC;YAC5D,eAAe,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC;YACtD,gBAAgB,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC;YACxD,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC;IACJ,CAAC;IAED,gBAAgB,GAAG,CAAC,QAAuB,EAAE,EAAE;QAC7C,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACrB,OAAO;QACT,CAAC;QACD,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,KAAK,IAAI,CAAC,SAAS,CAAC;QACjE,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACxD,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACzC,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,KAAU,CAAC;IAEjB,QAAQ,KAAU,CAAC;CACpB"}
@@ -0,0 +1,30 @@
1
+ import GameContext from "../GameContext";
2
+ import PNode from "../PNode";
3
+ import { IOutAction, POutAction } from "../PAction";
4
+ import PComponent, { DBComponent } from "../PComponent";
5
+ interface DBControllerInput extends DBComponent {
6
+ outevent_buttonA: IOutAction | null;
7
+ outevent_buttonB: IOutAction | null;
8
+ outevent_buttonX: IOutAction | null;
9
+ outevent_buttonY: IOutAction | null;
10
+ holdDurationA: number;
11
+ holdDurationB: number;
12
+ holdDurationX: number;
13
+ holdDurationY: number;
14
+ }
15
+ export type { DBControllerInput };
16
+ export default class PControllerInput extends PComponent {
17
+ outevent_buttonA: POutAction | null;
18
+ outevent_buttonB: POutAction | null;
19
+ outevent_buttonX: POutAction | null;
20
+ outevent_buttonY: POutAction | null;
21
+ holdDurationA: number;
22
+ holdDurationB: number;
23
+ holdDurationX: number;
24
+ holdDurationY: number;
25
+ constructor(dbComponent: DBControllerInput, node: PNode, context: GameContext);
26
+ toDB(): DBControllerInput;
27
+ render(): void;
28
+ unrender(): void;
29
+ }
30
+ //# sourceMappingURL=PControllerInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PControllerInput.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PControllerInput.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAExD,UAAU,iBAAkB,SAAQ,WAAW;IAC7C,gBAAgB,EAAE,UAAU,GAAG,IAAI,CAAC;IACpC,gBAAgB,EAAE,UAAU,GAAG,IAAI,CAAC;IACpC,gBAAgB,EAAE,UAAU,GAAG,IAAI,CAAC;IACpC,gBAAgB,EAAE,UAAU,GAAG,IAAI,CAAC;IAEpC,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,UAAU;IACtD,gBAAgB,EAAE,UAAU,GAAG,IAAI,CAAC;IACpC,gBAAgB,EAAE,UAAU,GAAG,IAAI,CAAC;IACpC,gBAAgB,EAAE,UAAU,GAAG,IAAI,CAAC;IACpC,gBAAgB,EAAE,UAAU,GAAG,IAAI,CAAC;IAEpC,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;gBAGpB,WAAW,EAAE,iBAAiB,EAC9B,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,WAAW;IAwBrB,IAAI,IAAI,iBAAiB;IAe1B,MAAM,IAAI,IAAI;IAId,QAAQ,IAAI,IAAI;CAGjB"}
@@ -0,0 +1,42 @@
1
+ import { POutAction } from "../PAction";
2
+ import PComponent from "../PComponent";
3
+ export default class PControllerInput extends PComponent {
4
+ outevent_buttonA;
5
+ outevent_buttonB;
6
+ outevent_buttonX;
7
+ outevent_buttonY;
8
+ holdDurationA;
9
+ holdDurationB;
10
+ holdDurationX;
11
+ holdDurationY;
12
+ constructor(dbComponent, node, context) {
13
+ super("PControllerInput", "Controller Input", node, context);
14
+ this.abstract = true;
15
+ this.holdDurationA = dbComponent.holdDurationA;
16
+ this.holdDurationB = dbComponent.holdDurationB;
17
+ this.holdDurationX = dbComponent.holdDurationX;
18
+ this.holdDurationY = dbComponent.holdDurationY;
19
+ this.outevent_buttonA = node.registerOutAction(dbComponent.outevent_buttonA);
20
+ this.outevent_buttonB = node.registerOutAction(dbComponent.outevent_buttonB);
21
+ this.outevent_buttonX = node.registerOutAction(dbComponent.outevent_buttonX);
22
+ this.outevent_buttonY = node.registerOutAction(dbComponent.outevent_buttonY);
23
+ }
24
+ toDB() {
25
+ return {
26
+ ...super.toDB(),
27
+ outevent_buttonA: POutAction.toDB(this.outevent_buttonA),
28
+ outevent_buttonB: POutAction.toDB(this.outevent_buttonB),
29
+ outevent_buttonX: POutAction.toDB(this.outevent_buttonX),
30
+ outevent_buttonY: POutAction.toDB(this.outevent_buttonY),
31
+ holdDurationA: this.holdDurationA,
32
+ holdDurationB: this.holdDurationB,
33
+ holdDurationX: this.holdDurationX,
34
+ holdDurationY: this.holdDurationY,
35
+ };
36
+ }
37
+ render() {
38
+ }
39
+ unrender() {
40
+ }
41
+ }
42
+ //# sourceMappingURL=PControllerInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PControllerInput.js","sourceRoot":"","sources":["../../../src/pcomponents/PControllerInput.ts"],"names":[],"mappings":"AAEA,OAAO,EAAc,UAAU,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,UAA2B,MAAM,eAAe,CAAC;AAgBxD,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,UAAU;IACtD,gBAAgB,CAAoB;IACpC,gBAAgB,CAAoB;IACpC,gBAAgB,CAAoB;IACpC,gBAAgB,CAAoB;IAEpC,aAAa,CAAS;IACtB,aAAa,CAAS;IACtB,aAAa,CAAS;IACtB,aAAa,CAAS;IAEtB,YACE,WAA8B,EAC9B,IAAW,EACX,OAAoB;QAEpB,KAAK,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAC7D,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QAErB,IAAI,CAAC,aAAa,GAAG,WAAW,CAAC,aAAa,CAAC;QAC/C,IAAI,CAAC,aAAa,GAAG,WAAW,CAAC,aAAa,CAAC;QAC/C,IAAI,CAAC,aAAa,GAAG,WAAW,CAAC,aAAa,CAAC;QAC/C,IAAI,CAAC,aAAa,GAAG,WAAW,CAAC,aAAa,CAAC;QAE/C,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,iBAAiB,CAC5C,WAAW,CAAC,gBAAgB,CAC7B,CAAC;QACF,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,iBAAiB,CAC5C,WAAW,CAAC,gBAAgB,CAC7B,CAAC;QACF,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,iBAAiB,CAC5C,WAAW,CAAC,gBAAgB,CAC7B,CAAC;QACF,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,iBAAiB,CAC5C,WAAW,CAAC,gBAAgB,CAC7B,CAAC;IACJ,CAAC;IAEA,IAAI;QACH,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,gBAAgB,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC;YACxD,gBAAgB,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC;YACxD,gBAAgB,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC;YACxD,gBAAgB,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC;YAExD,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,aAAa,EAAE,IAAI,CAAC,aAAa;SAClC,CAAC;IACJ,CAAC;IAED,MAAM;IAEN,CAAC;IAED,QAAQ;IAER,CAAC;CACF"}
@@ -0,0 +1,18 @@
1
+ import GameContext from "../GameContext";
2
+ import PNode from "../PNode";
3
+ import PComponent, { DBComponent } from "../PComponent";
4
+ import PVector3, { IVector3 } from "../PVector3";
5
+ interface DBCubeGeometry extends DBComponent {
6
+ size: IVector3;
7
+ castShadow: boolean;
8
+ receiveShadow: boolean;
9
+ }
10
+ export type { DBCubeGeometry };
11
+ export default abstract class PCubeGeometry extends PComponent {
12
+ size: PVector3;
13
+ castShadow: boolean;
14
+ receiveShadow: boolean;
15
+ constructor(dbComponent: DBCubeGeometry, node: PNode, context: GameContext);
16
+ toDB(): DBCubeGeometry;
17
+ }
18
+ //# sourceMappingURL=PCubeGeometry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PCubeGeometry.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PCubeGeometry.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,QAAQ,EAAE,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEjD,UAAU,cAAe,SAAQ,WAAW;IAC1C,IAAI,EAAE,QAAQ,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,aAAc,SAAQ,UAAU;IAC5D,IAAI,EAAE,QAAQ,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;gBAGrB,WAAW,EAAE,cAAc,EAC3B,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,WAAW;IAUrB,IAAI,IAAI,cAAc;CASxB"}
@@ -0,0 +1,22 @@
1
+ import PComponent from "../PComponent";
2
+ import PVector3 from "../PVector3";
3
+ export default class PCubeGeometry extends PComponent {
4
+ size;
5
+ castShadow;
6
+ receiveShadow;
7
+ constructor(dbComponent, node, context) {
8
+ super("PCubeGeometry", "Cube Geometry", node, context);
9
+ this.size = new PVector3(dbComponent.size);
10
+ this.castShadow = dbComponent.castShadow;
11
+ this.receiveShadow = dbComponent.receiveShadow;
12
+ }
13
+ toDB() {
14
+ return {
15
+ ...super.toDB(),
16
+ size: this.size,
17
+ castShadow: this.castShadow,
18
+ receiveShadow: this.receiveShadow,
19
+ };
20
+ }
21
+ }
22
+ //# sourceMappingURL=PCubeGeometry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PCubeGeometry.js","sourceRoot":"","sources":["../../../src/pcomponents/PCubeGeometry.ts"],"names":[],"mappings":"AAEA,OAAO,UAA2B,MAAM,eAAe,CAAC;AACxD,OAAO,QAAsB,MAAM,aAAa,CAAC;AAUjD,MAAM,CAAC,OAAO,OAAgB,aAAc,SAAQ,UAAU;IAC5D,IAAI,CAAW;IACf,UAAU,CAAU;IACpB,aAAa,CAAU;IAEvB,YACE,WAA2B,EAC3B,IAAW,EACX,OAAoB;QAEpB,KAAK,CAAC,eAAe,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEvD,IAAI,CAAC,IAAI,GAAG,IAAI,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAE3C,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC;QACzC,IAAI,CAAC,aAAa,GAAG,WAAW,CAAC,aAAa,CAAC;IACjD,CAAC;IAEA,IAAI;QACH,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,aAAa,EAAE,IAAI,CAAC,aAAa;SAClC,CAAC;IACJ,CAAC;CAEF"}
@@ -0,0 +1,21 @@
1
+ import PComponent, { DBComponent } from "../PComponent";
2
+ import { IInAction, PInAction } from "../PAction";
3
+ import GameContext from "../GameContext";
4
+ import PNode from "../PNode";
5
+ interface DBDebug extends DBComponent {
6
+ inevent_on: IInAction | null;
7
+ inevent_onNumber: IInAction | null;
8
+ inevent_onBoolean: IInAction | null;
9
+ }
10
+ export type { DBDebug };
11
+ export default class PDebug extends PComponent {
12
+ inevent_on: PInAction | null;
13
+ inevent_onNumber: PInAction | null;
14
+ inevent_onBoolean: PInAction | null;
15
+ constructor(dbComponent: DBDebug, node: PNode, context: GameContext);
16
+ toDB(): DBDebug;
17
+ render(): void;
18
+ unrender(): void;
19
+ onDebug: (payloadValue: string | null) => void;
20
+ }
21
+ //# sourceMappingURL=PDebug.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PDebug.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PDebug.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAE7B,UAAU,OAAQ,SAAQ,WAAW;IACnC,UAAU,EAAE,SAAS,GAAG,IAAI,CAAC;IAC7B,gBAAgB,EAAE,SAAS,GAAG,IAAI,CAAC;IACnC,iBAAiB,EAAE,SAAS,GAAG,IAAI,CAAC;CACrC;AACD,YAAY,EAAE,OAAO,EAAE,CAAC;AAExB,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,UAAU;IAC5C,UAAU,EAAE,SAAS,GAAG,IAAI,CAAC;IAC7B,gBAAgB,EAAE,SAAS,GAAG,IAAI,CAAC;IACnC,iBAAiB,EAAE,SAAS,GAAG,IAAI,CAAC;gBAExB,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IA0BnE,IAAI,IAAI,OAAO;IASf,MAAM,IAAI,IAAI;IAGd,QAAQ,IAAI,IAAI;IAGhB,OAAO,GAAI,cAAc,MAAM,GAAG,IAAI,UAEpC;CACH"}
@@ -0,0 +1,31 @@
1
+ import PComponent from "../PComponent";
2
+ import { PInAction } from "../PAction";
3
+ import { DataType } from "../PEnums";
4
+ export default class PDebug extends PComponent {
5
+ inevent_on;
6
+ inevent_onNumber;
7
+ inevent_onBoolean;
8
+ constructor(dbComponent, node, context) {
9
+ super("PDebug", "Debug", node, context);
10
+ this.abstract = true;
11
+ this.inevent_on = node.registerInAction("Debug String", dbComponent.inevent_on, this.onDebug, DataType.String);
12
+ this.inevent_onNumber = node.registerInAction("Debug Number", dbComponent.inevent_onNumber, this.onDebug, DataType.Number);
13
+ this.inevent_onBoolean = node.registerInAction("Debug Boolean", dbComponent.inevent_onBoolean, this.onDebug, DataType.Boolean);
14
+ }
15
+ toDB() {
16
+ return {
17
+ ...super.toDB(),
18
+ inevent_on: PInAction.toDB(this.inevent_on),
19
+ inevent_onNumber: PInAction.toDB(this.inevent_onNumber),
20
+ inevent_onBoolean: PInAction.toDB(this.inevent_onBoolean),
21
+ };
22
+ }
23
+ render() {
24
+ }
25
+ unrender() {
26
+ }
27
+ onDebug = (payloadValue) => {
28
+ console.log("[PDebug][" + this.node.name + "]", payloadValue);
29
+ };
30
+ }
31
+ //# sourceMappingURL=PDebug.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PDebug.js","sourceRoot":"","sources":["../../../src/pcomponents/PDebug.ts"],"names":[],"mappings":"AAAA,OAAO,UAA2B,MAAM,eAAe,CAAC;AACxD,OAAO,EAAa,SAAS,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAWrC,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,UAAU;IAC5C,UAAU,CAAmB;IAC7B,gBAAgB,CAAmB;IACnC,iBAAiB,CAAmB;IAEpC,YAAY,WAAoB,EAAE,IAAW,EAAE,OAAoB;QACjE,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAExC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QAErB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,gBAAgB,CACrC,cAAc,EACd,WAAW,CAAC,UAAU,EACtB,IAAI,CAAC,OAAO,EACZ,QAAQ,CAAC,MAAM,CAChB,CAAC;QACF,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAC3C,cAAc,EACd,WAAW,CAAC,gBAAgB,EAC5B,IAAI,CAAC,OAAO,EACZ,QAAQ,CAAC,MAAM,CAChB,CAAC;QACF,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,CAC5C,eAAe,EACf,WAAW,CAAC,iBAAiB,EAC7B,IAAI,CAAC,OAAO,EACZ,QAAQ,CAAC,OAAO,CACjB,CAAC;IAEJ,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,UAAU,EAAE,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC;YAC3C,gBAAgB,EAAE,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC;YACvD,iBAAiB,EAAE,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC;SAC1D,CAAC;IACJ,CAAC;IAED,MAAM;IACN,CAAC;IAED,QAAQ;IACR,CAAC;IAED,OAAO,GAAG,CAAC,YAA2B,EAAE,EAAE;QACxC,OAAO,CAAC,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,GAAG,EAAE,YAAY,CAAC,CAAC;IAChE,CAAC,CAAC;CACH"}
@@ -0,0 +1,28 @@
1
+ import GameContext from "../GameContext";
2
+ import PNode from "../PNode";
3
+ import PFile from "../media/PFile";
4
+ import PComponent, { DBComponent } from "../PComponent";
5
+ interface DBEnvironment extends DBComponent {
6
+ file_texture: string | null;
7
+ rotation: number;
8
+ intensity: number;
9
+ environment: boolean;
10
+ background: boolean;
11
+ equirectangular: boolean;
12
+ }
13
+ export type { DBEnvironment };
14
+ export default abstract class PEnvironment extends PComponent {
15
+ file_texture: PFile | null;
16
+ _cacheKey: number;
17
+ rotation: number;
18
+ intensity: number;
19
+ environment: boolean;
20
+ background: boolean;
21
+ equirectangular: boolean;
22
+ constructor(dbComponent: DBEnvironment, node: PNode, context: GameContext);
23
+ toDB(): DBEnvironment;
24
+ dispose(): void;
25
+ abstract _dispose(): void;
26
+ unrender(): void;
27
+ }
28
+ //# sourceMappingURL=PEnvironment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PEnvironment.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PEnvironment.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAGxD,UAAU,aAAc,SAAQ,WAAW;IACzC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,YAAa,SAAQ,UAAU;IAC3D,YAAY,EAAE,KAAK,GAAG,IAAI,CAAC;IAC3B,SAAS,SAAK;IAEd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,eAAe,EAAE,OAAO,CAAC;gBAGvB,WAAW,EAAE,aAAa,EAC1B,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,WAAW;IAetB,IAAI,IAAI,aAAa;IAgBrB,OAAO;IAKP,QAAQ,CAAC,QAAQ,IAAI,IAAI;IAEzB,QAAQ;CAGT"}
@@ -0,0 +1,44 @@
1
+ import PComponent from "../PComponent";
2
+ import { PProperties } from "../PEnums";
3
+ export default class PEnvironment extends PComponent {
4
+ file_texture;
5
+ _cacheKey = 0;
6
+ rotation;
7
+ intensity;
8
+ environment;
9
+ background;
10
+ equirectangular;
11
+ constructor(dbComponent, node, context) {
12
+ super("PEnvironment", "Environment", node, context);
13
+ this.properties = PProperties.NoChildren;
14
+ this.file_texture = this.context.requestFile(dbComponent.file_texture);
15
+ this.rotation = dbComponent.rotation;
16
+ this.intensity = dbComponent.intensity;
17
+ this.environment = dbComponent.environment;
18
+ this.background = dbComponent.background;
19
+ this.equirectangular = dbComponent.equirectangular;
20
+ }
21
+ toDB() {
22
+ return {
23
+ ...super.toDB(),
24
+ file_texture: this.file_texture !== null ? this.file_texture._id : null,
25
+ rotation: this.rotation,
26
+ intensity: this.intensity,
27
+ environment: this.environment,
28
+ background: this.background,
29
+ equirectangular: this.equirectangular,
30
+ };
31
+ }
32
+ //
33
+ // PComponent
34
+ //
35
+ dispose() {
36
+ // Release files
37
+ if (this.file_texture)
38
+ this.context.releaseFile(this.file_texture);
39
+ }
40
+ unrender() {
41
+ this._dispose();
42
+ }
43
+ }
44
+ //# sourceMappingURL=PEnvironment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PEnvironment.js","sourceRoot":"","sources":["../../../src/pcomponents/PEnvironment.ts"],"names":[],"mappings":"AAGA,OAAO,UAA2B,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAaxC,MAAM,CAAC,OAAO,OAAgB,YAAa,SAAQ,UAAU;IAC3D,YAAY,CAAe;IAC3B,SAAS,GAAG,CAAC,CAAC;IAEd,QAAQ,CAAS;IACjB,SAAS,CAAS;IAClB,WAAW,CAAU;IACrB,UAAU,CAAU;IACpB,eAAe,CAAU;IAEzB,YACE,WAA0B,EAC1B,IAAW,EACX,OAAoB;QAEpB,KAAK,CAAC,cAAc,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEpD,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC;QAEzC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;QAEvE,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC;QACrC,IAAI,CAAC,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;QACvC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC;QAC3C,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC;QACzC,IAAI,CAAC,eAAe,GAAG,WAAW,CAAC,eAAe,CAAC;IACrD,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,YAAY,EAAE,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI;YACvE,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,eAAe,EAAE,IAAI,CAAC,eAAe;SACtC,CAAC;IACJ,CAAC;IAED,EAAE;IACF,cAAc;IACd,EAAE;IAEF,OAAO;QACL,gBAAgB;QAChB,IAAI,IAAI,CAAC,YAAY;YAAE,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACrE,CAAC;IAID,QAAQ;QACN,IAAI,CAAC,QAAQ,EAAE,CAAC;IAClB,CAAC;CACF"}
@@ -0,0 +1,30 @@
1
+ import PComponent, { DBComponent } from "../PComponent";
2
+ import { IInAction, IOutAction, PInAction, POutAction } from "../PAction";
3
+ import GameContext from "../GameContext";
4
+ import PNode from "../PNode";
5
+ import { Tween } from "@tweenjs/tween.js";
6
+ interface DBFadeAnimation extends DBComponent {
7
+ inevent_fadeInOn: IInAction | null;
8
+ inevent_fadeOutOn: IInAction | null;
9
+ outevent_onFadeOut: IOutAction | null;
10
+ outevent_onFadeIn: IOutAction | null;
11
+ duration: number;
12
+ }
13
+ export type { DBFadeAnimation };
14
+ export default class PFadeAnimation extends PComponent {
15
+ inevent_fadeInOn: PInAction | null;
16
+ inevent_fadeOutOn: PInAction | null;
17
+ outevent_onFadeOut: POutAction | null;
18
+ outevent_onFadeIn: POutAction | null;
19
+ duration: number;
20
+ protected _tween: Tween<any> | null;
21
+ protected _maxValue: number;
22
+ constructor(dbComponent: DBFadeAnimation, node: PNode, context: GameContext);
23
+ toDB(): DBFadeAnimation;
24
+ render(): void;
25
+ unrender(): void;
26
+ play(): void;
27
+ callback_onFadeIn: () => void;
28
+ callback_onFadeOut: () => void;
29
+ }
30
+ //# sourceMappingURL=PFadeAnimation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PFadeAnimation.d.ts","sourceRoot":"","sources":["../../../src/pcomponents/PFadeAnimation.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAU,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAElD,UAAU,eAAgB,SAAQ,WAAW;IAC3C,gBAAgB,EAAE,SAAS,GAAG,IAAI,CAAC;IACnC,iBAAiB,EAAE,SAAS,GAAG,IAAI,CAAC;IAEpC,kBAAkB,EAAE,UAAU,GAAG,IAAI,CAAC;IACtC,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;IAErC,QAAQ,EAAE,MAAM,CAAC;CAClB;AACD,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,UAAU;IACpD,gBAAgB,EAAE,SAAS,GAAG,IAAI,CAAC;IACnC,iBAAiB,EAAE,SAAS,GAAG,IAAI,CAAC;IAEpC,kBAAkB,EAAE,UAAU,GAAG,IAAI,CAAC;IACtC,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;IAErC,QAAQ,SAAQ;IAEhB,SAAS,CAAC,MAAM,EA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