@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,98 @@
|
|
|
1
|
+
export declare enum Platform {
|
|
2
|
+
All = 0,
|
|
3
|
+
Threejs = 1,
|
|
4
|
+
UnityVR = 2,
|
|
5
|
+
Editor = 4,
|
|
6
|
+
UnityAR = 8,
|
|
7
|
+
UnityWeb = 16
|
|
8
|
+
}
|
|
9
|
+
export declare enum Language {
|
|
10
|
+
All = 0,
|
|
11
|
+
English = 1,
|
|
12
|
+
German = 2,
|
|
13
|
+
Spanish = 4,
|
|
14
|
+
Italian = 8,
|
|
15
|
+
Swedish = 16
|
|
16
|
+
}
|
|
17
|
+
export declare enum PProperties {
|
|
18
|
+
None = 0,
|
|
19
|
+
RootNode = 1,
|
|
20
|
+
SceneContainer = 2,
|
|
21
|
+
SceneRoot = 4,
|
|
22
|
+
ProjectRoot = 8,
|
|
23
|
+
Abstract = 16,
|
|
24
|
+
NoChildren = 32
|
|
25
|
+
}
|
|
26
|
+
export declare enum DataType {
|
|
27
|
+
None = 0,
|
|
28
|
+
String = 1,
|
|
29
|
+
Node = 2,
|
|
30
|
+
Scene = 4,
|
|
31
|
+
Number = 8,
|
|
32
|
+
Boolean = 16,
|
|
33
|
+
Integer = 32,
|
|
34
|
+
Layer = 64,
|
|
35
|
+
Color = 128,
|
|
36
|
+
File_Image = 256,
|
|
37
|
+
File_Environment = 512,
|
|
38
|
+
Vec2 = 1024,
|
|
39
|
+
Vec3 = 2048,
|
|
40
|
+
Percent = 4096,
|
|
41
|
+
Any = -1
|
|
42
|
+
}
|
|
43
|
+
export declare enum ActionType {
|
|
44
|
+
None = 0,
|
|
45
|
+
LocalEvent = 1,
|
|
46
|
+
GlobalEvent = 2,
|
|
47
|
+
Variable = 3
|
|
48
|
+
}
|
|
49
|
+
export declare enum PayloadSource {
|
|
50
|
+
None = 0,
|
|
51
|
+
Static = 1,
|
|
52
|
+
Variable = 2,
|
|
53
|
+
ActionOutput = 3,
|
|
54
|
+
EventPayload = 4,
|
|
55
|
+
VariableValue = 5
|
|
56
|
+
}
|
|
57
|
+
export declare enum Quality {
|
|
58
|
+
VeryLow = 0,
|
|
59
|
+
Low = 1,
|
|
60
|
+
Medium = 2,
|
|
61
|
+
High = 3,
|
|
62
|
+
VeryHigh = 4
|
|
63
|
+
}
|
|
64
|
+
export declare enum FileType {
|
|
65
|
+
Other = 0,
|
|
66
|
+
Image = 1,
|
|
67
|
+
Video = 2,
|
|
68
|
+
Model = 4,
|
|
69
|
+
Font = 8,
|
|
70
|
+
Audio = 16,
|
|
71
|
+
Zip = 32,
|
|
72
|
+
Environment = 64
|
|
73
|
+
}
|
|
74
|
+
export declare enum FileSubType {
|
|
75
|
+
None = 0,
|
|
76
|
+
Stereo = 1
|
|
77
|
+
}
|
|
78
|
+
export declare enum PostProcessingSystems {
|
|
79
|
+
None = 0,
|
|
80
|
+
THREEJS = 2
|
|
81
|
+
}
|
|
82
|
+
export declare enum ObjectType {
|
|
83
|
+
None = 0,
|
|
84
|
+
Camera = 2,
|
|
85
|
+
Scene = 4,
|
|
86
|
+
SpriteMesh = 8,
|
|
87
|
+
SphereMesh = 16,
|
|
88
|
+
PlaneMesh = 32,
|
|
89
|
+
ModelMesh = 64,
|
|
90
|
+
TextMesh = 128,
|
|
91
|
+
Background = 256,
|
|
92
|
+
ProjectRoot = 512,
|
|
93
|
+
Sound = 1024,
|
|
94
|
+
Light = 2048,
|
|
95
|
+
CubeMesh = 4096,
|
|
96
|
+
Mesh = 4336
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=PEnums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PEnums.d.ts","sourceRoot":"","sources":["../../src/PEnums.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,GAAG,IAAI;IACP,OAAO,IAAI;IACX,OAAO,IAAI;IACX,MAAM,IAAI;IACV,OAAO,IAAI;IACX,QAAQ,KAAK;CACd;AAED,oBAAY,QAAQ;IAClB,GAAG,IAAI;IACP,OAAO,IAAI;IACX,MAAM,IAAI;IACV,OAAO,IAAI;IACX,OAAO,IAAI;IACX,OAAO,KAAK;CACb;AAED,oBAAY,WAAW;IACrB,IAAI,IAAI;IACR,QAAQ,IAAI;IACZ,cAAc,IAAI;IAClB,SAAS,IAAI;IACb,WAAW,IAAI;IACf,QAAQ,KAAK;IACb,UAAU,KAAK;CAChB;AAED,oBAAY,QAAQ;IAClB,IAAI,IAAI;IACR,MAAM,IAAI;IACV,IAAI,IAAI;IACR,KAAK,IAAI;IACT,MAAM,IAAI;IACV,OAAO,KAAK;IACZ,OAAO,KAAK;IACZ,KAAK,KAAK;IACV,KAAK,MAAM;IACX,UAAU,MAAM;IAChB,gBAAgB,MAAM;IACtB,IAAI,OAAO;IACX,IAAI,OAAO;IACX,OAAO,OAAO;IACd,GAAG,KAAK;CACT;AAED,oBAAY,UAAU;IACpB,IAAI,IAAI;IACR,UAAU,IAAI;IACd,WAAW,IAAI;IACf,QAAQ,IAAI;CACb;AAED,oBAAY,aAAa;IACvB,IAAI,IAAI;IACR,MAAM,IAAI;IACV,QAAQ,IAAI;IACZ,YAAY,IAAI;IAChB,YAAY,IAAI;IAChB,aAAa,IAAI;CAClB;AAED,oBAAY,OAAO;IACjB,OAAO,IAAI;IACX,GAAG,IAAI;IACP,MAAM,IAAI;IACV,IAAI,IAAI;IACR,QAAQ,IAAI;CACb;AAED,oBAAY,QAAQ;IAClB,KAAK,IAAI;IACT,KAAK,IAAI;IACT,KAAK,IAAI;IACT,KAAK,IAAI;IACT,IAAI,IAAI;IACR,KAAK,KAAK;IACV,GAAG,KAAK;IACR,WAAW,KAAK;CACjB;AAED,oBAAY,WAAW;IACrB,IAAI,IAAI;IACR,MAAM,IAAI;CACX;AAED,oBAAY,qBAAqB;IAC/B,IAAI,IAAI;IACR,OAAO,IAAI;CACZ;AAED,oBAAY,UAAU;IACpB,IAAI,IAAI;IAER,MAAM,IAAI;IACV,KAAK,IAAI;IACT,UAAU,IAAI;IACd,UAAU,KAAK;IACf,SAAS,KAAK;IACd,SAAS,KAAK;IACd,QAAQ,MAAM;IACd,UAAU,MAAM;IAChB,WAAW,MAAM;IACjB,KAAK,OAAO;IACZ,KAAK,OAAO;IACZ,QAAQ,OAAO;IACf,IAAI,OAA4B;CACjC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
export var Platform;
|
|
2
|
+
(function (Platform) {
|
|
3
|
+
Platform[Platform["All"] = 0] = "All";
|
|
4
|
+
Platform[Platform["Threejs"] = 1] = "Threejs";
|
|
5
|
+
Platform[Platform["UnityVR"] = 2] = "UnityVR";
|
|
6
|
+
Platform[Platform["Editor"] = 4] = "Editor";
|
|
7
|
+
Platform[Platform["UnityAR"] = 8] = "UnityAR";
|
|
8
|
+
Platform[Platform["UnityWeb"] = 16] = "UnityWeb";
|
|
9
|
+
})(Platform || (Platform = {}));
|
|
10
|
+
export var Language;
|
|
11
|
+
(function (Language) {
|
|
12
|
+
Language[Language["All"] = 0] = "All";
|
|
13
|
+
Language[Language["English"] = 1] = "English";
|
|
14
|
+
Language[Language["German"] = 2] = "German";
|
|
15
|
+
Language[Language["Spanish"] = 4] = "Spanish";
|
|
16
|
+
Language[Language["Italian"] = 8] = "Italian";
|
|
17
|
+
Language[Language["Swedish"] = 16] = "Swedish";
|
|
18
|
+
})(Language || (Language = {}));
|
|
19
|
+
export var PProperties;
|
|
20
|
+
(function (PProperties) {
|
|
21
|
+
PProperties[PProperties["None"] = 0] = "None";
|
|
22
|
+
PProperties[PProperties["RootNode"] = 1] = "RootNode";
|
|
23
|
+
PProperties[PProperties["SceneContainer"] = 2] = "SceneContainer";
|
|
24
|
+
PProperties[PProperties["SceneRoot"] = 4] = "SceneRoot";
|
|
25
|
+
PProperties[PProperties["ProjectRoot"] = 8] = "ProjectRoot";
|
|
26
|
+
PProperties[PProperties["Abstract"] = 16] = "Abstract";
|
|
27
|
+
PProperties[PProperties["NoChildren"] = 32] = "NoChildren";
|
|
28
|
+
})(PProperties || (PProperties = {}));
|
|
29
|
+
export var DataType;
|
|
30
|
+
(function (DataType) {
|
|
31
|
+
DataType[DataType["None"] = 0] = "None";
|
|
32
|
+
DataType[DataType["String"] = 1] = "String";
|
|
33
|
+
DataType[DataType["Node"] = 2] = "Node";
|
|
34
|
+
DataType[DataType["Scene"] = 4] = "Scene";
|
|
35
|
+
DataType[DataType["Number"] = 8] = "Number";
|
|
36
|
+
DataType[DataType["Boolean"] = 16] = "Boolean";
|
|
37
|
+
DataType[DataType["Integer"] = 32] = "Integer";
|
|
38
|
+
DataType[DataType["Layer"] = 64] = "Layer";
|
|
39
|
+
DataType[DataType["Color"] = 128] = "Color";
|
|
40
|
+
DataType[DataType["File_Image"] = 256] = "File_Image";
|
|
41
|
+
DataType[DataType["File_Environment"] = 512] = "File_Environment";
|
|
42
|
+
DataType[DataType["Vec2"] = 1024] = "Vec2";
|
|
43
|
+
DataType[DataType["Vec3"] = 2048] = "Vec3";
|
|
44
|
+
DataType[DataType["Percent"] = 4096] = "Percent";
|
|
45
|
+
DataType[DataType["Any"] = -1] = "Any";
|
|
46
|
+
})(DataType || (DataType = {}));
|
|
47
|
+
export var ActionType;
|
|
48
|
+
(function (ActionType) {
|
|
49
|
+
ActionType[ActionType["None"] = 0] = "None";
|
|
50
|
+
ActionType[ActionType["LocalEvent"] = 1] = "LocalEvent";
|
|
51
|
+
ActionType[ActionType["GlobalEvent"] = 2] = "GlobalEvent";
|
|
52
|
+
ActionType[ActionType["Variable"] = 3] = "Variable";
|
|
53
|
+
})(ActionType || (ActionType = {}));
|
|
54
|
+
export var PayloadSource;
|
|
55
|
+
(function (PayloadSource) {
|
|
56
|
+
PayloadSource[PayloadSource["None"] = 0] = "None";
|
|
57
|
+
PayloadSource[PayloadSource["Static"] = 1] = "Static";
|
|
58
|
+
PayloadSource[PayloadSource["Variable"] = 2] = "Variable";
|
|
59
|
+
PayloadSource[PayloadSource["ActionOutput"] = 3] = "ActionOutput";
|
|
60
|
+
PayloadSource[PayloadSource["EventPayload"] = 4] = "EventPayload";
|
|
61
|
+
PayloadSource[PayloadSource["VariableValue"] = 5] = "VariableValue";
|
|
62
|
+
})(PayloadSource || (PayloadSource = {}));
|
|
63
|
+
export var Quality;
|
|
64
|
+
(function (Quality) {
|
|
65
|
+
Quality[Quality["VeryLow"] = 0] = "VeryLow";
|
|
66
|
+
Quality[Quality["Low"] = 1] = "Low";
|
|
67
|
+
Quality[Quality["Medium"] = 2] = "Medium";
|
|
68
|
+
Quality[Quality["High"] = 3] = "High";
|
|
69
|
+
Quality[Quality["VeryHigh"] = 4] = "VeryHigh";
|
|
70
|
+
})(Quality || (Quality = {}));
|
|
71
|
+
export var FileType;
|
|
72
|
+
(function (FileType) {
|
|
73
|
+
FileType[FileType["Other"] = 0] = "Other";
|
|
74
|
+
FileType[FileType["Image"] = 1] = "Image";
|
|
75
|
+
FileType[FileType["Video"] = 2] = "Video";
|
|
76
|
+
FileType[FileType["Model"] = 4] = "Model";
|
|
77
|
+
FileType[FileType["Font"] = 8] = "Font";
|
|
78
|
+
FileType[FileType["Audio"] = 16] = "Audio";
|
|
79
|
+
FileType[FileType["Zip"] = 32] = "Zip";
|
|
80
|
+
FileType[FileType["Environment"] = 64] = "Environment";
|
|
81
|
+
})(FileType || (FileType = {}));
|
|
82
|
+
export var FileSubType;
|
|
83
|
+
(function (FileSubType) {
|
|
84
|
+
FileSubType[FileSubType["None"] = 0] = "None";
|
|
85
|
+
FileSubType[FileSubType["Stereo"] = 1] = "Stereo";
|
|
86
|
+
})(FileSubType || (FileSubType = {}));
|
|
87
|
+
export var PostProcessingSystems;
|
|
88
|
+
(function (PostProcessingSystems) {
|
|
89
|
+
PostProcessingSystems[PostProcessingSystems["None"] = 0] = "None";
|
|
90
|
+
PostProcessingSystems[PostProcessingSystems["THREEJS"] = 2] = "THREEJS";
|
|
91
|
+
})(PostProcessingSystems || (PostProcessingSystems = {}));
|
|
92
|
+
export var ObjectType;
|
|
93
|
+
(function (ObjectType) {
|
|
94
|
+
ObjectType[ObjectType["None"] = 0] = "None";
|
|
95
|
+
//_EMPTY = 1,
|
|
96
|
+
ObjectType[ObjectType["Camera"] = 2] = "Camera";
|
|
97
|
+
ObjectType[ObjectType["Scene"] = 4] = "Scene";
|
|
98
|
+
ObjectType[ObjectType["SpriteMesh"] = 8] = "SpriteMesh";
|
|
99
|
+
ObjectType[ObjectType["SphereMesh"] = 16] = "SphereMesh";
|
|
100
|
+
ObjectType[ObjectType["PlaneMesh"] = 32] = "PlaneMesh";
|
|
101
|
+
ObjectType[ObjectType["ModelMesh"] = 64] = "ModelMesh";
|
|
102
|
+
ObjectType[ObjectType["TextMesh"] = 128] = "TextMesh";
|
|
103
|
+
ObjectType[ObjectType["Background"] = 256] = "Background";
|
|
104
|
+
ObjectType[ObjectType["ProjectRoot"] = 512] = "ProjectRoot";
|
|
105
|
+
ObjectType[ObjectType["Sound"] = 1024] = "Sound";
|
|
106
|
+
ObjectType[ObjectType["Light"] = 2048] = "Light";
|
|
107
|
+
ObjectType[ObjectType["CubeMesh"] = 4096] = "CubeMesh";
|
|
108
|
+
ObjectType[ObjectType["Mesh"] = 4336] = "Mesh";
|
|
109
|
+
})(ObjectType || (ObjectType = {}));
|
|
110
|
+
//# sourceMappingURL=PEnums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PEnums.js","sourceRoot":"","sources":["../../src/PEnums.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,qCAAO,CAAA;IACP,6CAAW,CAAA;IACX,6CAAW,CAAA;IACX,2CAAU,CAAA;IACV,6CAAW,CAAA;IACX,gDAAa,CAAA;AACf,CAAC,EAPW,QAAQ,KAAR,QAAQ,QAOnB;AAED,MAAM,CAAN,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,qCAAO,CAAA;IACP,6CAAW,CAAA;IACX,2CAAU,CAAA;IACV,6CAAW,CAAA;IACX,6CAAW,CAAA;IACX,8CAAY,CAAA;AACd,CAAC,EAPW,QAAQ,KAAR,QAAQ,QAOnB;AAED,MAAM,CAAN,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,6CAAQ,CAAA;IACR,qDAAY,CAAA;IACZ,iEAAkB,CAAA;IAClB,uDAAa,CAAA;IACb,2DAAe,CAAA;IACf,sDAAa,CAAA;IACb,0DAAe,CAAA;AACjB,CAAC,EARW,WAAW,KAAX,WAAW,QAQtB;AAED,MAAM,CAAN,IAAY,QAgBX;AAhBD,WAAY,QAAQ;IAClB,uCAAQ,CAAA;IACR,2CAAU,CAAA;IACV,uCAAQ,CAAA;IACR,yCAAS,CAAA;IACT,2CAAU,CAAA;IACV,8CAAY,CAAA;IACZ,8CAAY,CAAA;IACZ,0CAAU,CAAA;IACV,2CAAW,CAAA;IACX,qDAAgB,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AhBD,WAAY,UAAU;IACpB,2CAAQ,CAAA;IACR,aAAa;IACb,+CAAU,CAAA;IACV,6CAAS,CAAA;IACT,uDAAc,CAAA;IACd,wDAAe,CAAA;IACf,sDAAc,CAAA;IACd,sDAAc,CAAA;IACd,qDAAc,CAAA;IACd,yDAAgB,CAAA;IAChB,2DAAiB,CAAA;IACjB,gDAAY,CAAA;IACZ,gDAAY,CAAA;IACZ,sDAAe,CAAA;IACf,8CAAgC,CAAA;AAClC,CAAC,EAhBW,UAAU,KAAV,UAAU,QAgBrB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IDBEvent } from "./DBEvent";
|
|
2
|
+
import { PInAction } from "./PAction";
|
|
3
|
+
import { DataType } from "./PEnums";
|
|
4
|
+
/**
|
|
5
|
+
* Event object used by the EventSystem when triggering events.
|
|
6
|
+
*/
|
|
7
|
+
export default class PEvent {
|
|
8
|
+
_id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
dataType: DataType;
|
|
11
|
+
description: string;
|
|
12
|
+
external: boolean;
|
|
13
|
+
private _listeners;
|
|
14
|
+
static Debug: Boolean;
|
|
15
|
+
constructor(dbItem: IDBEvent);
|
|
16
|
+
listenerCount(): number;
|
|
17
|
+
/**
|
|
18
|
+
* Register as a listener for an event.
|
|
19
|
+
*/
|
|
20
|
+
listen(inAction: PInAction): void;
|
|
21
|
+
/**
|
|
22
|
+
* Unregister as a listener for an event.
|
|
23
|
+
*/
|
|
24
|
+
unlisten(inAction: PInAction): void;
|
|
25
|
+
emit(payload: string | null): void;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=PEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PEvent.d.ts","sourceRoot":"","sources":["../../src/PEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,MAAM;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAElB,OAAO,CAAC,UAAU,CAAmB;IAErC,MAAM,CAAC,KAAK,EAAE,OAAO,CAAS;gBAElB,MAAM,EAAE,QAAQ;IAQ5B,aAAa;IAIb;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,SAAS;IAI1B;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,SAAS;IAI5B,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;CAK5B"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Event object used by the EventSystem when triggering events.
|
|
3
|
+
*/
|
|
4
|
+
export default class PEvent {
|
|
5
|
+
_id;
|
|
6
|
+
name;
|
|
7
|
+
dataType;
|
|
8
|
+
description;
|
|
9
|
+
external;
|
|
10
|
+
_listeners = [];
|
|
11
|
+
static Debug = false;
|
|
12
|
+
constructor(dbItem) {
|
|
13
|
+
this._id = dbItem._id;
|
|
14
|
+
this.name = dbItem.name;
|
|
15
|
+
this.dataType = dbItem.dataType;
|
|
16
|
+
this.description = dbItem.description;
|
|
17
|
+
this.external = dbItem.external;
|
|
18
|
+
}
|
|
19
|
+
listenerCount() {
|
|
20
|
+
return this._listeners.length;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Register as a listener for an event.
|
|
24
|
+
*/
|
|
25
|
+
listen(inAction) {
|
|
26
|
+
this._listeners = [...this._listeners, inAction];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Unregister as a listener for an event.
|
|
30
|
+
*/
|
|
31
|
+
unlisten(inAction) {
|
|
32
|
+
this._listeners = this._listeners.filter(a => a !== inAction);
|
|
33
|
+
}
|
|
34
|
+
emit(payload) {
|
|
35
|
+
for (const listener of this._listeners) {
|
|
36
|
+
listener.trigger(payload);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=PEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PEvent.js","sourceRoot":"","sources":["../../src/PEvent.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,MAAM;IACzB,GAAG,CAAS;IACZ,IAAI,CAAS;IACb,QAAQ,CAAW;IACnB,WAAW,CAAS;IACpB,QAAQ,CAAU;IAEV,UAAU,GAAgB,EAAE,CAAC;IAErC,MAAM,CAAC,KAAK,GAAY,KAAK,CAAC;IAE9B,YAAY,MAAgB;QAC1B,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,GAAI,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAChC,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;QACtC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;IAClC,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,QAAmB;QACxB,IAAI,CAAC,UAAU,GAAG,CAAC,GAAG,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IACnD,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,QAAmB;QAC1B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC;IAChE,CAAC;IAED,IAAI,CAAC,OAAsB;QACzB,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACvC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import PComponent from "./PComponent";
|
|
2
|
+
import PTransform from "./pcomponents/PTransform";
|
|
3
|
+
import GameContext from "./GameContext";
|
|
4
|
+
import DBNode from "./DBNode";
|
|
5
|
+
import { IInAction, IOutAction, PCallback, PInAction, POutAction } from "./PAction";
|
|
6
|
+
import BaseMaterial from "./pcomponents/BaseMaterial";
|
|
7
|
+
import { DataType, Language, Platform, PProperties } from "./PEnums";
|
|
8
|
+
import { IColliderComponent } from "./PTypes";
|
|
9
|
+
import { IPNodeRenderer } from "./IPNodeRenderer";
|
|
10
|
+
export default class PNode {
|
|
11
|
+
protected _enabled: boolean;
|
|
12
|
+
protected _rendered: boolean;
|
|
13
|
+
protected _running: boolean;
|
|
14
|
+
protected _disposed: boolean;
|
|
15
|
+
protected _visible: boolean;
|
|
16
|
+
_inActions: PInAction[];
|
|
17
|
+
_outActions: POutAction[];
|
|
18
|
+
id: string;
|
|
19
|
+
sceneId: string | null;
|
|
20
|
+
projectId: string;
|
|
21
|
+
blueprintId: string | null;
|
|
22
|
+
name: string;
|
|
23
|
+
parentId: string | null;
|
|
24
|
+
visible: boolean;
|
|
25
|
+
components: PComponent[];
|
|
26
|
+
layer: number;
|
|
27
|
+
renderer: IPNodeRenderer;
|
|
28
|
+
editor_visible: boolean;
|
|
29
|
+
parent: PNode | null;
|
|
30
|
+
children: PNode[];
|
|
31
|
+
private _el;
|
|
32
|
+
context: GameContext;
|
|
33
|
+
protected _properties: PProperties;
|
|
34
|
+
protected _abstract: boolean;
|
|
35
|
+
_platforms: Platform;
|
|
36
|
+
_languages: Language;
|
|
37
|
+
_nodeLink: boolean;
|
|
38
|
+
transform: PTransform | null;
|
|
39
|
+
collider: IColliderComponent | null;
|
|
40
|
+
material: BaseMaterial | null;
|
|
41
|
+
constructor(dbItem: DBNode, context: GameContext, renderer: IPNodeRenderer);
|
|
42
|
+
hasEl(): boolean;
|
|
43
|
+
getEl<T>(): T;
|
|
44
|
+
isAbstract(): boolean;
|
|
45
|
+
updateByComponent(): void;
|
|
46
|
+
updateAbstract(): void;
|
|
47
|
+
hasProperty(value: number): boolean;
|
|
48
|
+
isEnabled(): boolean;
|
|
49
|
+
isRendered(): boolean;
|
|
50
|
+
isRunning(): boolean;
|
|
51
|
+
enable(): void;
|
|
52
|
+
disable(): void;
|
|
53
|
+
/**
|
|
54
|
+
* Create the Object3D object.
|
|
55
|
+
*/
|
|
56
|
+
render(): void;
|
|
57
|
+
/**
|
|
58
|
+
* Destroys the node and its components, it will not remove the PNode.
|
|
59
|
+
*/
|
|
60
|
+
unrender(): void;
|
|
61
|
+
dispose(recursive?: boolean): void;
|
|
62
|
+
/**
|
|
63
|
+
* Called when we have both an el and a transform
|
|
64
|
+
*/
|
|
65
|
+
protected updateElTransform(): void;
|
|
66
|
+
set_transform(transform: PTransform): void;
|
|
67
|
+
set_default_el(): void;
|
|
68
|
+
/**
|
|
69
|
+
* If nodeLink, this PNode is not in charge of adding and removing the node
|
|
70
|
+
*/
|
|
71
|
+
set_el(node: any, nodeLink: boolean): void;
|
|
72
|
+
isVisible(): boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Called by eg components when we want to change the visiblity of this node.
|
|
75
|
+
*/
|
|
76
|
+
setVisible(value: boolean): void;
|
|
77
|
+
protected hide(): void;
|
|
78
|
+
protected show(): void;
|
|
79
|
+
/**
|
|
80
|
+
* Update visiblity recursive
|
|
81
|
+
*/
|
|
82
|
+
update(): void;
|
|
83
|
+
/**
|
|
84
|
+
* Called by component constructors
|
|
85
|
+
*/
|
|
86
|
+
registerInAction(name: string, dbAction: IInAction | null, callback: PCallback, pinDataType?: DataType): PInAction | null;
|
|
87
|
+
registerInVariable(dbVariable: string | null, callback: PCallback, pinDataType?: DataType): PInAction | null;
|
|
88
|
+
registerOutAction(dbAction: IOutAction | null, pinDataType?: DataType): POutAction | null;
|
|
89
|
+
registerOutVariable(dbVariable: string | null, pinDataType?: DataType): POutAction | null;
|
|
90
|
+
getLocalInAction(name: string): PInAction | null;
|
|
91
|
+
getLocalInEvents(): string[];
|
|
92
|
+
traverse(f: (node: PNode) => void, childrenFirst?: boolean): void;
|
|
93
|
+
hasValidPlatform(): number | true;
|
|
94
|
+
getPlatforms(): Platform;
|
|
95
|
+
getLanguages(): Language;
|
|
96
|
+
hasPlatform(platform: Platform, language: Language): number | true;
|
|
97
|
+
setPlatforms(platforms: number): void;
|
|
98
|
+
setLanguages(languages: number): void;
|
|
99
|
+
/**
|
|
100
|
+
* Add a child node.
|
|
101
|
+
*/
|
|
102
|
+
add(child: PNode): void;
|
|
103
|
+
/**
|
|
104
|
+
* Remove this node reference in parent's children array.
|
|
105
|
+
*/
|
|
106
|
+
removeFromParent(): void;
|
|
107
|
+
findComponent(type: string): any | null;
|
|
108
|
+
play(): void;
|
|
109
|
+
stop(): void;
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=PNode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PNode.d.ts","sourceRoot":"","sources":["../../src/PNode.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EACL,SAAS,EACT,UAAU,EACV,SAAS,EACT,SAAS,EACT,UAAU,EACX,MAAM,WAAW,CAAC;AACnB,OAAO,YAAY,MAAM,4BAA4B,CAAC;AAEtD,OAAO,EAEL,QAAQ,EACR,QAAQ,EAER,QAAQ,EACR,WAAW,EACZ,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,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