@p100-web/core 100.0.101 → 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.
- package/package.json +1 -1
- package/dist/AdaptivePerformance.d.ts +0 -20
- package/dist/AdaptivePerformance.d.ts.map +0 -1
- package/dist/AdaptivePerformance.js +0 -110
- package/dist/AdaptivePerformance.js.map +0 -1
- package/dist/DBEvent.d.ts +0 -22
- package/dist/DBEvent.d.ts.map +0 -1
- package/dist/DBEvent.js +0 -19
- package/dist/DBEvent.js.map +0 -1
- package/dist/DBNode.d.ts +0 -33
- package/dist/DBNode.d.ts.map +0 -1
- package/dist/DBNode.js +0 -31
- package/dist/DBNode.js.map +0 -1
- package/dist/DBScene.d.ts +0 -11
- package/dist/DBScene.d.ts.map +0 -1
- package/dist/DBScene.js +0 -9
- package/dist/DBScene.js.map +0 -1
- package/dist/DBVariable.d.ts +0 -22
- package/dist/DBVariable.d.ts.map +0 -1
- package/dist/DBVariable.js +0 -19
- package/dist/DBVariable.js.map +0 -1
- package/dist/DevTools.d.ts +0 -4
- package/dist/DevTools.d.ts.map +0 -1
- package/dist/DevTools.js +0 -10
- package/dist/DevTools.js.map +0 -1
- package/dist/GameContext.d.ts +0 -182
- package/dist/GameContext.d.ts.map +0 -1
- package/dist/GameContext.js +0 -590
- package/dist/GameContext.js.map +0 -1
- package/dist/IAudioListener.d.ts +0 -4
- package/dist/IAudioListener.d.ts.map +0 -1
- package/dist/IAudioListener.js +0 -2
- package/dist/IAudioListener.js.map +0 -1
- package/dist/ICameraControls.d.ts +0 -17
- package/dist/ICameraControls.d.ts.map +0 -1
- package/dist/ICameraControls.js +0 -2
- package/dist/ICameraControls.js.map +0 -1
- package/dist/IComponentFactory.d.ts +0 -8
- package/dist/IComponentFactory.d.ts.map +0 -1
- package/dist/IComponentFactory.js +0 -2
- package/dist/IComponentFactory.js.map +0 -1
- package/dist/IEngine.d.ts +0 -23
- package/dist/IEngine.d.ts.map +0 -1
- package/dist/IEngine.js +0 -2
- package/dist/IEngine.js.map +0 -1
- package/dist/IMaterial.d.ts +0 -5
- package/dist/IMaterial.d.ts.map +0 -1
- package/dist/IMaterial.js +0 -2
- package/dist/IMaterial.js.map +0 -1
- package/dist/IPMaterial.d.ts +0 -10
- package/dist/IPMaterial.d.ts.map +0 -1
- package/dist/IPMaterial.js +0 -2
- package/dist/IPMaterial.js.map +0 -1
- package/dist/IPNodeRenderer.d.ts +0 -27
- package/dist/IPNodeRenderer.d.ts.map +0 -1
- package/dist/IPNodeRenderer.js +0 -2
- package/dist/IPNodeRenderer.js.map +0 -1
- package/dist/IStats.d.ts +0 -9
- package/dist/IStats.d.ts.map +0 -1
- package/dist/IStats.js +0 -3
- package/dist/IStats.js.map +0 -1
- package/dist/MathTools.d.ts +0 -8
- package/dist/MathTools.d.ts.map +0 -1
- package/dist/MathTools.js +0 -20
- package/dist/MathTools.js.map +0 -1
- package/dist/PAction.d.ts +0 -71
- package/dist/PAction.d.ts.map +0 -1
- package/dist/PAction.js +0 -238
- package/dist/PAction.js.map +0 -1
- package/dist/PCanvas.d.ts +0 -161
- package/dist/PCanvas.d.ts.map +0 -1
- package/dist/PCanvas.js +0 -619
- package/dist/PCanvas.js.map +0 -1
- package/dist/PComponent.d.ts +0 -48
- package/dist/PComponent.d.ts.map +0 -1
- package/dist/PComponent.js +0 -70
- package/dist/PComponent.js.map +0 -1
- package/dist/PEnums.d.ts +0 -116
- package/dist/PEnums.d.ts.map +0 -1
- package/dist/PEnums.js +0 -129
- package/dist/PEnums.js.map +0 -1
- package/dist/PEvent.d.ts +0 -27
- package/dist/PEvent.d.ts.map +0 -1
- package/dist/PEvent.js +0 -40
- package/dist/PEvent.js.map +0 -1
- package/dist/PNode.d.ts +0 -133
- package/dist/PNode.d.ts.map +0 -1
- package/dist/PNode.js +0 -555
- package/dist/PNode.js.map +0 -1
- package/dist/POutValue.d.ts +0 -16
- package/dist/POutValue.d.ts.map +0 -1
- package/dist/POutValue.js +0 -26
- package/dist/POutValue.js.map +0 -1
- package/dist/PPayload.d.ts +0 -7
- package/dist/PPayload.d.ts.map +0 -1
- package/dist/PPayload.js +0 -19
- package/dist/PPayload.js.map +0 -1
- package/dist/PTypes.d.ts +0 -36
- package/dist/PTypes.d.ts.map +0 -1
- package/dist/PTypes.js +0 -2
- package/dist/PTypes.js.map +0 -1
- package/dist/PVariable.d.ts +0 -29
- package/dist/PVariable.d.ts.map +0 -1
- package/dist/PVariable.js +0 -51
- package/dist/PVariable.js.map +0 -1
- package/dist/PVector2.d.ts +0 -14
- package/dist/PVector2.d.ts.map +0 -1
- package/dist/PVector2.js +0 -25
- package/dist/PVector2.js.map +0 -1
- package/dist/PVector3.d.ts +0 -18
- package/dist/PVector3.d.ts.map +0 -1
- package/dist/PVector3.js +0 -39
- package/dist/PVector3.js.map +0 -1
- package/dist/animations/IModelAnimation.d.ts +0 -17
- package/dist/animations/IModelAnimation.d.ts.map +0 -1
- package/dist/animations/IModelAnimation.js +0 -2
- package/dist/animations/IModelAnimation.js.map +0 -1
- package/dist/assets/AssetLoader.d.ts +0 -10
- package/dist/assets/AssetLoader.d.ts.map +0 -1
- package/dist/assets/AssetLoader.js +0 -12
- package/dist/assets/AssetLoader.js.map +0 -1
- package/dist/index.d.ts +0 -150
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -110
- package/dist/index.js.map +0 -1
- package/dist/media/MediaManager.d.ts +0 -17
- package/dist/media/MediaManager.d.ts.map +0 -1
- package/dist/media/MediaManager.js +0 -19
- package/dist/media/MediaManager.js.map +0 -1
- package/dist/media/PFile.d.ts +0 -13
- package/dist/media/PFile.d.ts.map +0 -1
- package/dist/media/PFile.js +0 -28
- package/dist/media/PFile.js.map +0 -1
- package/dist/pcomponents/BaseMaterial.d.ts +0 -46
- package/dist/pcomponents/BaseMaterial.d.ts.map +0 -1
- package/dist/pcomponents/BaseMaterial.js +0 -51
- package/dist/pcomponents/BaseMaterial.js.map +0 -1
- package/dist/pcomponents/PAnimator.d.ts +0 -37
- package/dist/pcomponents/PAnimator.d.ts.map +0 -1
- package/dist/pcomponents/PAnimator.js +0 -45
- package/dist/pcomponents/PAnimator.js.map +0 -1
- package/dist/pcomponents/PBackground.d.ts +0 -34
- package/dist/pcomponents/PBackground.d.ts.map +0 -1
- package/dist/pcomponents/PBackground.js +0 -45
- package/dist/pcomponents/PBackground.js.map +0 -1
- package/dist/pcomponents/PBasicMaterial.d.ts +0 -23
- package/dist/pcomponents/PBasicMaterial.d.ts.map +0 -1
- package/dist/pcomponents/PBasicMaterial.js +0 -39
- package/dist/pcomponents/PBasicMaterial.js.map +0 -1
- package/dist/pcomponents/PCallAction.d.ts +0 -19
- package/dist/pcomponents/PCallAction.d.ts.map +0 -1
- package/dist/pcomponents/PCallAction.js +0 -24
- package/dist/pcomponents/PCallAction.js.map +0 -1
- package/dist/pcomponents/PCallActions.d.ts +0 -24
- package/dist/pcomponents/PCallActions.d.ts.map +0 -1
- package/dist/pcomponents/PCallActions.js +0 -37
- package/dist/pcomponents/PCallActions.js.map +0 -1
- package/dist/pcomponents/PCameraPosition.d.ts +0 -29
- package/dist/pcomponents/PCameraPosition.d.ts.map +0 -1
- package/dist/pcomponents/PCameraPosition.js +0 -78
- package/dist/pcomponents/PCameraPosition.js.map +0 -1
- package/dist/pcomponents/PCameraTarget.d.ts +0 -29
- package/dist/pcomponents/PCameraTarget.d.ts.map +0 -1
- package/dist/pcomponents/PCameraTarget.js +0 -79
- package/dist/pcomponents/PCameraTarget.js.map +0 -1
- package/dist/pcomponents/PCollider.d.ts +0 -40
- package/dist/pcomponents/PCollider.d.ts.map +0 -1
- package/dist/pcomponents/PCollider.js +0 -58
- package/dist/pcomponents/PCollider.js.map +0 -1
- package/dist/pcomponents/PCompareBoolean.d.ts +0 -23
- package/dist/pcomponents/PCompareBoolean.d.ts.map +0 -1
- package/dist/pcomponents/PCompareBoolean.js +0 -38
- package/dist/pcomponents/PCompareBoolean.js.map +0 -1
- package/dist/pcomponents/PCompareInteger.d.ts +0 -25
- package/dist/pcomponents/PCompareInteger.d.ts.map +0 -1
- package/dist/pcomponents/PCompareInteger.js +0 -44
- package/dist/pcomponents/PCompareInteger.js.map +0 -1
- package/dist/pcomponents/PCompareNumber.d.ts +0 -25
- package/dist/pcomponents/PCompareNumber.d.ts.map +0 -1
- package/dist/pcomponents/PCompareNumber.js +0 -44
- package/dist/pcomponents/PCompareNumber.js.map +0 -1
- package/dist/pcomponents/PCompareString.d.ts +0 -25
- package/dist/pcomponents/PCompareString.d.ts.map +0 -1
- package/dist/pcomponents/PCompareString.js +0 -42
- package/dist/pcomponents/PCompareString.js.map +0 -1
- package/dist/pcomponents/PCompareVariable.d.ts +0 -28
- package/dist/pcomponents/PCompareVariable.d.ts.map +0 -1
- package/dist/pcomponents/PCompareVariable.js +0 -50
- package/dist/pcomponents/PCompareVariable.js.map +0 -1
- package/dist/pcomponents/PControllerInput.d.ts +0 -30
- package/dist/pcomponents/PControllerInput.d.ts.map +0 -1
- package/dist/pcomponents/PControllerInput.js +0 -41
- package/dist/pcomponents/PControllerInput.js.map +0 -1
- package/dist/pcomponents/PCubeGeometry.d.ts +0 -18
- package/dist/pcomponents/PCubeGeometry.d.ts.map +0 -1
- package/dist/pcomponents/PCubeGeometry.js +0 -23
- package/dist/pcomponents/PCubeGeometry.js.map +0 -1
- package/dist/pcomponents/PDebug.d.ts +0 -23
- package/dist/pcomponents/PDebug.d.ts.map +0 -1
- package/dist/pcomponents/PDebug.js +0 -31
- package/dist/pcomponents/PDebug.js.map +0 -1
- package/dist/pcomponents/PEnvironment.d.ts +0 -27
- package/dist/pcomponents/PEnvironment.d.ts.map +0 -1
- package/dist/pcomponents/PEnvironment.js +0 -43
- package/dist/pcomponents/PEnvironment.js.map +0 -1
- package/dist/pcomponents/PFadeAnimation.d.ts +0 -30
- package/dist/pcomponents/PFadeAnimation.d.ts.map +0 -1
- package/dist/pcomponents/PFadeAnimation.js +0 -98
- package/dist/pcomponents/PFadeAnimation.js.map +0 -1
- package/dist/pcomponents/PHud.d.ts +0 -12
- package/dist/pcomponents/PHud.d.ts.map +0 -1
- package/dist/pcomponents/PHud.js +0 -12
- package/dist/pcomponents/PHud.js.map +0 -1
- package/dist/pcomponents/PImageCache.d.ts +0 -18
- package/dist/pcomponents/PImageCache.d.ts.map +0 -1
- package/dist/pcomponents/PImageCache.js +0 -44
- package/dist/pcomponents/PImageCache.js.map +0 -1
- package/dist/pcomponents/PImageDetector.d.ts +0 -28
- package/dist/pcomponents/PImageDetector.d.ts.map +0 -1
- package/dist/pcomponents/PImageDetector.js +0 -39
- package/dist/pcomponents/PImageDetector.js.map +0 -1
- package/dist/pcomponents/PInteger.d.ts +0 -39
- package/dist/pcomponents/PInteger.d.ts.map +0 -1
- package/dist/pcomponents/PInteger.js +0 -75
- package/dist/pcomponents/PInteger.js.map +0 -1
- package/dist/pcomponents/PIntegerAnimator.d.ts +0 -36
- package/dist/pcomponents/PIntegerAnimator.d.ts.map +0 -1
- package/dist/pcomponents/PIntegerAnimator.js +0 -105
- package/dist/pcomponents/PIntegerAnimator.js.map +0 -1
- package/dist/pcomponents/PLight.d.ts +0 -15
- package/dist/pcomponents/PLight.d.ts.map +0 -1
- package/dist/pcomponents/PLight.js +0 -19
- package/dist/pcomponents/PLight.js.map +0 -1
- package/dist/pcomponents/PLightDirectional.d.ts +0 -19
- package/dist/pcomponents/PLightDirectional.d.ts.map +0 -1
- package/dist/pcomponents/PLightDirectional.js +0 -25
- package/dist/pcomponents/PLightDirectional.js.map +0 -1
- package/dist/pcomponents/PMaskedMaterial.d.ts +0 -20
- package/dist/pcomponents/PMaskedMaterial.d.ts.map +0 -1
- package/dist/pcomponents/PMaskedMaterial.js +0 -33
- package/dist/pcomponents/PMaskedMaterial.js.map +0 -1
- package/dist/pcomponents/PMaterialModifier.d.ts +0 -20
- package/dist/pcomponents/PMaterialModifier.d.ts.map +0 -1
- package/dist/pcomponents/PMaterialModifier.js +0 -22
- package/dist/pcomponents/PMaterialModifier.js.map +0 -1
- package/dist/pcomponents/PModelAnnotation.d.ts +0 -43
- package/dist/pcomponents/PModelAnnotation.d.ts.map +0 -1
- package/dist/pcomponents/PModelAnnotation.js +0 -114
- package/dist/pcomponents/PModelAnnotation.js.map +0 -1
- package/dist/pcomponents/PModelAnnotations.d.ts +0 -42
- package/dist/pcomponents/PModelAnnotations.d.ts.map +0 -1
- package/dist/pcomponents/PModelAnnotations.js +0 -123
- package/dist/pcomponents/PModelAnnotations.js.map +0 -1
- package/dist/pcomponents/PModelGLTF.d.ts +0 -36
- package/dist/pcomponents/PModelGLTF.d.ts.map +0 -1
- package/dist/pcomponents/PModelGLTF.js +0 -61
- package/dist/pcomponents/PModelGLTF.js.map +0 -1
- package/dist/pcomponents/PModelNode.d.ts +0 -16
- package/dist/pcomponents/PModelNode.d.ts.map +0 -1
- package/dist/pcomponents/PModelNode.js +0 -18
- package/dist/pcomponents/PModelNode.js.map +0 -1
- package/dist/pcomponents/PMoveAnimation.d.ts +0 -27
- package/dist/pcomponents/PMoveAnimation.d.ts.map +0 -1
- package/dist/pcomponents/PMoveAnimation.js +0 -65
- package/dist/pcomponents/PMoveAnimation.js.map +0 -1
- package/dist/pcomponents/PMoveToAnimation.d.ts +0 -26
- package/dist/pcomponents/PMoveToAnimation.d.ts.map +0 -1
- package/dist/pcomponents/PMoveToAnimation.js +0 -81
- package/dist/pcomponents/PMoveToAnimation.js.map +0 -1
- package/dist/pcomponents/PPhysicalMaterial.d.ts +0 -29
- package/dist/pcomponents/PPhysicalMaterial.d.ts.map +0 -1
- package/dist/pcomponents/PPhysicalMaterial.js +0 -43
- package/dist/pcomponents/PPhysicalMaterial.js.map +0 -1
- package/dist/pcomponents/PPlaneDetector.d.ts +0 -20
- package/dist/pcomponents/PPlaneDetector.d.ts.map +0 -1
- package/dist/pcomponents/PPlaneDetector.js +0 -27
- package/dist/pcomponents/PPlaneDetector.js.map +0 -1
- package/dist/pcomponents/PPlaneGeometry.d.ts +0 -20
- package/dist/pcomponents/PPlaneGeometry.d.ts.map +0 -1
- package/dist/pcomponents/PPlaneGeometry.js +0 -26
- package/dist/pcomponents/PPlaneGeometry.js.map +0 -1
- package/dist/pcomponents/PProjectRoot.d.ts +0 -38
- package/dist/pcomponents/PProjectRoot.d.ts.map +0 -1
- package/dist/pcomponents/PProjectRoot.js +0 -82
- package/dist/pcomponents/PProjectRoot.js.map +0 -1
- package/dist/pcomponents/PRotateAnimation.d.ts +0 -32
- package/dist/pcomponents/PRotateAnimation.d.ts.map +0 -1
- package/dist/pcomponents/PRotateAnimation.js +0 -81
- package/dist/pcomponents/PRotateAnimation.js.map +0 -1
- package/dist/pcomponents/PScaleAnimation.d.ts +0 -28
- package/dist/pcomponents/PScaleAnimation.d.ts.map +0 -1
- package/dist/pcomponents/PScaleAnimation.js +0 -88
- package/dist/pcomponents/PScaleAnimation.js.map +0 -1
- package/dist/pcomponents/PSceneContainer.d.ts +0 -22
- package/dist/pcomponents/PSceneContainer.d.ts.map +0 -1
- package/dist/pcomponents/PSceneContainer.js +0 -51
- package/dist/pcomponents/PSceneContainer.js.map +0 -1
- package/dist/pcomponents/PSceneRoot.d.ts +0 -16
- package/dist/pcomponents/PSceneRoot.d.ts.map +0 -1
- package/dist/pcomponents/PSceneRoot.js +0 -23
- package/dist/pcomponents/PSceneRoot.js.map +0 -1
- package/dist/pcomponents/PSlider.d.ts +0 -34
- package/dist/pcomponents/PSlider.d.ts.map +0 -1
- package/dist/pcomponents/PSlider.js +0 -39
- package/dist/pcomponents/PSlider.js.map +0 -1
- package/dist/pcomponents/PSound.d.ts +0 -34
- package/dist/pcomponents/PSound.d.ts.map +0 -1
- package/dist/pcomponents/PSound.js +0 -45
- package/dist/pcomponents/PSound.js.map +0 -1
- package/dist/pcomponents/PSphereGeometry.d.ts +0 -19
- package/dist/pcomponents/PSphereGeometry.d.ts.map +0 -1
- package/dist/pcomponents/PSphereGeometry.js +0 -25
- package/dist/pcomponents/PSphereGeometry.js.map +0 -1
- package/dist/pcomponents/PSprite.d.ts +0 -19
- package/dist/pcomponents/PSprite.d.ts.map +0 -1
- package/dist/pcomponents/PSprite.js +0 -27
- package/dist/pcomponents/PSprite.js.map +0 -1
- package/dist/pcomponents/PSpriteSheet.d.ts +0 -27
- package/dist/pcomponents/PSpriteSheet.d.ts.map +0 -1
- package/dist/pcomponents/PSpriteSheet.js +0 -42
- package/dist/pcomponents/PSpriteSheet.js.map +0 -1
- package/dist/pcomponents/PText.d.ts +0 -35
- package/dist/pcomponents/PText.d.ts.map +0 -1
- package/dist/pcomponents/PText.js +0 -49
- package/dist/pcomponents/PText.js.map +0 -1
- package/dist/pcomponents/PTransform.d.ts +0 -23
- package/dist/pcomponents/PTransform.d.ts.map +0 -1
- package/dist/pcomponents/PTransform.js +0 -67
- package/dist/pcomponents/PTransform.js.map +0 -1
- package/dist/pcomponents/PVarList.d.ts +0 -36
- package/dist/pcomponents/PVarList.d.ts.map +0 -1
- package/dist/pcomponents/PVarList.js +0 -71
- package/dist/pcomponents/PVarList.js.map +0 -1
- package/dist/pcomponents/PVarReader.d.ts +0 -19
- package/dist/pcomponents/PVarReader.d.ts.map +0 -1
- package/dist/pcomponents/PVarReader.js +0 -25
- package/dist/pcomponents/PVarReader.js.map +0 -1
- package/dist/pcomponents/PVarWriter.d.ts +0 -25
- package/dist/pcomponents/PVarWriter.d.ts.map +0 -1
- package/dist/pcomponents/PVarWriter.js +0 -45
- package/dist/pcomponents/PVarWriter.js.map +0 -1
- package/dist/pcomponents/PVideoPlayer.d.ts +0 -35
- package/dist/pcomponents/PVideoPlayer.d.ts.map +0 -1
- package/dist/pcomponents/PVideoPlayer.js +0 -94
- package/dist/pcomponents/PVideoPlayer.js.map +0 -1
- package/dist/pcomponents/PVisibility.d.ts +0 -33
- package/dist/pcomponents/PVisibility.d.ts.map +0 -1
- package/dist/pcomponents/PVisibility.js +0 -63
- package/dist/pcomponents/PVisibility.js.map +0 -1
- package/dist/pcomponents/PXRTools.d.ts +0 -32
- package/dist/pcomponents/PXRTools.d.ts.map +0 -1
- package/dist/pcomponents/PXRTools.js +0 -44
- package/dist/pcomponents/PXRTools.js.map +0 -1
- package/dist/settings/ICameraSettings.d.ts +0 -13
- package/dist/settings/ICameraSettings.d.ts.map +0 -1
- package/dist/settings/ICameraSettings.js +0 -2
- package/dist/settings/ICameraSettings.js.map +0 -1
- package/dist/settings/IQualitySettings.d.ts +0 -14
- package/dist/settings/IQualitySettings.d.ts.map +0 -1
- package/dist/settings/IQualitySettings.js +0 -2
- package/dist/settings/IQualitySettings.js.map +0 -1
- package/dist/settings/IRenderSetting.d.ts +0 -7
- package/dist/settings/IRenderSetting.d.ts.map +0 -1
- package/dist/settings/IRenderSetting.js +0 -2
- package/dist/settings/IRenderSetting.js.map +0 -1
- package/dist/settings/ISetting.d.ts +0 -4
- package/dist/settings/ISetting.d.ts.map +0 -1
- package/dist/settings/ISetting.js +0 -2
- package/dist/settings/ISetting.js.map +0 -1
- package/dist/settings/IWebSettings.d.ts +0 -6
- package/dist/settings/IWebSettings.d.ts.map +0 -1
- package/dist/settings/IWebSettings.js +0 -2
- package/dist/settings/IWebSettings.js.map +0 -1
- package/dist/settings/Settings_Babylonjs.d.ts +0 -101
- package/dist/settings/Settings_Babylonjs.d.ts.map +0 -1
- package/dist/settings/Settings_Babylonjs.js +0 -85
- package/dist/settings/Settings_Babylonjs.js.map +0 -1
- package/dist/settings/Settings_Base.d.ts +0 -11
- package/dist/settings/Settings_Base.d.ts.map +0 -1
- package/dist/settings/Settings_Base.js +0 -39
- package/dist/settings/Settings_Base.js.map +0 -1
- package/dist/settings/Settings_Threejs.d.ts +0 -106
- package/dist/settings/Settings_Threejs.d.ts.map +0 -1
- package/dist/settings/Settings_Threejs.js +0 -165
- package/dist/settings/Settings_Threejs.js.map +0 -1
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { PInAction } from "../PAction";
|
|
2
|
-
import PComponent from "../PComponent";
|
|
3
|
-
import { Tween } from "@tweenjs/tween.js";
|
|
4
|
-
export default class PScaleAnimation extends PComponent {
|
|
5
|
-
inevent_scaleInOn;
|
|
6
|
-
inevent_scaleOutOn;
|
|
7
|
-
from;
|
|
8
|
-
to;
|
|
9
|
-
duration;
|
|
10
|
-
_tween = null;
|
|
11
|
-
constructor(dbComponent, node, context) {
|
|
12
|
-
super(dbComponent, "PScaleAnimation", "Scale Animation", node, context);
|
|
13
|
-
this.requireTransform = true;
|
|
14
|
-
this.inevent_scaleInOn = node.registerInAction("Scale In", dbComponent.inevent_scaleInOn, this.callback_scaleInOn);
|
|
15
|
-
this.inevent_scaleOutOn = node.registerInAction("Scale Out", dbComponent.inevent_scaleOutOn, this.callback_scaleOutOn);
|
|
16
|
-
this.from = dbComponent.from || 1.0;
|
|
17
|
-
this.to = dbComponent.to || 1.25;
|
|
18
|
-
this.duration = dbComponent.duration || 500;
|
|
19
|
-
}
|
|
20
|
-
toDB() {
|
|
21
|
-
return {
|
|
22
|
-
...super.toDB(),
|
|
23
|
-
inevent_scaleInOn: PInAction.toDB(this.inevent_scaleInOn),
|
|
24
|
-
inevent_scaleOutOn: PInAction.toDB(this.inevent_scaleOutOn),
|
|
25
|
-
from: this.from,
|
|
26
|
-
to: this.to,
|
|
27
|
-
duration: this.duration,
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
render() { }
|
|
31
|
-
unrender() {
|
|
32
|
-
if (this._tween !== null) {
|
|
33
|
-
this._tween.stop();
|
|
34
|
-
this._tween = null;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
callback_scaleInOn = () => {
|
|
38
|
-
if (!this.node.isRunning() || !this.node.hasEl()) {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
if (this._tween !== null) {
|
|
42
|
-
this._tween.stop();
|
|
43
|
-
this._tween = null;
|
|
44
|
-
}
|
|
45
|
-
const target = {
|
|
46
|
-
x: this.to,
|
|
47
|
-
y: this.to,
|
|
48
|
-
z: this.to,
|
|
49
|
-
};
|
|
50
|
-
if (this.node.getInverted()) {
|
|
51
|
-
target.x *= -1;
|
|
52
|
-
}
|
|
53
|
-
const nodeScale = this.context.getNodeRenderer().getScaleVector(this.node);
|
|
54
|
-
this._tween = new Tween(nodeScale)
|
|
55
|
-
.to(target, this.duration)
|
|
56
|
-
.onComplete(() => {
|
|
57
|
-
this._tween = null;
|
|
58
|
-
})
|
|
59
|
-
.start();
|
|
60
|
-
this.context.addTween(this._tween);
|
|
61
|
-
};
|
|
62
|
-
callback_scaleOutOn = () => {
|
|
63
|
-
if (!this.node.isRunning() || !this.node.hasEl()) {
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
if (this._tween !== null) {
|
|
67
|
-
this._tween.stop();
|
|
68
|
-
this._tween = null;
|
|
69
|
-
}
|
|
70
|
-
const target = {
|
|
71
|
-
x: this.from,
|
|
72
|
-
y: this.from,
|
|
73
|
-
z: this.from,
|
|
74
|
-
};
|
|
75
|
-
if (this.node.getInverted()) {
|
|
76
|
-
target.x *= -1;
|
|
77
|
-
}
|
|
78
|
-
const nodeScale = this.context.getNodeRenderer().getScaleVector(this.node);
|
|
79
|
-
this._tween = new Tween(nodeScale)
|
|
80
|
-
.to(target, this.duration)
|
|
81
|
-
.onComplete(() => {
|
|
82
|
-
this._tween = null;
|
|
83
|
-
})
|
|
84
|
-
.start();
|
|
85
|
-
this.context.addTween(this._tween);
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
//# sourceMappingURL=PScaleAnimation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PScaleAnimation.js","sourceRoot":"","sources":["../../src/pcomponents/PScaleAnimation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,SAAS,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,UAA2B,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAW1C,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU;IACrD,iBAAiB,CAAmB;IACpC,kBAAkB,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ED,IAAI,IAAI,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;YACzB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACnB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACrB,CAAC;QAED,MAAM,MAAM,GAAG;YACb,CAAC,EAAE,IAAI,CAAC,IAAI;YACZ,CAAC,EAAE,IAAI,CAAC,IAAI;YACZ,CAAC,EAAE,IAAI,CAAC,IAAI;SACb,CAAC;QAEF,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;YAC5B,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QACjB,CAAC;QAED,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE3E,IAAI,CAAC,MAAM,GAAG,IAAI,KAAK,CAAC,SAAS,CAAC;aAC/B,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;aACzB,UAAU,CAAC,GAAG,EAAE;YACf,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACrB,CAAC,CAAC;aACD,KAAK,EAAE,CAAC;QACX,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC,CAAC;CACH"}
|
|
@@ -1,22 +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
|
-
interface DBSceneContainer extends DBComponent {
|
|
6
|
-
inevent_loadScene: IInAction | null;
|
|
7
|
-
inevent_unloadScene: IInAction | null;
|
|
8
|
-
outevent_onSceneLoaded: IOutAction | null;
|
|
9
|
-
}
|
|
10
|
-
export type { DBSceneContainer };
|
|
11
|
-
export default class PSceneContainer extends PComponent {
|
|
12
|
-
inevent_loadScene: PInAction | null;
|
|
13
|
-
inevent_unloadScene: PInAction | null;
|
|
14
|
-
outevent_onSceneLoaded: POutAction | null;
|
|
15
|
-
constructor(dbComponent: DBSceneContainer, node: PNode, context: GameContext);
|
|
16
|
-
toDB(): DBSceneContainer;
|
|
17
|
-
render(): void;
|
|
18
|
-
unrender(): void;
|
|
19
|
-
callback_loadScene: (payloadValue: string | null) => void;
|
|
20
|
-
callback_unloadScene: (_payloadValue: string | null) => void;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=PSceneContainer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PSceneContainer.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PSceneContainer.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;AAE1E,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAE7B,UAAU,gBAAiB,SAAQ,WAAW;IAC5C,iBAAiB,EAAE,SAAS,GAAG,IAAI,CAAC;IACpC,mBAAmB,EAAE,SAAS,GAAG,IAAI,CAAC;IACtC,sBAAsB,EAAE,UAAU,GAAG,IAAI,CAAC;CAC3C;AAED,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAEjC,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU;IACrD,iBAAiB,EAAE,SAAS,GAAG,IAAI,CAAC;IACpC,mBAAmB,EAAE,SAAS,GAAG,IAAI,CAAC;IACtC,sBAAsB,EAAE,UAAU,GAAG,IAAI,CAAC;gBAGxC,WAAW,EAAE,gBAAgB,EAC7B,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,WAAW;IA2BtB,IAAI,IAAI,gBAAgB;IASxB,MAAM,IAAI,IAAI;IAEd,QAAQ,IAAI,IAAI;IAEhB,kBAAkB,GAAI,cAAc,MAAM,GAAG,IAAI,UAkB/C;IAEF,oBAAoB,GAAI,eAAe,MAAM,GAAG,IAAI,UAMlD;CACH"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import PComponent from "../PComponent";
|
|
2
|
-
import { PInAction, POutAction } from "../PAction";
|
|
3
|
-
import { DataType } from "../PEnums";
|
|
4
|
-
export default class PSceneContainer extends PComponent {
|
|
5
|
-
inevent_loadScene;
|
|
6
|
-
inevent_unloadScene;
|
|
7
|
-
outevent_onSceneLoaded;
|
|
8
|
-
constructor(dbComponent, node, context) {
|
|
9
|
-
super(dbComponent, "PSceneContainer", "Scene Container", node, context);
|
|
10
|
-
this.sceneRoot = true;
|
|
11
|
-
this.requireTransform = true;
|
|
12
|
-
this.inevent_loadScene = node.registerInAction("Load Scene", dbComponent.inevent_loadScene, this.callback_loadScene, DataType.Scene);
|
|
13
|
-
this.inevent_unloadScene = node.registerInAction("Unload Scene", dbComponent.inevent_unloadScene, this.callback_unloadScene, DataType.None);
|
|
14
|
-
this.outevent_onSceneLoaded = node.registerOutAction(dbComponent.outevent_onSceneLoaded, DataType.Scene);
|
|
15
|
-
}
|
|
16
|
-
toDB() {
|
|
17
|
-
return {
|
|
18
|
-
...super.toDB(),
|
|
19
|
-
inevent_loadScene: PInAction.toDB(this.inevent_loadScene),
|
|
20
|
-
inevent_unloadScene: PInAction.toDB(this.inevent_unloadScene),
|
|
21
|
-
outevent_onSceneLoaded: POutAction.toDB(this.outevent_onSceneLoaded),
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
render() { }
|
|
25
|
-
unrender() { }
|
|
26
|
-
callback_loadScene = (payloadValue) => {
|
|
27
|
-
if (!payloadValue || payloadValue === "") {
|
|
28
|
-
this.context.error("Scene has not been set");
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
// Unload scenes
|
|
32
|
-
const scenes = this.node.children.filter((n) => n.isSceneRoot());
|
|
33
|
-
for (const scene of scenes) {
|
|
34
|
-
this.context.unloadScene(scene);
|
|
35
|
-
}
|
|
36
|
-
const pscene = this.context.getScene(payloadValue);
|
|
37
|
-
if (!pscene) {
|
|
38
|
-
this.context.error("Could not find scene: " + payloadValue);
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
this.context.loadScene(pscene, this.node, true, this.outevent_onSceneLoaded);
|
|
42
|
-
};
|
|
43
|
-
callback_unloadScene = (_payloadValue) => {
|
|
44
|
-
// Unload scenes
|
|
45
|
-
const scenes = this.node.children.filter((n) => n.isSceneRoot());
|
|
46
|
-
for (const scene of scenes) {
|
|
47
|
-
this.context.unloadScene(scene);
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=PSceneContainer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PSceneContainer.js","sourceRoot":"","sources":["../../src/pcomponents/PSceneContainer.ts"],"names":[],"mappings":"AAAA,OAAO,UAA2B,MAAM,eAAe,CAAC;AACxD,OAAO,EAAyB,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAYrC,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU;IACrD,iBAAiB,CAAmB;IACpC,mBAAmB,CAAmB;IACtC,sBAAsB,CAAoB;IAE1C,YACE,WAA6B,EAC7B,IAAW,EACX,OAAoB;QAEpB,KAAK,CAAC,WAAW,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAExE,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAE7B,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,CAC5C,YAAY,EACZ,WAAW,CAAC,iBAAiB,EAC7B,IAAI,CAAC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AC,MAAM,EAAE,CAAC;YACZ,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,wBAAwB,GAAG,YAAY,CAAC,CAAC;YAC5D,OAAO;QACT,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;IAC/E,CAAC,CAAC;IAEF,oBAAoB,GAAG,CAAC,aAA4B,EAAE,EAAE;QACtD,gBAAgB;QAChB,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;QACjE,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YAC3B,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAClC,CAAC;IACH,CAAC,CAAC;CACH"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IOutAction, POutAction } from "../PAction";
|
|
2
|
-
import GameContext from "../GameContext";
|
|
3
|
-
import PComponent, { DBComponent } from "../PComponent";
|
|
4
|
-
import PNode from "../PNode";
|
|
5
|
-
interface DBSceneRoot extends DBComponent {
|
|
6
|
-
outevent_onSceneLoaded: IOutAction | null;
|
|
7
|
-
}
|
|
8
|
-
export { type DBSceneRoot };
|
|
9
|
-
export default abstract class PSceneRoot extends PComponent {
|
|
10
|
-
outevent_onSceneLoaded: POutAction | null;
|
|
11
|
-
constructor(dbComponent: DBSceneRoot, node: PNode, context: GameContext);
|
|
12
|
-
toDB(): DBSceneRoot;
|
|
13
|
-
render(): void;
|
|
14
|
-
unrender(): void;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=PSceneRoot.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PSceneRoot.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PSceneRoot.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,MAAM,UAAU,CAAC;AAE7B,UAAU,WAAY,SAAQ,WAAW;IACvC,sBAAsB,EAAE,UAAU,GAAG,IAAI,CAAC;CAC3C;AACD,OAAO,EAAE,KAAK,WAAW,EAAE,CAAC;AAE5B,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,UAAW,SAAQ,UAAU;IACzD,sBAAsB,EAAE,UAAU,GAAG,IAAI,CAAC;gBAE9B,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAYvE,IAAI,IAAI,WAAW;IAOnB,MAAM,IAAI,IAAI;IAId,QAAQ,IAAI,IAAI;CAGjB"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { DataType } from "../PEnums";
|
|
2
|
-
import { POutAction } from "../PAction";
|
|
3
|
-
import PComponent from "../PComponent";
|
|
4
|
-
export default class PSceneRoot extends PComponent {
|
|
5
|
-
outevent_onSceneLoaded;
|
|
6
|
-
constructor(dbComponent, node, context) {
|
|
7
|
-
super(dbComponent, "PSceneRoot", "Scene", node, context);
|
|
8
|
-
this.requireTransform = true;
|
|
9
|
-
this.sceneRoot = true;
|
|
10
|
-
this.outevent_onSceneLoaded = node.registerOutAction(dbComponent.outevent_onSceneLoaded, DataType.Scene);
|
|
11
|
-
}
|
|
12
|
-
toDB() {
|
|
13
|
-
return {
|
|
14
|
-
...super.toDB(),
|
|
15
|
-
outevent_onSceneLoaded: POutAction.toDB(this.outevent_onSceneLoaded),
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
render() {
|
|
19
|
-
}
|
|
20
|
-
unrender() {
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=PSceneRoot.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PSceneRoot.js","sourceRoot":"","sources":["../../src/pcomponents/PSceneRoot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAc,UAAU,EAAE,MAAM,YAAY,CAAC;AAEpD,OAAO,UAA2B,MAAM,eAAe,CAAC;AAQxD,MAAM,CAAC,OAAO,OAAgB,UAAW,SAAQ,UAAU;IACzD,sBAAsB,CAAoB;IAE1C,YAAY,WAAwB,EAAE,IAAW,EAAE,OAAoB;QACrE,KAAK,CAAC,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEzD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QAEtB,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC,iBAAiB,CAClD,WAAW,CAAC,sBAAsB,EAClC,QAAQ,CAAC,KAAK,CACf,CAAC;IACJ,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,sBAAsB,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC;SACrE,CAAC;IACJ,CAAC;IAED,MAAM;IAEN,CAAC;IAED,QAAQ;IAER,CAAC;CACF"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import PComponent, { DBComponent } from "../PComponent";
|
|
2
|
-
import { IOutAction, POutAction } from "../PAction";
|
|
3
|
-
import GameContext from "../GameContext";
|
|
4
|
-
import PNode from "../PNode";
|
|
5
|
-
import { IVector3 } from "../PVector3";
|
|
6
|
-
import { IColliderComponent } from "../PTypes";
|
|
7
|
-
interface DBSlider extends DBComponent {
|
|
8
|
-
editor_showColliders: boolean;
|
|
9
|
-
outevent_onHoverEnter: IOutAction | null;
|
|
10
|
-
outevent_onHoverExit: IOutAction | null;
|
|
11
|
-
outevent_onClick: IOutAction | null;
|
|
12
|
-
outevent_onChange: IOutAction | null;
|
|
13
|
-
}
|
|
14
|
-
export type { DBSlider };
|
|
15
|
-
export default abstract class PSlider extends PComponent implements IColliderComponent {
|
|
16
|
-
outevent_onHoverEnter: POutAction | null;
|
|
17
|
-
outevent_onHoverExit: POutAction | null;
|
|
18
|
-
outevent_onClick: POutAction | null;
|
|
19
|
-
outevent_onChange: POutAction | null;
|
|
20
|
-
editor_showColliders: boolean;
|
|
21
|
-
hidden: boolean;
|
|
22
|
-
_width: number;
|
|
23
|
-
constructor(dbComponent: DBSlider, node: PNode, context: GameContext);
|
|
24
|
-
toDB(): DBSlider;
|
|
25
|
-
abstract show(): void;
|
|
26
|
-
abstract hide(): void;
|
|
27
|
-
abstract addColliderObject(): void;
|
|
28
|
-
abstract removeColliderObject(): void;
|
|
29
|
-
abstract computeBounds(): void;
|
|
30
|
-
abstract native_onHoverEnter(point: IVector3): void;
|
|
31
|
-
native_onHoverExit: () => void;
|
|
32
|
-
native_onClick: () => void;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=PSlider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PSlider.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PSlider.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAEpD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,UAAU,QAAS,SAAQ,WAAW;IACpC,oBAAoB,EAAE,OAAO,CAAC;IAC9B,qBAAqB,EAAE,UAAU,GAAG,IAAI,CAAC;IACzC,oBAAoB,EAAE,UAAU,GAAG,IAAI,CAAC;IACxC,gBAAgB,EAAE,UAAU,GAAG,IAAI,CAAC;IACpC,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;CACtC;AAED,YAAY,EAAE,QAAQ,EAAE,CAAC;AAEzB,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,OAC5B,SAAQ,UACR,YAAW,kBAAkB;IAE7B,qBAAqB,EAAE,UAAU,GAAG,IAAI,CAAC;IACzC,oBAAoB,EAAE,UAAU,GAAG,IAAI,CAAC;IACxC,gBAAgB,EAAE,UAAU,GAAG,IAAI,CAAC;IAEpC,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;IACrC,oBAAoB,UAAS;IAE7B,MAAM,UAAS;IAEf,MAAM,SAAO;gBAED,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IA8BpE,IAAI,IAAI,QAAQ;IAehB,QAAQ,CAAC,IAAI,IAAI,IAAI;IACrB,QAAQ,CAAC,IAAI,IAAI,IAAI;IACrB,QAAQ,CAAC,iBAAiB,IAAI,IAAI;IAClC,QAAQ,CAAC,oBAAoB,IAAI,IAAI;IACrC,QAAQ,CAAC,aAAa,IAAI,IAAI;IAM9B,QAAQ,CAAC,mBAAmB,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAEnD,kBAAkB,aAEhB;IAEF,cAAc,aAEZ;CACH"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import PComponent from "../PComponent";
|
|
2
|
-
import { POutAction } from "../PAction";
|
|
3
|
-
import { DataType } from "../PEnums";
|
|
4
|
-
export default class PSlider extends PComponent {
|
|
5
|
-
outevent_onHoverEnter;
|
|
6
|
-
outevent_onHoverExit;
|
|
7
|
-
outevent_onClick;
|
|
8
|
-
outevent_onChange;
|
|
9
|
-
editor_showColliders = false;
|
|
10
|
-
hidden = false;
|
|
11
|
-
_width = 0.0;
|
|
12
|
-
constructor(dbComponent, node, context) {
|
|
13
|
-
super(dbComponent, "PSlider", "Slider", node, context);
|
|
14
|
-
this.requireTransform = true;
|
|
15
|
-
this.editor_showColliders = dbComponent.editor_showColliders;
|
|
16
|
-
this.outevent_onHoverEnter = node.registerOutAction(dbComponent.outevent_onHoverEnter, DataType.Node);
|
|
17
|
-
this.outevent_onHoverExit = node.registerOutAction(dbComponent.outevent_onHoverExit, DataType.Node);
|
|
18
|
-
this.outevent_onClick = node.registerOutAction(dbComponent.outevent_onClick, DataType.Node);
|
|
19
|
-
this.outevent_onChange = node.registerOutAction(dbComponent.outevent_onChange, DataType.Percent);
|
|
20
|
-
node.collider = this;
|
|
21
|
-
}
|
|
22
|
-
toDB() {
|
|
23
|
-
return {
|
|
24
|
-
...super.toDB(),
|
|
25
|
-
editor_showColliders: this.editor_showColliders,
|
|
26
|
-
outevent_onHoverEnter: POutAction.toDB(this.outevent_onHoverEnter),
|
|
27
|
-
outevent_onHoverExit: POutAction.toDB(this.outevent_onHoverExit),
|
|
28
|
-
outevent_onClick: POutAction.toDB(this.outevent_onClick),
|
|
29
|
-
outevent_onChange: POutAction.toDB(this.outevent_onChange),
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
native_onHoverExit = () => {
|
|
33
|
-
this.outevent_onHoverExit?.emit(this.node.id, this);
|
|
34
|
-
};
|
|
35
|
-
native_onClick = () => {
|
|
36
|
-
this.outevent_onClick?.emit(this.node.id, this);
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=PSlider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PSlider.js","sourceRoot":"","sources":["../../src/pcomponents/PSlider.ts"],"names":[],"mappings":"AAAA,OAAO,UAA2B,MAAM,eAAe,CAAC;AACxD,OAAO,EAAc,UAAU,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AA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C;YAChE,gBAAgB,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC;YACxD,iBAAiB,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC;SAC3D,CAAC;IACJ,CAAC;IAkBD,kBAAkB,GAAG,GAAG,EAAE;QACxB,IAAI,CAAC,oBAAoB,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC,CAAC;IAEF,cAAc,GAAG,GAAG,EAAE;QACpB,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC,CAAC;CACH"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import PComponent, { DBComponent } from "../PComponent";
|
|
2
|
-
import PFile from "../media/PFile";
|
|
3
|
-
import { IInAction, IOutAction, PInAction, POutAction } from "../PAction";
|
|
4
|
-
import GameContext from "../GameContext";
|
|
5
|
-
import PNode from "../PNode";
|
|
6
|
-
interface DBSound extends DBComponent {
|
|
7
|
-
file_sound: string | null;
|
|
8
|
-
inevent_playOn: IInAction | null;
|
|
9
|
-
inevent_stopOn: IInAction | null;
|
|
10
|
-
outevent_onEnd: IOutAction | null;
|
|
11
|
-
outevent_onStart: IOutAction | null;
|
|
12
|
-
positional: boolean;
|
|
13
|
-
loop: boolean;
|
|
14
|
-
volume: number;
|
|
15
|
-
distance: number;
|
|
16
|
-
}
|
|
17
|
-
export type { DBSound };
|
|
18
|
-
export default abstract class PSound extends PComponent {
|
|
19
|
-
file_sound: PFile | null;
|
|
20
|
-
inevent_playOn: PInAction | null;
|
|
21
|
-
inevent_stopOn: PInAction | null;
|
|
22
|
-
outevent_onEnd: POutAction | null;
|
|
23
|
-
outevent_onStart: POutAction | null;
|
|
24
|
-
positional: boolean;
|
|
25
|
-
loop: boolean;
|
|
26
|
-
volume: number;
|
|
27
|
-
distance: number;
|
|
28
|
-
constructor(dbComponent: DBSound, node: PNode, context: GameContext);
|
|
29
|
-
toDB(): DBSound;
|
|
30
|
-
dispose(): void;
|
|
31
|
-
abstract callback_onPlay(): void;
|
|
32
|
-
abstract callback_onStop(): void;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=PSound.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PSound.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PSound.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,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;AAE7B,UAAU,OAAQ,SAAQ,WAAW;IACnC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,cAAc,EAAE,SAAS,GAAG,IAAI,CAAC;IACjC,cAAc,EAAE,SAAS,GAAG,IAAI,CAAC;IACjC,cAAc,EAAE,UAAU,GAAG,IAAI,CAAC;IAClC,gBAAgB,EAAE,UAAU,GAAG,IAAI,CAAC;IACpC,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,YAAY,EAAE,OAAO,EAAE,CAAC;AAExB,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,MAAO,SAAQ,UAAU;IACrD,UAAU,EAAE,KAAK,GAAG,IAAI,CAAC;IAEzB,cAAc,EAAE,SAAS,GAAG,IAAI,CAAC;IACjC,cAAc,EAAE,SAAS,GAAG,IAAI,CAAC;IACjC,cAAc,EAAE,UAAU,GAAG,IAAI,CAAC;IAClC,gBAAgB,EAAE,UAAU,GAAG,IAAI,CAAC;IAEpC,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;gBAEL,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IA4BnE,IAAI,IAAI,OAAO;IAef,OAAO;IAQP,QAAQ,CAAC,eAAe,IAAI,IAAI;IAChC,QAAQ,CAAC,eAAe,IAAI,IAAI;CACjC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import PComponent from "../PComponent";
|
|
2
|
-
import { PInAction, POutAction } from "../PAction";
|
|
3
|
-
export default class PSound extends PComponent {
|
|
4
|
-
file_sound;
|
|
5
|
-
inevent_playOn;
|
|
6
|
-
inevent_stopOn;
|
|
7
|
-
outevent_onEnd;
|
|
8
|
-
outevent_onStart;
|
|
9
|
-
positional;
|
|
10
|
-
loop;
|
|
11
|
-
volume;
|
|
12
|
-
distance;
|
|
13
|
-
constructor(dbComponent, node, context) {
|
|
14
|
-
super(dbComponent, "PSound", "Sound", node, context);
|
|
15
|
-
this.requireTransform = true;
|
|
16
|
-
this.file_sound = this.context.requestFile(dbComponent.file_sound, node);
|
|
17
|
-
this.inevent_playOn = node.registerInAction("Play", dbComponent.inevent_playOn, () => this.callback_onPlay());
|
|
18
|
-
this.inevent_stopOn = node.registerInAction("Stop", dbComponent.inevent_stopOn, () => this.callback_onStop());
|
|
19
|
-
this.outevent_onEnd = node.registerOutAction(dbComponent.outevent_onEnd);
|
|
20
|
-
this.outevent_onStart = node.registerOutAction(dbComponent.outevent_onStart);
|
|
21
|
-
this.volume = dbComponent.volume || 1;
|
|
22
|
-
this.distance = dbComponent.distance || 10;
|
|
23
|
-
this.positional = dbComponent.positional || false;
|
|
24
|
-
this.loop = dbComponent.loop === true || false;
|
|
25
|
-
}
|
|
26
|
-
toDB() {
|
|
27
|
-
return {
|
|
28
|
-
...super.toDB(),
|
|
29
|
-
inevent_playOn: PInAction.toDB(this.inevent_playOn),
|
|
30
|
-
inevent_stopOn: PInAction.toDB(this.inevent_stopOn),
|
|
31
|
-
outevent_onEnd: POutAction.toDB(this.outevent_onEnd),
|
|
32
|
-
outevent_onStart: POutAction.toDB(this.outevent_onStart),
|
|
33
|
-
positional: this.positional,
|
|
34
|
-
file_sound: this.file_sound?._id || null,
|
|
35
|
-
volume: this.volume,
|
|
36
|
-
loop: this.loop,
|
|
37
|
-
distance: this.distance,
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
dispose() {
|
|
41
|
-
if (this.file_sound)
|
|
42
|
-
this.context.releaseFile(this.file_sound);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=PSound.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PSound.js","sourceRoot":"","sources":["../../src/pcomponents/PSound.ts"],"names":[],"mappings":"AAAA,OAAO,UAA2B,MAAM,eAAe,CAAC;AAExD,OAAO,EAAyB,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAkB1E,MAAM,CAAC,OAAO,OAAgB,MAAO,SAAQ,UAAU;IACrD,UAAU,CAAe;IAEzB,cAAc,CAAmB;IACjC,cAAc,CAAmB;IACjC,cAAc,CAAoB;IAClC,gBAAgB,CAAoB;IAEpC,UAAU,CAAU;IACpB,IAAI,CAAU;IACd,MAAM,CAAS;IACf,QAAQ,CAAS;IAEjB,YAAY,WAAoB,EAAE,IAAW,EAAE,OAAoB;QACjE,KAAK,CAAC,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAErD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAE7B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QAEzE,IAAI,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AAI,CAAC,IAAI;YACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACxB,CAAC;IACJ,CAAC;IAED,OAAO;QACL,IAAI,IAAI,CAAC,UAAU;YAAE,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACjE,CAAC;CAQF"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import GameContext from "../GameContext";
|
|
2
|
-
import PComponent, { DBComponent } from "../PComponent";
|
|
3
|
-
import PNode from "../PNode";
|
|
4
|
-
interface DBSphereGeometry extends DBComponent {
|
|
5
|
-
radius: number;
|
|
6
|
-
segments: number;
|
|
7
|
-
castShadow: boolean;
|
|
8
|
-
receiveShadow: boolean;
|
|
9
|
-
}
|
|
10
|
-
export type { DBSphereGeometry };
|
|
11
|
-
export default abstract class PSphereGeometry extends PComponent {
|
|
12
|
-
radius: number;
|
|
13
|
-
segments: number;
|
|
14
|
-
castShadow: boolean;
|
|
15
|
-
receiveShadow: boolean;
|
|
16
|
-
constructor(dbComponent: DBSphereGeometry, node: PNode, context: GameContext);
|
|
17
|
-
toDB(): DBSphereGeometry;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=PSphereGeometry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PSphereGeometry.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PSphereGeometry.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAExD,OAAO,KAAK,MAAM,UAAU,CAAC;AAE7B,UAAU,gBAAiB,SAAQ,WAAW;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAEjC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,eAAgB,SAAQ,UAAU;IAE9D,MAAM,EAAE,MAAM,CAAK;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;gBAGrB,WAAW,EAAE,gBAAgB,EAC7B,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,WAAW;IAYtB,IAAI,IAAI,gBAAgB;CAUzB"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import PComponent from "../PComponent";
|
|
2
|
-
export default class PSphereGeometry extends PComponent {
|
|
3
|
-
radius = 1;
|
|
4
|
-
segments;
|
|
5
|
-
castShadow;
|
|
6
|
-
receiveShadow;
|
|
7
|
-
constructor(dbComponent, node, context) {
|
|
8
|
-
super(dbComponent, "PSphereGeometry", "Sphere Geometry", node, context);
|
|
9
|
-
this.requireTransform = true;
|
|
10
|
-
this.radius = dbComponent.radius;
|
|
11
|
-
this.segments = (dbComponent.segments || 0);
|
|
12
|
-
this.castShadow = dbComponent.castShadow;
|
|
13
|
-
this.receiveShadow = dbComponent.receiveShadow || false;
|
|
14
|
-
}
|
|
15
|
-
toDB() {
|
|
16
|
-
return {
|
|
17
|
-
...super.toDB(),
|
|
18
|
-
radius: this.radius,
|
|
19
|
-
segments: this.segments,
|
|
20
|
-
castShadow: this.castShadow,
|
|
21
|
-
receiveShadow: this.receiveShadow,
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=PSphereGeometry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PSphereGeometry.js","sourceRoot":"","sources":["../../src/pcomponents/PSphereGeometry.ts"],"names":[],"mappings":"AACA,OAAO,UAA2B,MAAM,eAAe,CAAC;AAaxD,MAAM,CAAC,OAAO,OAAgB,eAAgB,SAAQ,UAAU;IAE9D,MAAM,GAAW,CAAC,CAAC;IACnB,QAAQ,CAAS;IACjB,UAAU,CAAU;IACpB,aAAa,CAAU;IAEvB,YACE,WAA6B,EAC7B,IAAW,EACX,OAAoB;QAEpB,KAAK,CAAC,WAAW,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAExE,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAE7B,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,CAAC,WAAW,CAAC,QAAQ,IAAI,CAAC,CAAY,CAAC;QACvD,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC;QACzC,IAAI,CAAC,aAAa,GAAG,WAAW,CAAC,aAAa,IAAI,KAAK,CAAC;IAC1D,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,aAAa,EAAE,IAAI,CAAC,aAAa;SAClC,CAAC;IACJ,CAAC;CAEF"}
|
|
@@ -1,19 +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 DBSprite extends DBComponent {
|
|
6
|
-
file_image: string | null;
|
|
7
|
-
opacity: number;
|
|
8
|
-
color: string;
|
|
9
|
-
}
|
|
10
|
-
export type { DBSprite };
|
|
11
|
-
export default abstract class PSprite extends PComponent {
|
|
12
|
-
file_image: PFile | null;
|
|
13
|
-
opacity: number;
|
|
14
|
-
color: string;
|
|
15
|
-
constructor(dbComponent: DBSprite, node: PNode, context: GameContext);
|
|
16
|
-
toDB(): DBSprite;
|
|
17
|
-
dispose(): void;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=PSprite.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PSprite.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PSprite.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,QAAS,SAAQ,WAAW;IACpC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,YAAY,EAAE,QAAQ,EAAE,CAAC;AAEzB,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,OAAQ,SAAQ,UAAU;IACtD,UAAU,EAAE,KAAK,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;gBAEF,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAUpE,IAAI,IAAI,QAAQ;IAShB,OAAO;CAIR"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import PComponent from "../PComponent";
|
|
2
|
-
export default class PSprite extends PComponent {
|
|
3
|
-
file_image;
|
|
4
|
-
opacity;
|
|
5
|
-
color;
|
|
6
|
-
constructor(dbComponent, node, context) {
|
|
7
|
-
super(dbComponent, "PSprite", "Sprite", node, context);
|
|
8
|
-
this.requireTransform = true;
|
|
9
|
-
this.file_image = this.context.requestFile(dbComponent.file_image);
|
|
10
|
-
this.opacity = dbComponent.opacity;
|
|
11
|
-
this.color = dbComponent.color;
|
|
12
|
-
}
|
|
13
|
-
toDB() {
|
|
14
|
-
return {
|
|
15
|
-
...super.toDB(),
|
|
16
|
-
file_image: this.file_image?._id || null,
|
|
17
|
-
opacity: this.opacity,
|
|
18
|
-
color: this.color,
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
dispose() {
|
|
22
|
-
// Release files
|
|
23
|
-
if (this.file_image)
|
|
24
|
-
this.context.releaseFile(this.file_image);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=PSprite.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PSprite.js","sourceRoot":"","sources":["../../src/pcomponents/PSprite.ts"],"names":[],"mappings":"AAEA,OAAO,UAA2B,MAAM,eAAe,CAAC;AAWxD,MAAM,CAAC,OAAO,OAAgB,OAAQ,SAAQ,UAAU;IACtD,UAAU,CAAe;IACzB,OAAO,CAAS;IAChB,KAAK,CAAS;IAEd,YAAY,WAAqB,EAAE,IAAW,EAAE,OAAoB;QAClE,KAAK,CAAC,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEvD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAE7B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QACnE,IAAI,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;QACnC,IAAI,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;IACjC,CAAC;IAED,IAAI;QACF,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,EAAE;YACf,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,GAAG,IAAI,IAAI;YACxC,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC;IACJ,CAAC;IAED,OAAO;QACL,gBAAgB;QAChB,IAAI,IAAI,CAAC,UAAU;YAAE,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACjE,CAAC;CACF"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import PVector2, { IVector2 } from "../PVector2";
|
|
2
|
-
import { IInAction, IOutAction, PInAction, POutAction } from "../PAction";
|
|
3
|
-
import PComponent, { DBComponent } from "../PComponent";
|
|
4
|
-
import GameContext from "../GameContext";
|
|
5
|
-
import PNode from "../PNode";
|
|
6
|
-
interface DBSpriteSheet extends DBComponent {
|
|
7
|
-
inevent_setIndex: IInAction | null;
|
|
8
|
-
outevent_onChange: IOutAction | null;
|
|
9
|
-
size: IVector2;
|
|
10
|
-
index: number;
|
|
11
|
-
}
|
|
12
|
-
export type { DBSpriteSheet };
|
|
13
|
-
export default abstract class PSpriteSheet extends PComponent {
|
|
14
|
-
inevent_setIndex: PInAction | null;
|
|
15
|
-
outevent_onChange: POutAction | null;
|
|
16
|
-
size: PVector2;
|
|
17
|
-
index: number;
|
|
18
|
-
protected _currentValue: number;
|
|
19
|
-
constructor(dbComponent: DBSpriteSheet, node: PNode, context: GameContext);
|
|
20
|
-
toDB(): DBSpriteSheet;
|
|
21
|
-
protected abstract callback_setIndex(payload: string | null): void;
|
|
22
|
-
protected abstract setSize(value: PVector2): void;
|
|
23
|
-
protected abstract setIndex(value: number): void;
|
|
24
|
-
editor_onVector2Change(field: string, value: PVector2): void;
|
|
25
|
-
editor_onNumberChange(field: string, value: number): void;
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=PSpriteSheet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PSpriteSheet.d.ts","sourceRoot":"","sources":["../../src/pcomponents/PSpriteSheet.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,EAAE,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,UAAU,CAAC;AAG7B,UAAU,aAAc,SAAQ,WAAW;IACzC,gBAAgB,EAAE,SAAS,GAAG,IAAI,CAAC;IACnC,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;IACrC,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AACD,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,YAAa,SAAQ,UAAU;IAC3D,gBAAgB,EAAE,SAAS,GAAG,IAAI,CAAQ;IAC1C,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAQ;IAC5C,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IAEd,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC;gBAEpB,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAsBzE,IAAI,IAAI,aAAa;IAUrB,SAAS,CAAC,QAAQ,CAAC,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAMlE,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IACjD,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAEhD,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GAAG,IAAI;IAO5D,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAM1D"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import PVector2 from "../PVector2";
|
|
2
|
-
import { PInAction, POutAction } from "../PAction";
|
|
3
|
-
import PComponent from "../PComponent";
|
|
4
|
-
import { DataType } from "../PEnums";
|
|
5
|
-
export default class PSpriteSheet extends PComponent {
|
|
6
|
-
inevent_setIndex = null;
|
|
7
|
-
outevent_onChange = null;
|
|
8
|
-
size;
|
|
9
|
-
index;
|
|
10
|
-
_currentValue;
|
|
11
|
-
constructor(dbComponent, node, context) {
|
|
12
|
-
super(dbComponent, "PSpriteSheet", "Sprite Sheet", node, context);
|
|
13
|
-
this.requireTransform = true;
|
|
14
|
-
this.inevent_setIndex = node.registerInAction("Set Index", dbComponent.inevent_setIndex, (payload) => this.callback_setIndex(payload), DataType.Integer);
|
|
15
|
-
this.outevent_onChange = node.registerOutAction(dbComponent.outevent_onChange, DataType.Integer);
|
|
16
|
-
this.size = new PVector2(dbComponent.size);
|
|
17
|
-
this.index = dbComponent.index;
|
|
18
|
-
this._currentValue = this.index;
|
|
19
|
-
}
|
|
20
|
-
toDB() {
|
|
21
|
-
return {
|
|
22
|
-
...super.toDB(),
|
|
23
|
-
inevent_setIndex: PInAction.toDB(this.inevent_setIndex),
|
|
24
|
-
outevent_onChange: POutAction.toDB(this.outevent_onChange),
|
|
25
|
-
size: this.size,
|
|
26
|
-
index: this.index,
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
editor_onVector2Change(field, value) {
|
|
30
|
-
if (field === "size") {
|
|
31
|
-
this.size = value;
|
|
32
|
-
this.setSize(value);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
editor_onNumberChange(field, value) {
|
|
36
|
-
if (field === "index") {
|
|
37
|
-
this.index = value;
|
|
38
|
-
this.setIndex(value);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=PSpriteSheet.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PSpriteSheet.js","sourceRoot":"","sources":["../../src/pcomponents/PSpriteSheet.ts"],"names":[],"mappings":"AAAA,OAAO,QAAsB,MAAM,aAAa,CAAC;AACjD,OAAO,EAAyB,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,UAA2B,MAAM,eAA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;IAWD,sBAAsB,CAAC,KAAa,EAAE,KAAe;QACnD,IAAI,KAAK,KAAK,MAAM,EAAE,CAAC;YACrB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;YAClB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC;IACH,CAAC;IAED,qBAAqB,CAAC,KAAa,EAAE,KAAa;QAChD,IAAI,KAAK,KAAK,OAAO,EAAE,CAAC;YACtB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;YACnB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC;IACH,CAAC;CACF"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import PComponent, { DBComponent } from "../PComponent";
|
|
2
|
-
import { IInAction, IOutAction, PInAction, POutAction } from "../PAction";
|
|
3
|
-
import PFile from "../media/PFile";
|
|
4
|
-
import GameContext from "../GameContext";
|
|
5
|
-
import PNode from "../PNode";
|
|
6
|
-
interface DBText extends DBComponent {
|
|
7
|
-
file_font: string | null;
|
|
8
|
-
text: string;
|
|
9
|
-
color: string;
|
|
10
|
-
outlineColor: string;
|
|
11
|
-
outlineWidth: number;
|
|
12
|
-
fontSize: number;
|
|
13
|
-
textAlign: string;
|
|
14
|
-
verticalAlign: string;
|
|
15
|
-
inevent_setText: IInAction | null;
|
|
16
|
-
outevent_onSetText: IOutAction | null;
|
|
17
|
-
}
|
|
18
|
-
export type { DBText };
|
|
19
|
-
export default abstract class PText extends PComponent {
|
|
20
|
-
text: string;
|
|
21
|
-
color: string;
|
|
22
|
-
outlineColor: string;
|
|
23
|
-
outlineWidth: number;
|
|
24
|
-
fontSize: number;
|
|
25
|
-
textAlign: string;
|
|
26
|
-
verticalAlign: string;
|
|
27
|
-
file_font: PFile | null;
|
|
28
|
-
inevent_setText: PInAction | null;
|
|
29
|
-
outevent_onSetText: POutAction | null;
|
|
30
|
-
constructor(dbComponent: DBText, node: PNode, context: GameContext);
|
|
31
|
-
toDB(): DBText;
|
|
32
|
-
dispose(): void;
|
|
33
|
-
abstract callback_setText(payloadValue: string | null): void;
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=PText.d.ts.map
|