@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.
- package/dist/index.d.ts +136 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +101 -0
- package/dist/index.js.map +1 -0
- package/dist/src/AdaptivePerformance.d.ts +20 -0
- package/dist/src/AdaptivePerformance.d.ts.map +1 -0
- package/dist/src/AdaptivePerformance.js +110 -0
- package/dist/src/AdaptivePerformance.js.map +1 -0
- package/dist/src/DBEvent.d.ts +22 -0
- package/dist/src/DBEvent.d.ts.map +1 -0
- package/dist/src/DBEvent.js +19 -0
- package/dist/src/DBEvent.js.map +1 -0
- package/dist/src/DBNode.d.ts +33 -0
- package/dist/src/DBNode.d.ts.map +1 -0
- package/dist/src/DBNode.js +31 -0
- package/dist/src/DBNode.js.map +1 -0
- package/dist/src/DBScene.d.ts +11 -0
- package/dist/src/DBScene.d.ts.map +1 -0
- package/dist/src/DBScene.js +9 -0
- package/dist/src/DBScene.js.map +1 -0
- package/dist/src/DBVariable.d.ts +22 -0
- package/dist/src/DBVariable.d.ts.map +1 -0
- package/dist/src/DBVariable.js +19 -0
- package/dist/src/DBVariable.js.map +1 -0
- package/dist/src/DevTools.d.ts +4 -0
- package/dist/src/DevTools.d.ts.map +1 -0
- package/dist/src/DevTools.js +10 -0
- package/dist/src/DevTools.js.map +1 -0
- package/dist/src/GameContext.d.ts +179 -0
- package/dist/src/GameContext.d.ts.map +1 -0
- package/dist/src/GameContext.js +594 -0
- package/dist/src/GameContext.js.map +1 -0
- package/dist/src/IAudioListener.d.ts +4 -0
- package/dist/src/IAudioListener.d.ts.map +1 -0
- package/dist/src/IAudioListener.js +2 -0
- package/dist/src/IAudioListener.js.map +1 -0
- package/dist/src/ICameraControls.d.ts +14 -0
- package/dist/src/ICameraControls.d.ts.map +1 -0
- package/dist/src/ICameraControls.js +2 -0
- package/dist/src/ICameraControls.js.map +1 -0
- package/dist/src/ICameraNode.d.ts +6 -0
- package/dist/src/ICameraNode.d.ts.map +1 -0
- package/dist/src/ICameraNode.js +2 -0
- package/dist/src/ICameraNode.js.map +1 -0
- package/dist/src/IComponentFactory.d.ts +8 -0
- package/dist/src/IComponentFactory.d.ts.map +1 -0
- package/dist/src/IComponentFactory.js +2 -0
- package/dist/src/IComponentFactory.js.map +1 -0
- package/dist/src/IEngine.d.ts +26 -0
- package/dist/src/IEngine.d.ts.map +1 -0
- package/dist/src/IEngine.js +2 -0
- package/dist/src/IEngine.js.map +1 -0
- package/dist/src/IMaterial.d.ts +5 -0
- package/dist/src/IMaterial.d.ts.map +1 -0
- package/dist/src/IMaterial.js +2 -0
- package/dist/src/IMaterial.js.map +1 -0
- package/dist/src/IPCanvas.d.ts +45 -0
- package/dist/src/IPCanvas.d.ts.map +1 -0
- package/dist/src/IPCanvas.js +2 -0
- package/dist/src/IPCanvas.js.map +1 -0
- package/dist/src/IPNodeRenderer.d.ts +23 -0
- package/dist/src/IPNodeRenderer.d.ts.map +1 -0
- package/dist/src/IPNodeRenderer.js +2 -0
- package/dist/src/IPNodeRenderer.js.map +1 -0
- package/dist/src/IStats.d.ts +9 -0
- package/dist/src/IStats.d.ts.map +1 -0
- package/dist/src/IStats.js +3 -0
- package/dist/src/IStats.js.map +1 -0
- package/dist/src/MathTools.d.ts +4 -0
- package/dist/src/MathTools.d.ts.map +1 -0
- package/dist/src/MathTools.js +7 -0
- package/dist/src/MathTools.js.map +1 -0
- package/dist/src/PAction.d.ts +64 -0
- package/dist/src/PAction.d.ts.map +1 -0
- package/dist/src/PAction.js +209 -0
- package/dist/src/PAction.js.map +1 -0
- package/dist/src/PComponent.d.ts +60 -0
- package/dist/src/PComponent.d.ts.map +1 -0
- package/dist/src/PComponent.js +44 -0
- package/dist/src/PComponent.js.map +1 -0
- package/dist/src/PEnums.d.ts +98 -0
- package/dist/src/PEnums.d.ts.map +1 -0
- package/dist/src/PEnums.js +110 -0
- package/dist/src/PEnums.js.map +1 -0
- package/dist/src/PEvent.d.ts +27 -0
- package/dist/src/PEvent.d.ts.map +1 -0
- package/dist/src/PEvent.js +40 -0
- package/dist/src/PEvent.js.map +1 -0
- package/dist/src/PNode.d.ts +111 -0
- package/dist/src/PNode.d.ts.map +1 -0
- package/dist/src/PNode.js +488 -0
- package/dist/src/PNode.js.map +1 -0
- package/dist/src/PPayload.d.ts +7 -0
- package/dist/src/PPayload.d.ts.map +1 -0
- package/dist/src/PPayload.js +19 -0
- package/dist/src/PPayload.js.map +1 -0
- package/dist/src/PTypes.d.ts +140 -0
- package/dist/src/PTypes.d.ts.map +1 -0
- package/dist/src/PTypes.js +2 -0
- package/dist/src/PTypes.js.map +1 -0
- package/dist/src/PVariable.d.ts +29 -0
- package/dist/src/PVariable.d.ts.map +1 -0
- package/dist/src/PVariable.js +51 -0
- package/dist/src/PVariable.js.map +1 -0
- package/dist/src/PVector2.d.ts +14 -0
- package/dist/src/PVector2.d.ts.map +1 -0
- package/dist/src/PVector2.js +25 -0
- package/dist/src/PVector2.js.map +1 -0
- package/dist/src/PVector3.d.ts +17 -0
- package/dist/src/PVector3.d.ts.map +1 -0
- package/dist/src/PVector3.js +36 -0
- package/dist/src/PVector3.js.map +1 -0
- package/dist/src/animations/IAnimationAction.d.ts +9 -0
- package/dist/src/animations/IAnimationAction.d.ts.map +1 -0
- package/dist/src/animations/IAnimationAction.js +2 -0
- package/dist/src/animations/IAnimationAction.js.map +1 -0
- package/dist/src/animations/IAnimationClip.d.ts +5 -0
- package/dist/src/animations/IAnimationClip.d.ts.map +1 -0
- package/dist/src/animations/IAnimationClip.js +2 -0
- package/dist/src/animations/IAnimationClip.js.map +1 -0
- package/dist/src/animations/IAnimationMixer.d.ts +7 -0
- package/dist/src/animations/IAnimationMixer.d.ts.map +1 -0
- package/dist/src/animations/IAnimationMixer.js +2 -0
- package/dist/src/animations/IAnimationMixer.js.map +1 -0
- package/dist/src/media/IMediaLoader.d.ts +31 -0
- package/dist/src/media/IMediaLoader.d.ts.map +1 -0
- package/dist/src/media/IMediaLoader.js +2 -0
- package/dist/src/media/IMediaLoader.js.map +1 -0
- package/dist/src/media/MediaManager.d.ts +17 -0
- package/dist/src/media/MediaManager.d.ts.map +1 -0
- package/dist/src/media/MediaManager.js +19 -0
- package/dist/src/media/MediaManager.js.map +1 -0
- package/dist/src/media/PFile.d.ts +13 -0
- package/dist/src/media/PFile.d.ts.map +1 -0
- package/dist/src/media/PFile.js +28 -0
- package/dist/src/media/PFile.js.map +1 -0
- package/dist/src/pcomponents/BaseBackground.d.ts +27 -0
- package/dist/src/pcomponents/BaseBackground.d.ts.map +1 -0
- package/dist/src/pcomponents/BaseBackground.js +21 -0
- package/dist/src/pcomponents/BaseBackground.js.map +1 -0
- package/dist/src/pcomponents/BaseMaterial.d.ts +45 -0
- package/dist/src/pcomponents/BaseMaterial.d.ts.map +1 -0
- package/dist/src/pcomponents/BaseMaterial.js +47 -0
- package/dist/src/pcomponents/BaseMaterial.js.map +1 -0
- package/dist/src/pcomponents/PAnimator.d.ts +37 -0
- package/dist/src/pcomponents/PAnimator.d.ts.map +1 -0
- package/dist/src/pcomponents/PAnimator.js +43 -0
- package/dist/src/pcomponents/PAnimator.js.map +1 -0
- package/dist/src/pcomponents/PBasicMaterial.d.ts +23 -0
- package/dist/src/pcomponents/PBasicMaterial.d.ts.map +1 -0
- package/dist/src/pcomponents/PBasicMaterial.js +38 -0
- package/dist/src/pcomponents/PBasicMaterial.js.map +1 -0
- package/dist/src/pcomponents/PCallAction.d.ts +19 -0
- package/dist/src/pcomponents/PCallAction.d.ts.map +1 -0
- package/dist/src/pcomponents/PCallAction.js +25 -0
- package/dist/src/pcomponents/PCallAction.js.map +1 -0
- package/dist/src/pcomponents/PCallActions.d.ts +24 -0
- package/dist/src/pcomponents/PCallActions.d.ts.map +1 -0
- package/dist/src/pcomponents/PCallActions.js +38 -0
- package/dist/src/pcomponents/PCallActions.js.map +1 -0
- package/dist/src/pcomponents/PCameraPosition.d.ts +29 -0
- package/dist/src/pcomponents/PCameraPosition.d.ts.map +1 -0
- package/dist/src/pcomponents/PCameraPosition.js +76 -0
- package/dist/src/pcomponents/PCameraPosition.js.map +1 -0
- package/dist/src/pcomponents/PCameraTarget.d.ts +29 -0
- package/dist/src/pcomponents/PCameraTarget.d.ts.map +1 -0
- package/dist/src/pcomponents/PCameraTarget.js +77 -0
- package/dist/src/pcomponents/PCameraTarget.js.map +1 -0
- package/dist/src/pcomponents/PCollider.d.ts +39 -0
- package/dist/src/pcomponents/PCollider.d.ts.map +1 -0
- package/dist/src/pcomponents/PCollider.js +56 -0
- package/dist/src/pcomponents/PCollider.js.map +1 -0
- package/dist/src/pcomponents/PCompareBoolean.d.ts +23 -0
- package/dist/src/pcomponents/PCompareBoolean.d.ts.map +1 -0
- package/dist/src/pcomponents/PCompareBoolean.js +39 -0
- package/dist/src/pcomponents/PCompareBoolean.js.map +1 -0
- package/dist/src/pcomponents/PCompareNumber.d.ts +25 -0
- package/dist/src/pcomponents/PCompareNumber.d.ts.map +1 -0
- package/dist/src/pcomponents/PCompareNumber.js +45 -0
- package/dist/src/pcomponents/PCompareNumber.js.map +1 -0
- package/dist/src/pcomponents/PCompareString.d.ts +25 -0
- package/dist/src/pcomponents/PCompareString.d.ts.map +1 -0
- package/dist/src/pcomponents/PCompareString.js +43 -0
- package/dist/src/pcomponents/PCompareString.js.map +1 -0
- package/dist/src/pcomponents/PCompareVariable.d.ts +28 -0
- package/dist/src/pcomponents/PCompareVariable.d.ts.map +1 -0
- package/dist/src/pcomponents/PCompareVariable.js +51 -0
- package/dist/src/pcomponents/PCompareVariable.js.map +1 -0
- package/dist/src/pcomponents/PControllerInput.d.ts +30 -0
- package/dist/src/pcomponents/PControllerInput.d.ts.map +1 -0
- package/dist/src/pcomponents/PControllerInput.js +42 -0
- package/dist/src/pcomponents/PControllerInput.js.map +1 -0
- package/dist/src/pcomponents/PCubeGeometry.d.ts +18 -0
- package/dist/src/pcomponents/PCubeGeometry.d.ts.map +1 -0
- package/dist/src/pcomponents/PCubeGeometry.js +22 -0
- package/dist/src/pcomponents/PCubeGeometry.js.map +1 -0
- package/dist/src/pcomponents/PDebug.d.ts +21 -0
- package/dist/src/pcomponents/PDebug.d.ts.map +1 -0
- package/dist/src/pcomponents/PDebug.js +31 -0
- package/dist/src/pcomponents/PDebug.js.map +1 -0
- package/dist/src/pcomponents/PEnvironment.d.ts +28 -0
- package/dist/src/pcomponents/PEnvironment.d.ts.map +1 -0
- package/dist/src/pcomponents/PEnvironment.js +44 -0
- package/dist/src/pcomponents/PEnvironment.js.map +1 -0
- package/dist/src/pcomponents/PFadeAnimation.d.ts +30 -0
- package/dist/src/pcomponents/PFadeAnimation.d.ts.map +1 -0
- package/dist/src/pcomponents/PFadeAnimation.js +94 -0
- package/dist/src/pcomponents/PFadeAnimation.js.map +1 -0
- package/dist/src/pcomponents/PHud.d.ts +12 -0
- package/dist/src/pcomponents/PHud.d.ts.map +1 -0
- package/dist/src/pcomponents/PHud.js +12 -0
- package/dist/src/pcomponents/PHud.js.map +1 -0
- package/dist/src/pcomponents/PImageBackground.d.ts +13 -0
- package/dist/src/pcomponents/PImageBackground.d.ts.map +1 -0
- package/dist/src/pcomponents/PImageBackground.js +18 -0
- package/dist/src/pcomponents/PImageBackground.js.map +1 -0
- package/dist/src/pcomponents/PImageCache.d.ts +22 -0
- package/dist/src/pcomponents/PImageCache.d.ts.map +1 -0
- package/dist/src/pcomponents/PImageCache.js +69 -0
- package/dist/src/pcomponents/PImageCache.js.map +1 -0
- package/dist/src/pcomponents/PImageDetector.d.ts +28 -0
- package/dist/src/pcomponents/PImageDetector.d.ts.map +1 -0
- package/dist/src/pcomponents/PImageDetector.js +38 -0
- package/dist/src/pcomponents/PImageDetector.js.map +1 -0
- package/dist/src/pcomponents/PLight.d.ts +15 -0
- package/dist/src/pcomponents/PLight.d.ts.map +1 -0
- package/dist/src/pcomponents/PLight.js +18 -0
- package/dist/src/pcomponents/PLight.js.map +1 -0
- package/dist/src/pcomponents/PLightDirectional.d.ts +19 -0
- package/dist/src/pcomponents/PLightDirectional.d.ts.map +1 -0
- package/dist/src/pcomponents/PLightDirectional.js +24 -0
- package/dist/src/pcomponents/PLightDirectional.js.map +1 -0
- package/dist/src/pcomponents/PMaskedMaterial.d.ts +20 -0
- package/dist/src/pcomponents/PMaskedMaterial.d.ts.map +1 -0
- package/dist/src/pcomponents/PMaskedMaterial.js +35 -0
- package/dist/src/pcomponents/PMaskedMaterial.js.map +1 -0
- package/dist/src/pcomponents/PModelGLTF.d.ts +33 -0
- package/dist/src/pcomponents/PModelGLTF.d.ts.map +1 -0
- package/dist/src/pcomponents/PModelGLTF.js +53 -0
- package/dist/src/pcomponents/PModelGLTF.js.map +1 -0
- package/dist/src/pcomponents/PMoveAnimation.d.ts +22 -0
- package/dist/src/pcomponents/PMoveAnimation.d.ts.map +1 -0
- package/dist/src/pcomponents/PMoveAnimation.js +44 -0
- package/dist/src/pcomponents/PMoveAnimation.js.map +1 -0
- package/dist/src/pcomponents/PMoveToAnimation.d.ts +26 -0
- package/dist/src/pcomponents/PMoveToAnimation.d.ts.map +1 -0
- package/dist/src/pcomponents/PMoveToAnimation.js +79 -0
- package/dist/src/pcomponents/PMoveToAnimation.js.map +1 -0
- package/dist/src/pcomponents/PPhysicalMaterial.d.ts +27 -0
- package/dist/src/pcomponents/PPhysicalMaterial.d.ts.map +1 -0
- package/dist/src/pcomponents/PPhysicalMaterial.js +41 -0
- package/dist/src/pcomponents/PPhysicalMaterial.js.map +1 -0
- package/dist/src/pcomponents/PPlaneDetector.d.ts +20 -0
- package/dist/src/pcomponents/PPlaneDetector.d.ts.map +1 -0
- package/dist/src/pcomponents/PPlaneDetector.js +26 -0
- package/dist/src/pcomponents/PPlaneDetector.js.map +1 -0
- package/dist/src/pcomponents/PPlaneGeometry.d.ts +20 -0
- package/dist/src/pcomponents/PPlaneGeometry.d.ts.map +1 -0
- package/dist/src/pcomponents/PPlaneGeometry.js +25 -0
- package/dist/src/pcomponents/PPlaneGeometry.js.map +1 -0
- package/dist/src/pcomponents/PProjectRoot.d.ts +38 -0
- package/dist/src/pcomponents/PProjectRoot.d.ts.map +1 -0
- package/dist/src/pcomponents/PProjectRoot.js +82 -0
- package/dist/src/pcomponents/PProjectRoot.js.map +1 -0
- package/dist/src/pcomponents/PRotateAnimation.d.ts +30 -0
- package/dist/src/pcomponents/PRotateAnimation.d.ts.map +1 -0
- package/dist/src/pcomponents/PRotateAnimation.js +72 -0
- package/dist/src/pcomponents/PRotateAnimation.js.map +1 -0
- package/dist/src/pcomponents/PScaleAnimation.d.ts +28 -0
- package/dist/src/pcomponents/PScaleAnimation.d.ts.map +1 -0
- package/dist/src/pcomponents/PScaleAnimation.js +75 -0
- package/dist/src/pcomponents/PScaleAnimation.js.map +1 -0
- package/dist/src/pcomponents/PSceneContainer.d.ts +22 -0
- package/dist/src/pcomponents/PSceneContainer.d.ts.map +1 -0
- package/dist/src/pcomponents/PSceneContainer.js +50 -0
- package/dist/src/pcomponents/PSceneContainer.js.map +1 -0
- package/dist/src/pcomponents/PSceneRoot.d.ts +16 -0
- package/dist/src/pcomponents/PSceneRoot.d.ts.map +1 -0
- package/dist/src/pcomponents/PSceneRoot.js +22 -0
- package/dist/src/pcomponents/PSceneRoot.js.map +1 -0
- package/dist/src/pcomponents/PSlider.d.ts +28 -0
- package/dist/src/pcomponents/PSlider.d.ts.map +1 -0
- package/dist/src/pcomponents/PSlider.js +37 -0
- package/dist/src/pcomponents/PSlider.js.map +1 -0
- package/dist/src/pcomponents/PSound.d.ts +34 -0
- package/dist/src/pcomponents/PSound.d.ts.map +1 -0
- package/dist/src/pcomponents/PSound.js +44 -0
- package/dist/src/pcomponents/PSound.js.map +1 -0
- package/dist/src/pcomponents/PSphereGeometry.d.ts +19 -0
- package/dist/src/pcomponents/PSphereGeometry.d.ts.map +1 -0
- package/dist/src/pcomponents/PSphereGeometry.js +24 -0
- package/dist/src/pcomponents/PSphereGeometry.js.map +1 -0
- package/dist/src/pcomponents/PSprite.d.ts +19 -0
- package/dist/src/pcomponents/PSprite.d.ts.map +1 -0
- package/dist/src/pcomponents/PSprite.js +26 -0
- package/dist/src/pcomponents/PSprite.js.map +1 -0
- package/dist/src/pcomponents/PSpriteAnimation.d.ts +25 -0
- package/dist/src/pcomponents/PSpriteAnimation.d.ts.map +1 -0
- package/dist/src/pcomponents/PSpriteAnimation.js +29 -0
- package/dist/src/pcomponents/PSpriteAnimation.js.map +1 -0
- package/dist/src/pcomponents/PText.d.ts +35 -0
- package/dist/src/pcomponents/PText.d.ts.map +1 -0
- package/dist/src/pcomponents/PText.js +48 -0
- package/dist/src/pcomponents/PText.js.map +1 -0
- package/dist/src/pcomponents/PTransform.d.ts +22 -0
- package/dist/src/pcomponents/PTransform.d.ts.map +1 -0
- package/dist/src/pcomponents/PTransform.js +37 -0
- package/dist/src/pcomponents/PTransform.js.map +1 -0
- package/dist/src/pcomponents/PVarList.d.ts +26 -0
- package/dist/src/pcomponents/PVarList.d.ts.map +1 -0
- package/dist/src/pcomponents/PVarList.js +52 -0
- package/dist/src/pcomponents/PVarList.js.map +1 -0
- package/dist/src/pcomponents/PVarReader.d.ts +19 -0
- package/dist/src/pcomponents/PVarReader.d.ts.map +1 -0
- package/dist/src/pcomponents/PVarReader.js +26 -0
- package/dist/src/pcomponents/PVarReader.js.map +1 -0
- package/dist/src/pcomponents/PVarWriter.d.ts +25 -0
- package/dist/src/pcomponents/PVarWriter.d.ts.map +1 -0
- package/dist/src/pcomponents/PVarWriter.js +46 -0
- package/dist/src/pcomponents/PVarWriter.js.map +1 -0
- package/dist/src/pcomponents/PVideoBackground.d.ts +36 -0
- package/dist/src/pcomponents/PVideoBackground.d.ts.map +1 -0
- package/dist/src/pcomponents/PVideoBackground.js +89 -0
- package/dist/src/pcomponents/PVideoBackground.js.map +1 -0
- package/dist/src/pcomponents/PVideoMaterial.d.ts +26 -0
- package/dist/src/pcomponents/PVideoMaterial.d.ts.map +1 -0
- package/dist/src/pcomponents/PVideoMaterial.js +40 -0
- package/dist/src/pcomponents/PVideoMaterial.js.map +1 -0
- package/dist/src/pcomponents/PVideoPlayer.d.ts +31 -0
- package/dist/src/pcomponents/PVideoPlayer.d.ts.map +1 -0
- package/dist/src/pcomponents/PVideoPlayer.js +70 -0
- package/dist/src/pcomponents/PVideoPlayer.js.map +1 -0
- package/dist/src/pcomponents/PVisibility.d.ts +33 -0
- package/dist/src/pcomponents/PVisibility.d.ts.map +1 -0
- package/dist/src/pcomponents/PVisibility.js +62 -0
- package/dist/src/pcomponents/PVisibility.js.map +1 -0
- package/dist/src/pcomponents/PXRTools.d.ts +32 -0
- package/dist/src/pcomponents/PXRTools.d.ts.map +1 -0
- package/dist/src/pcomponents/PXRTools.js +45 -0
- package/dist/src/pcomponents/PXRTools.js.map +1 -0
- package/dist/src/settings/Settings_Base.d.ts +7 -0
- package/dist/src/settings/Settings_Base.d.ts.map +1 -0
- package/dist/src/settings/Settings_Base.js +18 -0
- package/dist/src/settings/Settings_Base.js.map +1 -0
- package/dist/src/settings/Settings_Threejs.d.ts +9 -0
- package/dist/src/settings/Settings_Threejs.d.ts.map +1 -0
- package/dist/src/settings/Settings_Threejs.js +172 -0
- package/dist/src/settings/Settings_Threejs.js.map +1 -0
- package/package.json +23 -0
|
@@ -0,0 +1,488 @@
|
|
|
1
|
+
import { PInAction, POutAction, } from "./PAction";
|
|
2
|
+
import { ActionType, DataType, Language, PayloadSource, Platform, PProperties, } from "./PEnums";
|
|
3
|
+
export default class PNode {
|
|
4
|
+
// Runtime state
|
|
5
|
+
_enabled = false;
|
|
6
|
+
_rendered = false;
|
|
7
|
+
_running = false;
|
|
8
|
+
_disposed = false;
|
|
9
|
+
// If this node's is set to be visible
|
|
10
|
+
_visible = false;
|
|
11
|
+
// _inVariables: PInVariable[] = [];
|
|
12
|
+
// _outVariables: POutVariable[] = [];
|
|
13
|
+
_inActions = [];
|
|
14
|
+
_outActions = [];
|
|
15
|
+
// Database fields
|
|
16
|
+
id;
|
|
17
|
+
sceneId;
|
|
18
|
+
projectId;
|
|
19
|
+
blueprintId;
|
|
20
|
+
name;
|
|
21
|
+
parentId;
|
|
22
|
+
visible;
|
|
23
|
+
components;
|
|
24
|
+
layer;
|
|
25
|
+
// Renderer
|
|
26
|
+
renderer;
|
|
27
|
+
// Editor fields
|
|
28
|
+
editor_visible;
|
|
29
|
+
// Runtime fields
|
|
30
|
+
parent = null;
|
|
31
|
+
children = [];
|
|
32
|
+
_el = null;
|
|
33
|
+
context;
|
|
34
|
+
_properties = PProperties.None;
|
|
35
|
+
_abstract = false;
|
|
36
|
+
_platforms = Platform.All;
|
|
37
|
+
_languages = Language.All;
|
|
38
|
+
_nodeLink = false;
|
|
39
|
+
// Shortcuts
|
|
40
|
+
transform = null;
|
|
41
|
+
collider = null;
|
|
42
|
+
material = null;
|
|
43
|
+
//
|
|
44
|
+
// CONSTRUCTION & DESTRUCTION
|
|
45
|
+
//
|
|
46
|
+
constructor(dbItem, context, renderer) {
|
|
47
|
+
this.id = dbItem._id;
|
|
48
|
+
this.projectId = dbItem._project;
|
|
49
|
+
this.sceneId = dbItem._scene;
|
|
50
|
+
this.parentId = dbItem._parent;
|
|
51
|
+
this.blueprintId = dbItem._blueprint;
|
|
52
|
+
this.name = dbItem.name;
|
|
53
|
+
this.visible = dbItem.visible;
|
|
54
|
+
this.editor_visible = dbItem.editor_visible;
|
|
55
|
+
this.context = context;
|
|
56
|
+
this._platforms = dbItem.platform === 0 ? Platform.All : dbItem.platform;
|
|
57
|
+
this._languages = dbItem.language === 0 ? Language.All : dbItem.language;
|
|
58
|
+
this.layer = dbItem.layer;
|
|
59
|
+
// Visible is true by default
|
|
60
|
+
this._visible = this.context.editor ? this.editor_visible : this.visible;
|
|
61
|
+
this.renderer = renderer;
|
|
62
|
+
// Components
|
|
63
|
+
this.components = context.createComponents(this, dbItem.components);
|
|
64
|
+
}
|
|
65
|
+
//
|
|
66
|
+
// EL
|
|
67
|
+
//
|
|
68
|
+
hasEl() {
|
|
69
|
+
return this._el !== null;
|
|
70
|
+
}
|
|
71
|
+
getEl() {
|
|
72
|
+
return this._el;
|
|
73
|
+
}
|
|
74
|
+
//
|
|
75
|
+
// TYPES
|
|
76
|
+
//
|
|
77
|
+
isAbstract() {
|
|
78
|
+
return this._abstract;
|
|
79
|
+
}
|
|
80
|
+
updateByComponent() {
|
|
81
|
+
this._properties = 0;
|
|
82
|
+
this._abstract = true;
|
|
83
|
+
for (const component of this.components) {
|
|
84
|
+
if (component === null)
|
|
85
|
+
continue;
|
|
86
|
+
this._abstract = this._abstract && component.abstract;
|
|
87
|
+
if (component.properties !== 0) {
|
|
88
|
+
this._properties = this._properties | component.properties;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
updateAbstract() {
|
|
93
|
+
// Root is never abstract
|
|
94
|
+
if (this.parent === null)
|
|
95
|
+
this._abstract = false;
|
|
96
|
+
else if (this._abstract === false) {
|
|
97
|
+
let parent = this.parent;
|
|
98
|
+
while (parent.isAbstract()) {
|
|
99
|
+
parent._abstract = false;
|
|
100
|
+
if (parent.parent === null)
|
|
101
|
+
break;
|
|
102
|
+
parent = parent.parent;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
for (const kid of this.children) {
|
|
106
|
+
kid.updateAbstract();
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
hasProperty(value) {
|
|
110
|
+
return (this._properties & value) > 0;
|
|
111
|
+
}
|
|
112
|
+
//
|
|
113
|
+
// LIFE CYCLE
|
|
114
|
+
//
|
|
115
|
+
isEnabled() {
|
|
116
|
+
return this._enabled;
|
|
117
|
+
}
|
|
118
|
+
isRendered() {
|
|
119
|
+
return this._rendered;
|
|
120
|
+
}
|
|
121
|
+
isRunning() {
|
|
122
|
+
return this._running;
|
|
123
|
+
}
|
|
124
|
+
enable() {
|
|
125
|
+
this._enabled = true;
|
|
126
|
+
for (const outAction of this._outActions) {
|
|
127
|
+
if (outAction.actionType === ActionType.LocalEvent) {
|
|
128
|
+
outAction.update_local_event(this.context);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
this.render();
|
|
132
|
+
for (const child of this.children) {
|
|
133
|
+
if (child.hasValidPlatform()) {
|
|
134
|
+
child.enable();
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
disable() {
|
|
139
|
+
if (!this._enabled) {
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
this._enabled = false;
|
|
143
|
+
if (this._running) {
|
|
144
|
+
this.context.error("You need to stop first");
|
|
145
|
+
}
|
|
146
|
+
if (this._rendered) {
|
|
147
|
+
this.unrender();
|
|
148
|
+
}
|
|
149
|
+
for (const child of this.children) {
|
|
150
|
+
child.disable();
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Create the Object3D object.
|
|
155
|
+
*/
|
|
156
|
+
render() {
|
|
157
|
+
this._rendered = true;
|
|
158
|
+
for (const component of this.components) {
|
|
159
|
+
// This might set this.el
|
|
160
|
+
component.render();
|
|
161
|
+
component.rendered = true;
|
|
162
|
+
}
|
|
163
|
+
if (!this._nodeLink) {
|
|
164
|
+
if (!this.hasEl() && !this.isAbstract()) {
|
|
165
|
+
this.set_default_el();
|
|
166
|
+
}
|
|
167
|
+
if (this.hasEl()) {
|
|
168
|
+
this.renderer.render(this);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Destroys the node and its components, it will not remove the PNode.
|
|
174
|
+
*/
|
|
175
|
+
unrender() {
|
|
176
|
+
this._rendered = false;
|
|
177
|
+
for (const component of this.components) {
|
|
178
|
+
if (component.rendered) {
|
|
179
|
+
component.unrender();
|
|
180
|
+
component.rendered = false;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
// Components and child classes are in charge of destroying the Object3D
|
|
184
|
+
if (this.hasEl()) {
|
|
185
|
+
if (!this._nodeLink) {
|
|
186
|
+
this.renderer.unrender(this);
|
|
187
|
+
}
|
|
188
|
+
this._el = null;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
dispose(recursive = true) {
|
|
192
|
+
if (this._disposed)
|
|
193
|
+
return;
|
|
194
|
+
this._disposed = true;
|
|
195
|
+
if (recursive) {
|
|
196
|
+
for (const child of this.children) {
|
|
197
|
+
child.dispose();
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
for (const component of this.components) {
|
|
201
|
+
component.dispose();
|
|
202
|
+
}
|
|
203
|
+
this.removeFromParent();
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Called when we have both an el and a transform
|
|
207
|
+
*/
|
|
208
|
+
updateElTransform() {
|
|
209
|
+
this.renderer.updateElTransform(this);
|
|
210
|
+
}
|
|
211
|
+
set_transform(transform) {
|
|
212
|
+
this.transform = transform;
|
|
213
|
+
if (this.hasEl()) {
|
|
214
|
+
this.updateElTransform();
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
set_default_el() {
|
|
218
|
+
this.renderer.set_default_el(this);
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* If nodeLink, this PNode is not in charge of adding and removing the node
|
|
222
|
+
*/
|
|
223
|
+
set_el(node, nodeLink) {
|
|
224
|
+
this._nodeLink = nodeLink;
|
|
225
|
+
if (this.parent !== null && !this.parent.hasEl()) {
|
|
226
|
+
this.context.error("No parent");
|
|
227
|
+
console.log(this);
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
if (this.hasEl()) {
|
|
231
|
+
this.context.error("PNode had .el");
|
|
232
|
+
}
|
|
233
|
+
this._el = node;
|
|
234
|
+
if (this.transform !== null) {
|
|
235
|
+
this.updateElTransform();
|
|
236
|
+
}
|
|
237
|
+
if (!nodeLink && this.parent !== null && this.parent.hasEl()) {
|
|
238
|
+
this.renderer.addToParent(this);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
//
|
|
242
|
+
// LAYERS & VISIBILITY
|
|
243
|
+
//
|
|
244
|
+
isVisible() {
|
|
245
|
+
return (this._visible &&
|
|
246
|
+
(this.layer & this.context.mask()) > 0 &&
|
|
247
|
+
(this.parent === null || this.parent.isVisible()));
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Called by eg components when we want to change the visiblity of this node.
|
|
251
|
+
*/
|
|
252
|
+
setVisible(value) {
|
|
253
|
+
this._visible = value;
|
|
254
|
+
this.update();
|
|
255
|
+
}
|
|
256
|
+
hide() {
|
|
257
|
+
if (this.hasEl()) {
|
|
258
|
+
this.renderer.hide(this);
|
|
259
|
+
}
|
|
260
|
+
this.collider?.getColliderObject()?.hide();
|
|
261
|
+
}
|
|
262
|
+
show() {
|
|
263
|
+
if (this.hasEl()) {
|
|
264
|
+
this.renderer.show(this);
|
|
265
|
+
}
|
|
266
|
+
if (this.collider) {
|
|
267
|
+
this.collider.getColliderObject()?.show();
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Update visiblity recursive
|
|
272
|
+
*/
|
|
273
|
+
update() {
|
|
274
|
+
if (this.isVisible()) {
|
|
275
|
+
// Show
|
|
276
|
+
this.show();
|
|
277
|
+
}
|
|
278
|
+
else {
|
|
279
|
+
// Hide
|
|
280
|
+
this.hide();
|
|
281
|
+
}
|
|
282
|
+
for (const child of this.children) {
|
|
283
|
+
child.update();
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
//
|
|
287
|
+
// VARIABLES
|
|
288
|
+
//
|
|
289
|
+
//
|
|
290
|
+
// EVENTS
|
|
291
|
+
//
|
|
292
|
+
/**
|
|
293
|
+
* Called by component constructors
|
|
294
|
+
*/
|
|
295
|
+
registerInAction(name, dbAction, callback, pinDataType = DataType.None) {
|
|
296
|
+
// Check if we should skip action
|
|
297
|
+
if (this.context.editor === false && !dbAction)
|
|
298
|
+
return null;
|
|
299
|
+
const actionType = dbAction ? dbAction.actionType : ActionType.None;
|
|
300
|
+
const payloadSource = dbAction
|
|
301
|
+
? dbAction.payloadSource
|
|
302
|
+
: PayloadSource.None;
|
|
303
|
+
const pInEvent = new PInAction(this.id, name, pinDataType, actionType, dbAction ? dbAction.event : "", payloadSource, dbAction ? dbAction.payloadValue : "", dbAction ? dbAction.payloadDataType : DataType.None, callback);
|
|
304
|
+
if (actionType === ActionType.GlobalEvent) {
|
|
305
|
+
pInEvent.update_global_event(this.context);
|
|
306
|
+
}
|
|
307
|
+
else if (actionType === ActionType.Variable) {
|
|
308
|
+
pInEvent.update_variable(this.context);
|
|
309
|
+
}
|
|
310
|
+
if (payloadSource === PayloadSource.Variable) {
|
|
311
|
+
pInEvent.update_payload_variable(this.context);
|
|
312
|
+
}
|
|
313
|
+
this._inActions.push(pInEvent);
|
|
314
|
+
return pInEvent;
|
|
315
|
+
}
|
|
316
|
+
registerInVariable(dbVariable, callback, pinDataType = DataType.None) {
|
|
317
|
+
// Check if we should skip action
|
|
318
|
+
if (this.context.editor === false && !dbVariable)
|
|
319
|
+
return null;
|
|
320
|
+
const pInAction = new PInAction(this.id, "", pinDataType, ActionType.Variable, dbVariable || "", PayloadSource.VariableValue, "", DataType.None, callback);
|
|
321
|
+
var variable = pInAction.update_variable(this.context);
|
|
322
|
+
if (variable !== null) {
|
|
323
|
+
pInAction.payloadDataType = variable.dataType;
|
|
324
|
+
}
|
|
325
|
+
this._inActions.push(pInAction);
|
|
326
|
+
return pInAction;
|
|
327
|
+
}
|
|
328
|
+
registerOutAction(dbAction, pinDataType = DataType.None) {
|
|
329
|
+
// Check if we should skip action
|
|
330
|
+
if (this.context.editor === false && !dbAction)
|
|
331
|
+
return null;
|
|
332
|
+
const actionType = dbAction ? dbAction.actionType : ActionType.None;
|
|
333
|
+
const payloadSource = dbAction
|
|
334
|
+
? dbAction.payloadSource
|
|
335
|
+
: PayloadSource.None;
|
|
336
|
+
const pOutEvent = new POutAction(this.id, "", pinDataType, actionType, dbAction ? dbAction.event : "", dbAction ? dbAction.target : "", payloadSource, dbAction ? dbAction.payloadValue : "", dbAction ? dbAction.payloadDataType : DataType.None);
|
|
337
|
+
if (actionType === ActionType.GlobalEvent) {
|
|
338
|
+
pOutEvent.update_global_event(this.context);
|
|
339
|
+
// } else if (actionType === ActionType.LocalEvent) {
|
|
340
|
+
// pOutEvent.update_local_event(this.context);
|
|
341
|
+
}
|
|
342
|
+
else if (actionType === ActionType.Variable) {
|
|
343
|
+
pOutEvent.update_variable(this.context);
|
|
344
|
+
}
|
|
345
|
+
if (payloadSource === PayloadSource.Variable) {
|
|
346
|
+
pOutEvent.update_payload_variable(this.context);
|
|
347
|
+
}
|
|
348
|
+
this._outActions.push(pOutEvent);
|
|
349
|
+
return pOutEvent;
|
|
350
|
+
}
|
|
351
|
+
registerOutVariable(dbVariable, pinDataType = DataType.None) {
|
|
352
|
+
// Check if we should skip action
|
|
353
|
+
if (this.context.editor === false && !dbVariable)
|
|
354
|
+
return null;
|
|
355
|
+
const pOutEvent = new POutAction(this.id, "", pinDataType, ActionType.Variable, dbVariable || "", "", PayloadSource.ActionOutput, "", DataType.None);
|
|
356
|
+
var variable = pOutEvent.update_variable(this.context);
|
|
357
|
+
if (variable) {
|
|
358
|
+
pOutEvent.payloadDataType = variable.dataType;
|
|
359
|
+
}
|
|
360
|
+
this._outActions.push(pOutEvent);
|
|
361
|
+
return pOutEvent;
|
|
362
|
+
}
|
|
363
|
+
getLocalInAction(name) {
|
|
364
|
+
return (this._inActions.find((a) => a.actionType === ActionType.LocalEvent && a.eventValue === name) || null);
|
|
365
|
+
}
|
|
366
|
+
getLocalInEvents() {
|
|
367
|
+
const actions = this._inActions
|
|
368
|
+
.filter((a) => a.actionType === ActionType.LocalEvent && a.eventValue)
|
|
369
|
+
.map((a) => a.eventValue);
|
|
370
|
+
const result = [];
|
|
371
|
+
for (const action of actions) {
|
|
372
|
+
if (result.indexOf(action) === -1) {
|
|
373
|
+
result.push(action);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
return result;
|
|
377
|
+
}
|
|
378
|
+
//
|
|
379
|
+
// TOOLS
|
|
380
|
+
//
|
|
381
|
+
traverse(f, childrenFirst = false) {
|
|
382
|
+
if (!childrenFirst) {
|
|
383
|
+
f(this);
|
|
384
|
+
}
|
|
385
|
+
for (const child of this.children) {
|
|
386
|
+
child.traverse(f);
|
|
387
|
+
}
|
|
388
|
+
if (childrenFirst) {
|
|
389
|
+
f(this);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
//
|
|
393
|
+
// PLATFORMS
|
|
394
|
+
//
|
|
395
|
+
hasValidPlatform() {
|
|
396
|
+
return this.hasPlatform(this.context.platform(), this.context.language());
|
|
397
|
+
}
|
|
398
|
+
getPlatforms() {
|
|
399
|
+
return this._platforms;
|
|
400
|
+
}
|
|
401
|
+
getLanguages() {
|
|
402
|
+
return this._languages;
|
|
403
|
+
}
|
|
404
|
+
hasPlatform(platform, language) {
|
|
405
|
+
return ((this._platforms === 0 || this._platforms & platform) &&
|
|
406
|
+
(this._languages === 0 || this._languages & language));
|
|
407
|
+
}
|
|
408
|
+
setPlatforms(platforms) {
|
|
409
|
+
this._platforms = platforms;
|
|
410
|
+
}
|
|
411
|
+
setLanguages(languages) {
|
|
412
|
+
this._languages = languages;
|
|
413
|
+
}
|
|
414
|
+
//
|
|
415
|
+
// CHILDREN
|
|
416
|
+
//
|
|
417
|
+
/**
|
|
418
|
+
* Add a child node.
|
|
419
|
+
*/
|
|
420
|
+
add(child) {
|
|
421
|
+
this.children = [...this.children, child];
|
|
422
|
+
child.parent = this;
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Remove this node reference in parent's children array.
|
|
426
|
+
*/
|
|
427
|
+
removeFromParent() {
|
|
428
|
+
if (this.parent !== null) {
|
|
429
|
+
this.parent.children = this.parent.children.filter((c) => c !== this);
|
|
430
|
+
this.parent = null;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
//
|
|
434
|
+
// COMPONENTS
|
|
435
|
+
//
|
|
436
|
+
findComponent(type) {
|
|
437
|
+
return this.components.find((c) => c.primitive === type) || null;
|
|
438
|
+
}
|
|
439
|
+
//
|
|
440
|
+
// LIFE CYCLE
|
|
441
|
+
//
|
|
442
|
+
play() {
|
|
443
|
+
if (!this.isEnabled()) {
|
|
444
|
+
return;
|
|
445
|
+
}
|
|
446
|
+
this._running = true;
|
|
447
|
+
// Handle in actions.
|
|
448
|
+
for (const e of this._inActions) {
|
|
449
|
+
// Listen to global events
|
|
450
|
+
if (e.actionType === ActionType.GlobalEvent && e.runtime_global_event) {
|
|
451
|
+
e.runtime_global_event.listen(e);
|
|
452
|
+
}
|
|
453
|
+
else if (e.actionType === ActionType.Variable && e.runtime_variable) {
|
|
454
|
+
e.runtime_variable.listen(e);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
for (const component of this.components) {
|
|
458
|
+
if (component.rendered)
|
|
459
|
+
component.play();
|
|
460
|
+
}
|
|
461
|
+
for (const child of this.children) {
|
|
462
|
+
child.play();
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
stop() {
|
|
466
|
+
if (!this.isEnabled()) {
|
|
467
|
+
return;
|
|
468
|
+
}
|
|
469
|
+
this._running = false;
|
|
470
|
+
for (const e of this._inActions) {
|
|
471
|
+
// Unregister global event listeners
|
|
472
|
+
if (e.actionType === ActionType.GlobalEvent && e.runtime_global_event) {
|
|
473
|
+
e.runtime_global_event.unlisten(e);
|
|
474
|
+
}
|
|
475
|
+
else if (e.actionType === ActionType.Variable && e.runtime_variable) {
|
|
476
|
+
e.runtime_variable.unlisten(e);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
for (const component of this.components) {
|
|
480
|
+
if (component.rendered)
|
|
481
|
+
component.stop();
|
|
482
|
+
}
|
|
483
|
+
for (const child of this.children) {
|
|
484
|
+
child.stop();
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
//# sourceMappingURL=PNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PNode.js","sourceRoot":"","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AC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM;IAK7C,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO;IAK/C,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIxC,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM;CAI3C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default class PPayload {
|
|
2
|
+
static asNumber(value) {
|
|
3
|
+
if (!value || value === "")
|
|
4
|
+
return 0;
|
|
5
|
+
return parseInt(value);
|
|
6
|
+
}
|
|
7
|
+
static asBoolean(value) {
|
|
8
|
+
if (!value || value === "")
|
|
9
|
+
return false;
|
|
10
|
+
return value === "1";
|
|
11
|
+
}
|
|
12
|
+
static fromNumber(value) {
|
|
13
|
+
return "" + value;
|
|
14
|
+
}
|
|
15
|
+
static fromBoolean(value) {
|
|
16
|
+
return value ? "1" : "0";
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=PPayload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PPayload.js","sourceRoot":"","sources":["../../src/PPayload.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,QAAQ;IAC3B,MAAM,CAAC,QAAQ,CAAC,KAAoB;QAClC,IAAI,CAAC,KAAK,IAAI,KAAK,KAAK,EAAE;YAAE,OAAO,CAAC,CAAC;QACrC,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;IAED,MAAM,CAAC,SAAS,CAAC,KAAoB;QACnC,IAAI,CAAC,KAAK,IAAI,KAAK,KAAK,EAAE;YAAE,OAAO,KAAK,CAAC;QACzC,OAAO,KAAK,KAAK,GAAG,CAAC;IACvB,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,KAAa;QAC7B,OAAO,EAAE,GAAG,KAAK,CAAC;IACpB,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,KAAc;QAC/B,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;IAC3B,CAAC;CAEF"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { PostProcessingSystems } from "./PEnums";
|
|
2
|
+
import PVector3, { type IVector3 } from "./PVector3";
|
|
3
|
+
type IUpdate = (dt: number) => void;
|
|
4
|
+
interface IUpdator {
|
|
5
|
+
update: IUpdate;
|
|
6
|
+
}
|
|
7
|
+
export { type IUpdate, type IUpdator };
|
|
8
|
+
interface IColliderObject {
|
|
9
|
+
hide(): void;
|
|
10
|
+
show(): void;
|
|
11
|
+
}
|
|
12
|
+
interface IColliderComponent {
|
|
13
|
+
computeBounds(): void;
|
|
14
|
+
addColliderNode(): void;
|
|
15
|
+
native_onClick(): void;
|
|
16
|
+
native_onHoverEnter(point: IVector3): void;
|
|
17
|
+
native_onHoverExit(): void;
|
|
18
|
+
getColliderObject(): IColliderObject | null;
|
|
19
|
+
hidden: boolean;
|
|
20
|
+
}
|
|
21
|
+
export { type IColliderObject, type IColliderComponent };
|
|
22
|
+
interface INameId {
|
|
23
|
+
_id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
}
|
|
26
|
+
export { type INameId };
|
|
27
|
+
interface IThreeQualitySettings {
|
|
28
|
+
maxScale: number;
|
|
29
|
+
minScale: number;
|
|
30
|
+
sleep: boolean;
|
|
31
|
+
adaptive: boolean;
|
|
32
|
+
debug: boolean;
|
|
33
|
+
skipFrame: boolean;
|
|
34
|
+
baseQuality: number;
|
|
35
|
+
}
|
|
36
|
+
interface ICameraSettings {
|
|
37
|
+
position: PVector3;
|
|
38
|
+
target: PVector3;
|
|
39
|
+
type: number;
|
|
40
|
+
damping: number;
|
|
41
|
+
}
|
|
42
|
+
interface IThreeRendererSettings {
|
|
43
|
+
near: number;
|
|
44
|
+
far: number;
|
|
45
|
+
useShadows: number;
|
|
46
|
+
background: string;
|
|
47
|
+
antialias: boolean;
|
|
48
|
+
toneMapping: number;
|
|
49
|
+
toneMappingExposure: number;
|
|
50
|
+
depth: boolean;
|
|
51
|
+
stencil: boolean;
|
|
52
|
+
fov: number;
|
|
53
|
+
}
|
|
54
|
+
interface IBloomSettings {
|
|
55
|
+
enabled: boolean;
|
|
56
|
+
intensity: number;
|
|
57
|
+
threshold: number;
|
|
58
|
+
smoothing: number;
|
|
59
|
+
radius: number;
|
|
60
|
+
filter: boolean;
|
|
61
|
+
}
|
|
62
|
+
interface ISSAOSettings {
|
|
63
|
+
enabled: boolean;
|
|
64
|
+
debug: number;
|
|
65
|
+
radius: number;
|
|
66
|
+
minDistance: number;
|
|
67
|
+
maxDistance: number;
|
|
68
|
+
}
|
|
69
|
+
interface ISAOSettings {
|
|
70
|
+
enabled: boolean;
|
|
71
|
+
debug: number;
|
|
72
|
+
saoBias: number;
|
|
73
|
+
saoIntensity: number;
|
|
74
|
+
saoScale: number;
|
|
75
|
+
saoKernelRadius: number;
|
|
76
|
+
saoMinResolution: number;
|
|
77
|
+
saoBlur: number;
|
|
78
|
+
saoBlurRadius: number;
|
|
79
|
+
saoBlurStdDev: number;
|
|
80
|
+
saoBlurDepthCutoff: number;
|
|
81
|
+
}
|
|
82
|
+
interface IVignetteSettings {
|
|
83
|
+
enabled: boolean;
|
|
84
|
+
darkness: number;
|
|
85
|
+
offset: number;
|
|
86
|
+
}
|
|
87
|
+
interface IDofSettings {
|
|
88
|
+
enabled: boolean;
|
|
89
|
+
focus: number;
|
|
90
|
+
aperture: number;
|
|
91
|
+
maxBlur: number;
|
|
92
|
+
}
|
|
93
|
+
interface IToneMapSettings {
|
|
94
|
+
enabled: boolean;
|
|
95
|
+
mode: number;
|
|
96
|
+
exposure: number;
|
|
97
|
+
}
|
|
98
|
+
interface ISSRSettings {
|
|
99
|
+
enabled: boolean;
|
|
100
|
+
debug: number;
|
|
101
|
+
maxScale: number;
|
|
102
|
+
minScale: number;
|
|
103
|
+
blur: number;
|
|
104
|
+
thickness: number;
|
|
105
|
+
maxDistance: number;
|
|
106
|
+
opacity: number;
|
|
107
|
+
distanceAttenuation: number;
|
|
108
|
+
infiniteThick: number;
|
|
109
|
+
ground: number;
|
|
110
|
+
}
|
|
111
|
+
interface ISMAASettings {
|
|
112
|
+
enabled: boolean;
|
|
113
|
+
}
|
|
114
|
+
interface IThreePostProcessingSettings {
|
|
115
|
+
enabled: PostProcessingSystems;
|
|
116
|
+
samples: number;
|
|
117
|
+
bloom: IBloomSettings;
|
|
118
|
+
ssao: ISSAOSettings;
|
|
119
|
+
sao: ISAOSettings;
|
|
120
|
+
vignette: IVignetteSettings;
|
|
121
|
+
dof: IDofSettings;
|
|
122
|
+
tonemap: IToneMapSettings;
|
|
123
|
+
ssr: ISSRSettings;
|
|
124
|
+
smaa: ISMAASettings;
|
|
125
|
+
}
|
|
126
|
+
interface IPostProcessor {
|
|
127
|
+
render: () => void;
|
|
128
|
+
dispose: () => void;
|
|
129
|
+
setSize(x: number, y: number): void;
|
|
130
|
+
updateAASamples(samples: number): void;
|
|
131
|
+
setPixelRatio(scale: number): void;
|
|
132
|
+
addSSRSelectors(selectors: any[]): void;
|
|
133
|
+
removeSSRSelectors(selectors: any[]): void;
|
|
134
|
+
resize(x: number, y: number): void;
|
|
135
|
+
resizeEffects(): void;
|
|
136
|
+
setCurrentQuality(quality: number): boolean;
|
|
137
|
+
updatePostProcessing(settings: IThreePostProcessingSettings, field: string): boolean;
|
|
138
|
+
}
|
|
139
|
+
export { type IThreeRendererSettings, type IThreePostProcessingSettings, type IBloomSettings, type IVignetteSettings, type IDofSettings, type IToneMapSettings, type IPostProcessor, type ISSAOSettings, type ISAOSettings, type IThreeQualitySettings, type ICameraSettings, };
|
|
140
|
+
//# sourceMappingURL=PTypes.d.ts.map
|