@p100-web/core 100.1.0 → 100.1.1

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 (385) hide show
  1. package/package.json +1 -1
  2. package/dist/AdaptivePerformance.d.ts +0 -20
  3. package/dist/AdaptivePerformance.d.ts.map +0 -1
  4. package/dist/AdaptivePerformance.js +0 -110
  5. package/dist/AdaptivePerformance.js.map +0 -1
  6. package/dist/DBEvent.d.ts +0 -22
  7. package/dist/DBEvent.d.ts.map +0 -1
  8. package/dist/DBEvent.js +0 -19
  9. package/dist/DBEvent.js.map +0 -1
  10. package/dist/DBNode.d.ts +0 -33
  11. package/dist/DBNode.d.ts.map +0 -1
  12. package/dist/DBNode.js +0 -31
  13. package/dist/DBNode.js.map +0 -1
  14. package/dist/DBScene.d.ts +0 -11
  15. package/dist/DBScene.d.ts.map +0 -1
  16. package/dist/DBScene.js +0 -9
  17. package/dist/DBScene.js.map +0 -1
  18. package/dist/DBVariable.d.ts +0 -22
  19. package/dist/DBVariable.d.ts.map +0 -1
  20. package/dist/DBVariable.js +0 -19
  21. package/dist/DBVariable.js.map +0 -1
  22. package/dist/DevTools.d.ts +0 -4
  23. package/dist/DevTools.d.ts.map +0 -1
  24. package/dist/DevTools.js +0 -10
  25. package/dist/DevTools.js.map +0 -1
  26. package/dist/GameContext.d.ts +0 -182
  27. package/dist/GameContext.d.ts.map +0 -1
  28. package/dist/GameContext.js +0 -590
  29. package/dist/GameContext.js.map +0 -1
  30. package/dist/IAudioListener.d.ts +0 -4
  31. package/dist/IAudioListener.d.ts.map +0 -1
  32. package/dist/IAudioListener.js +0 -2
  33. package/dist/IAudioListener.js.map +0 -1
  34. package/dist/ICameraControls.d.ts +0 -17
  35. package/dist/ICameraControls.d.ts.map +0 -1
  36. package/dist/ICameraControls.js +0 -2
  37. package/dist/ICameraControls.js.map +0 -1
  38. package/dist/IComponentFactory.d.ts +0 -8
  39. package/dist/IComponentFactory.d.ts.map +0 -1
  40. package/dist/IComponentFactory.js +0 -2
  41. package/dist/IComponentFactory.js.map +0 -1
  42. package/dist/IEngine.d.ts +0 -23
  43. package/dist/IEngine.d.ts.map +0 -1
  44. package/dist/IEngine.js +0 -2
  45. package/dist/IEngine.js.map +0 -1
  46. package/dist/IMaterial.d.ts +0 -5
  47. package/dist/IMaterial.d.ts.map +0 -1
  48. package/dist/IMaterial.js +0 -2
  49. package/dist/IMaterial.js.map +0 -1
  50. package/dist/IPMaterial.d.ts +0 -10
  51. package/dist/IPMaterial.d.ts.map +0 -1
  52. package/dist/IPMaterial.js +0 -2
  53. package/dist/IPMaterial.js.map +0 -1
  54. package/dist/IPNodeRenderer.d.ts +0 -27
  55. package/dist/IPNodeRenderer.d.ts.map +0 -1
  56. package/dist/IPNodeRenderer.js +0 -2
  57. package/dist/IPNodeRenderer.js.map +0 -1
  58. package/dist/IStats.d.ts +0 -9
  59. package/dist/IStats.d.ts.map +0 -1
  60. package/dist/IStats.js +0 -3
  61. package/dist/IStats.js.map +0 -1
  62. package/dist/MathTools.d.ts +0 -8
  63. package/dist/MathTools.d.ts.map +0 -1
  64. package/dist/MathTools.js +0 -20
  65. package/dist/MathTools.js.map +0 -1
  66. package/dist/PAction.d.ts +0 -71
  67. package/dist/PAction.d.ts.map +0 -1
  68. package/dist/PAction.js +0 -238
  69. package/dist/PAction.js.map +0 -1
  70. package/dist/PCanvas.d.ts +0 -161
  71. package/dist/PCanvas.d.ts.map +0 -1
  72. package/dist/PCanvas.js +0 -619
  73. package/dist/PCanvas.js.map +0 -1
  74. package/dist/PComponent.d.ts +0 -48
  75. package/dist/PComponent.d.ts.map +0 -1
  76. package/dist/PComponent.js +0 -70
  77. package/dist/PComponent.js.map +0 -1
  78. package/dist/PEnums.d.ts +0 -116
  79. package/dist/PEnums.d.ts.map +0 -1
  80. package/dist/PEnums.js +0 -129
  81. package/dist/PEnums.js.map +0 -1
  82. package/dist/PEvent.d.ts +0 -27
  83. package/dist/PEvent.d.ts.map +0 -1
  84. package/dist/PEvent.js +0 -40
  85. package/dist/PEvent.js.map +0 -1
  86. package/dist/PNode.d.ts +0 -133
  87. package/dist/PNode.d.ts.map +0 -1
  88. package/dist/PNode.js +0 -555
  89. package/dist/PNode.js.map +0 -1
  90. package/dist/POutValue.d.ts +0 -16
  91. package/dist/POutValue.d.ts.map +0 -1
  92. package/dist/POutValue.js +0 -26
  93. package/dist/POutValue.js.map +0 -1
  94. package/dist/PPayload.d.ts +0 -7
  95. package/dist/PPayload.d.ts.map +0 -1
  96. package/dist/PPayload.js +0 -19
  97. package/dist/PPayload.js.map +0 -1
  98. package/dist/PTypes.d.ts +0 -36
  99. package/dist/PTypes.d.ts.map +0 -1
  100. package/dist/PTypes.js +0 -2
  101. package/dist/PTypes.js.map +0 -1
  102. package/dist/PVariable.d.ts +0 -29
  103. package/dist/PVariable.d.ts.map +0 -1
  104. package/dist/PVariable.js +0 -51
  105. package/dist/PVariable.js.map +0 -1
  106. package/dist/PVector2.d.ts +0 -14
  107. package/dist/PVector2.d.ts.map +0 -1
  108. package/dist/PVector2.js +0 -25
  109. package/dist/PVector2.js.map +0 -1
  110. package/dist/PVector3.d.ts +0 -18
  111. package/dist/PVector3.d.ts.map +0 -1
  112. package/dist/PVector3.js +0 -39
  113. package/dist/PVector3.js.map +0 -1
  114. package/dist/animations/IModelAnimation.d.ts +0 -17
  115. package/dist/animations/IModelAnimation.d.ts.map +0 -1
  116. package/dist/animations/IModelAnimation.js +0 -2
  117. package/dist/animations/IModelAnimation.js.map +0 -1
  118. package/dist/assets/AssetLoader.d.ts +0 -10
  119. package/dist/assets/AssetLoader.d.ts.map +0 -1
  120. package/dist/assets/AssetLoader.js +0 -12
  121. package/dist/assets/AssetLoader.js.map +0 -1
  122. package/dist/index.d.ts +0 -150
  123. package/dist/index.d.ts.map +0 -1
  124. package/dist/index.js +0 -110
  125. package/dist/index.js.map +0 -1
  126. package/dist/media/MediaManager.d.ts +0 -17
  127. package/dist/media/MediaManager.d.ts.map +0 -1
  128. package/dist/media/MediaManager.js +0 -19
  129. package/dist/media/MediaManager.js.map +0 -1
  130. package/dist/media/PFile.d.ts +0 -13
  131. package/dist/media/PFile.d.ts.map +0 -1
  132. package/dist/media/PFile.js +0 -28
  133. package/dist/media/PFile.js.map +0 -1
  134. package/dist/pcomponents/BaseMaterial.d.ts +0 -46
  135. package/dist/pcomponents/BaseMaterial.d.ts.map +0 -1
  136. package/dist/pcomponents/BaseMaterial.js +0 -51
  137. package/dist/pcomponents/BaseMaterial.js.map +0 -1
  138. package/dist/pcomponents/PAnimator.d.ts +0 -37
  139. package/dist/pcomponents/PAnimator.d.ts.map +0 -1
  140. package/dist/pcomponents/PAnimator.js +0 -45
  141. package/dist/pcomponents/PAnimator.js.map +0 -1
  142. package/dist/pcomponents/PBackground.d.ts +0 -34
  143. package/dist/pcomponents/PBackground.d.ts.map +0 -1
  144. package/dist/pcomponents/PBackground.js +0 -45
  145. package/dist/pcomponents/PBackground.js.map +0 -1
  146. package/dist/pcomponents/PBasicMaterial.d.ts +0 -23
  147. package/dist/pcomponents/PBasicMaterial.d.ts.map +0 -1
  148. package/dist/pcomponents/PBasicMaterial.js +0 -39
  149. package/dist/pcomponents/PBasicMaterial.js.map +0 -1
  150. package/dist/pcomponents/PCallAction.d.ts +0 -19
  151. package/dist/pcomponents/PCallAction.d.ts.map +0 -1
  152. package/dist/pcomponents/PCallAction.js +0 -24
  153. package/dist/pcomponents/PCallAction.js.map +0 -1
  154. package/dist/pcomponents/PCallActions.d.ts +0 -24
  155. package/dist/pcomponents/PCallActions.d.ts.map +0 -1
  156. package/dist/pcomponents/PCallActions.js +0 -37
  157. package/dist/pcomponents/PCallActions.js.map +0 -1
  158. package/dist/pcomponents/PCameraPosition.d.ts +0 -29
  159. package/dist/pcomponents/PCameraPosition.d.ts.map +0 -1
  160. package/dist/pcomponents/PCameraPosition.js +0 -78
  161. package/dist/pcomponents/PCameraPosition.js.map +0 -1
  162. package/dist/pcomponents/PCameraTarget.d.ts +0 -29
  163. package/dist/pcomponents/PCameraTarget.d.ts.map +0 -1
  164. package/dist/pcomponents/PCameraTarget.js +0 -79
  165. package/dist/pcomponents/PCameraTarget.js.map +0 -1
  166. package/dist/pcomponents/PCollider.d.ts +0 -40
  167. package/dist/pcomponents/PCollider.d.ts.map +0 -1
  168. package/dist/pcomponents/PCollider.js +0 -58
  169. package/dist/pcomponents/PCollider.js.map +0 -1
  170. package/dist/pcomponents/PCompareBoolean.d.ts +0 -23
  171. package/dist/pcomponents/PCompareBoolean.d.ts.map +0 -1
  172. package/dist/pcomponents/PCompareBoolean.js +0 -38
  173. package/dist/pcomponents/PCompareBoolean.js.map +0 -1
  174. package/dist/pcomponents/PCompareInteger.d.ts +0 -25
  175. package/dist/pcomponents/PCompareInteger.d.ts.map +0 -1
  176. package/dist/pcomponents/PCompareInteger.js +0 -44
  177. package/dist/pcomponents/PCompareInteger.js.map +0 -1
  178. package/dist/pcomponents/PCompareNumber.d.ts +0 -25
  179. package/dist/pcomponents/PCompareNumber.d.ts.map +0 -1
  180. package/dist/pcomponents/PCompareNumber.js +0 -44
  181. package/dist/pcomponents/PCompareNumber.js.map +0 -1
  182. package/dist/pcomponents/PCompareString.d.ts +0 -25
  183. package/dist/pcomponents/PCompareString.d.ts.map +0 -1
  184. package/dist/pcomponents/PCompareString.js +0 -42
  185. package/dist/pcomponents/PCompareString.js.map +0 -1
  186. package/dist/pcomponents/PCompareVariable.d.ts +0 -28
  187. package/dist/pcomponents/PCompareVariable.d.ts.map +0 -1
  188. package/dist/pcomponents/PCompareVariable.js +0 -50
  189. package/dist/pcomponents/PCompareVariable.js.map +0 -1
  190. package/dist/pcomponents/PControllerInput.d.ts +0 -30
  191. package/dist/pcomponents/PControllerInput.d.ts.map +0 -1
  192. package/dist/pcomponents/PControllerInput.js +0 -41
  193. package/dist/pcomponents/PControllerInput.js.map +0 -1
  194. package/dist/pcomponents/PCubeGeometry.d.ts +0 -18
  195. package/dist/pcomponents/PCubeGeometry.d.ts.map +0 -1
  196. package/dist/pcomponents/PCubeGeometry.js +0 -23
  197. package/dist/pcomponents/PCubeGeometry.js.map +0 -1
  198. package/dist/pcomponents/PDebug.d.ts +0 -23
  199. package/dist/pcomponents/PDebug.d.ts.map +0 -1
  200. package/dist/pcomponents/PDebug.js +0 -31
  201. package/dist/pcomponents/PDebug.js.map +0 -1
  202. package/dist/pcomponents/PEnvironment.d.ts +0 -27
  203. package/dist/pcomponents/PEnvironment.d.ts.map +0 -1
  204. package/dist/pcomponents/PEnvironment.js +0 -43
  205. package/dist/pcomponents/PEnvironment.js.map +0 -1
  206. package/dist/pcomponents/PFadeAnimation.d.ts +0 -30
  207. package/dist/pcomponents/PFadeAnimation.d.ts.map +0 -1
  208. package/dist/pcomponents/PFadeAnimation.js +0 -98
  209. package/dist/pcomponents/PFadeAnimation.js.map +0 -1
  210. package/dist/pcomponents/PHud.d.ts +0 -12
  211. package/dist/pcomponents/PHud.d.ts.map +0 -1
  212. package/dist/pcomponents/PHud.js +0 -12
  213. package/dist/pcomponents/PHud.js.map +0 -1
  214. package/dist/pcomponents/PImageCache.d.ts +0 -18
  215. package/dist/pcomponents/PImageCache.d.ts.map +0 -1
  216. package/dist/pcomponents/PImageCache.js +0 -44
  217. package/dist/pcomponents/PImageCache.js.map +0 -1
  218. package/dist/pcomponents/PImageDetector.d.ts +0 -28
  219. package/dist/pcomponents/PImageDetector.d.ts.map +0 -1
  220. package/dist/pcomponents/PImageDetector.js +0 -39
  221. package/dist/pcomponents/PImageDetector.js.map +0 -1
  222. package/dist/pcomponents/PInteger.d.ts +0 -39
  223. package/dist/pcomponents/PInteger.d.ts.map +0 -1
  224. package/dist/pcomponents/PInteger.js +0 -75
  225. package/dist/pcomponents/PInteger.js.map +0 -1
  226. package/dist/pcomponents/PIntegerAnimator.d.ts +0 -36
  227. package/dist/pcomponents/PIntegerAnimator.d.ts.map +0 -1
  228. package/dist/pcomponents/PIntegerAnimator.js +0 -105
  229. package/dist/pcomponents/PIntegerAnimator.js.map +0 -1
  230. package/dist/pcomponents/PLight.d.ts +0 -15
  231. package/dist/pcomponents/PLight.d.ts.map +0 -1
  232. package/dist/pcomponents/PLight.js +0 -19
  233. package/dist/pcomponents/PLight.js.map +0 -1
  234. package/dist/pcomponents/PLightDirectional.d.ts +0 -19
  235. package/dist/pcomponents/PLightDirectional.d.ts.map +0 -1
  236. package/dist/pcomponents/PLightDirectional.js +0 -25
  237. package/dist/pcomponents/PLightDirectional.js.map +0 -1
  238. package/dist/pcomponents/PMaskedMaterial.d.ts +0 -20
  239. package/dist/pcomponents/PMaskedMaterial.d.ts.map +0 -1
  240. package/dist/pcomponents/PMaskedMaterial.js +0 -33
  241. package/dist/pcomponents/PMaskedMaterial.js.map +0 -1
  242. package/dist/pcomponents/PMaterialModifier.d.ts +0 -20
  243. package/dist/pcomponents/PMaterialModifier.d.ts.map +0 -1
  244. package/dist/pcomponents/PMaterialModifier.js +0 -22
  245. package/dist/pcomponents/PMaterialModifier.js.map +0 -1
  246. package/dist/pcomponents/PModelAnnotation.d.ts +0 -43
  247. package/dist/pcomponents/PModelAnnotation.d.ts.map +0 -1
  248. package/dist/pcomponents/PModelAnnotation.js +0 -114
  249. package/dist/pcomponents/PModelAnnotation.js.map +0 -1
  250. package/dist/pcomponents/PModelAnnotations.d.ts +0 -42
  251. package/dist/pcomponents/PModelAnnotations.d.ts.map +0 -1
  252. package/dist/pcomponents/PModelAnnotations.js +0 -123
  253. package/dist/pcomponents/PModelAnnotations.js.map +0 -1
  254. package/dist/pcomponents/PModelGLTF.d.ts +0 -36
  255. package/dist/pcomponents/PModelGLTF.d.ts.map +0 -1
  256. package/dist/pcomponents/PModelGLTF.js +0 -61
  257. package/dist/pcomponents/PModelGLTF.js.map +0 -1
  258. package/dist/pcomponents/PModelNode.d.ts +0 -16
  259. package/dist/pcomponents/PModelNode.d.ts.map +0 -1
  260. package/dist/pcomponents/PModelNode.js +0 -18
  261. package/dist/pcomponents/PModelNode.js.map +0 -1
  262. package/dist/pcomponents/PMoveAnimation.d.ts +0 -27
  263. package/dist/pcomponents/PMoveAnimation.d.ts.map +0 -1
  264. package/dist/pcomponents/PMoveAnimation.js +0 -65
  265. package/dist/pcomponents/PMoveAnimation.js.map +0 -1
  266. package/dist/pcomponents/PMoveToAnimation.d.ts +0 -26
  267. package/dist/pcomponents/PMoveToAnimation.d.ts.map +0 -1
  268. package/dist/pcomponents/PMoveToAnimation.js +0 -81
  269. package/dist/pcomponents/PMoveToAnimation.js.map +0 -1
  270. package/dist/pcomponents/PPhysicalMaterial.d.ts +0 -29
  271. package/dist/pcomponents/PPhysicalMaterial.d.ts.map +0 -1
  272. package/dist/pcomponents/PPhysicalMaterial.js +0 -43
  273. package/dist/pcomponents/PPhysicalMaterial.js.map +0 -1
  274. package/dist/pcomponents/PPlaneDetector.d.ts +0 -20
  275. package/dist/pcomponents/PPlaneDetector.d.ts.map +0 -1
  276. package/dist/pcomponents/PPlaneDetector.js +0 -27
  277. package/dist/pcomponents/PPlaneDetector.js.map +0 -1
  278. package/dist/pcomponents/PPlaneGeometry.d.ts +0 -20
  279. package/dist/pcomponents/PPlaneGeometry.d.ts.map +0 -1
  280. package/dist/pcomponents/PPlaneGeometry.js +0 -26
  281. package/dist/pcomponents/PPlaneGeometry.js.map +0 -1
  282. package/dist/pcomponents/PProjectRoot.d.ts +0 -38
  283. package/dist/pcomponents/PProjectRoot.d.ts.map +0 -1
  284. package/dist/pcomponents/PProjectRoot.js +0 -82
  285. package/dist/pcomponents/PProjectRoot.js.map +0 -1
  286. package/dist/pcomponents/PRotateAnimation.d.ts +0 -32
  287. package/dist/pcomponents/PRotateAnimation.d.ts.map +0 -1
  288. package/dist/pcomponents/PRotateAnimation.js +0 -81
  289. package/dist/pcomponents/PRotateAnimation.js.map +0 -1
  290. package/dist/pcomponents/PScaleAnimation.d.ts +0 -28
  291. package/dist/pcomponents/PScaleAnimation.d.ts.map +0 -1
  292. package/dist/pcomponents/PScaleAnimation.js +0 -88
  293. package/dist/pcomponents/PScaleAnimation.js.map +0 -1
  294. package/dist/pcomponents/PSceneContainer.d.ts +0 -22
  295. package/dist/pcomponents/PSceneContainer.d.ts.map +0 -1
  296. package/dist/pcomponents/PSceneContainer.js +0 -51
  297. package/dist/pcomponents/PSceneContainer.js.map +0 -1
  298. package/dist/pcomponents/PSceneRoot.d.ts +0 -16
  299. package/dist/pcomponents/PSceneRoot.d.ts.map +0 -1
  300. package/dist/pcomponents/PSceneRoot.js +0 -23
  301. package/dist/pcomponents/PSceneRoot.js.map +0 -1
  302. package/dist/pcomponents/PSlider.d.ts +0 -34
  303. package/dist/pcomponents/PSlider.d.ts.map +0 -1
  304. package/dist/pcomponents/PSlider.js +0 -39
  305. package/dist/pcomponents/PSlider.js.map +0 -1
  306. package/dist/pcomponents/PSound.d.ts +0 -34
  307. package/dist/pcomponents/PSound.d.ts.map +0 -1
  308. package/dist/pcomponents/PSound.js +0 -45
  309. package/dist/pcomponents/PSound.js.map +0 -1
  310. package/dist/pcomponents/PSphereGeometry.d.ts +0 -19
  311. package/dist/pcomponents/PSphereGeometry.d.ts.map +0 -1
  312. package/dist/pcomponents/PSphereGeometry.js +0 -25
  313. package/dist/pcomponents/PSphereGeometry.js.map +0 -1
  314. package/dist/pcomponents/PSprite.d.ts +0 -19
  315. package/dist/pcomponents/PSprite.d.ts.map +0 -1
  316. package/dist/pcomponents/PSprite.js +0 -27
  317. package/dist/pcomponents/PSprite.js.map +0 -1
  318. package/dist/pcomponents/PSpriteSheet.d.ts +0 -27
  319. package/dist/pcomponents/PSpriteSheet.d.ts.map +0 -1
  320. package/dist/pcomponents/PSpriteSheet.js +0 -42
  321. package/dist/pcomponents/PSpriteSheet.js.map +0 -1
  322. package/dist/pcomponents/PText.d.ts +0 -35
  323. package/dist/pcomponents/PText.d.ts.map +0 -1
  324. package/dist/pcomponents/PText.js +0 -49
  325. package/dist/pcomponents/PText.js.map +0 -1
  326. package/dist/pcomponents/PTransform.d.ts +0 -23
  327. package/dist/pcomponents/PTransform.d.ts.map +0 -1
  328. package/dist/pcomponents/PTransform.js +0 -67
  329. package/dist/pcomponents/PTransform.js.map +0 -1
  330. package/dist/pcomponents/PVarList.d.ts +0 -36
  331. package/dist/pcomponents/PVarList.d.ts.map +0 -1
  332. package/dist/pcomponents/PVarList.js +0 -71
  333. package/dist/pcomponents/PVarList.js.map +0 -1
  334. package/dist/pcomponents/PVarReader.d.ts +0 -19
  335. package/dist/pcomponents/PVarReader.d.ts.map +0 -1
  336. package/dist/pcomponents/PVarReader.js +0 -25
  337. package/dist/pcomponents/PVarReader.js.map +0 -1
  338. package/dist/pcomponents/PVarWriter.d.ts +0 -25
  339. package/dist/pcomponents/PVarWriter.d.ts.map +0 -1
  340. package/dist/pcomponents/PVarWriter.js +0 -45
  341. package/dist/pcomponents/PVarWriter.js.map +0 -1
  342. package/dist/pcomponents/PVideoPlayer.d.ts +0 -35
  343. package/dist/pcomponents/PVideoPlayer.d.ts.map +0 -1
  344. package/dist/pcomponents/PVideoPlayer.js +0 -94
  345. package/dist/pcomponents/PVideoPlayer.js.map +0 -1
  346. package/dist/pcomponents/PVisibility.d.ts +0 -33
  347. package/dist/pcomponents/PVisibility.d.ts.map +0 -1
  348. package/dist/pcomponents/PVisibility.js +0 -63
  349. package/dist/pcomponents/PVisibility.js.map +0 -1
  350. package/dist/pcomponents/PXRTools.d.ts +0 -32
  351. package/dist/pcomponents/PXRTools.d.ts.map +0 -1
  352. package/dist/pcomponents/PXRTools.js +0 -44
  353. package/dist/pcomponents/PXRTools.js.map +0 -1
  354. package/dist/settings/ICameraSettings.d.ts +0 -13
  355. package/dist/settings/ICameraSettings.d.ts.map +0 -1
  356. package/dist/settings/ICameraSettings.js +0 -2
  357. package/dist/settings/ICameraSettings.js.map +0 -1
  358. package/dist/settings/IQualitySettings.d.ts +0 -14
  359. package/dist/settings/IQualitySettings.d.ts.map +0 -1
  360. package/dist/settings/IQualitySettings.js +0 -2
  361. package/dist/settings/IQualitySettings.js.map +0 -1
  362. package/dist/settings/IRenderSetting.d.ts +0 -7
  363. package/dist/settings/IRenderSetting.d.ts.map +0 -1
  364. package/dist/settings/IRenderSetting.js +0 -2
  365. package/dist/settings/IRenderSetting.js.map +0 -1
  366. package/dist/settings/ISetting.d.ts +0 -4
  367. package/dist/settings/ISetting.d.ts.map +0 -1
  368. package/dist/settings/ISetting.js +0 -2
  369. package/dist/settings/ISetting.js.map +0 -1
  370. package/dist/settings/IWebSettings.d.ts +0 -6
  371. package/dist/settings/IWebSettings.d.ts.map +0 -1
  372. package/dist/settings/IWebSettings.js +0 -2
  373. package/dist/settings/IWebSettings.js.map +0 -1
  374. package/dist/settings/Settings_Babylonjs.d.ts +0 -101
  375. package/dist/settings/Settings_Babylonjs.d.ts.map +0 -1
  376. package/dist/settings/Settings_Babylonjs.js +0 -85
  377. package/dist/settings/Settings_Babylonjs.js.map +0 -1
  378. package/dist/settings/Settings_Base.d.ts +0 -11
  379. package/dist/settings/Settings_Base.d.ts.map +0 -1
  380. package/dist/settings/Settings_Base.js +0 -39
  381. package/dist/settings/Settings_Base.js.map +0 -1
  382. package/dist/settings/Settings_Threejs.d.ts +0 -106
  383. package/dist/settings/Settings_Threejs.d.ts.map +0 -1
  384. package/dist/settings/Settings_Threejs.js +0 -165
  385. package/dist/settings/Settings_Threejs.js.map +0 -1
@@ -1,28 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"PCompareVariable.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PCompareVariable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAE7B,UAAU,iBAAkB,SAAQ,WAAW;IAC7C,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,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,iBAAiB,EAAE,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,UAAU;IACtD,UAAU,EAAE,SAAS,GAAG,IAAI,CAAC;IAC7B,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;gBAGhB,WAAW,EAAE,iBAAiB,EAC9B,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,WAAW;IA6BtB,IAAI,IAAI,iBAAiB;IAYzB,gBAAgB,GAAI,UAAU,MAAM,GAAG,IAAI,UAWzC;IAEF,MAAM,IAAI,IAAI;IAEd,QAAQ,IAAI,IAAI;CACjB"}
@@ -1,50 +0,0 @@
1
- import { PInAction, 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(dbComponent, "PCompareVariable", "Compare Variable", node, context);
14
- this.compareTo = dbComponent.compareTo || "";
15
- this.var_target = dbComponent.var_target
16
- ? context.getVariable(dbComponent.var_target)
17
- : null;
18
- this.inevent_compare = node.registerInAction("Compare", dbComponent.inevent_compare, this.callback_compare, DataType.None);
19
- this.outevent_onCompare = node.registerOutAction(dbComponent.outevent_onCompare, DataType.Boolean);
20
- this.outevent_onTrue = node.registerOutAction(dbComponent.outevent_onTrue);
21
- this.outevent_onFalse = node.registerOutAction(dbComponent.outevent_onFalse);
22
- }
23
- toDB() {
24
- return {
25
- ...super.toDB(),
26
- var_target: PVariable.toDB(this.var_target),
27
- inevent_compare: PInAction.toDB(this.inevent_compare),
28
- outevent_onCompare: POutAction.toDB(this.outevent_onCompare),
29
- outevent_onTrue: POutAction.toDB(this.outevent_onTrue),
30
- outevent_onFalse: POutAction.toDB(this.outevent_onFalse),
31
- compareTo: this.compareTo,
32
- };
33
- }
34
- callback_compare = (_payload) => {
35
- if (!this.var_target) {
36
- return;
37
- }
38
- const result = this.var_target.string_value() === this.compareTo;
39
- this.outevent_onCompare?.emit(result ? "1" : "0", this);
40
- if (result) {
41
- this.outevent_onTrue?.emit(null, this);
42
- }
43
- else {
44
- this.outevent_onFalse?.emit(null, this);
45
- }
46
- };
47
- render() { }
48
- unrender() { }
49
- }
50
- //# sourceMappingURL=PCompareVariable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PCompareVariable.js","sourceRoot":"","sources":["../../src/pcomponents/PCompareVariable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,UAA2B,MAAM,eAAe,CAAC;AAexD,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,UAAU;IACtD,UAAU,CAAmB;IAC7B,eAAe,CAAmB;IAClC,kBAAkB,CAAoB;IACtC,eAAe,CAAoB;IACnC,gBAAgB,CAAoB;IAEpC,SAAS,CAAS;IAElB,YACE,WAA8B,EAC9B,IAAW,EACX,OAAoB;QAEpB,KAAK,CAAC,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAE1E,IAAI,CAAC,SAAS,GAAG,WAAW,CAAC,SAAS,IAAI,EAAE,CAAC;QAE7C,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU;YACtC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,UAAU,CAAC;YAC7C,CAAC,CAAC,IAAI,CAAC;QAET,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,gBAAgB,CAC1C,SAAS,EACT,WAAW,CAAC,eAAe,EAC3B,IAAI,CAAC,gBAAgB,EACrB,QAAQ,CAAC,IAAI,CACd,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;QA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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
@@ -1 +0,0 @@
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;IAuBrB,IAAI,IAAI,iBAAiB;IAe1B,MAAM,IAAI,IAAI;IAId,QAAQ,IAAI,IAAI;CAGjB"}
@@ -1,41 +0,0 @@
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(dbComponent, "PControllerInput", "Controller Input", node, context);
14
- this.holdDurationA = dbComponent.holdDurationA;
15
- this.holdDurationB = dbComponent.holdDurationB;
16
- this.holdDurationX = dbComponent.holdDurationX;
17
- this.holdDurationY = dbComponent.holdDurationY;
18
- this.outevent_buttonA = node.registerOutAction(dbComponent.outevent_buttonA);
19
- this.outevent_buttonB = node.registerOutAction(dbComponent.outevent_buttonB);
20
- this.outevent_buttonX = node.registerOutAction(dbComponent.outevent_buttonX);
21
- this.outevent_buttonY = node.registerOutAction(dbComponent.outevent_buttonY);
22
- }
23
- toDB() {
24
- return {
25
- ...super.toDB(),
26
- outevent_buttonA: POutAction.toDB(this.outevent_buttonA),
27
- outevent_buttonB: POutAction.toDB(this.outevent_buttonB),
28
- outevent_buttonX: POutAction.toDB(this.outevent_buttonX),
29
- outevent_buttonY: POutAction.toDB(this.outevent_buttonY),
30
- holdDurationA: this.holdDurationA,
31
- holdDurationB: this.holdDurationB,
32
- holdDurationX: this.holdDurationX,
33
- holdDurationY: this.holdDurationY,
34
- };
35
- }
36
- render() {
37
- }
38
- unrender() {
39
- }
40
- }
41
- //# sourceMappingURL=PControllerInput.js.map
@@ -1 +0,0 @@
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,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAE1E,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"}
@@ -1,18 +0,0 @@
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
@@ -1 +0,0 @@
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;IAYrB,IAAI,IAAI,cAAc;CASxB"}
@@ -1,23 +0,0 @@
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(dbComponent, "PCubeGeometry", "Cube Geometry", node, context);
9
- this.requireTransform = true;
10
- this.size = new PVector3(dbComponent.size);
11
- this.castShadow = dbComponent.castShadow;
12
- this.receiveShadow = dbComponent.receiveShadow;
13
- }
14
- toDB() {
15
- return {
16
- ...super.toDB(),
17
- size: this.size,
18
- castShadow: this.castShadow,
19
- receiveShadow: this.receiveShadow,
20
- };
21
- }
22
- }
23
- //# sourceMappingURL=PCubeGeometry.js.map
@@ -1 +0,0 @@
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,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEpE,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAE7B,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"}
@@ -1,23 +0,0 @@
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_onInteger: IInAction | null;
9
- inevent_onBoolean: IInAction | null;
10
- }
11
- export type { DBDebug };
12
- export default class PDebug extends PComponent {
13
- inevent_on: PInAction | null;
14
- inevent_onNumber: PInAction | null;
15
- inevent_onInteger: PInAction | null;
16
- inevent_onBoolean: PInAction | null;
17
- constructor(dbComponent: DBDebug, node: PNode, context: GameContext);
18
- toDB(): DBDebug;
19
- render(): void;
20
- unrender(): void;
21
- onDebug: (payloadValue: string | null) => void;
22
- }
23
- //# sourceMappingURL=PDebug.d.ts.map
@@ -1 +0,0 @@
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;IACpC,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;IACpC,iBAAiB,EAAE,SAAS,GAAG,IAAI,CAAC;gBAExB,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IA8BnE,IAAI,IAAI,OAAO;IAUf,MAAM,IAAI,IAAI;IAEd,QAAQ,IAAI,IAAI;IAEhB,OAAO,GAAI,cAAc,MAAM,GAAG,IAAI,UAEpC;CACH"}
@@ -1,31 +0,0 @@
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_onInteger;
8
- inevent_onBoolean;
9
- constructor(dbComponent, node, context) {
10
- super(dbComponent, "PDebug", "Debug", node, context);
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
- this.inevent_onInteger = node.registerInAction("Debug Integer", dbComponent.inevent_onInteger, this.onDebug, DataType.Integer);
15
- }
16
- toDB() {
17
- return {
18
- ...super.toDB(),
19
- inevent_on: PInAction.toDB(this.inevent_on),
20
- inevent_onNumber: PInAction.toDB(this.inevent_onNumber),
21
- inevent_onBoolean: PInAction.toDB(this.inevent_onBoolean),
22
- inevent_onInteger: PInAction.toDB(this.inevent_onInteger),
23
- };
24
- }
25
- render() { }
26
- unrender() { }
27
- onDebug = (payloadValue) => {
28
- console.log("[PDebug][" + this.node.name + "]", payloadValue);
29
- };
30
- }
31
- //# sourceMappingURL=PDebug.js.map
@@ -1 +0,0 @@
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;AAYrC,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,UAAU;IAC5C,UAAU,CAAmB;IAC7B,gBAAgB,CAAmB;IACnC,iBAAiB,CAAmB;IACpC,iBAAiB,CAAmB;IAEpC,YAAY,WAAoB,EAAE,IAAW,EAAE,OAAoB;QACjE,KAAK,CAAC,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAErD,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;QAEF,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,CAC5C,eAAe,EACf,WAAW,CAAC,iBAAiB,EAC7B,IAAI,CAAC,OAAO,EACZ,QAAQ,CAAC,OAAO,CACjB,CAAC;IACJ,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;YACzD,iBAAiB,EAAE,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC;SAC1D,CAAC;IACJ,CAAC;IAED,MAAM,KAAU,CAAC;IAEjB,QAAQ,KAAU,CAAC;IAEnB,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"}
@@ -1,27 +0,0 @@
1
- import GameContext from "../GameContext";
2
- import PNode from "../PNode";
3
- import PComponent, { DBComponent } from "../PComponent";
4
- interface DBEnvironment extends DBComponent {
5
- value: number;
6
- rotation: number;
7
- intensity: number;
8
- blur: number;
9
- background: boolean;
10
- }
11
- export type { DBEnvironment };
12
- export default abstract class PEnvironment extends PComponent {
13
- _cacheKey: number;
14
- value: number;
15
- rotation: number;
16
- intensity: number;
17
- blur: number;
18
- background: boolean;
19
- protected _urls: string[][];
20
- protected _three: string[];
21
- constructor(dbComponent: DBEnvironment, node: PNode, context: GameContext);
22
- toDB(): DBEnvironment;
23
- abstract getTexture<T>(): T | null;
24
- abstract _dispose(): void;
25
- unrender(): void;
26
- }
27
- //# sourceMappingURL=PEnvironment.d.ts.map
@@ -1 +0,0 @@
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,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAExD,UAAU,aAAc,SAAQ,WAAW;IAEzC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,YAAa,SAAQ,UAAU;IAE3D,SAAS,SAAK;IAEd,KAAK,EAAE,MAAM,CAAC;IAEd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IAEpB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAOzB;IAEF,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,CAAM;gBAEpB,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAazE,IAAI,IAAI,aAAa;IAYrB,QAAQ,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,GAAG,IAAI;IAWlC,QAAQ,CAAC,QAAQ,IAAI,IAAI;IAEzB,QAAQ;CAGT"}
@@ -1,43 +0,0 @@
1
- import PComponent from "../PComponent";
2
- export default class PEnvironment extends PComponent {
3
- //file_texture: PFile | null;
4
- _cacheKey = 0;
5
- value;
6
- rotation;
7
- intensity;
8
- blur;
9
- background;
10
- _urls = [
11
- [
12
- "https://p100-pw.s3.eu-north-1.amazonaws.com/697618e47ec1cd94f1ddb4e6/IndustrialRoom.hdr",
13
- ],
14
- [
15
- "https://p100-pw.s3.eu-north-1.amazonaws.com/697618e37ec1cd94f1ddb4e5/IndustrialRoom.env",
16
- ],
17
- ];
18
- _three = [];
19
- constructor(dbComponent, node, context) {
20
- super(dbComponent, "PEnvironment", "Environment", node, context);
21
- //this.file_texture = this.context.requestFile(dbComponent.file_texture);
22
- this.value = dbComponent.value || 0;
23
- this.rotation = dbComponent.rotation;
24
- this.intensity = dbComponent.intensity;
25
- this.background = dbComponent.background;
26
- this.blur = dbComponent.blur || 0;
27
- }
28
- toDB() {
29
- return {
30
- ...super.toDB(),
31
- //file_texture: this.file_texture !== null ? this.file_texture._id : null,
32
- rotation: this.rotation,
33
- intensity: this.intensity,
34
- background: this.background,
35
- blur: this.blur,
36
- value: this.value,
37
- };
38
- }
39
- unrender() {
40
- this._dispose();
41
- }
42
- }
43
- //# sourceMappingURL=PEnvironment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PEnvironment.js","sourceRoot":"","sources":["../../src/pcomponents/PEnvironment.ts"],"names":[],"mappings":"AAEA,OAAO,UAA2B,MAAM,eAAe,CAAC;AAaxD,MAAM,CAAC,OAAO,OAAgB,YAAa,SAAQ,UAAU;IAC3D,6BAA6B;IAC7B,SAAS,GAAG,CAAC,CAAC;IAEd,KAAK,CAAS;IAEd,QAAQ,CAAS;IACjB,SAAS,CAAS;IAClB,IAAI,CAAS;IACb,UAAU,CAAU;IAEV,KAAK,GAAe;QAC5B;YACE,yFAAyF;SAC1F;QACD;YACE,yFAAyF;SAC1F;KACF,CAAC;IAEQ,MAAM,GAAa,EAAE,CAAC;IAEhC,YAAY,WAA0B,EAAE,IAAW,EAAE,OAAoB;QACvE,KAAK,CAAC,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEjE,yEAAyE;QAEzE,IAAI,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,IAAI,CAAC,CAAC;QAEpC,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC;QACrC,IAAI,CAAC,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;QACvC,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC;QACzC,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,IAAI,CAAC,CAAC;IACpC,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,0EAA0E;YAC1E,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC;IACJ,CAAC;IAeD,QAAQ;QACN,IAAI,CAAC,QAAQ,EAAE,CAAC;IAClB,CAAC;CACF"}
@@ -1,30 +0,0 @@
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
@@ -1 +0,0 @@
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,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAQ;IAC3C,SAAS,CAAC,SAAS,EAAE,MAAM,CAAO;gBAEtB,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IA0B3E,IAAI,IAAI,eAAe;IAWvB,MAAM,IAAI,IAAI;IAEd,QAAQ;IAOR,IAAI;IAeJ,iBAAiB,aA4Bf;IAEF,kBAAkB,aAyBhB;CACH"}
@@ -1,98 +0,0 @@
1
- import PComponent from "../PComponent";
2
- import { PInAction, POutAction } from "../PAction";
3
- import { Easing, Tween } from "@tweenjs/tween.js";
4
- export default class PFadeAnimation extends PComponent {
5
- inevent_fadeInOn;
6
- inevent_fadeOutOn;
7
- outevent_onFadeOut;
8
- outevent_onFadeIn;
9
- duration = 1000;
10
- _tween = null;
11
- _maxValue = 1.0;
12
- constructor(dbComponent, node, context) {
13
- super(dbComponent, "PFadeAnimation", "Fade Animation", node, context);
14
- this.requireTransform = true;
15
- this.inevent_fadeInOn = node.registerInAction("Fade In", dbComponent.inevent_fadeInOn, this.callback_onFadeIn);
16
- this.inevent_fadeOutOn = node.registerInAction("Fade Out", dbComponent.inevent_fadeOutOn, this.callback_onFadeOut);
17
- this.outevent_onFadeOut = node.registerOutAction(dbComponent.outevent_onFadeOut);
18
- this.outevent_onFadeIn = node.registerOutAction(dbComponent.outevent_onFadeIn);
19
- this.duration = dbComponent.duration;
20
- }
21
- toDB() {
22
- return {
23
- ...super.toDB(),
24
- inevent_fadeInOn: PInAction.toDB(this.inevent_fadeInOn),
25
- inevent_fadeOutOn: PInAction.toDB(this.inevent_fadeOutOn),
26
- duration: this.duration,
27
- outevent_onFadeOut: POutAction.toDB(this.outevent_onFadeOut),
28
- outevent_onFadeIn: POutAction.toDB(this.outevent_onFadeIn),
29
- };
30
- }
31
- render() { }
32
- unrender() {
33
- if (this._tween !== null) {
34
- this._tween.stop();
35
- this._tween = null;
36
- }
37
- }
38
- play() {
39
- if (!this.node.hasEl())
40
- return;
41
- const material = this.context.getNodeRenderer().getIMaterial(this.node);
42
- if (material === null)
43
- return;
44
- this._maxValue = material.opacity;
45
- if (this.node.isVisible()) {
46
- material.opacity = this._maxValue;
47
- }
48
- else {
49
- material.opacity = 0;
50
- }
51
- }
52
- callback_onFadeIn = () => {
53
- console.log('callback_onFadeIn: ');
54
- if (!this.node.isRunning() || !this.node.hasEl()) {
55
- return;
56
- }
57
- if (this._tween !== null) {
58
- this._tween.stop();
59
- this._tween = null;
60
- }
61
- const material = this.context.getNodeRenderer().getIMaterial(this.node);
62
- console.log('material: ', material);
63
- const distance = this._maxValue - material.opacity;
64
- this.node.setVisible(true);
65
- this._tween = new Tween(material)
66
- .easing(Easing.Quadratic.InOut)
67
- .to({ opacity: this._maxValue }, this.duration * distance)
68
- .start()
69
- .onComplete(() => {
70
- console.log("ok...");
71
- this._tween = null;
72
- this.outevent_onFadeIn?.emit(null, this);
73
- });
74
- this.context.addTween(this._tween);
75
- };
76
- callback_onFadeOut = () => {
77
- if (!this.node.isRunning() || !this.node.hasEl()) {
78
- return;
79
- }
80
- if (this._tween !== null) {
81
- this._tween.stop();
82
- this._tween = null;
83
- }
84
- const material = this.context.getNodeRenderer().getIMaterial(this.node);
85
- const distance = this._maxValue - (this._maxValue - material.opacity);
86
- this._tween = new Tween(material)
87
- .easing(Easing.Quadratic.InOut)
88
- .to({ opacity: 0 }, this.duration * distance)
89
- .start()
90
- .onComplete(() => {
91
- this._tween = null;
92
- this.node.setVisible(false);
93
- this.outevent_onFadeOut?.emit(null, this);
94
- });
95
- this.context.addTween(this._tween);
96
- };
97
- }
98
- //# sourceMappingURL=PFadeAnimation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PFadeAnimation.js","sourceRoot":"","sources":["../../src/pcomponents/PFadeAnimation.ts"],"names":[],"mappings":"AAAA,OAAO,UAA2B,MAAM,eAAe,CAAC;AACxD,OAAO,EAAyB,SA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QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAE,CAAC;QAEzE,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,GAAG,CAAC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;QAEtE,IAAI,CAAC,MAAM,GAAG,IAAI,KAAK,CAAC,QAAQ,CAAC;aAC9B,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC;aAC9B,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;aAC5C,KAAK,EAAE;aACP,UAAU,CAAC,GAAG,EAAE;YACf,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;YACnB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YAC5B,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;QACL,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC,CAAC;CACH"}
@@ -1,12 +0,0 @@
1
- import GameContext from "../GameContext";
2
- import PNode from "../PNode";
3
- import PComponent, { DBComponent } from "../PComponent";
4
- interface DBHud extends DBComponent {
5
- }
6
- export type { DBHud };
7
- export default class PHud extends PComponent {
8
- constructor(dbComponent: DBHud, node: PNode, context: GameContext);
9
- render(): void;
10
- unrender(): void;
11
- }
12
- //# sourceMappingURL=PHud.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PHud.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PHud.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;AAExD,UAAU,KAAM,SAAQ,WAAW;CAAG;AAEtC,YAAY,EAAE,KAAK,EAAE,CAAC;AAEtB,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,UAAU;gBAC9B,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAMjE,MAAM;IAIN,QAAQ,IAAI,IAAI;CACjB"}
@@ -1,12 +0,0 @@
1
- import PComponent from "../PComponent";
2
- export default class PHud extends PComponent {
3
- constructor(dbComponent, node, context) {
4
- super(dbComponent, "PHud", "Hud", node, context);
5
- this.requireTransform = true;
6
- }
7
- render() {
8
- this.context.getNodeRenderer().addToCamera(this.node);
9
- }
10
- unrender() { }
11
- }
12
- //# sourceMappingURL=PHud.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PHud.js","sourceRoot":"","sources":["../../src/pcomponents/PHud.ts"],"names":[],"mappings":"AAEA,OAAO,UAA2B,MAAM,eAAe,CAAC;AAMxD,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,UAAU;IAC1C,YAAY,WAAkB,EAAE,IAAW,EAAE,OAAoB;QAC/D,KAAK,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEjD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAC/B,CAAC;IAED,MAAM;QACJ,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxD,CAAC;IAED,QAAQ,KAAU,CAAC;CACpB"}
@@ -1,18 +0,0 @@
1
- import GameContext from "../GameContext";
2
- import PNode from "../PNode";
3
- import PComponent, { DBComponent } from "../PComponent";
4
- import PFile from "../media/PFile";
5
- interface DBImageCache extends DBComponent {
6
- files_textures: (string | null)[] | null;
7
- size: number;
8
- }
9
- export type { DBImageCache };
10
- export default abstract class PImageCache extends PComponent {
11
- size: number;
12
- files_textures: (PFile | null)[];
13
- constructor(dbComponent: DBImageCache, node: PNode, context: GameContext);
14
- toDB(): DBImageCache;
15
- dispose(): void;
16
- editor_setFile(_index: number, _file: string | null): void;
17
- }
18
- //# sourceMappingURL=PImageCache.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PImageCache.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PImageCache.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,KAAK,MAAM,gBAAgB,CAAC;AAEnC,UAAU,YAAa,SAAQ,WAAW;IACxC,cAAc,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,YAAY,EAAE,YAAY,EAAE,CAAC;AAE7B,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,WAAY,SAAQ,UAAU;IAC1D,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,CAAC,KAAK,GAAG,IAAI,CAAC,EAAE,CAAC;gBAErB,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAgBxE,IAAI,IAAI,YAAY;IAepB,OAAO;IAWP,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CACpD"}
@@ -1,44 +0,0 @@
1
- import PComponent from "../PComponent";
2
- export default class PImageCache extends PComponent {
3
- size;
4
- files_textures;
5
- constructor(dbComponent, node, context) {
6
- super(dbComponent, "PImageCache", "Image Cache", node, context);
7
- this.size = dbComponent.size || 0;
8
- this.files_textures = new Array(this.size);
9
- const dbList = dbComponent.files_textures;
10
- const inArray = dbList || new Array(this.size);
11
- for (let i = 0; i < this.size; i++) {
12
- const dbValue = inArray[i];
13
- if (dbValue)
14
- this.files_textures[i] = this.context.requestFile(dbValue);
15
- else
16
- this.files_textures[i] = null;
17
- }
18
- }
19
- toDB() {
20
- const fileIds = this.files_textures
21
- .filter((f) => f !== null)
22
- .map((f) => f._id);
23
- return {
24
- ...super.toDB(),
25
- files_textures: fileIds,
26
- size: fileIds.length,
27
- };
28
- }
29
- //
30
- // LIFE CYCLE
31
- //
32
- dispose() {
33
- // Release files
34
- for (const file of this.files_textures) {
35
- if (file)
36
- this.context.releaseFile(file);
37
- }
38
- }
39
- //
40
- // EDITOR
41
- //
42
- editor_setFile(_index, _file) { }
43
- }
44
- //# sourceMappingURL=PImageCache.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PImageCache.js","sourceRoot":"","sources":["../../src/pcomponents/PImageCache.ts"],"names":[],"mappings":"AAEA,OAAO,UAA2B,MAAM,eAAe,CAAC;AAUxD,MAAM,CAAC,OAAO,OAAgB,WAAY,SAAQ,UAAU;IAC1D,IAAI,CAAS;IACb,cAAc,CAAmB;IAEjC,YAAY,WAAyB,EAAE,IAAW,EAAE,OAAoB;QACtE,KAAK,CAAC,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEhE,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,IAAI,CAAC,CAAC;QAElC,IAAI,CAAC,cAAc,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE3C,MAAM,MAAM,GAAG,WAAW,CAAC,cAAc,CAAC;QAC1C,MAAM,OAAO,GAAG,MAAM,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC;YACnC,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YAC3B,IAAI,OAAO;gBAAE,IAA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