@carbonenginejs/runtime-trinity 0.6.0 → 0.8.0
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/README.md +35 -243
- package/dist/controllers/CjsControllerExpressionProgram.js +157 -0
- package/dist/controllers/CjsControllerExpressionProgram.js.map +1 -1
- package/dist/controllers/ITr2ControllerAction.js +57 -0
- package/dist/controllers/ITr2ControllerAction.js.map +1 -1
- package/dist/controllers/Tr2ActionAnimateCurveSet.js +10 -0
- package/dist/controllers/Tr2ActionAnimateCurveSet.js.map +1 -1
- package/dist/controllers/Tr2ActionAnimateValue.js +26 -0
- package/dist/controllers/Tr2ActionAnimateValue.js.map +1 -1
- package/dist/controllers/Tr2ActionBindRTPC.js +11 -0
- package/dist/controllers/Tr2ActionBindRTPC.js.map +1 -1
- package/dist/controllers/Tr2ActionCallback.js +5 -0
- package/dist/controllers/Tr2ActionCallback.js.map +1 -1
- package/dist/controllers/Tr2ActionChildEffect.js +63 -0
- package/dist/controllers/Tr2ActionChildEffect.js.map +1 -1
- package/dist/controllers/Tr2ActionOverlay.js +68 -0
- package/dist/controllers/Tr2ActionOverlay.js.map +1 -1
- package/dist/controllers/Tr2ActionPlayCurveSet.js +16 -0
- package/dist/controllers/Tr2ActionPlayCurveSet.js.map +1 -1
- package/dist/controllers/Tr2ActionPlayMeshAnimation.js +29 -0
- package/dist/controllers/Tr2ActionPlayMeshAnimation.js.map +1 -1
- package/dist/controllers/Tr2ActionPlaySound.js +11 -0
- package/dist/controllers/Tr2ActionPlaySound.js.map +1 -1
- package/dist/controllers/Tr2ActionPython.js +11 -0
- package/dist/controllers/Tr2ActionPython.js.map +1 -1
- package/dist/controllers/Tr2ActionResetClipSphereCenter.js +17 -0
- package/dist/controllers/Tr2ActionResetClipSphereCenter.js.map +1 -1
- package/dist/controllers/Tr2ActionSetAttenuationScaling.js +5 -0
- package/dist/controllers/Tr2ActionSetAttenuationScaling.js.map +1 -1
- package/dist/controllers/Tr2ActionSetAudioEmitterPrefix.js +5 -0
- package/dist/controllers/Tr2ActionSetAudioEmitterPrefix.js.map +1 -1
- package/dist/controllers/Tr2ActionSetAudioSwitch.js +5 -0
- package/dist/controllers/Tr2ActionSetAudioSwitch.js.map +1 -1
- package/dist/controllers/Tr2ActionSetExternalControllerVariable.js +23 -0
- package/dist/controllers/Tr2ActionSetExternalControllerVariable.js.map +1 -1
- package/dist/controllers/Tr2ActionSetShaderOption.js +5 -0
- package/dist/controllers/Tr2ActionSetShaderOption.js.map +1 -1
- package/dist/controllers/Tr2ActionSetValue.js +35 -0
- package/dist/controllers/Tr2ActionSetValue.js.map +1 -1
- package/dist/controllers/Tr2ActionSpawnParticles.js +10 -0
- package/dist/controllers/Tr2ActionSpawnParticles.js.map +1 -1
- package/dist/controllers/Tr2BindingPoint.js +67 -0
- package/dist/controllers/Tr2BindingPoint.js.map +1 -1
- package/dist/controllers/Tr2Controller.js +37 -0
- package/dist/controllers/Tr2Controller.js.map +1 -1
- package/dist/controllers/Tr2ControllerEventHandler.js +10 -0
- package/dist/controllers/Tr2ControllerEventHandler.js.map +1 -1
- package/dist/controllers/Tr2ControllerExpression.js +17 -0
- package/dist/controllers/Tr2ControllerExpression.js.map +1 -1
- package/dist/controllers/Tr2ControllerFloatVariable.js +6 -0
- package/dist/controllers/Tr2ControllerFloatVariable.js.map +1 -1
- package/dist/controllers/Tr2ControllerReference.js +11 -0
- package/dist/controllers/Tr2ControllerReference.js.map +1 -1
- package/dist/controllers/Tr2StateMachine.js +17 -0
- package/dist/controllers/Tr2StateMachine.js.map +1 -1
- package/dist/controllers/Tr2StateMachineState.js +47 -0
- package/dist/controllers/Tr2StateMachineState.js.map +1 -1
- package/dist/controllers/Tr2StateMachineTransition.js +29 -0
- package/dist/controllers/Tr2StateMachineTransition.js.map +1 -1
- package/dist/controllers/Tr2SyncToAnimation.js +5 -0
- package/dist/controllers/Tr2SyncToAnimation.js.map +1 -1
- package/dist/controllers/Tr2TimelineController.js +61 -0
- package/dist/controllers/Tr2TimelineController.js.map +1 -1
- package/dist/controllers/contracts.js +24 -1
- package/dist/controllers/contracts.js.map +1 -1
- package/dist/controllers/index.js +1 -1
- package/dist/curves/CjsGrannyCurves.js +150 -0
- package/dist/curves/CjsGrannyCurves.js.map +1 -1
- package/dist/curves/Tr2BoneMatrixCurve.js +23 -0
- package/dist/curves/Tr2BoneMatrixCurve.js.map +1 -1
- package/dist/curves/Tr2CameraFollowCurveKey.js +6 -0
- package/dist/curves/Tr2CameraFollowCurveKey.js.map +1 -1
- package/dist/curves/Tr2CurveColor.js +6 -0
- package/dist/curves/Tr2CurveColor.js.map +1 -1
- package/dist/curves/Tr2CurveColorMixer.js +6 -0
- package/dist/curves/Tr2CurveColorMixer.js.map +1 -1
- package/dist/curves/Tr2CurveCombiner.js +5 -0
- package/dist/curves/Tr2CurveCombiner.js.map +1 -1
- package/dist/curves/Tr2CurveConstant.js +16 -0
- package/dist/curves/Tr2CurveConstant.js.map +1 -1
- package/dist/curves/Tr2CurveEulerRotation.js +5 -0
- package/dist/curves/Tr2CurveEulerRotation.js.map +1 -1
- package/dist/curves/Tr2CurveEulerRotationExpression.js +66 -0
- package/dist/curves/Tr2CurveEulerRotationExpression.js.map +1 -1
- package/dist/curves/Tr2CurveQuaternion.js +5 -0
- package/dist/curves/Tr2CurveQuaternion.js.map +1 -1
- package/dist/curves/Tr2CurveQuaternionKey.js +5 -0
- package/dist/curves/Tr2CurveQuaternionKey.js.map +1 -1
- package/dist/curves/Tr2CurveRandomAxisRotation.js +28 -0
- package/dist/curves/Tr2CurveRandomAxisRotation.js.map +1 -1
- package/dist/curves/Tr2CurveScalar.js +35 -0
- package/dist/curves/Tr2CurveScalar.js.map +1 -1
- package/dist/curves/Tr2CurveScalarExpression.js +11 -0
- package/dist/curves/Tr2CurveScalarExpression.js.map +1 -1
- package/dist/curves/Tr2CurveScalarKey.js +6 -0
- package/dist/curves/Tr2CurveScalarKey.js.map +1 -1
- package/dist/curves/Tr2CurveSetRange.js +5 -0
- package/dist/curves/Tr2CurveSetRange.js.map +1 -1
- package/dist/curves/Tr2CurveVector2.js +5 -0
- package/dist/curves/Tr2CurveVector2.js.map +1 -1
- package/dist/curves/Tr2CurveVector3.js +5 -0
- package/dist/curves/Tr2CurveVector3.js.map +1 -1
- package/dist/curves/Tr2CurveVector3Expression.js +71 -0
- package/dist/curves/Tr2CurveVector3Expression.js.map +1 -1
- package/dist/curves/Tr2CurveVector3Lerp.js +6 -0
- package/dist/curves/Tr2CurveVector3Lerp.js.map +1 -1
- package/dist/curves/Tr2DistanceTracker.js +6 -0
- package/dist/curves/Tr2DistanceTracker.js.map +1 -1
- package/dist/curves/Tr2FollowCurve.js +6 -0
- package/dist/curves/Tr2FollowCurve.js.map +1 -1
- package/dist/curves/Tr2GrannyEventTrack.js +5 -0
- package/dist/curves/Tr2GrannyEventTrack.js.map +1 -1
- package/dist/curves/Tr2GrannyTrack.js +6 -0
- package/dist/curves/Tr2GrannyTrack.js.map +1 -1
- package/dist/curves/Tr2GrannyTransformTrack.js +6 -0
- package/dist/curves/Tr2GrannyTransformTrack.js.map +1 -1
- package/dist/curves/Tr2GrannyVectorTrack.js +5 -0
- package/dist/curves/Tr2GrannyVectorTrack.js.map +1 -1
- package/dist/curves/Tr2MatrixKey.js +5 -0
- package/dist/curves/Tr2MatrixKey.js.map +1 -1
- package/dist/curves/Tr2ObjectFollowCurveKey.js +6 -0
- package/dist/curves/Tr2ObjectFollowCurveKey.js.map +1 -1
- package/dist/curves/Tr2QuaternionLerpCurve.js +6 -0
- package/dist/curves/Tr2QuaternionLerpCurve.js.map +1 -1
- package/dist/curves/Tr2RotationAdapter.js +6 -0
- package/dist/curves/Tr2RotationAdapter.js.map +1 -1
- package/dist/curves/Tr2ScalarExprKey.js +18 -0
- package/dist/curves/Tr2ScalarExprKey.js.map +1 -1
- package/dist/curves/Tr2ScalarExprKeyCurve.js +23 -0
- package/dist/curves/Tr2ScalarExprKeyCurve.js.map +1 -1
- package/dist/curves/Tr2ScalarFader.js +11 -0
- package/dist/curves/Tr2ScalarFader.js.map +1 -1
- package/dist/curves/Tr2TranslationAdapter.js +6 -0
- package/dist/curves/Tr2TranslationAdapter.js.map +1 -1
- package/dist/curves/TriColorSequencer.js +6 -0
- package/dist/curves/TriColorSequencer.js.map +1 -1
- package/dist/curves/TriCurveSet.js +23 -0
- package/dist/curves/TriCurveSet.js.map +1 -1
- package/dist/curves/TriEventCurve.js +23 -0
- package/dist/curves/TriEventCurve.js.map +1 -1
- package/dist/curves/TriEventKey.js +5 -0
- package/dist/curves/TriEventKey.js.map +1 -1
- package/dist/curves/TriPerlinCurve.js +30 -0
- package/dist/curves/TriPerlinCurve.js.map +1 -1
- package/dist/curves/TriVectorSequencer.js +6 -0
- package/dist/curves/TriVectorSequencer.js.map +1 -1
- package/dist/eve/AudioGameObject.js +89 -1
- package/dist/eve/AudioGameObject.js.map +1 -1
- package/dist/eve/BackAndForthData.js +7 -0
- package/dist/eve/BackAndForthData.js.map +1 -1
- package/dist/eve/CjsDistributionRandom.js +6 -0
- package/dist/eve/CjsDistributionRandom.js.map +1 -1
- package/dist/eve/CjsEveThrottleableState.js +11 -0
- package/dist/eve/CjsEveThrottleableState.js.map +1 -1
- package/dist/eve/EveChildUpdateParams.js +7 -0
- package/dist/eve/EveChildUpdateParams.js.map +1 -1
- package/dist/eve/EveComponentTypes.js.map +1 -1
- package/dist/eve/EveCustomMask.js +58 -27
- package/dist/eve/EveCustomMask.js.map +1 -1
- package/dist/eve/EveDistanceField.js +84 -0
- package/dist/eve/EveDistanceField.js.map +1 -1
- package/dist/eve/EveEntity.js +138 -0
- package/dist/eve/EveEntity.js.map +1 -0
- package/dist/eve/EveImpactOverlay.js +61 -0
- package/dist/eve/EveImpactOverlay.js.map +1 -1
- package/dist/eve/EveLODHelper.js +17 -13
- package/dist/eve/EveLODHelper.js.map +1 -1
- package/dist/eve/EveLineData.js +2 -0
- package/dist/eve/EveLineData.js.map +1 -1
- package/dist/eve/EveThrottleable.js +11 -0
- package/dist/eve/EveThrottleable.js.map +1 -1
- package/dist/eve/FollowASplineData.js +7 -0
- package/dist/eve/FollowASplineData.js.map +1 -1
- package/dist/eve/FormationData.js +6 -0
- package/dist/eve/FormationData.js.map +1 -1
- package/dist/eve/InertiaData.js +7 -0
- package/dist/eve/InertiaData.js.map +1 -1
- package/dist/eve/PlacementDataWithIdentifier.js +7 -0
- package/dist/eve/PlacementDataWithIdentifier.js.map +1 -1
- package/dist/eve/PlayFXData.js +7 -0
- package/dist/eve/PlayFXData.js.map +1 -1
- package/dist/eve/SeekTargetData.js +7 -0
- package/dist/eve/SeekTargetData.js.map +1 -1
- package/dist/eve/{EveSpaceObjectAttachmentUtils.js → attachment/EveSpaceObjectAttachmentUtils.js} +11 -11
- package/dist/eve/attachment/EveSpaceObjectAttachmentUtils.js.map +1 -0
- package/dist/eve/attachment/banner/EveBannerItem.js +70 -0
- package/dist/eve/attachment/banner/EveBannerItem.js.map +1 -0
- package/dist/eve/{EveBannerLight.js → attachment/banner/EveBannerLight.js} +13 -2
- package/dist/eve/attachment/banner/EveBannerLight.js.map +1 -0
- package/dist/eve/attachment/banner/EveBannerSet.js +537 -0
- package/dist/eve/attachment/banner/EveBannerSet.js.map +1 -0
- package/dist/eve/{EveBoosterSet2.js → attachment/booster/EveBoosterSet2.js} +204 -35
- package/dist/eve/attachment/booster/EveBoosterSet2.js.map +1 -0
- package/dist/eve/{EveBoosterSet2Renderable.js → attachment/booster/EveBoosterSet2Renderable.js} +205 -12
- package/dist/eve/attachment/booster/EveBoosterSet2Renderable.js.map +1 -0
- package/dist/eve/{EveTrailsSet.js → attachment/booster/EveTrailsSet.js} +49 -1
- package/dist/eve/attachment/booster/EveTrailsSet.js.map +1 -0
- package/dist/eve/attachment/decal/EveSpaceObjectDecal.js +512 -0
- package/dist/eve/attachment/decal/EveSpaceObjectDecal.js.map +1 -0
- package/dist/eve/{EveHazeSet.js → attachment/haze/EveHazeSet.js} +65 -6
- package/dist/eve/attachment/haze/EveHazeSet.js.map +1 -0
- package/dist/eve/attachment/haze/EveHazeSetItem.js +64 -0
- package/dist/eve/attachment/haze/EveHazeSetItem.js.map +1 -0
- package/dist/eve/{EveHazeSetLight.js → attachment/haze/EveHazeSetLight.js} +13 -2
- package/dist/eve/attachment/haze/EveHazeSetLight.js.map +1 -0
- package/dist/eve/attachment/itemSetBounds.js +131 -0
- package/dist/eve/attachment/itemSetBounds.js.map +1 -0
- package/dist/eve/{EvePlaneLight.js → attachment/plane/EvePlaneLight.js} +14 -2
- package/dist/eve/attachment/plane/EvePlaneLight.js.map +1 -0
- package/dist/eve/{EvePlaneSet.js → attachment/plane/EvePlaneSet.js} +119 -7
- package/dist/eve/attachment/plane/EvePlaneSet.js.map +1 -0
- package/dist/eve/attachment/plane/EvePlaneSetItem.js +72 -0
- package/dist/eve/attachment/plane/EvePlaneSetItem.js.map +1 -0
- package/dist/eve/{EveSpotlightLight.js → attachment/spotlight/EveSpotlightLight.js} +13 -2
- package/dist/eve/attachment/spotlight/EveSpotlightLight.js.map +1 -0
- package/dist/eve/{EveSpotlightSet.js → attachment/spotlight/EveSpotlightSet.js} +86 -6
- package/dist/eve/attachment/spotlight/EveSpotlightSet.js.map +1 -0
- package/dist/eve/attachment/spotlight/EveSpotlightSetItem.js +61 -0
- package/dist/eve/attachment/spotlight/EveSpotlightSetItem.js.map +1 -0
- package/dist/eve/{EveSpriteLight.js → attachment/sprite/EveSpriteLight.js} +14 -2
- package/dist/eve/attachment/sprite/EveSpriteLight.js.map +1 -0
- package/dist/eve/{EveSpriteLineSet.js → attachment/sprite/EveSpriteLineSet.js} +69 -7
- package/dist/eve/attachment/sprite/EveSpriteLineSet.js.map +1 -0
- package/dist/eve/{EveSpriteLineSetItem.js → attachment/sprite/EveSpriteLineSetItem.js} +29 -4
- package/dist/eve/attachment/sprite/EveSpriteLineSetItem.js.map +1 -0
- package/dist/eve/{EveSpriteSet.js → attachment/sprite/EveSpriteSet.js} +87 -8
- package/dist/eve/attachment/sprite/EveSpriteSet.js.map +1 -0
- package/dist/{generated/eve/attachment/sprites → eve/attachment/sprite}/EveSpriteSetItem.js +23 -26
- package/dist/eve/attachment/sprite/EveSpriteSetItem.js.map +1 -0
- package/dist/eve/attachment/turrets/EveTurretFiringFX.js +184 -2
- package/dist/eve/attachment/turrets/EveTurretFiringFX.js.map +1 -1
- package/dist/eve/attachment/turrets/EveTurretSet.js +236 -7
- package/dist/eve/attachment/turrets/EveTurretSet.js.map +1 -1
- package/dist/eve/attachment/turrets/EveTurretTarget.js +112 -0
- package/dist/eve/attachment/turrets/EveTurretTarget.js.map +1 -1
- package/dist/eve/camera/EveCamera.js +644 -0
- package/dist/eve/camera/EveCamera.js.map +1 -0
- package/dist/eve/child/EveChildAudio.js +63 -0
- package/dist/eve/child/EveChildAudio.js.map +1 -1
- package/dist/eve/child/EveChildBehaviorSystem.js +412 -0
- package/dist/eve/child/EveChildBehaviorSystem.js.map +1 -0
- package/dist/{generated/eve → eve}/child/EveChildBulletStorm.js +41 -3
- package/dist/eve/child/EveChildBulletStorm.js.map +1 -0
- package/dist/eve/child/EveChildContainer.js +175 -16
- package/dist/eve/child/EveChildContainer.js.map +1 -1
- package/dist/eve/child/EveChildEffectPropagator.js +1 -1
- package/dist/eve/child/EveChildEffectPropagator.js.map +1 -1
- package/dist/eve/child/EveChildFogVolume.js +72 -0
- package/dist/eve/child/EveChildFogVolume.js.map +1 -1
- package/dist/eve/child/EveChildInheritProperties.js +17 -0
- package/dist/eve/child/EveChildInheritProperties.js.map +1 -1
- package/dist/eve/child/EveChildInstancedMeshes.js +211 -1
- package/dist/eve/child/EveChildInstancedMeshes.js.map +1 -1
- package/dist/eve/child/EveChildLightingOverride.js +74 -0
- package/dist/eve/child/EveChildLightingOverride.js.map +1 -1
- package/dist/{generated/eve → eve}/child/EveChildLink.js +17 -16
- package/dist/eve/child/EveChildLink.js.map +1 -0
- package/dist/eve/child/EveChildMesh.js +351 -105
- package/dist/eve/child/EveChildMesh.js.map +1 -1
- package/dist/eve/child/EveChildSpherePin.js +108 -0
- package/dist/eve/child/EveChildSpherePin.js.map +1 -0
- package/dist/eve/child/EveChildTransform.js +44 -1
- package/dist/eve/child/EveChildTransform.js.map +1 -1
- package/dist/eve/child/IEveSpaceObjectChild.js +5 -0
- package/dist/eve/child/IEveSpaceObjectChild.js.map +1 -1
- package/dist/eve/child/behaviors/CollisionAvoidance.js +112 -0
- package/dist/eve/child/behaviors/CollisionAvoidance.js.map +1 -0
- package/dist/eve/child/behaviors/InclusionVolume.js +131 -0
- package/dist/eve/child/behaviors/InclusionVolume.js.map +1 -0
- package/dist/eve/child/behaviors/Wander.js +99 -0
- package/dist/eve/child/behaviors/Wander.js.map +1 -0
- package/dist/{generated/eve → eve}/child/behaviors/enums.js +1 -1
- package/dist/eve/child/behaviors/enums.js.map +1 -0
- package/dist/eve/child/behaviors/lifecycle/ProcessLifetime.js +540 -0
- package/dist/eve/child/behaviors/lifecycle/ProcessLifetime.js.map +1 -0
- package/dist/eve/{ProcessLifetimeData.js → child/behaviors/lifecycle/ProcessLifetimeData.js} +8 -2
- package/dist/eve/child/behaviors/lifecycle/ProcessLifetimeData.js.map +1 -0
- package/dist/eve/child/behaviors/{SplineTunnel.js → tunnels/SplineTunnel.js} +9 -7
- package/dist/eve/child/behaviors/tunnels/SplineTunnel.js.map +1 -0
- package/dist/eve/child/behaviors/tunnels/SplineTunnelGroup.js +211 -0
- package/dist/eve/child/behaviors/tunnels/SplineTunnelGroup.js.map +1 -0
- package/dist/eve/child/behaviors/{SplineTunnelPoint.js → tunnels/SplineTunnelPoint.js} +3 -3
- package/dist/eve/child/behaviors/tunnels/SplineTunnelPoint.js.map +1 -0
- package/dist/eve/child/lineSetPaths/EveBezierCurve.js +65 -0
- package/dist/eve/child/lineSetPaths/EveBezierCurve.js.map +1 -1
- package/dist/eve/child/lineSetPaths/EveCircle.js +63 -0
- package/dist/eve/child/lineSetPaths/EveCircle.js.map +1 -1
- package/dist/{generated/eve → eve}/child/modifiers/EveChildModifierAttachToBone.js +24 -16
- package/dist/eve/child/modifiers/EveChildModifierAttachToBone.js.map +1 -0
- package/dist/eve/child/modifiers/EveChildModifierBillboard2D.js +5 -0
- package/dist/eve/child/modifiers/EveChildModifierBillboard2D.js.map +1 -1
- package/dist/{generated/eve → eve}/child/modifiers/EveChildModifierBillboard3D.js +22 -19
- package/dist/eve/child/modifiers/EveChildModifierBillboard3D.js.map +1 -0
- package/dist/eve/child/modifiers/EveChildModifierBooster.js +6 -0
- package/dist/eve/child/modifiers/EveChildModifierBooster.js.map +1 -1
- package/dist/eve/child/modifiers/EveChildModifierCameraOrientedRotationConstrained.js +5 -0
- package/dist/eve/child/modifiers/EveChildModifierCameraOrientedRotationConstrained.js.map +1 -1
- package/dist/eve/child/modifiers/EveChildModifierHalo.js +5 -0
- package/dist/eve/child/modifiers/EveChildModifierHalo.js.map +1 -1
- package/dist/eve/child/modifiers/EveChildModifierHaloInverted.js +6 -0
- package/dist/eve/child/modifiers/EveChildModifierHaloInverted.js.map +1 -1
- package/dist/eve/child/modifiers/EveChildModifierSRT.js +5 -0
- package/dist/eve/child/modifiers/EveChildModifierSRT.js.map +1 -1
- package/dist/{generated/eve → eve}/child/modifiers/EveChildModifierStretch.js +31 -17
- package/dist/eve/child/modifiers/EveChildModifierStretch.js.map +1 -0
- package/dist/{generated/eve → eve}/child/modifiers/EveChildModifierTranslateWithCamera.js +16 -14
- package/dist/eve/child/modifiers/EveChildModifierTranslateWithCamera.js.map +1 -0
- package/dist/{generated/eve → eve}/child/procedural/EveChildProceduralContainer.js +11 -4
- package/dist/eve/child/procedural/EveChildProceduralContainer.js.map +1 -0
- package/dist/{generated/eve → eve}/child/procedural/selection/EveProceduralMethodAttributeMap.js +12 -12
- package/dist/eve/child/procedural/selection/EveProceduralMethodAttributeMap.js.map +1 -0
- package/dist/{generated/eve → eve}/child/procedural/selection/EveProceduralMethodAttributeMapParameter.js +6 -6
- package/dist/eve/child/procedural/selection/EveProceduralMethodAttributeMapParameter.js.map +1 -0
- package/dist/{generated/eve → eve}/child/procedural/selection/EveProceduralMethodCycling.js +12 -12
- package/dist/eve/child/procedural/selection/EveProceduralMethodCycling.js.map +1 -0
- package/dist/{generated/eve → eve}/child/procedural/selection/EveProceduralMethodCyclingParameter.js +8 -8
- package/dist/eve/child/procedural/selection/EveProceduralMethodCyclingParameter.js.map +1 -0
- package/dist/{generated/eve → eve}/child/procedural/selection/EveProceduralMethodRandom.js +17 -17
- package/dist/eve/child/procedural/selection/EveProceduralMethodRandom.js.map +1 -0
- package/dist/{generated/eve → eve}/child/procedural/selection/EveProceduralMethodRandomParameter.js +7 -7
- package/dist/eve/child/procedural/selection/EveProceduralMethodRandomParameter.js.map +1 -0
- package/dist/{generated/eve → eve}/child/procedural/selection/EveProceduralMethodThresholdParameter.js +7 -7
- package/dist/eve/child/procedural/selection/EveProceduralMethodThresholdParameter.js.map +1 -0
- package/dist/{generated/eve → eve}/child/procedural/selection/EveProceduralMethodThresholds.js +17 -17
- package/dist/eve/child/procedural/selection/EveProceduralMethodThresholds.js.map +1 -0
- package/dist/{generated/eve → eve}/distribution/EveBaseDistributionMethod.js +132 -3
- package/dist/eve/distribution/EveBaseDistributionMethod.js.map +1 -0
- package/dist/{generated/eve → eve}/distribution/attributeModifiers/EveDistributionModifierProcessLifetime.js +12 -1
- package/dist/eve/distribution/attributeModifiers/EveDistributionModifierProcessLifetime.js.map +1 -0
- package/dist/{generated/eve → eve}/distribution/attributeModifiers/EveDistributionModifierScaleBySpaceObjectParent.js +9 -1
- package/dist/eve/distribution/attributeModifiers/EveDistributionModifierScaleBySpaceObjectParent.js.map +1 -0
- package/dist/{generated/eve → eve}/distribution/attributeModifiers/EveDistributionModifierTransformOffset.js +12 -1
- package/dist/eve/distribution/attributeModifiers/EveDistributionModifierTransformOffset.js.map +1 -0
- package/dist/eve/distribution/attributeModifiers/enums.js.map +1 -0
- package/dist/{generated/eve → eve}/distribution/placement/EveDistributionPlacementGeneratorLocators.js +16 -3
- package/dist/eve/distribution/placement/EveDistributionPlacementGeneratorLocators.js.map +1 -0
- package/dist/{generated/eve → eve}/distribution/placement/EveDistributionPlacementGeneratorParentLocators.js +31 -3
- package/dist/eve/distribution/placement/EveDistributionPlacementGeneratorParentLocators.js.map +1 -0
- package/dist/{generated/eve → eve}/distribution/placement/EveDistributionPlacementGeneratorVolume.js +34 -3
- package/dist/eve/distribution/placement/EveDistributionPlacementGeneratorVolume.js.map +1 -0
- package/dist/{generated/eve → eve}/distribution/spawnModifiers/EveDistributionSpawnModifierLifeTimeOffset.js +14 -2
- package/dist/eve/distribution/spawnModifiers/EveDistributionSpawnModifierLifeTimeOffset.js.map +1 -0
- package/dist/{generated/eve → eve}/distribution/spawnModifiers/EveDistributionSpawnModifierRandomOffset.js +13 -2
- package/dist/eve/distribution/spawnModifiers/EveDistributionSpawnModifierRandomOffset.js.map +1 -0
- package/dist/{generated/eve → eve}/distribution/spawnModifiers/EveDistributionSpawnModifierRandomRotation.js +13 -2
- package/dist/eve/distribution/spawnModifiers/EveDistributionSpawnModifierRandomRotation.js.map +1 -0
- package/dist/{generated/eve → eve}/distribution/spawnModifiers/EveDistributionSpawnModifierRandomScale.js +13 -2
- package/dist/eve/distribution/spawnModifiers/EveDistributionSpawnModifierRandomScale.js.map +1 -0
- package/dist/{generated/eve → eve}/distribution/spawners/EveDistributionSpawnerBurst.js +19 -1
- package/dist/eve/distribution/spawners/EveDistributionSpawnerBurst.js.map +1 -0
- package/dist/{generated/eve → eve}/distribution/spawners/EveDistributionSpawnerControllerTrigger.js +25 -1
- package/dist/eve/distribution/spawners/EveDistributionSpawnerControllerTrigger.js.map +1 -0
- package/dist/{generated/eve → eve}/distribution/spawners/EveDistributionSpawnerInterval.js +17 -1
- package/dist/eve/distribution/spawners/EveDistributionSpawnerInterval.js.map +1 -0
- package/dist/{generated/eve → eve}/distribution/spawners/EveDistributionSpawnerTriggerPlane.js +20 -1
- package/dist/eve/distribution/spawners/EveDistributionSpawnerTriggerPlane.js.map +1 -0
- package/dist/{generated/eve → eve}/distribution/spawners/EveDistributionSpawnerTriggerSnake.js +20 -1
- package/dist/eve/distribution/spawners/EveDistributionSpawnerTriggerSnake.js.map +1 -0
- package/dist/{generated/eve → eve}/distribution/spawners/EveDistributionSpawnerTriggerSphere.js +20 -1
- package/dist/eve/distribution/spawners/EveDistributionSpawnerTriggerSphere.js.map +1 -0
- package/dist/{generated/eve/effect → eve/effect/lensflare}/EveLensflare.js +44 -2
- package/dist/eve/effect/lensflare/EveLensflare.js.map +1 -0
- package/dist/eve/effect/multiEffect/EveMultiEffect.js +302 -0
- package/dist/eve/effect/multiEffect/EveMultiEffect.js.map +1 -0
- package/dist/eve/effect/multiEffect/EveMultiEffectParameter.js +92 -0
- package/dist/eve/effect/multiEffect/EveMultiEffectParameter.js.map +1 -0
- package/dist/eve/index.js +117 -47
- package/dist/eve/index.js.map +1 -1
- package/dist/eve/lights/CjsLightData.js +7 -0
- package/dist/eve/lights/CjsLightData.js.map +1 -1
- package/dist/eve/lights/Tr2Light.js +41 -0
- package/dist/eve/lights/Tr2Light.js.map +1 -1
- package/dist/eve/lights/Tr2PointLight.js +5 -0
- package/dist/eve/lights/Tr2PointLight.js.map +1 -1
- package/dist/eve/lights/Tr2SpotLight.js +5 -0
- package/dist/eve/lights/Tr2SpotLight.js.map +1 -1
- package/dist/eve/lights/Tr2TexturedPointLight.js +10 -0
- package/dist/eve/lights/Tr2TexturedPointLight.js.map +1 -1
- package/dist/eve/lights/lightConversion.js +29 -27
- package/dist/eve/lights/lightConversion.js.map +1 -1
- package/dist/eve/{EveLocator2.js → locator/EveLocator2.js} +20 -1
- package/dist/eve/locator/EveLocator2.js.map +1 -0
- package/dist/eve/{EveLocatorSets.js → locator/EveLocatorSets.js} +43 -1
- package/dist/eve/locator/EveLocatorSets.js.map +1 -0
- package/dist/eve/{Locator.js → locator/Locator.js} +6 -1
- package/dist/eve/locator/Locator.js.map +1 -0
- package/dist/eve/{LocatorData.js → locator/LocatorData.js} +3 -1
- package/dist/eve/locator/LocatorData.js.map +1 -0
- package/dist/eve/overlays/EveMeshOverlayEffect.js +208 -0
- package/dist/eve/overlays/EveMeshOverlayEffect.js.map +1 -0
- package/dist/eve/{EveParticleDirectForce.js → particles/force/EveParticleDirectForce.js} +5 -5
- package/dist/eve/particles/force/EveParticleDirectForce.js.map +1 -0
- package/dist/eve/{EveParticleDragForce.js → particles/force/EveParticleDragForce.js} +5 -5
- package/dist/eve/particles/force/EveParticleDragForce.js.map +1 -0
- package/dist/eve/{EveParticleSpring.js → particles/force/EveParticleSpring.js} +6 -6
- package/dist/eve/particles/force/EveParticleSpring.js.map +1 -0
- package/dist/{generated/eve/scene → eve/particles/static}/EveSceneStaticParticles.js +70 -36
- package/dist/eve/particles/static/EveSceneStaticParticles.js.map +1 -0
- package/dist/eve/perObjectData/childPerObjectRecords.js +90 -0
- package/dist/eve/perObjectData/childPerObjectRecords.js.map +1 -0
- package/dist/eve/renderable/stretch/CjsStretchRuntime.js +76 -0
- package/dist/eve/renderable/stretch/CjsStretchRuntime.js.map +1 -1
- package/dist/eve/renderable/stretch/EveFiringEffectElementContainer.js +85 -1
- package/dist/eve/renderable/stretch/EveFiringEffectElementContainer.js.map +1 -1
- package/dist/eve/renderable/stretch/EveLocalPositionCurve.js +91 -0
- package/dist/eve/renderable/stretch/EveLocalPositionCurve.js.map +1 -1
- package/dist/eve/renderable/stretch/EveRemotePositionCurve.js +36 -0
- package/dist/eve/renderable/stretch/EveRemotePositionCurve.js.map +1 -1
- package/dist/eve/renderable/stretch/EveStretch.js +158 -9
- package/dist/eve/renderable/stretch/EveStretch.js.map +1 -1
- package/dist/eve/renderable/stretch/EveStretch2.js +121 -12
- package/dist/eve/renderable/stretch/EveStretch2.js.map +1 -1
- package/dist/eve/renderable/stretch/EveStretch3.js +261 -8
- package/dist/eve/renderable/stretch/EveStretch3.js.map +1 -1
- package/dist/eve/scene/EveSpaceScene.js +342 -6
- package/dist/eve/scene/EveSpaceScene.js.map +1 -1
- package/dist/{generated/eve/scene → eve/scene/components}/EveComponentCollection.js +24 -1
- package/dist/eve/scene/components/EveComponentCollection.js.map +1 -0
- package/dist/{generated/eve/scene → eve/scene/components}/EveComponentRegistry.js +74 -2
- package/dist/eve/scene/components/EveComponentRegistry.js.map +1 -0
- package/dist/eve/scene/picking/EvePickingContext.js +61 -0
- package/dist/eve/scene/picking/EvePickingContext.js.map +1 -0
- package/dist/eve/scene/shadows/TriShadowFrustum.js +70 -0
- package/dist/eve/scene/shadows/TriShadowFrustum.js.map +1 -0
- package/dist/eve/scene/shadows/TriShadowOrthoFrustum.js +129 -0
- package/dist/eve/scene/shadows/TriShadowOrthoFrustum.js.map +1 -0
- package/dist/{generated/eve → eve}/smartLights/attributeModifiers/EveSmartLightAttributeModifierBucket.js +19 -19
- package/dist/eve/smartLights/attributeModifiers/EveSmartLightAttributeModifierBucket.js.map +1 -0
- package/dist/{generated/eve → eve}/smartLights/attributeModifiers/EveSmartLightAttributeModifierCameraDependency.js +19 -19
- package/dist/eve/smartLights/attributeModifiers/EveSmartLightAttributeModifierCameraDependency.js.map +1 -0
- package/dist/{generated/eve → eve}/smartLights/attributeModifiers/EveSmartLightAttributeModifierColor.js +12 -12
- package/dist/eve/smartLights/attributeModifiers/EveSmartLightAttributeModifierColor.js.map +1 -0
- package/dist/{generated/eve → eve}/smartLights/attributeModifiers/EveSmartLightAttributeModifierControllerVariableListener.js +12 -12
- package/dist/eve/smartLights/attributeModifiers/EveSmartLightAttributeModifierControllerVariableListener.js.map +1 -0
- package/dist/{generated/eve → eve}/smartLights/attributeModifiers/EveSmartLightAttributeModifierExpressionBucket.js +30 -30
- package/dist/eve/smartLights/attributeModifiers/EveSmartLightAttributeModifierExpressionBucket.js.map +1 -0
- package/dist/{generated/eve → eve}/smartLights/attributeModifiers/EveSmartLightAttributeModifierNoise.js +9 -9
- package/dist/eve/smartLights/attributeModifiers/EveSmartLightAttributeModifierNoise.js.map +1 -0
- package/dist/{generated/eve → eve}/smartLights/attributeModifiers/EveSmartLightBaseAttributeModifier.js +23 -23
- package/dist/eve/smartLights/attributeModifiers/EveSmartLightBaseAttributeModifier.js.map +1 -0
- package/dist/eve/smartLights/attributeModifiers/enums.js.map +1 -0
- package/dist/{generated/eve → eve}/socket/EveSocketParameterBindingBase.js +26 -1
- package/dist/eve/socket/EveSocketParameterBindingBase.js.map +1 -0
- package/dist/{generated/eve → eve}/socket/EveSocketParameterBool.js +17 -1
- package/dist/eve/socket/EveSocketParameterBool.js.map +1 -0
- package/dist/{generated/eve → eve}/socket/EveSocketParameterColor.js +21 -5
- package/dist/eve/socket/EveSocketParameterColor.js.map +1 -0
- package/dist/eve/socket/EveSocketParameterFilePath.js +5 -5
- package/dist/eve/socket/EveSocketParameterFilePath.js.map +1 -1
- package/dist/{generated/eve → eve}/socket/EveSocketParameterFloat.js +17 -1
- package/dist/eve/socket/EveSocketParameterFloat.js.map +1 -0
- package/dist/{generated/eve → eve}/socket/EveSocketParameterInt.js +17 -1
- package/dist/eve/socket/EveSocketParameterInt.js.map +1 -0
- package/dist/{generated/eve → eve}/socket/EveSocketParameterString.js +42 -2
- package/dist/eve/socket/EveSocketParameterString.js.map +1 -0
- package/dist/{generated/eve → eve}/socket/EveSocketParameterVector2.js +17 -1
- package/dist/eve/socket/EveSocketParameterVector2.js.map +1 -0
- package/dist/{generated/eve → eve}/socket/EveSocketParameterVector3.js +17 -1
- package/dist/eve/socket/EveSocketParameterVector3.js.map +1 -0
- package/dist/{generated/eve → eve}/socket/EveSocketParameterVector4.js +17 -1
- package/dist/eve/socket/EveSocketParameterVector4.js.map +1 -0
- package/dist/eve/spaceObject/EveEffectRoot2.js +58 -31
- package/dist/eve/spaceObject/EveEffectRoot2.js.map +1 -1
- package/dist/eve/spaceObject/EveMissile.js +49 -1
- package/dist/eve/spaceObject/EveMissile.js.map +1 -1
- package/dist/eve/spaceObject/EveMissileWarhead.js +100 -1
- package/dist/eve/spaceObject/EveMissileWarhead.js.map +1 -1
- package/dist/eve/spaceObject/EveMobile.js +104 -0
- package/dist/eve/spaceObject/EveMobile.js.map +1 -1
- package/dist/eve/spaceObject/EveRootTransform.js +17 -0
- package/dist/eve/spaceObject/EveRootTransform.js.map +1 -1
- package/dist/{generated/eve → eve}/spaceObject/EveShip2.js +32 -12
- package/dist/eve/spaceObject/EveShip2.js.map +1 -0
- package/dist/eve/spaceObject/EveSpaceObject2.js +726 -199
- package/dist/eve/spaceObject/EveSpaceObject2.js.map +1 -1
- package/dist/eve/spaceObject/EveTransform.js +143 -5
- package/dist/eve/spaceObject/EveTransform.js.map +1 -1
- package/dist/eve/spaceObject/IEveSpaceObject2ParentData.js +70 -0
- package/dist/eve/spaceObject/IEveSpaceObject2ParentData.js.map +1 -0
- package/dist/eve/spaceObject/createEveSpaceObjectMainPerObjectValues.js +19 -16
- package/dist/eve/spaceObject/createEveSpaceObjectMainPerObjectValues.js.map +1 -1
- package/dist/eve/spaceObject/fxAttributes/EveCameraFxAttributes.js +92 -0
- package/dist/eve/spaceObject/fxAttributes/EveCameraFxAttributes.js.map +1 -0
- package/dist/eve/spaceObject/fxAttributes/EveSpaceObjectFxAttributes.js +158 -0
- package/dist/eve/spaceObject/fxAttributes/EveSpaceObjectFxAttributes.js.map +1 -0
- package/dist/{generated/eve/spaceObject → eve/spaceObject/planet}/EvePlanet.js +2 -2
- package/dist/eve/spaceObject/planet/EvePlanet.js.map +1 -0
- package/dist/{generated/eve → eve}/spaceObject/swarm/EveSwarmRenderable.js +102 -64
- package/dist/eve/spaceObject/swarm/EveSwarmRenderable.js.map +1 -0
- package/dist/eve/ui/EveEllipseDefinition.js +15 -0
- package/dist/eve/ui/EveEllipseDefinition.js.map +1 -1
- package/dist/eve/ui/EveEllipseSet.js +42 -0
- package/dist/eve/ui/EveEllipseSet.js.map +1 -1
- package/dist/{generated/eve → eve}/ui/EveSpherePin.js +76 -11
- package/dist/eve/ui/EveSpherePin.js.map +1 -0
- package/dist/eve/ui/EveSprite2dBracket.js +5 -0
- package/dist/eve/ui/EveSprite2dBracket.js.map +1 -1
- package/dist/eve/ui/EveUiObject.js +11 -0
- package/dist/eve/ui/EveUiObject.js.map +1 -1
- package/dist/{generated/eve/ui → eve/ui/lines}/EveLineSet.js +67 -6
- package/dist/eve/ui/lines/EveLineSet.js.map +1 -0
- package/dist/eve/ui/tacticalOverlay/EveTacticalOverlayTrackObject.js +78 -0
- package/dist/eve/ui/tacticalOverlay/EveTacticalOverlayTrackObject.js.map +1 -0
- package/dist/{generated/eve/ui → eve/ui/tacticalOverlay}/EveTacticalTrails.js +22 -2
- package/dist/eve/ui/tacticalOverlay/EveTacticalTrails.js.map +1 -0
- package/dist/eve/virtualCamera/EveVirtualCamera.js +152 -0
- package/dist/eve/virtualCamera/EveVirtualCamera.js.map +1 -1
- package/dist/eve/virtualCamera/EveVirtualCameraSystem.js +65 -0
- package/dist/eve/virtualCamera/EveVirtualCameraSystem.js.map +1 -1
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourFloatAdd.js +17 -0
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourFloatAdd.js.map +1 -1
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourFloatBase.js +19 -0
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourFloatBase.js.map +1 -1
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourFloatDamping.js +17 -0
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourFloatDamping.js.map +1 -1
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourFloatNoise.js +29 -0
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourFloatNoise.js.map +1 -1
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourFloatSet.js +15 -0
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourFloatSet.js.map +1 -1
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourVector3Base.js +38 -0
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourVector3Base.js.map +1 -1
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourVector3Damping.js +17 -0
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourVector3Damping.js.map +1 -1
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourVector3Inertia.js +18 -0
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourVector3Inertia.js.map +1 -1
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourVector3MoveBetween.js +20 -0
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourVector3MoveBetween.js.map +1 -1
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourVector3MoveForward.js +20 -0
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourVector3MoveForward.js.map +1 -1
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourVector3MoveRight.js +11 -0
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourVector3MoveRight.js.map +1 -1
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourVector3MoveUp.js +14 -0
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourVector3MoveUp.js.map +1 -1
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourVector3Offset.js +16 -0
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourVector3Offset.js.map +1 -1
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourVector3Orbit.js +20 -0
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourVector3Orbit.js.map +1 -1
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourVector3Shake.js +36 -0
- package/dist/eve/virtualCamera/behaviour/EveVirtualCameraBehaviourVector3Shake.js.map +1 -1
- package/dist/eve/virtualCamera/transition/EveVirtualCameraTransitionBase.js +36 -0
- package/dist/eve/virtualCamera/transition/EveVirtualCameraTransitionBase.js.map +1 -1
- package/dist/eve/virtualCamera/transition/EveVirtualCameraTransitionCut.js +11 -0
- package/dist/eve/virtualCamera/transition/EveVirtualCameraTransitionCut.js.map +1 -1
- package/dist/eve/virtualCamera/transition/EveVirtualCameraTransitionLerp.js +37 -0
- package/dist/eve/virtualCamera/transition/EveVirtualCameraTransitionLerp.js.map +1 -1
- package/dist/eve/volume/EveBoxVolume.js +59 -0
- package/dist/eve/volume/EveBoxVolume.js.map +1 -1
- package/dist/eve/volume/EveEllipsoidVolume.js +54 -0
- package/dist/eve/volume/EveEllipsoidVolume.js.map +1 -1
- package/dist/eve/volume/EveSphereVolume.js +34 -0
- package/dist/eve/volume/EveSphereVolume.js.map +1 -1
- package/dist/generated/eve/child/EveChildCloud2.js +138 -138
- package/dist/generated/eve/child/EveChildCloud2.js.map +1 -1
- package/dist/generated/eve/child/EveChildParticleSystem.js +10 -4
- package/dist/generated/eve/child/EveChildParticleSystem.js.map +1 -1
- package/dist/generated/eve/child/EveChildSocket.js +1 -1
- package/dist/generated/eve/child/EveChildSocket.js.map +1 -1
- package/dist/generated/eve/child/behaviors/BackAndForth.js +14 -17
- package/dist/generated/eve/child/behaviors/BackAndForth.js.map +1 -1
- package/dist/generated/eve/child/behaviors/BehaviorGroup.js +2 -2
- package/dist/generated/eve/child/behaviors/BehaviorGroup.js.map +1 -1
- package/dist/generated/eve/child/behaviors/EveKDdroneManagementTree.js +26 -29
- package/dist/generated/eve/child/behaviors/EveKDdroneManagementTree.js.map +1 -1
- package/dist/generated/eve/child/behaviors/FollowASpline.js +13 -17
- package/dist/generated/eve/child/behaviors/FollowASpline.js.map +1 -1
- package/dist/generated/eve/child/behaviors/PlayFX.js +14 -14
- package/dist/generated/eve/child/behaviors/PlayFX.js.map +1 -1
- package/dist/generated/eve/child/behaviors/SeekTarget.js +1 -1
- package/dist/generated/eve/child/behaviors/SeekTarget.js.map +1 -1
- package/dist/generated/eve/child/behaviors/index.js +0 -6
- package/dist/generated/eve/child/behaviors/index.js.map +1 -1
- package/dist/generated/eve/child/index.js +0 -23
- package/dist/generated/eve/child/index.js.map +1 -1
- package/dist/generated/eve/effect/index.js +0 -3
- package/dist/generated/eve/effect/index.js.map +1 -1
- package/dist/generated/eve/index.js +0 -88
- package/dist/generated/eve/index.js.map +1 -1
- package/dist/generated/eve/scene/index.js +0 -6
- package/dist/generated/eve/scene/index.js.map +1 -1
- package/dist/generated/eve/smartLights/EveSmartLightColorShareGroup.js +20 -20
- package/dist/generated/eve/smartLights/EveSmartLightColorShareGroup.js.map +1 -1
- package/dist/generated/eve/smartLights/EveSmartLightPointLight.js +1 -1
- package/dist/generated/eve/smartLights/EveSmartLightPointLight.js.map +1 -1
- package/dist/generated/eve/smartLights/index.js +0 -8
- package/dist/generated/eve/smartLights/index.js.map +1 -1
- package/dist/generated/eve/spaceObject/index.js +0 -4
- package/dist/generated/eve/spaceObject/index.js.map +1 -1
- package/dist/generated/eve/spaceObject/swarm/EveSwarm.js +11 -11
- package/dist/generated/eve/spaceObject/swarm/EveSwarm.js.map +1 -1
- package/dist/generated/eve/spaceObject/swarm/index.js +0 -1
- package/dist/generated/eve/spaceObject/swarm/index.js.map +1 -1
- package/dist/generated/eve/ui/index.js +0 -4
- package/dist/generated/eve/ui/index.js.map +1 -1
- package/dist/generated/index.js +0 -93
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/trinityCore/index.js +0 -5
- package/dist/generated/trinityCore/index.js.map +1 -1
- package/dist/index.js +130 -155
- package/dist/index.js.map +1 -1
- package/dist/particle/Tr2GpuSharedEmitter.js +39 -0
- package/dist/particle/Tr2GpuSharedEmitter.js.map +1 -1
- package/dist/particle/Tr2GpuUniqueEmitter.js +5 -0
- package/dist/particle/Tr2GpuUniqueEmitter.js.map +1 -1
- package/dist/particle/Tr2ParticleAttractorForce.js +10 -0
- package/dist/particle/Tr2ParticleAttractorForce.js.map +1 -1
- package/dist/particle/Tr2ParticleDirectForce.js +7 -0
- package/dist/particle/Tr2ParticleDirectForce.js.map +1 -1
- package/dist/particle/Tr2ParticleDragForce.js +7 -0
- package/dist/particle/Tr2ParticleDragForce.js.map +1 -1
- package/dist/particle/Tr2ParticleElementDeclaration.js +5 -0
- package/dist/particle/Tr2ParticleElementDeclaration.js.map +1 -1
- package/dist/particle/Tr2ParticleFluidDragForce.js +10 -0
- package/dist/particle/Tr2ParticleFluidDragForce.js.map +1 -1
- package/dist/particle/Tr2ParticleSpring.js +10 -0
- package/dist/particle/Tr2ParticleSpring.js.map +1 -1
- package/dist/particle/Tr2ParticleVortexForce.js +10 -0
- package/dist/particle/Tr2ParticleVortexForce.js.map +1 -1
- package/dist/particle/particleElementBinding.js +12 -0
- package/dist/particle/particleElementBinding.js.map +1 -1
- package/dist/postProcess/Tr2PPBloomEffect.js +6 -0
- package/dist/postProcess/Tr2PPBloomEffect.js.map +1 -1
- package/dist/postProcess/Tr2PPDepthOfFieldEffect.js +16 -0
- package/dist/postProcess/Tr2PPDepthOfFieldEffect.js.map +1 -1
- package/dist/postProcess/Tr2PPGenericEffect.js +7 -0
- package/dist/postProcess/Tr2PPGenericEffect.js.map +1 -1
- package/dist/postProcess/Tr2PPTaaEffect.js +10 -0
- package/dist/postProcess/Tr2PPTaaEffect.js.map +1 -1
- package/dist/postProcess/Tr2PPTonemappingEffect.js +5 -0
- package/dist/postProcess/Tr2PPTonemappingEffect.js.map +1 -1
- package/dist/postProcess/Tr2PostProcess.js +5 -0
- package/dist/postProcess/Tr2PostProcess.js.map +1 -1
- package/dist/postProcess/Tr2PostProcess2.js +147 -0
- package/dist/postProcess/Tr2PostProcess2.js.map +1 -1
- package/dist/postProcess/Tr2PostProcessAttributes.js +89 -0
- package/dist/postProcess/Tr2PostProcessAttributes.js.map +1 -1
- package/dist/renderJob/Tr2RenderJobs.js +34 -0
- package/dist/renderJob/Tr2RenderJobs.js.map +1 -1
- package/dist/renderJob/TriRenderJob.js +59 -0
- package/dist/renderJob/TriRenderJob.js.map +1 -1
- package/dist/renderJob/TriRenderStep.js +20 -0
- package/dist/renderJob/TriRenderStep.js.map +1 -1
- package/dist/renderJob/TriStepClear.js +18 -0
- package/dist/renderJob/TriStepClear.js.map +1 -1
- package/dist/renderJob/TriStepCopyRenderTarget.js +51 -0
- package/dist/renderJob/TriStepCopyRenderTarget.js.map +1 -1
- package/dist/renderJob/TriStepEnableWireframeMode.js +9 -0
- package/dist/renderJob/TriStepEnableWireframeMode.js.map +1 -1
- package/dist/renderJob/TriStepGenerateMipMaps.js +9 -0
- package/dist/renderJob/TriStepGenerateMipMaps.js.map +1 -1
- package/dist/renderJob/TriStepPopDepthStencil.js +6 -0
- package/dist/renderJob/TriStepPopDepthStencil.js.map +1 -1
- package/dist/renderJob/TriStepPopProjection.js +6 -0
- package/dist/renderJob/TriStepPopProjection.js.map +1 -1
- package/dist/renderJob/TriStepPopRenderTarget.js +12 -0
- package/dist/renderJob/TriStepPopRenderTarget.js.map +1 -1
- package/dist/renderJob/TriStepPopViewTransform.js +6 -0
- package/dist/renderJob/TriStepPopViewTransform.js.map +1 -1
- package/dist/renderJob/TriStepPopViewport.js +6 -0
- package/dist/renderJob/TriStepPopViewport.js.map +1 -1
- package/dist/renderJob/TriStepPresentSwapChain.js +12 -0
- package/dist/renderJob/TriStepPresentSwapChain.js.map +1 -1
- package/dist/renderJob/TriStepPushDepthStencil.js +17 -0
- package/dist/renderJob/TriStepPushDepthStencil.js.map +1 -1
- package/dist/renderJob/TriStepPushProjection.js +6 -0
- package/dist/renderJob/TriStepPushProjection.js.map +1 -1
- package/dist/renderJob/TriStepPushRenderTarget.js +9 -0
- package/dist/renderJob/TriStepPushRenderTarget.js.map +1 -1
- package/dist/renderJob/TriStepPushViewTransform.js +6 -0
- package/dist/renderJob/TriStepPushViewTransform.js.map +1 -1
- package/dist/renderJob/TriStepPushViewport.js +6 -0
- package/dist/renderJob/TriStepPushViewport.js.map +1 -1
- package/dist/renderJob/TriStepRemoteSync.js +17 -0
- package/dist/renderJob/TriStepRemoteSync.js.map +1 -1
- package/dist/renderJob/TriStepResolve.js +13 -0
- package/dist/renderJob/TriStepResolve.js.map +1 -1
- package/dist/renderJob/TriStepRunJob.js +12 -0
- package/dist/renderJob/TriStepRunJob.js.map +1 -1
- package/dist/renderJob/TriStepSetDepthStencil.js +12 -0
- package/dist/renderJob/TriStepSetDepthStencil.js.map +1 -1
- package/dist/renderJob/TriStepSetProjection.js +14 -0
- package/dist/renderJob/TriStepSetProjection.js.map +1 -1
- package/dist/renderJob/TriStepSetRenderState.js +20 -0
- package/dist/renderJob/TriStepSetRenderState.js.map +1 -1
- package/dist/renderJob/TriStepSetRenderTarget.js +12 -0
- package/dist/renderJob/TriStepSetRenderTarget.js.map +1 -1
- package/dist/renderJob/TriStepSetStdRndStates.js +18 -0
- package/dist/renderJob/TriStepSetStdRndStates.js.map +1 -1
- package/dist/renderJob/TriStepSetView.js +29 -2
- package/dist/renderJob/TriStepSetView.js.map +1 -1
- package/dist/renderJob/TriStepSetViewport.js +17 -0
- package/dist/renderJob/TriStepSetViewport.js.map +1 -1
- package/dist/renderJob/TriStepSetVisualizationMode.js +19 -0
- package/dist/renderJob/TriStepSetVisualizationMode.js.map +1 -1
- package/dist/shader/Tr2Effect.js +217 -2
- package/dist/shader/Tr2Effect.js.map +1 -1
- package/dist/shader/Tr2Material.js +41 -0
- package/dist/shader/Tr2Material.js.map +1 -1
- package/dist/shader/index.js +1 -11
- package/dist/shader/index.js.map +1 -1
- package/dist/shader/material/Tr2EffectLibraryParameters.js +7 -0
- package/dist/shader/material/Tr2EffectLibraryParameters.js.map +1 -1
- package/dist/shader/material/Tr2EffectPassParameters.js +23 -0
- package/dist/shader/material/Tr2EffectPassParameters.js.map +1 -1
- package/dist/shader/material/Tr2MaterialStageInput.js +15 -0
- package/dist/shader/material/Tr2MaterialStageInput.js.map +1 -1
- package/dist/shader/parameter/CjsParameter.js +94 -0
- package/dist/shader/parameter/CjsParameter.js.map +1 -1
- package/dist/shader/parameter/CjsVectorParameter.js +20 -0
- package/dist/shader/parameter/CjsVectorParameter.js.map +1 -1
- package/dist/shader/parameter/Tr2FloatParameter.js +53 -0
- package/dist/shader/parameter/Tr2FloatParameter.js.map +1 -1
- package/dist/shader/parameter/Tr2GeometryBufferParameter.js +39 -0
- package/dist/shader/parameter/Tr2GeometryBufferParameter.js.map +1 -1
- package/dist/shader/parameter/Tr2Matrix4Parameter.js +54 -0
- package/dist/shader/parameter/Tr2Matrix4Parameter.js.map +1 -1
- package/dist/shader/parameter/Tr2RuntimeTextureParameter.js +54 -0
- package/dist/shader/parameter/Tr2RuntimeTextureParameter.js.map +1 -1
- package/dist/shader/parameter/Tr2TextureAnimationParameter.js +35 -0
- package/dist/shader/parameter/Tr2TextureAnimationParameter.js.map +1 -1
- package/dist/shader/parameter/Tr2Vector2Parameter.js +86 -0
- package/dist/shader/parameter/Tr2Vector2Parameter.js.map +1 -1
- package/dist/shader/parameter/Tr2Vector3Parameter.js +95 -0
- package/dist/shader/parameter/Tr2Vector3Parameter.js.map +1 -1
- package/dist/shader/parameter/Tr2Vector4Parameter.js +105 -0
- package/dist/shader/parameter/Tr2Vector4Parameter.js.map +1 -1
- package/dist/shader/parameter/TriFloatArrayParameter.js +26 -0
- package/dist/shader/parameter/TriFloatArrayParameter.js.map +1 -1
- package/dist/shader/parameter/TriTextureParameter.js +84 -0
- package/dist/shader/parameter/TriTextureParameter.js.map +1 -1
- package/dist/shader/parameter/TriTransformParameter.js +2 -0
- package/dist/shader/parameter/TriTransformParameter.js.map +1 -1
- package/dist/shader/parameter/TriVariableParameter.js +38 -0
- package/dist/shader/parameter/TriVariableParameter.js.map +1 -1
- package/dist/shader/parameter/TriVector4.js +2 -0
- package/dist/shader/parameter/TriVector4.js.map +1 -1
- package/dist/shader/reflection/Tr2ShaderOption.js +6 -1
- package/dist/shader/reflection/Tr2ShaderOption.js.map +1 -1
- package/dist/shader/support/CjsVariableStore.js +140 -0
- package/dist/shader/support/CjsVariableStore.js.map +1 -1
- package/dist/shader/support/Tr2ShaderBuffer.js +15 -0
- package/dist/shader/support/Tr2ShaderBuffer.js.map +1 -1
- package/dist/trinityCore/CjsBatchManager.js +62 -2
- package/dist/trinityCore/CjsBatchManager.js.map +1 -1
- package/dist/trinityCore/GrannyBoneOffset.js +51 -0
- package/dist/trinityCore/GrannyBoneOffset.js.map +1 -1
- package/dist/trinityCore/ITriRenderBatchAccumulator.js +65 -3
- package/dist/trinityCore/ITriRenderBatchAccumulator.js.map +1 -1
- package/dist/trinityCore/Tr2DirectInstanceData.js +19 -0
- package/dist/trinityCore/Tr2DirectInstanceData.js.map +1 -1
- package/dist/trinityCore/Tr2ExpressionTermInfo.js +21 -0
- package/dist/trinityCore/Tr2ExpressionTermInfo.js.map +1 -1
- package/dist/trinityCore/Tr2GpuBuffer.js +5 -0
- package/dist/trinityCore/Tr2GpuBuffer.js.map +1 -1
- package/dist/{generated/trinityCore → trinityCore}/Tr2GrannyAnimation.js +137 -8
- package/dist/trinityCore/Tr2GrannyAnimation.js.map +1 -0
- package/dist/trinityCore/Tr2InstancedMesh.js +52 -0
- package/dist/trinityCore/Tr2InstancedMesh.js.map +1 -1
- package/dist/trinityCore/Tr2MaterialParameterStore.js +5 -0
- package/dist/trinityCore/Tr2MaterialParameterStore.js.map +1 -1
- package/dist/trinityCore/Tr2Mesh.js +37 -0
- package/dist/trinityCore/Tr2Mesh.js.map +1 -1
- package/dist/trinityCore/Tr2MeshArea.js +78 -0
- package/dist/trinityCore/Tr2MeshArea.js.map +1 -1
- package/dist/trinityCore/Tr2MeshBase.js +98 -2
- package/dist/trinityCore/Tr2MeshBase.js.map +1 -1
- package/dist/trinityCore/Tr2PerObjectData.js +10 -0
- package/dist/trinityCore/Tr2PerObjectData.js.map +1 -1
- package/dist/trinityCore/Tr2PickType.js +33 -0
- package/dist/trinityCore/Tr2PickType.js.map +1 -0
- package/dist/trinityCore/Tr2RenderBatch.js +137 -0
- package/dist/trinityCore/Tr2RenderBatch.js.map +1 -1
- package/dist/trinityCore/Tr2RenderContext.js +271 -0
- package/dist/trinityCore/Tr2RenderContext.js.map +1 -1
- package/dist/trinityCore/Tr2RuntimeInstanceData.js +179 -0
- package/dist/trinityCore/Tr2RuntimeInstanceData.js.map +1 -1
- package/dist/trinityCore/Tr2ShLightingManager.js +397 -0
- package/dist/trinityCore/Tr2ShLightingManager.js.map +1 -0
- package/dist/trinityCore/Tr2VariableStore.js +26 -0
- package/dist/trinityCore/Tr2VariableStore.js.map +1 -1
- package/dist/trinityCore/Tr2VisibilityResults.js +5 -0
- package/dist/trinityCore/Tr2VisibilityResults.js.map +1 -1
- package/dist/trinityCore/TriDevice.js +5 -0
- package/dist/trinityCore/TriDevice.js.map +1 -1
- package/dist/trinityCore/TriFrustum.js +21 -14
- package/dist/trinityCore/TriFrustum.js.map +1 -1
- package/dist/trinityCore/TriObserverLocal.js +43 -0
- package/dist/trinityCore/TriObserverLocal.js.map +1 -1
- package/dist/trinityCore/TriProjection.js +86 -32
- package/dist/trinityCore/TriProjection.js.map +1 -1
- package/dist/trinityCore/TriRect.js +12 -0
- package/dist/trinityCore/TriRect.js.map +1 -1
- package/dist/trinityCore/TriRenderBatchAccumulator.js +46 -0
- package/dist/trinityCore/TriRenderBatchAccumulator.js.map +1 -1
- package/dist/trinityCore/TriRenderBatchMap.js +39 -2
- package/dist/trinityCore/TriRenderBatchMap.js.map +1 -1
- package/dist/trinityCore/TriSettings.js +38 -0
- package/dist/trinityCore/TriSettings.js.map +1 -1
- package/dist/trinityCore/TriVariable.js +30 -0
- package/dist/trinityCore/TriVariable.js.map +1 -1
- package/dist/trinityCore/TriView.js +16 -1
- package/dist/trinityCore/TriView.js.map +1 -1
- package/dist/trinityCore/TriViewport.js +12 -0
- package/dist/trinityCore/TriViewport.js.map +1 -1
- package/dist/trinityCore/{Tr2BindingVector3.js → binding/Tr2BindingVector3.js} +1 -1
- package/dist/trinityCore/binding/Tr2BindingVector3.js.map +1 -0
- package/dist/trinityCore/binding/Tr2DynamicBinding.js +266 -0
- package/dist/trinityCore/binding/Tr2DynamicBinding.js.map +1 -0
- package/dist/trinityCore/binding/Tr2ExternalParameter.js +392 -0
- package/dist/trinityCore/binding/Tr2ExternalParameter.js.map +1 -0
- package/dist/trinityCore/{Tr2PyValueBinding.js → binding/Tr2PyValueBinding.js} +30 -6
- package/dist/trinityCore/binding/Tr2PyValueBinding.js.map +1 -0
- package/dist/trinityCore/binding/TriValueBinding.js +648 -0
- package/dist/trinityCore/binding/TriValueBinding.js.map +1 -0
- package/dist/trinityCore/index.js +11 -4
- package/dist/trinityCore/index.js.map +1 -1
- package/dist/trinityCore/pickRay.js +84 -0
- package/dist/trinityCore/pickRay.js.map +1 -0
- package/dist/trinityCore/rawData/CjsPerFrameLayouts.js +517 -0
- package/dist/trinityCore/rawData/CjsPerFrameLayouts.js.map +1 -0
- package/dist/trinityCore/rawData/CjsPerObjectLayouts.js +790 -0
- package/dist/trinityCore/rawData/CjsPerObjectLayouts.js.map +1 -0
- package/dist/trinityCore/rawData/RawData.js +323 -39
- package/dist/trinityCore/rawData/RawData.js.map +1 -1
- package/dist/trinityCore/rawData/TriPoolAllocator.js +357 -0
- package/dist/trinityCore/rawData/TriPoolAllocator.js.map +1 -0
- package/dist/trinityCore/rawData/constantLayout.js +175 -0
- package/dist/trinityCore/rawData/constantLayout.js.map +1 -0
- package/dist/utilities/Range.js +53 -0
- package/dist/utilities/Range.js.map +1 -1
- package/docs/README.md +88 -0
- package/docs/architecture.md +162 -0
- package/docs/concepts/eve-runtime-behavior.md +86 -0
- package/docs/concepts/generated-class-lifecycle.md +116 -0
- package/docs/reference/api.md +76 -0
- package/docs/reference/classes/eve-runtime.md +106 -0
- package/docs/reference/classes/trinity-core.md +26 -0
- package/docs/reference/implementation-status.md +104 -0
- package/docs/reference/main-semantic-extraction.md +104 -0
- package/package.json +34 -24
- package/dist/eve/DecalVSPerObjectData.js +0 -34
- package/dist/eve/DecalVSPerObjectData.js.map +0 -1
- package/dist/eve/EveBannerItem.js +0 -43
- package/dist/eve/EveBannerItem.js.map +0 -1
- package/dist/eve/EveBannerLight.js.map +0 -1
- package/dist/eve/EveBannerSet.js +0 -190
- package/dist/eve/EveBannerSet.js.map +0 -1
- package/dist/eve/EveBasicPerObjectData.js +0 -31
- package/dist/eve/EveBasicPerObjectData.js.map +0 -1
- package/dist/eve/EveBoosterSet2.js.map +0 -1
- package/dist/eve/EveBoosterSet2Renderable.js.map +0 -1
- package/dist/eve/EveChildSpherePinPerObjectData.js +0 -37
- package/dist/eve/EveChildSpherePinPerObjectData.js.map +0 -1
- package/dist/eve/EveHazeSet.js.map +0 -1
- package/dist/eve/EveHazeSetLight.js.map +0 -1
- package/dist/eve/EveLocator2.js.map +0 -1
- package/dist/eve/EveLocatorSets.js.map +0 -1
- package/dist/eve/EveParticleDirectForce.js.map +0 -1
- package/dist/eve/EveParticleDragForce.js.map +0 -1
- package/dist/eve/EveParticleSpring.js.map +0 -1
- package/dist/eve/EvePerObjectPSData.js +0 -29
- package/dist/eve/EvePerObjectPSData.js.map +0 -1
- package/dist/eve/EvePerObjectVSData.js +0 -29
- package/dist/eve/EvePerObjectVSData.js.map +0 -1
- package/dist/eve/EvePlaneLight.js.map +0 -1
- package/dist/eve/EvePlaneSet.js.map +0 -1
- package/dist/eve/EvePlaneSetItem.js +0 -45
- package/dist/eve/EvePlaneSetItem.js.map +0 -1
- package/dist/eve/EveSpaceObjectAttachmentUtils.js.map +0 -1
- package/dist/eve/EveSpaceObjectDecal.js +0 -150
- package/dist/eve/EveSpaceObjectDecal.js.map +0 -1
- package/dist/eve/EveSpaceObjectPSData.js +0 -73
- package/dist/eve/EveSpaceObjectPSData.js.map +0 -1
- package/dist/eve/EveSpaceObjectVSData.js +0 -79
- package/dist/eve/EveSpaceObjectVSData.js.map +0 -1
- package/dist/eve/EveSpacePerObjectData.js +0 -97
- package/dist/eve/EveSpacePerObjectData.js.map +0 -1
- package/dist/eve/EveSpherePinPerObjectData.js +0 -37
- package/dist/eve/EveSpherePinPerObjectData.js.map +0 -1
- package/dist/eve/EveSpotlightLight.js.map +0 -1
- package/dist/eve/EveSpotlightSet.js.map +0 -1
- package/dist/eve/EveSpriteLight.js.map +0 -1
- package/dist/eve/EveSpriteLineSet.js.map +0 -1
- package/dist/eve/EveSpriteLineSetItem.js.map +0 -1
- package/dist/eve/EveSpriteSet.js.map +0 -1
- package/dist/eve/EveTrailsSet.js.map +0 -1
- package/dist/eve/Locator.js.map +0 -1
- package/dist/eve/LocatorData.js.map +0 -1
- package/dist/eve/ProcessLifetimeData.js.map +0 -1
- package/dist/eve/attachment/turrets/EveTurretSetPSData.js +0 -47
- package/dist/eve/attachment/turrets/EveTurretSetPSData.js.map +0 -1
- package/dist/eve/attachment/turrets/EveTurretSetVSData.js +0 -62
- package/dist/eve/attachment/turrets/EveTurretSetVSData.js.map +0 -1
- package/dist/eve/child/behaviors/SplineTunnel.js.map +0 -1
- package/dist/eve/child/behaviors/SplineTunnelPoint.js.map +0 -1
- package/dist/eve/perObjectData/DecalPSPerObjectData.js +0 -56
- package/dist/eve/perObjectData/DecalPSPerObjectData.js.map +0 -1
- package/dist/eve/perObjectData/EveMissileWarheadPerObjectData.js +0 -31
- package/dist/eve/perObjectData/EveMissileWarheadPerObjectData.js.map +0 -1
- package/dist/eve/perObjectData/EveTurretSetPerObjectData.js +0 -36
- package/dist/eve/perObjectData/EveTurretSetPerObjectData.js.map +0 -1
- package/dist/eve/perObjectData/MergeMorphsConstantBuffer.js +0 -64
- package/dist/eve/perObjectData/MergeMorphsConstantBuffer.js.map +0 -1
- package/dist/generated/eve/EveCamera.js +0 -264
- package/dist/generated/eve/EveCamera.js.map +0 -1
- package/dist/generated/eve/EveEntity.js +0 -81
- package/dist/generated/eve/EveEntity.js.map +0 -1
- package/dist/generated/eve/attachment/decal/index.js +0 -2
- package/dist/generated/eve/attachment/decal/index.js.map +0 -1
- package/dist/generated/eve/attachment/haze/EveHazeSetItem.js +0 -52
- package/dist/generated/eve/attachment/haze/EveHazeSetItem.js.map +0 -1
- package/dist/generated/eve/attachment/haze/index.js +0 -2
- package/dist/generated/eve/attachment/haze/index.js.map +0 -1
- package/dist/generated/eve/attachment/index.js +0 -5
- package/dist/generated/eve/attachment/index.js.map +0 -1
- package/dist/generated/eve/attachment/spotlights/EveSpotlightSetItem.js +0 -55
- package/dist/generated/eve/attachment/spotlights/EveSpotlightSetItem.js.map +0 -1
- package/dist/generated/eve/attachment/spotlights/index.js +0 -2
- package/dist/generated/eve/attachment/spotlights/index.js.map +0 -1
- package/dist/generated/eve/attachment/sprites/EveSpriteSetItem.js.map +0 -1
- package/dist/generated/eve/attachment/sprites/index.js +0 -2
- package/dist/generated/eve/attachment/sprites/index.js.map +0 -1
- package/dist/generated/eve/attachment/turrets/enums.js +0 -32
- package/dist/generated/eve/attachment/turrets/enums.js.map +0 -1
- package/dist/generated/eve/attachment/turrets/index.js +0 -2
- package/dist/generated/eve/attachment/turrets/index.js.map +0 -1
- package/dist/generated/eve/child/EveChildBehaviorSystem.js +0 -357
- package/dist/generated/eve/child/EveChildBehaviorSystem.js.map +0 -1
- package/dist/generated/eve/child/EveChildBulletStorm.js.map +0 -1
- package/dist/generated/eve/child/EveChildLink.js.map +0 -1
- package/dist/generated/eve/child/EveChildSpherePin.js +0 -54
- package/dist/generated/eve/child/EveChildSpherePin.js.map +0 -1
- package/dist/generated/eve/child/behaviors/CollisionAvoidance.js +0 -85
- package/dist/generated/eve/child/behaviors/CollisionAvoidance.js.map +0 -1
- package/dist/generated/eve/child/behaviors/InclusionVolume.js +0 -104
- package/dist/generated/eve/child/behaviors/InclusionVolume.js.map +0 -1
- package/dist/generated/eve/child/behaviors/ProcessLifetime.js +0 -458
- package/dist/generated/eve/child/behaviors/ProcessLifetime.js.map +0 -1
- package/dist/generated/eve/child/behaviors/SplineTunnelGroup.js +0 -161
- package/dist/generated/eve/child/behaviors/SplineTunnelGroup.js.map +0 -1
- package/dist/generated/eve/child/behaviors/Wander.js +0 -92
- package/dist/generated/eve/child/behaviors/Wander.js.map +0 -1
- package/dist/generated/eve/child/behaviors/enums.js.map +0 -1
- package/dist/generated/eve/child/modifiers/EveChildModifierAttachToBone.js.map +0 -1
- package/dist/generated/eve/child/modifiers/EveChildModifierBillboard3D.js.map +0 -1
- package/dist/generated/eve/child/modifiers/EveChildModifierStretch.js.map +0 -1
- package/dist/generated/eve/child/modifiers/EveChildModifierTranslateWithCamera.js.map +0 -1
- package/dist/generated/eve/child/modifiers/index.js +0 -5
- package/dist/generated/eve/child/modifiers/index.js.map +0 -1
- package/dist/generated/eve/child/procedural/EveChildProceduralContainer.js.map +0 -1
- package/dist/generated/eve/child/procedural/index.js +0 -10
- package/dist/generated/eve/child/procedural/index.js.map +0 -1
- package/dist/generated/eve/child/procedural/selection/EveProceduralMethodAttributeMap.js.map +0 -1
- package/dist/generated/eve/child/procedural/selection/EveProceduralMethodAttributeMapParameter.js.map +0 -1
- package/dist/generated/eve/child/procedural/selection/EveProceduralMethodCycling.js.map +0 -1
- package/dist/generated/eve/child/procedural/selection/EveProceduralMethodCyclingParameter.js.map +0 -1
- package/dist/generated/eve/child/procedural/selection/EveProceduralMethodRandom.js.map +0 -1
- package/dist/generated/eve/child/procedural/selection/EveProceduralMethodRandomParameter.js.map +0 -1
- package/dist/generated/eve/child/procedural/selection/EveProceduralMethodThresholdParameter.js.map +0 -1
- package/dist/generated/eve/child/procedural/selection/EveProceduralMethodThresholds.js.map +0 -1
- package/dist/generated/eve/child/procedural/selection/index.js +0 -9
- package/dist/generated/eve/child/procedural/selection/index.js.map +0 -1
- package/dist/generated/eve/distribution/EveBaseDistributionMethod.js.map +0 -1
- package/dist/generated/eve/distribution/attributeModifiers/EveDistributionModifierProcessLifetime.js.map +0 -1
- package/dist/generated/eve/distribution/attributeModifiers/EveDistributionModifierScaleBySpaceObjectParent.js.map +0 -1
- package/dist/generated/eve/distribution/attributeModifiers/EveDistributionModifierTransformOffset.js.map +0 -1
- package/dist/generated/eve/distribution/attributeModifiers/enums.js.map +0 -1
- package/dist/generated/eve/distribution/attributeModifiers/index.js +0 -5
- package/dist/generated/eve/distribution/attributeModifiers/index.js.map +0 -1
- package/dist/generated/eve/distribution/index.js +0 -19
- package/dist/generated/eve/distribution/index.js.map +0 -1
- package/dist/generated/eve/distribution/placement/EveDistributionPlacementGeneratorLocators.js.map +0 -1
- package/dist/generated/eve/distribution/placement/EveDistributionPlacementGeneratorParentLocators.js.map +0 -1
- package/dist/generated/eve/distribution/placement/EveDistributionPlacementGeneratorVolume.js.map +0 -1
- package/dist/generated/eve/distribution/placement/index.js +0 -4
- package/dist/generated/eve/distribution/placement/index.js.map +0 -1
- package/dist/generated/eve/distribution/spawnModifiers/EveDistributionSpawnModifierLifeTimeOffset.js.map +0 -1
- package/dist/generated/eve/distribution/spawnModifiers/EveDistributionSpawnModifierRandomOffset.js.map +0 -1
- package/dist/generated/eve/distribution/spawnModifiers/EveDistributionSpawnModifierRandomRotation.js.map +0 -1
- package/dist/generated/eve/distribution/spawnModifiers/EveDistributionSpawnModifierRandomScale.js.map +0 -1
- package/dist/generated/eve/distribution/spawnModifiers/index.js +0 -5
- package/dist/generated/eve/distribution/spawnModifiers/index.js.map +0 -1
- package/dist/generated/eve/distribution/spawners/EveDistributionSpawnerBurst.js.map +0 -1
- package/dist/generated/eve/distribution/spawners/EveDistributionSpawnerControllerTrigger.js.map +0 -1
- package/dist/generated/eve/distribution/spawners/EveDistributionSpawnerInterval.js.map +0 -1
- package/dist/generated/eve/distribution/spawners/EveDistributionSpawnerTriggerPlane.js.map +0 -1
- package/dist/generated/eve/distribution/spawners/EveDistributionSpawnerTriggerSnake.js.map +0 -1
- package/dist/generated/eve/distribution/spawners/EveDistributionSpawnerTriggerSphere.js.map +0 -1
- package/dist/generated/eve/distribution/spawners/index.js +0 -7
- package/dist/generated/eve/distribution/spawners/index.js.map +0 -1
- package/dist/generated/eve/effect/EveLensflare.js.map +0 -1
- package/dist/generated/eve/effect/EveMultiEffect.js +0 -84
- package/dist/generated/eve/effect/EveMultiEffect.js.map +0 -1
- package/dist/generated/eve/effect/EveMultiEffectParameter.js +0 -45
- package/dist/generated/eve/effect/EveMultiEffectParameter.js.map +0 -1
- package/dist/generated/eve/fxAttributes/EveCameraFxAttributes.js +0 -47
- package/dist/generated/eve/fxAttributes/EveCameraFxAttributes.js.map +0 -1
- package/dist/generated/eve/fxAttributes/EveSpaceObjectFxAttributes.js +0 -63
- package/dist/generated/eve/fxAttributes/EveSpaceObjectFxAttributes.js.map +0 -1
- package/dist/generated/eve/fxAttributes/index.js +0 -3
- package/dist/generated/eve/fxAttributes/index.js.map +0 -1
- package/dist/generated/eve/overlays/EveMeshOverlayEffect.js +0 -58
- package/dist/generated/eve/overlays/EveMeshOverlayEffect.js.map +0 -1
- package/dist/generated/eve/overlays/index.js +0 -2
- package/dist/generated/eve/overlays/index.js.map +0 -1
- package/dist/generated/eve/perObjectData/EveBoosterSetPerObjectData.js +0 -66
- package/dist/generated/eve/perObjectData/EveBoosterSetPerObjectData.js.map +0 -1
- package/dist/generated/eve/perObjectData/EveChildBulletStormPerObjectData.js +0 -39
- package/dist/generated/eve/perObjectData/EveChildBulletStormPerObjectData.js.map +0 -1
- package/dist/generated/eve/perObjectData/EveDecalPerObjectData.js +0 -34
- package/dist/generated/eve/perObjectData/EveDecalPerObjectData.js.map +0 -1
- package/dist/generated/eve/perObjectData/EveSceneStaticParticlesPerObjectData.js +0 -32
- package/dist/generated/eve/perObjectData/EveSceneStaticParticlesPerObjectData.js.map +0 -1
- package/dist/generated/eve/perObjectData/index.js +0 -5
- package/dist/generated/eve/perObjectData/index.js.map +0 -1
- package/dist/generated/eve/scene/EveComponentCollection.js.map +0 -1
- package/dist/generated/eve/scene/EveComponentRegistry.js.map +0 -1
- package/dist/generated/eve/scene/EvePickingContext.js +0 -43
- package/dist/generated/eve/scene/EvePickingContext.js.map +0 -1
- package/dist/generated/eve/scene/EveSceneStaticParticles.js.map +0 -1
- package/dist/generated/eve/scene/TriShadowFrustum.js +0 -83
- package/dist/generated/eve/scene/TriShadowFrustum.js.map +0 -1
- package/dist/generated/eve/scene/TriShadowOrthoFrustum.js +0 -140
- package/dist/generated/eve/scene/TriShadowOrthoFrustum.js.map +0 -1
- package/dist/generated/eve/smartLights/attributeModifiers/EveSmartLightAttributeModifierBucket.js.map +0 -1
- package/dist/generated/eve/smartLights/attributeModifiers/EveSmartLightAttributeModifierCameraDependency.js.map +0 -1
- package/dist/generated/eve/smartLights/attributeModifiers/EveSmartLightAttributeModifierColor.js.map +0 -1
- package/dist/generated/eve/smartLights/attributeModifiers/EveSmartLightAttributeModifierControllerVariableListener.js.map +0 -1
- package/dist/generated/eve/smartLights/attributeModifiers/EveSmartLightAttributeModifierExpressionBucket.js.map +0 -1
- package/dist/generated/eve/smartLights/attributeModifiers/EveSmartLightAttributeModifierNoise.js.map +0 -1
- package/dist/generated/eve/smartLights/attributeModifiers/EveSmartLightBaseAttributeModifier.js.map +0 -1
- package/dist/generated/eve/smartLights/attributeModifiers/enums.js.map +0 -1
- package/dist/generated/eve/smartLights/attributeModifiers/index.js +0 -9
- package/dist/generated/eve/smartLights/attributeModifiers/index.js.map +0 -1
- package/dist/generated/eve/socket/EveSocketParameterBindingBase.js.map +0 -1
- package/dist/generated/eve/socket/EveSocketParameterBool.js.map +0 -1
- package/dist/generated/eve/socket/EveSocketParameterColor.js.map +0 -1
- package/dist/generated/eve/socket/EveSocketParameterFloat.js.map +0 -1
- package/dist/generated/eve/socket/EveSocketParameterInt.js.map +0 -1
- package/dist/generated/eve/socket/EveSocketParameterString.js.map +0 -1
- package/dist/generated/eve/socket/EveSocketParameterVector2.js.map +0 -1
- package/dist/generated/eve/socket/EveSocketParameterVector3.js.map +0 -1
- package/dist/generated/eve/socket/EveSocketParameterVector4.js.map +0 -1
- package/dist/generated/eve/socket/index.js +0 -10
- package/dist/generated/eve/socket/index.js.map +0 -1
- package/dist/generated/eve/spaceObject/EvePlanet.js.map +0 -1
- package/dist/generated/eve/spaceObject/EveShip2.js.map +0 -1
- package/dist/generated/eve/spaceObject/IEveSpaceObject2.js +0 -46
- package/dist/generated/eve/spaceObject/IEveSpaceObject2.js.map +0 -1
- package/dist/generated/eve/spaceObject/swarm/EveSwarmRenderable.js.map +0 -1
- package/dist/generated/eve/ui/EveLineSet.js.map +0 -1
- package/dist/generated/eve/ui/EveSpherePin.js.map +0 -1
- package/dist/generated/eve/ui/EveTacticalOverlayTrackObject.js +0 -44
- package/dist/generated/eve/ui/EveTacticalOverlayTrackObject.js.map +0 -1
- package/dist/generated/eve/ui/EveTacticalTrails.js.map +0 -1
- package/dist/generated/trinityCore/Tr2DynamicBinding.js +0 -58
- package/dist/generated/trinityCore/Tr2DynamicBinding.js.map +0 -1
- package/dist/generated/trinityCore/Tr2ExternalParameter.js +0 -164
- package/dist/generated/trinityCore/Tr2ExternalParameter.js.map +0 -1
- package/dist/generated/trinityCore/Tr2GrannyAnimation.js.map +0 -1
- package/dist/generated/trinityCore/Tr2ShLightingManager.js +0 -48
- package/dist/generated/trinityCore/Tr2ShLightingManager.js.map +0 -1
- package/dist/generated/trinityCore/TriValueBinding.js +0 -249
- package/dist/generated/trinityCore/TriValueBinding.js.map +0 -1
- package/dist/shader/Tr2Shader.js +0 -150
- package/dist/shader/Tr2Shader.js.map +0 -1
- package/dist/shader/reflection/Tr2EffectConstant.js +0 -61
- package/dist/shader/reflection/Tr2EffectConstant.js.map +0 -1
- package/dist/shader/reflection/Tr2EffectDefine.js +0 -34
- package/dist/shader/reflection/Tr2EffectDefine.js.map +0 -1
- package/dist/shader/reflection/Tr2EffectDescription.js +0 -34
- package/dist/shader/reflection/Tr2EffectDescription.js.map +0 -1
- package/dist/shader/reflection/Tr2EffectLibrary.js +0 -61
- package/dist/shader/reflection/Tr2EffectLibrary.js.map +0 -1
- package/dist/shader/reflection/Tr2EffectParameterAnnotation.js +0 -54
- package/dist/shader/reflection/Tr2EffectParameterAnnotation.js.map +0 -1
- package/dist/shader/reflection/Tr2EffectResource.js +0 -63
- package/dist/shader/reflection/Tr2EffectResource.js.map +0 -1
- package/dist/shader/reflection/Tr2EffectStageInput.js +0 -58
- package/dist/shader/reflection/Tr2EffectStageInput.js.map +0 -1
- package/dist/shader/reflection/Tr2EffectTechnique.js +0 -40
- package/dist/shader/reflection/Tr2EffectTechnique.js.map +0 -1
- package/dist/shader/reflection/Tr2Pass.js +0 -46
- package/dist/shader/reflection/Tr2Pass.js.map +0 -1
- package/dist/shader/sampler/Tr2SamplerSetup.js +0 -34
- package/dist/shader/sampler/Tr2SamplerSetup.js.map +0 -1
- package/dist/trinityCore/Tr2BindingVector3.js.map +0 -1
- package/dist/trinityCore/Tr2PyValueBinding.js.map +0 -1
- package/dist/trinityCore/rawData/RawDataStore.js +0 -232
- package/dist/trinityCore/rawData/RawDataStore.js.map +0 -1
- /package/dist/{generated/eve → eve}/distribution/attributeModifiers/enums.js +0 -0
- /package/dist/{generated/eve → eve}/smartLights/attributeModifiers/enums.js +0 -0
|
@@ -7,6 +7,12 @@ import { CjsModel } from '@carbonenginejs/runtime-utils/model';
|
|
|
7
7
|
import { io, type, carbon, impl, CjsSchema } from '@carbonenginejs/runtime-utils/schema';
|
|
8
8
|
|
|
9
9
|
let _initProto, _initClass, _init_audioEmitter, _init_extra_audioEmitter, _init_translationCurve, _init_extra_translationCurve, _init_rotationCurve, _init_extra_rotationCurve, _init_externalParameters, _init_extra_externalParameters, _init_rotation, _init_extra_rotation, _init_translation, _init_extra_translation, _init_mute, _init_extra_mute, _init_name, _init_extra_name, _init_display, _init_extra_display;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* A freely placed audio emitter driven by its own translation and rotation
|
|
13
|
+
* curves, so a sound can sit anywhere in a scene without being attached to an
|
|
14
|
+
* asset.
|
|
15
|
+
*/
|
|
10
16
|
let _AudioGameObject;
|
|
11
17
|
new class extends _identity {
|
|
12
18
|
static [class AudioGameObject extends CjsModel {
|
|
@@ -17,7 +23,7 @@ new class extends _identity {
|
|
|
17
23
|
} = _applyDecs2311(this, [type.define({
|
|
18
24
|
className: "AudioGameObject",
|
|
19
25
|
family: "eve"
|
|
20
|
-
})], [[[io, io.persist, void 0, type.objectRef("ITr2AudEmitter")], 16, "audioEmitter"], [[io, io.persist, void 0, type.model("ITriVectorFunction")], 16, "translationCurve"], [[io, io.persist, void 0, type.model("ITriQuaternionFunction")], 16, "rotationCurve"], [[io, io.persist, void 0, type.list("Tr2ExternalParameter")], 16, "externalParameters"], [[io, io.persist, type, type.quat], 16, "rotation"], [[io, io.persist, type, type.vec3], 16, "translation"], [[io, io.notify, io, io.readwrite, type, type.boolean], 16, "mute"], [[io, io.persist, type, type.string], 16, "name"], [[io, io.readwrite, type, type.boolean], 16, "display"], [[carbon, carbon.method, impl, impl.adapted], 18, "__init__"], [[carbon, carbon.method, impl, impl.implemented], 18, "GetAudioEmitter"], [[carbon, carbon.method, impl, impl.implemented], 18, "SetEmitterName"], [[carbon, carbon.method, impl, impl.implemented], 18, "PlayAudioEvent"]], 0, void 0, CjsModel));
|
|
26
|
+
})], [[[io, io.persist, void 0, type.objectRef("ITr2AudEmitter")], 16, "audioEmitter"], [[io, io.persist, void 0, type.model("ITriVectorFunction")], 16, "translationCurve"], [[io, io.persist, void 0, type.model("ITriQuaternionFunction")], 16, "rotationCurve"], [[io, io.persist, void 0, type.list("Tr2ExternalParameter")], 16, "externalParameters"], [[io, io.persist, type, type.quat], 16, "rotation"], [[io, io.persist, type, type.vec3], 16, "translation"], [[io, io.notify, io, io.readwrite, type, type.boolean], 16, "mute"], [[io, io.persist, type, type.string], 16, "name"], [[io, io.readwrite, type, type.boolean], 16, "display"], [[carbon, carbon.method, impl, impl.adapted], 18, "__init__"], [[carbon, carbon.method, impl, impl.implemented], 18, "GetAudioEmitter"], [[carbon, carbon.method, impl, impl.implemented], 18, "SetEmitterName"], [[carbon, carbon.method, impl, impl.implemented], 18, "PlayAudioEvent"], [[carbon, carbon.method, impl, impl.noop], 18, "GetPerObjectStructs"]], 0, void 0, CjsModel));
|
|
21
27
|
}
|
|
22
28
|
constructor(...args) {
|
|
23
29
|
super(...args);
|
|
@@ -33,6 +39,12 @@ new class extends _identity {
|
|
|
33
39
|
mute = (_init_extra_translation(this), _init_mute(this, false));
|
|
34
40
|
name = (_init_extra_mute(this), _init_name(this, ""));
|
|
35
41
|
display = (_init_extra_name(this), _init_display(this, true));
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Creates the emitter from the registered AudEmitter class if there is not one
|
|
45
|
+
* already, places it at the object's current world position, and reports
|
|
46
|
+
* whether the emitter accepted initialization.
|
|
47
|
+
*/
|
|
36
48
|
Initialize() {
|
|
37
49
|
if (this.audioEmitter) return true;
|
|
38
50
|
const Emitter = CjsSchema.GetConstructor("AudEmitter");
|
|
@@ -44,19 +56,35 @@ new class extends _identity {
|
|
|
44
56
|
this.#SetEmitterPosition(position);
|
|
45
57
|
return initialized !== false;
|
|
46
58
|
}
|
|
59
|
+
|
|
60
|
+
/** Post-hydration hook; runs Initialize. */
|
|
47
61
|
__init__() {
|
|
48
62
|
return this.Initialize();
|
|
49
63
|
}
|
|
64
|
+
|
|
65
|
+
/** The emitter this object drives, or null before Initialize has run. */
|
|
50
66
|
GetAudioEmitter() {
|
|
51
67
|
return this.audioEmitter;
|
|
52
68
|
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Renames the underlying emitter without touching this object's own name
|
|
72
|
+
* field.
|
|
73
|
+
*/
|
|
53
74
|
SetEmitterName(name) {
|
|
54
75
|
this.audioEmitter?.SetName?.(String(name));
|
|
55
76
|
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Sends a named event to the emitter and returns the identifier it hands back,
|
|
80
|
+
* or 0 when there is no emitter or no event name.
|
|
81
|
+
*/
|
|
56
82
|
PlayAudioEvent(eventName) {
|
|
57
83
|
if (!this.audioEmitter || !eventName) return 0;
|
|
58
84
|
return this.audioEmitter.SendEvent?.(String(eventName)) ?? 0;
|
|
59
85
|
}
|
|
86
|
+
|
|
87
|
+
/** Applies a changed mute flag or name to the emitter after a model update. */
|
|
60
88
|
OnModified(value = null) {
|
|
61
89
|
if (value === "mute" || value === this.mute) {
|
|
62
90
|
this.audioEmitter?.[this.mute ? "Mute" : "Unmute"]?.();
|
|
@@ -66,6 +94,11 @@ new class extends _identity {
|
|
|
66
94
|
}
|
|
67
95
|
return true;
|
|
68
96
|
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Re-evaluates the transform curves for the frame and pushes the resulting
|
|
100
|
+
* position and orientation to the emitter, unless the object is muted.
|
|
101
|
+
*/
|
|
69
102
|
UpdateSyncronous(updateContext = null) {
|
|
70
103
|
const time = updateContext?.GetTime?.() ?? updateContext?.time ?? 0;
|
|
71
104
|
this.UpdateWorldTransform(time);
|
|
@@ -73,28 +106,70 @@ new class extends _identity {
|
|
|
73
106
|
this.#SetEmitterPosition(this.GetWorldPosition(vec3.create()));
|
|
74
107
|
}
|
|
75
108
|
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* IEveSpaceObject2 asynchronous phase; the object does all of its work
|
|
112
|
+
* synchronously.
|
|
113
|
+
*/
|
|
76
114
|
UpdateAsyncronous(_updateContext = null) {}
|
|
115
|
+
|
|
116
|
+
/** IEveSpaceObject2 hook; an audio object has nothing to cull. */
|
|
77
117
|
UpdateVisibility(_updateContext, _parentTransform) {}
|
|
118
|
+
|
|
119
|
+
/** IEveSpaceObject2 hook; an audio object contributes no renderables. */
|
|
78
120
|
GetRenderables(_renderables, _impostors = null) {}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Reports a unit sphere at the object's world position, so scene traversal has something to place it by.
|
|
124
|
+
* @param {Array} out - caller-owned packed (x, y, z, radius), overwritten
|
|
125
|
+
*/
|
|
79
126
|
GetBoundingSphere(out = vec4.create()) {
|
|
80
127
|
const position = this.GetWorldPosition(vec3.create());
|
|
81
128
|
vec4.set(out, position[0], position[1], position[2], 1);
|
|
82
129
|
return true;
|
|
83
130
|
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Copies the transform stamped by the last UpdateWorldTransform.
|
|
134
|
+
* @param {Array} [out] - caller-owned mat4; a fresh matrix is allocated when omitted
|
|
135
|
+
* @returns {Array} out
|
|
136
|
+
*/
|
|
84
137
|
GetLocalToWorldTransform(out = mat4.create()) {
|
|
85
138
|
return mat4.copy(out, this.#worldTransform);
|
|
86
139
|
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Copies the translation of the transform stamped by the last UpdateWorldTransform.
|
|
143
|
+
* @param {Array} [out] - caller-owned vec3; a fresh vector is allocated when omitted
|
|
144
|
+
* @returns {Array} out
|
|
145
|
+
*/
|
|
87
146
|
GetWorldPosition(out = vec3.create()) {
|
|
88
147
|
return mat4.getTranslation(out, this.#worldTransform);
|
|
89
148
|
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Copies the normalized rotation of the transform stamped by the last UpdateWorldTransform.
|
|
152
|
+
* @param {Array} [out] - caller-owned quat; a fresh quaternion is allocated when omitted
|
|
153
|
+
* @returns {Array} out
|
|
154
|
+
*/
|
|
90
155
|
GetWorldRotation(out = quat.create()) {
|
|
91
156
|
return quat.normalize(out, mat4.getRotation(out, this.#worldTransform));
|
|
92
157
|
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Reports a fixed unit cube; the object has no geometry, but scene code
|
|
161
|
+
* expects a box.
|
|
162
|
+
*/
|
|
93
163
|
GetLocalBoundingBox(outMin, outMax) {
|
|
94
164
|
vec3.set(outMin, -1, -1, -1);
|
|
95
165
|
vec3.set(outMax, 1, 1, 1);
|
|
96
166
|
return true;
|
|
97
167
|
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Rebuilds the world transform from the authored translation and rotation after letting the transform curves overwrite them at the given time.
|
|
171
|
+
* @returns {Array} the object's own matrix, valid only until the next call
|
|
172
|
+
*/
|
|
98
173
|
UpdateWorldTransform(time) {
|
|
99
174
|
const translation = vec3.clone(this.translation);
|
|
100
175
|
const rotation = quat.clone(this.rotation);
|
|
@@ -103,6 +178,19 @@ new class extends _identity {
|
|
|
103
178
|
mat4.fromRotationTranslation(this.#worldTransform, rotation, translation);
|
|
104
179
|
return this.#worldTransform;
|
|
105
180
|
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* IEveSpaceObject2 hook (AudioGameObject.cpp:91-93): an audio game object is
|
|
184
|
+
* not rendered, so it contributes nothing to a child's per-object records and
|
|
185
|
+
* Carbon's body is empty. Present so a child parented to one can call it.
|
|
186
|
+
*/
|
|
187
|
+
GetPerObjectStructs(_vsData, _psData) {}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Pushes a position to the emitter together with the object's front and top
|
|
191
|
+
* axes rotated into world space, which is what gives the sound its
|
|
192
|
+
* orientation.
|
|
193
|
+
*/
|
|
106
194
|
#SetEmitterPosition(position) {
|
|
107
195
|
const rotation = this.GetWorldRotation(quat.create());
|
|
108
196
|
const front = vec3.transformQuat(vec3.create(), _AudioGameObject.FRONT, rotation);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AudioGameObject.js","sources":["../../../src/eve/AudioGameObject.js"],"sourcesContent":["// Ported/adapted from CarbonEngine (MIT, (c) 2026 CCP Games) - https://github.com/carbonengine/trinity\n// trinity/trinity/Eve/AudioGameObject.h\n// trinity/trinity/Eve/AudioGameObject.cpp\nimport { mat4 } from \"@carbonenginejs/runtime-utils/mat4\";\nimport { quat } from \"@carbonenginejs/runtime-utils/quat\";\nimport { vec3 } from \"@carbonenginejs/runtime-utils/vec3\";\nimport { vec4 } from \"@carbonenginejs/runtime-utils/vec4\";\nimport { CjsModel } from \"@carbonenginejs/runtime-utils/model\";\nimport { carbon, CjsSchema, impl, io, type } from \"@carbonenginejs/runtime-utils/schema\";\n\n\n@type.define({ className: \"AudioGameObject\", family: \"eve\" })\nexport class AudioGameObject extends CjsModel\n{\n #worldTransform = mat4.create();\n\n @io.persist\n @type.objectRef(\"ITr2AudEmitter\")\n audioEmitter = null;\n\n @io.persist\n @type.model(\"ITriVectorFunction\")\n translationCurve = null;\n\n @io.persist\n @type.model(\"ITriQuaternionFunction\")\n rotationCurve = null;\n\n @io.persist\n @type.list(\"Tr2ExternalParameter\")\n externalParameters = [];\n\n @io.persist\n @type.quat\n rotation = quat.create();\n\n @io.persist\n @type.vec3\n translation = vec3.create();\n\n @io.notify\n @io.readwrite\n @type.boolean\n mute = false;\n\n @io.persist\n @type.string\n name = \"\";\n\n @io.readwrite\n @type.boolean\n display = true;\n\n Initialize()\n {\n if (this.audioEmitter) return true;\n const Emitter = CjsSchema.GetConstructor(\"AudEmitter\");\n if (!Emitter) return false;\n this.audioEmitter = new Emitter();\n this.UpdateWorldTransform(0);\n const position = this.GetWorldPosition(vec3.create());\n const initialized = this.audioEmitter.Initialize?.(this.name || \"audio_object\", \"\", position);\n this.#SetEmitterPosition(position);\n return initialized !== false;\n }\n\n @carbon.method\n @impl.adapted\n __init__()\n {\n return this.Initialize();\n }\n\n @carbon.method\n @impl.implemented\n GetAudioEmitter()\n {\n return this.audioEmitter;\n }\n\n @carbon.method\n @impl.implemented\n SetEmitterName(name)\n {\n this.audioEmitter?.SetName?.(String(name));\n }\n\n @carbon.method\n @impl.implemented\n PlayAudioEvent(eventName)\n {\n if (!this.audioEmitter || !eventName) return 0;\n return this.audioEmitter.SendEvent?.(String(eventName)) ?? 0;\n }\n\n OnModified(value = null)\n {\n if (value === \"mute\" || value === this.mute)\n {\n this.audioEmitter?.[this.mute ? \"Mute\" : \"Unmute\"]?.();\n }\n if (value === \"name\" || value === this.name)\n {\n this.SetEmitterName(this.name || \"audio_object\");\n }\n return true;\n }\n\n UpdateSyncronous(updateContext = null)\n {\n const time = updateContext?.GetTime?.() ?? updateContext?.time ?? 0;\n this.UpdateWorldTransform(time);\n if (this.audioEmitter && !this.mute)\n {\n this.#SetEmitterPosition(this.GetWorldPosition(vec3.create()));\n }\n }\n\n UpdateAsyncronous(_updateContext = null)\n {\n }\n\n UpdateVisibility(_updateContext, _parentTransform)\n {\n }\n\n GetRenderables(_renderables, _impostors = null)\n {\n }\n\n GetBoundingSphere(out = vec4.create())\n {\n const position = this.GetWorldPosition(vec3.create());\n vec4.set(out, position[0], position[1], position[2], 1);\n return true;\n }\n\n GetLocalToWorldTransform(out = mat4.create())\n {\n return mat4.copy(out, this.#worldTransform);\n }\n\n GetWorldPosition(out = vec3.create())\n {\n return mat4.getTranslation(out, this.#worldTransform);\n }\n\n GetWorldRotation(out = quat.create())\n {\n return quat.normalize(out, mat4.getRotation(out, this.#worldTransform));\n }\n\n GetLocalBoundingBox(outMin, outMax)\n {\n vec3.set(outMin, -1, -1, -1);\n vec3.set(outMax, 1, 1, 1);\n return true;\n }\n\n UpdateWorldTransform(time)\n {\n const translation = vec3.clone(this.translation);\n const rotation = quat.clone(this.rotation);\n this.translationCurve?.Update?.(translation, time);\n this.rotationCurve?.Update?.(rotation, time);\n mat4.fromRotationTranslation(this.#worldTransform, rotation, translation);\n return this.#worldTransform;\n }\n\n #SetEmitterPosition(position)\n {\n const rotation = this.GetWorldRotation(quat.create());\n const front = vec3.transformQuat(vec3.create(), AudioGameObject.FRONT, rotation);\n const top = vec3.transformQuat(vec3.create(), AudioGameObject.TOP, rotation);\n this.audioEmitter?.SetPosition?.(front, top, position);\n }\n\n static FRONT = Object.freeze([0, 1, 0]);\n static TOP = Object.freeze([0, 0, 1]);\n}\n"],"names":["_AudioGameObject","_identity","AudioGameObject","CjsModel","e","_init_audioEmitter","_init_extra_audioEmitter","_init_translationCurve","_init_extra_translationCurve","_init_rotationCurve","_init_extra_rotationCurve","_init_externalParameters","_init_extra_externalParameters","_init_rotation","_init_extra_rotation","_init_translation","_init_extra_translation","_init_mute","_init_extra_mute","_init_name","_init_extra_name","_init_display","_init_extra_display","_initProto","c","_initClass","_applyDecs","type","define","className","family","io","persist","objectRef","model","list","quat","vec3","notify","readwrite","boolean","string","carbon","method","impl","adapted","implemented","constructor","args","mat4","create","audioEmitter","translationCurve","rotationCurve","externalParameters","rotation","translation","mute","name","display","Initialize","Emitter","CjsSchema","GetConstructor","UpdateWorldTransform","position","GetWorldPosition","initialized","__init__","GetAudioEmitter","SetEmitterName","SetName","String","PlayAudioEvent","eventName","SendEvent","OnModified","value","UpdateSyncronous","updateContext","time","GetTime","UpdateAsyncronous","_updateContext","UpdateVisibility","_parentTransform","GetRenderables","_renderables","_impostors","GetBoundingSphere","out","vec4","set","GetLocalToWorldTransform","copy","getTranslation","GetWorldRotation","normalize","getRotation","GetLocalBoundingBox","outMin","outMax","clone","Update","fromRotationTranslation","#SetEmitterPosition","front","transformQuat","FRONT","top","TOP","SetPosition","Object","freeze"],"mappings":";;;;;;;;;AAQyF,IAAAA;AAAA,IAAA,cAAAC,SAAA,CAAA;AAAA,EAAA,QAGzF,MAAAC,eAAA,SACqCC,QAAQ,CAC7C;AAAA,IAAA;AAAA,MAAA,CAAA;AAAAC,QAAAA,CAAA,GAAAC,kBAAA,EAAAC,wBAAA,EAAAC,sBAAA,EAAAC,4BAAA,EAAAC,mBAAA,EAAAC,yBAAA,EAAAC,wBAAA,EAAAC,8BAAA,EAAAC,cAAA,EAAAC,oBAAA,EAAAC,iBAAA,EAAAC,uBAAA,EAAAC,UAAA,EAAAC,gBAAA,EAAAC,UAAA,EAAAC,gBAAA,EAAAC,aAAA,EAAAC,mBAAA,EAAAC,UAAA,CAAA;QAAAC,CAAA,EAAA,CAAAxB,gBAAA,EAAAyB,UAAA;AAAA,OAAA,GAAAC,cAAA,CAAA,IAAA,EAAA,CAFCC,IAAI,CAACC,MAAM,CAAC;AAAEC,QAAAA,SAAS,EAAE,iBAAiB;AAAEC,QAAAA,MAAM,EAAE;AAAM,OAAC,CAAC,CAAA,EAAA,CAAA,CAAA,CAK1DC,EAAE,EAAFA,EAAE,CAACC,OAAO,EAAA,MAAA,EACVL,IAAI,CAACM,SAAS,CAAC,gBAAgB,CAAC,CAAA,EAAA,EAAA,EAAA,cAAA,CAAA,EAAA,CAAA,CAGhCF,EAAE,EAAFA,EAAE,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BAAmBiD,CAACxC,QAAQ,EAC5B;MACE,MAAMV,QAAQ,GAAG,IAAI,CAACyC,gBAAgB,CAAC5D,IAAI,CAACc,MAAM,EAAE,CAAC;AACrD,MAAA,MAAMwD,KAAK,GAAGrE,IAAI,CAACsE,aAAa,CAACtE,IAAI,CAACa,MAAM,EAAE,EAAEhD,gBAAe,CAAC0G,KAAK,EAAErD,QAAQ,CAAC;AAChF,MAAA,MAAMsD,GAAG,GAAGxE,IAAI,CAACsE,aAAa,CAACtE,IAAI,CAACa,MAAM,EAAE,EAAEhD,gBAAe,CAAC4G,GAAG,EAAEvD,QAAQ,CAAC;MAC5E,IAAI,CAACJ,YAAY,EAAE4D,WAAW,GAAGL,KAAK,EAAEG,GAAG,EAAE5C,QAAQ,CAAC;AACxD,IAAA;GAID;AAFQ2C,EAAAA,KAAK,GAAGI,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAChCH,EAAAA,GAAG,GAAGE,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;EAAClE,WAAAA,GAAA;IAAA,KAAA,CAAA/C,gBAAA,GAAAyB,UAAA,EAAA;AAAA,EAAA;AAAA,CAAA,EAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"AudioGameObject.js","sources":["../../../src/eve/AudioGameObject.js"],"sourcesContent":["// Ported/adapted from CarbonEngine (MIT, (c) 2026 CCP Games) - https://github.com/carbonengine/trinity\n// trinity/trinity/Eve/AudioGameObject.h\n// trinity/trinity/Eve/AudioGameObject.cpp\nimport { mat4 } from \"@carbonenginejs/runtime-utils/mat4\";\nimport { quat } from \"@carbonenginejs/runtime-utils/quat\";\nimport { vec3 } from \"@carbonenginejs/runtime-utils/vec3\";\nimport { vec4 } from \"@carbonenginejs/runtime-utils/vec4\";\nimport { CjsModel } from \"@carbonenginejs/runtime-utils/model\";\nimport { carbon, CjsSchema, impl, io, type } from \"@carbonenginejs/runtime-utils/schema\";\n\n\n/**\n * A freely placed audio emitter driven by its own translation and rotation\n * curves, so a sound can sit anywhere in a scene without being attached to an\n * asset.\n */\n@type.define({ className: \"AudioGameObject\", family: \"eve\" })\nexport class AudioGameObject extends CjsModel\n{\n #worldTransform = mat4.create();\n\n @io.persist\n @type.objectRef(\"ITr2AudEmitter\")\n audioEmitter = null;\n\n @io.persist\n @type.model(\"ITriVectorFunction\")\n translationCurve = null;\n\n @io.persist\n @type.model(\"ITriQuaternionFunction\")\n rotationCurve = null;\n\n @io.persist\n @type.list(\"Tr2ExternalParameter\")\n externalParameters = [];\n\n @io.persist\n @type.quat\n rotation = quat.create();\n\n @io.persist\n @type.vec3\n translation = vec3.create();\n\n @io.notify\n @io.readwrite\n @type.boolean\n mute = false;\n\n @io.persist\n @type.string\n name = \"\";\n\n @io.readwrite\n @type.boolean\n display = true;\n\n /**\n * Creates the emitter from the registered AudEmitter class if there is not one\n * already, places it at the object's current world position, and reports\n * whether the emitter accepted initialization.\n */\n Initialize()\n {\n if (this.audioEmitter) return true;\n const Emitter = CjsSchema.GetConstructor(\"AudEmitter\");\n if (!Emitter) return false;\n this.audioEmitter = new Emitter();\n this.UpdateWorldTransform(0);\n const position = this.GetWorldPosition(vec3.create());\n const initialized = this.audioEmitter.Initialize?.(this.name || \"audio_object\", \"\", position);\n this.#SetEmitterPosition(position);\n return initialized !== false;\n }\n\n /** Post-hydration hook; runs Initialize. */\n @carbon.method\n @impl.adapted\n __init__()\n {\n return this.Initialize();\n }\n\n /** The emitter this object drives, or null before Initialize has run. */\n @carbon.method\n @impl.implemented\n GetAudioEmitter()\n {\n return this.audioEmitter;\n }\n\n /**\n * Renames the underlying emitter without touching this object's own name\n * field.\n */\n @carbon.method\n @impl.implemented\n SetEmitterName(name)\n {\n this.audioEmitter?.SetName?.(String(name));\n }\n\n /**\n * Sends a named event to the emitter and returns the identifier it hands back,\n * or 0 when there is no emitter or no event name.\n */\n @carbon.method\n @impl.implemented\n PlayAudioEvent(eventName)\n {\n if (!this.audioEmitter || !eventName) return 0;\n return this.audioEmitter.SendEvent?.(String(eventName)) ?? 0;\n }\n\n /** Applies a changed mute flag or name to the emitter after a model update. */\n OnModified(value = null)\n {\n if (value === \"mute\" || value === this.mute)\n {\n this.audioEmitter?.[this.mute ? \"Mute\" : \"Unmute\"]?.();\n }\n if (value === \"name\" || value === this.name)\n {\n this.SetEmitterName(this.name || \"audio_object\");\n }\n return true;\n }\n\n /**\n * Re-evaluates the transform curves for the frame and pushes the resulting\n * position and orientation to the emitter, unless the object is muted.\n */\n UpdateSyncronous(updateContext = null)\n {\n const time = updateContext?.GetTime?.() ?? updateContext?.time ?? 0;\n this.UpdateWorldTransform(time);\n if (this.audioEmitter && !this.mute)\n {\n this.#SetEmitterPosition(this.GetWorldPosition(vec3.create()));\n }\n }\n\n /**\n * IEveSpaceObject2 asynchronous phase; the object does all of its work\n * synchronously.\n */\n UpdateAsyncronous(_updateContext = null)\n {\n }\n\n /** IEveSpaceObject2 hook; an audio object has nothing to cull. */\n UpdateVisibility(_updateContext, _parentTransform)\n {\n }\n\n /** IEveSpaceObject2 hook; an audio object contributes no renderables. */\n GetRenderables(_renderables, _impostors = null)\n {\n }\n\n /**\n * Reports a unit sphere at the object's world position, so scene traversal has something to place it by.\n * @param {Array} out - caller-owned packed (x, y, z, radius), overwritten\n */\n GetBoundingSphere(out = vec4.create())\n {\n const position = this.GetWorldPosition(vec3.create());\n vec4.set(out, position[0], position[1], position[2], 1);\n return true;\n }\n\n /**\n * Copies the transform stamped by the last UpdateWorldTransform.\n * @param {Array} [out] - caller-owned mat4; a fresh matrix is allocated when omitted\n * @returns {Array} out\n */\n GetLocalToWorldTransform(out = mat4.create())\n {\n return mat4.copy(out, this.#worldTransform);\n }\n\n /**\n * Copies the translation of the transform stamped by the last UpdateWorldTransform.\n * @param {Array} [out] - caller-owned vec3; a fresh vector is allocated when omitted\n * @returns {Array} out\n */\n GetWorldPosition(out = vec3.create())\n {\n return mat4.getTranslation(out, this.#worldTransform);\n }\n\n /**\n * Copies the normalized rotation of the transform stamped by the last UpdateWorldTransform.\n * @param {Array} [out] - caller-owned quat; a fresh quaternion is allocated when omitted\n * @returns {Array} out\n */\n GetWorldRotation(out = quat.create())\n {\n return quat.normalize(out, mat4.getRotation(out, this.#worldTransform));\n }\n\n /**\n * Reports a fixed unit cube; the object has no geometry, but scene code\n * expects a box.\n */\n GetLocalBoundingBox(outMin, outMax)\n {\n vec3.set(outMin, -1, -1, -1);\n vec3.set(outMax, 1, 1, 1);\n return true;\n }\n\n /**\n * Rebuilds the world transform from the authored translation and rotation after letting the transform curves overwrite them at the given time.\n * @returns {Array} the object's own matrix, valid only until the next call\n */\n UpdateWorldTransform(time)\n {\n const translation = vec3.clone(this.translation);\n const rotation = quat.clone(this.rotation);\n this.translationCurve?.Update?.(translation, time);\n this.rotationCurve?.Update?.(rotation, time);\n mat4.fromRotationTranslation(this.#worldTransform, rotation, translation);\n return this.#worldTransform;\n }\n\n /**\n * IEveSpaceObject2 hook (AudioGameObject.cpp:91-93): an audio game object is\n * not rendered, so it contributes nothing to a child's per-object records and\n * Carbon's body is empty. Present so a child parented to one can call it.\n */\n @carbon.method\n @impl.noop\n GetPerObjectStructs(_vsData, _psData)\n {\n }\n\n /**\n * Pushes a position to the emitter together with the object's front and top\n * axes rotated into world space, which is what gives the sound its\n * orientation.\n */\n #SetEmitterPosition(position)\n {\n const rotation = this.GetWorldRotation(quat.create());\n const front = vec3.transformQuat(vec3.create(), AudioGameObject.FRONT, rotation);\n const top = vec3.transformQuat(vec3.create(), AudioGameObject.TOP, rotation);\n this.audioEmitter?.SetPosition?.(front, top, position);\n }\n\n static FRONT = Object.freeze([0, 1, 0]);\n static TOP = Object.freeze([0, 0, 1]);\n}\n"],"names":["_AudioGameObject","_identity","AudioGameObject","CjsModel","e","_init_audioEmitter","_init_extra_audioEmitter","_init_translationCurve","_init_extra_translationCurve","_init_rotationCurve","_init_extra_rotationCurve","_init_externalParameters","_init_extra_externalParameters","_init_rotation","_init_extra_rotation","_init_translation","_init_extra_translation","_init_mute","_init_extra_mute","_init_name","_init_extra_name","_init_display","_init_extra_display","_initProto","c","_initClass","_applyDecs","type","define","className","family","io","persist","objectRef","model","list","quat","vec3","notify","readwrite","boolean","string","carbon","method","impl","adapted","implemented","noop","constructor","args","mat4","create","audioEmitter","translationCurve","rotationCurve","externalParameters","rotation","translation","mute","name","display","Initialize","Emitter","CjsSchema","GetConstructor","UpdateWorldTransform","position","GetWorldPosition","initialized","__init__","GetAudioEmitter","SetEmitterName","SetName","String","PlayAudioEvent","eventName","SendEvent","OnModified","value","UpdateSyncronous","updateContext","time","GetTime","UpdateAsyncronous","_updateContext","UpdateVisibility","_parentTransform","GetRenderables","_renderables","_impostors","GetBoundingSphere","out","vec4","set","GetLocalToWorldTransform","copy","getTranslation","GetWorldRotation","normalize","getRotation","GetLocalBoundingBox","outMin","outMax","clone","Update","fromRotationTranslation","GetPerObjectStructs","_vsData","_psData","#SetEmitterPosition","front","transformQuat","FRONT","top","TOP","SetPosition","Object","freeze"],"mappings":";;;;;;;;;;AAWA;AACA;AACA;AACA;AACA;AAJA,IAAAA;AAAA,IAAA,cAAAC,SAAA,CAAA;AAAA,EAAA,QAKA,MAAAC,eAAA,SACqCC,QAAQ,CAC7C;AAAA,IAAA;AAAA,MAAA,CAAA;AAAAC,QAAAA,CAAA,GAAAC,kBAAA,EAAAC,wBAAA,EAAAC,sBAAA,EAAAC,4BAAA,EAAAC,mBAAA,EAAAC,yBAAA,EAAAC,wBAAA,EAAAC,8BAAA,EAAAC,cAAA,EAAAC,oBAAA,EAAAC,iBAAA,EAAAC,uBAAA,EAAAC,UAAA,EAAAC,gBAAA,EAAAC,UAAA,EAAAC,gBAAA,EAAAC,aAAA,EAAAC,mBAAA,EAAAC,UAAA,CAAA;QAAAC,CAAA,EAAA,CAAAxB,gBAAA,EAAAyB,UAAA;AAAA,OAAA,GAAAC,cAAA,CAAA,IAAA,EAAA,CAFCC,IA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D,WAAW,GAAGL,KAAK,EAAEG,GAAG,EAAE/C,QAAQ,CAAC;AACxD,IAAA;GAID;AAFQ8C,EAAAA,KAAK,GAAGI,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAChCH,EAAAA,GAAG,GAAGE,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;EAACrE,WAAAA,GAAA;IAAA,KAAA,CAAAhD,gBAAA,GAAAyB,UAAA,EAAA;AAAA,EAAA;AAAA,CAAA,EAAA;;;;"}
|
|
@@ -4,6 +4,13 @@ import { CjsModel } from '@carbonenginejs/runtime-utils/model';
|
|
|
4
4
|
import { type } from '@carbonenginejs/runtime-utils/schema';
|
|
5
5
|
|
|
6
6
|
let _initClass, _init_locatorTarget, _init_extra_locatorTarget, _init_locatorDirection, _init_extra_locatorDirection, _init_locatorIndex, _init_extra_locatorIndex, _init_seek, _init_extra_seek, _init_deliver, _init_extra_deliver, _init_arrived, _init_extra_arrived, _init_timePassed, _init_extra_timePassed;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Per-agent scratch for the BackAndForth child behaviour: the locator the agent
|
|
10
|
+
* is travelling to, the direction it approaches from, and how far through the
|
|
11
|
+
* trip it is. The behaviour allocates one record per agent and rewrites it on
|
|
12
|
+
* every behaviour update.
|
|
13
|
+
*/
|
|
7
14
|
let _BackAndForthData;
|
|
8
15
|
class BackAndForthData extends CjsModel {
|
|
9
16
|
static {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BackAndForthData.js","sources":["../../../src/eve/BackAndForthData.js"],"sourcesContent":["// Source: E:\\carbonengine\\trinity\\trinity\\Eve\\SpaceObject\\Children\\Behaviors\\BackAndForth.h\nimport { vec3 } from \"@carbonenginejs/runtime-utils/vec3\";\nimport { CjsModel } from \"@carbonenginejs/runtime-utils/model\";\nimport { type } from \"@carbonenginejs/runtime-utils/schema\";\n\n\n@type.define({\n className: \"BackAndForthData\",\n family: \"eve/child/behaviors\"\n})\nexport class BackAndForthData extends CjsModel\n{\n @type.vec3\n locatorTarget = vec3.create();\n\n @type.vec3\n locatorDirection = vec3.create();\n\n @type.int32\n locatorIndex = -1;\n\n @type.boolean\n seek = true;\n\n @type.boolean\n deliver = false;\n\n @type.boolean\n arrived = true;\n\n @type.float32\n timePassed = 0;\n}\n"],"names":["_BackAndForthData","BackAndForthData","CjsModel","e","_init_locatorTarget","_init_extra_locatorTarget","_init_locatorDirection","_init_extra_locatorDirection","_init_locatorIndex","_init_extra_locatorIndex","_init_seek","_init_extra_seek","_init_deliver","_init_extra_deliver","_init_arrived","_init_extra_arrived","_init_timePassed","_init_extra_timePassed","c","_initClass","_applyDecs","type","define","className","family","vec3","int32","boolean","float32","constructor","args","locatorTarget","create","locatorDirection","locatorIndex","seek","deliver","arrived","timePassed"],"mappings":"
|
|
1
|
+
{"version":3,"file":"BackAndForthData.js","sources":["../../../src/eve/BackAndForthData.js"],"sourcesContent":["// Source: E:\\carbonengine\\trinity\\trinity\\Eve\\SpaceObject\\Children\\Behaviors\\BackAndForth.h\nimport { vec3 } from \"@carbonenginejs/runtime-utils/vec3\";\nimport { CjsModel } from \"@carbonenginejs/runtime-utils/model\";\nimport { type } from \"@carbonenginejs/runtime-utils/schema\";\n\n\n/**\n * Per-agent scratch for the BackAndForth child behaviour: the locator the agent\n * is travelling to, the direction it approaches from, and how far through the\n * trip it is. The behaviour allocates one record per agent and rewrites it on\n * every behaviour update.\n */\n@type.define({\n className: \"BackAndForthData\",\n family: \"eve/child/behaviors\"\n})\nexport class BackAndForthData extends CjsModel\n{\n @type.vec3\n locatorTarget = vec3.create();\n\n @type.vec3\n locatorDirection = vec3.create();\n\n @type.int32\n locatorIndex = -1;\n\n @type.boolean\n seek = true;\n\n @type.boolean\n deliver = false;\n\n @type.boolean\n arrived = true;\n\n @type.float32\n timePassed = 0;\n}\n"],"names":["_BackAndForthData","BackAndForthData","CjsModel","e","_init_locatorTarget","_init_extra_locatorTarget","_init_locatorDirection","_init_extra_locatorDirection","_init_locatorIndex","_init_extra_locatorIndex","_init_seek","_init_extra_seek","_init_deliver","_init_extra_deliver","_init_arrived","_init_extra_arrived","_init_timePassed","_init_extra_timePassed","c","_initClass","_applyDecs","type","define","className","family","vec3","int32","boolean","float32","constructor","args","locatorTarget","create","locatorDirection","locatorIndex","seek","deliver","arrived","timePassed"],"mappings":";;;;;;;AAMA;AACA;AACA;AACA;AACA;AACA;AALA,IAAAA;AAMA,MAAAC,gBAAA,SAIsCC,QAAQ,CAC9C;AAAA,EAAA;AAAA,IAAA,CAAA;MAAAC,CAAA,EAAA,CAAAC,mBAAA,EAAAC,yBAAA,EAAAC,sBAAA,EAAAC,4BAAA,EAAAC,kBAAA,EAAAC,wBAAA,EAAAC,UAAA,EAAAC,gBAAA,EAAAC,aAAA,EAAAC,mBAAA,EAAAC,aAAA,EAAAC,mBAAA,EAAAC,gBAAA,EAAAC,sBAAA,CAAA;MAAAC,CAAA,EAAA,CAAAlB,iBAAA,EAAAmB,UAAA;AAAA,KAAA,GAAAC,cAAA,CAAA,IAAA,EAAA,CALCC,IAAI,CAACC,MAAM,CAAC;AACXC,MAAAA,SAAS,EAAE,kBAAkB;AAC7BC,MAAAA,MAAM,EAAE;KACT,CAAC,MAGCH,IAAI,EAAJA,IAAI,CAACI,IAAI,2BAGTJ,IAAI,EAAJA,IAAI,CAACI,IAAI,8BAGTJ,IAAI,EAAJA,IAAI,CAACK,KAAK,0BAGVL,IAAI,EAAJA,IAAI,CAACM,OAAO,kBAGZN,IAAI,EAAJA,IAAI,CAACM,OAAO,qBAGZN,IAAI,EAAJA,IAAI,CAACM,OAAO,qBAGZN,IAAI,EAAJA,IAAI,CAACO,OAAO,kCApBuB1B,QAAQ,CAAA;AAAA;AAAA2B,EAAAA,WAAAA,CAAA,GAAAC,IAAA,EAAA;AAAA,IAAA,KAAA,CAAA,GAAAA,IAAA,CAAA;IAAAb,sBAAA,CAAA,IAAA,CAAA;AAAA,EAAA;AAG5Cc,EAAAA,aAAa,GAAA3B,mBAAA,CAAA,IAAA,EAAGqB,IAAI,CAACO,MAAM,EAAE,CAAA;EAG7BC,gBAAgB,IAAA5B,yBAAA,CAAA,IAAA,CAAA,EAAAC,sBAAA,OAAGmB,IAAI,CAACO,MAAM,EAAE,CAAA;AAGhCE,EAAAA,YAAY,IAAA3B,4BAAA,CAAA,IAAA,CAAA,EAAAC,kBAAA,CAAA,IAAA,EAAG,EAAE,CAAA;AAGjB2B,EAAAA,IAAI,IAAA1B,wBAAA,CAAA,IAAA,CAAA,EAAAC,UAAA,OAAG,IAAI,CAAA;AAGX0B,EAAAA,OAAO,IAAAzB,gBAAA,CAAA,IAAA,CAAA,EAAAC,aAAA,OAAG,KAAK,CAAA;AAGfyB,EAAAA,OAAO,IAAAxB,mBAAA,CAAA,IAAA,CAAA,EAAAC,aAAA,OAAG,IAAI,CAAA;AAGdwB,EAAAA,UAAU,IAAAvB,mBAAA,CAAA,IAAA,CAAA,EAAAC,gBAAA,OAAG,CAAC,CAAA;AAAC,EAAA;IAAAG,UAAA,EAAA;AAAA;AACjB;;;;"}
|
|
@@ -15,6 +15,12 @@ function createMinStdRandom(seed) {
|
|
|
15
15
|
return (state - 1) / (modulus - 1);
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Seed for a placement's random stream: the placement's own unique ID when the
|
|
21
|
+
* distribution wants a result that is stable across runs, otherwise the time
|
|
22
|
+
* seed shifted left by that ID.
|
|
23
|
+
*/
|
|
18
24
|
function getDistributionSeed(uniqueID, timeSeed, consistentRandom) {
|
|
19
25
|
const id = Number(uniqueID) >>> 0;
|
|
20
26
|
return consistentRandom ? id : Number(timeSeed) << id % 11 >>> 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CjsDistributionRandom.js","sources":["../../../src/eve/CjsDistributionRandom.js"],"sourcesContent":["/**\n * Carbon distribution helpers shared by the generated placement modifiers.\n * std::minstd_rand is Park-Miller with multiplier 48271 and modulus 2^31 - 1.\n */\nexport function createMinStdRandom(seed)\n{\n const modulus = 2147483647;\n let state = Math.trunc(seed) % modulus;\n if (state === 0)\n {\n state = 1;\n }\n else if (state < 0)\n {\n state += modulus;\n }\n\n return function next()\n {\n state = state * 48271 % modulus;\n return (state - 1) / (modulus - 1);\n };\n}\n\n\nexport function getDistributionSeed(uniqueID, timeSeed, consistentRandom)\n{\n const id = Number(uniqueID) >>> 0;\n return consistentRandom ? id : (Number(timeSeed) << (id % 11)) >>> 0;\n}\n\n\n/** Carbon math::RotationQuaternion(yaw, pitch, roll), with radian inputs. */\nexport function setYawPitchRoll(out, yaw, pitch, roll)\n{\n const sinYaw = Math.sin(yaw / 2);\n const cosYaw = Math.cos(yaw / 2);\n const sinPitch = Math.sin(pitch / 2);\n const cosPitch = Math.cos(pitch / 2);\n const sinRoll = Math.sin(roll / 2);\n const cosRoll = Math.cos(roll / 2);\n\n out[0] = sinYaw * cosPitch * sinRoll + cosYaw * sinPitch * cosRoll;\n out[1] = sinYaw * cosPitch * cosRoll - cosYaw * sinPitch * sinRoll;\n out[2] = cosYaw * cosPitch * sinRoll - sinYaw * sinPitch * cosRoll;\n out[3] = cosYaw * cosPitch * cosRoll + sinYaw * sinPitch * sinRoll;\n return out;\n}\n"],"names":["createMinStdRandom","seed","modulus","state","Math","trunc","next","getDistributionSeed","uniqueID","timeSeed","consistentRandom","id","Number","setYawPitchRoll","out","yaw","pitch","roll","sinYaw","sin","cosYaw","cos","sinPitch","cosPitch","sinRoll","cosRoll"],"mappings":"AAAA;AACA;AACA;AACA;AACO,SAASA,kBAAkBA,CAACC,IAAI,EACvC;EACE,MAAMC,OAAO,GAAG,UAAU;EAC1B,IAAIC,KAAK,GAAGC,IAAI,CAACC,KAAK,CAACJ,IAAI,CAAC,GAAGC,OAAO;EACtC,IAAIC,KAAK,KAAK,CAAC,EACf;AACEA,IAAAA,KAAK,GAAG,CAAC;AACX,EAAA,CAAC,MACI,IAAIA,KAAK,GAAG,CAAC,EAClB;AACEA,IAAAA,KAAK,IAAID,OAAO;AAClB,EAAA;EAEA,OAAO,SAASI,IAAIA,GACpB;AACEH,IAAAA,KAAK,GAAGA,KAAK,GAAG,KAAK,GAAGD,OAAO;IAC/B,OAAO,CAACC,KAAK,GAAG,CAAC,KAAKD,OAAO,GAAG,CAAC,CAAC;EACpC,CAAC;AACH;
|
|
1
|
+
{"version":3,"file":"CjsDistributionRandom.js","sources":["../../../src/eve/CjsDistributionRandom.js"],"sourcesContent":["/**\n * Carbon distribution helpers shared by the generated placement modifiers.\n * std::minstd_rand is Park-Miller with multiplier 48271 and modulus 2^31 - 1.\n */\nexport function createMinStdRandom(seed)\n{\n const modulus = 2147483647;\n let state = Math.trunc(seed) % modulus;\n if (state === 0)\n {\n state = 1;\n }\n else if (state < 0)\n {\n state += modulus;\n }\n\n return function next()\n {\n state = state * 48271 % modulus;\n return (state - 1) / (modulus - 1);\n };\n}\n\n\n/**\n * Seed for a placement's random stream: the placement's own unique ID when the\n * distribution wants a result that is stable across runs, otherwise the time\n * seed shifted left by that ID.\n */\nexport function getDistributionSeed(uniqueID, timeSeed, consistentRandom)\n{\n const id = Number(uniqueID) >>> 0;\n return consistentRandom ? id : (Number(timeSeed) << (id % 11)) >>> 0;\n}\n\n\n/** Carbon math::RotationQuaternion(yaw, pitch, roll), with radian inputs. */\nexport function setYawPitchRoll(out, yaw, pitch, roll)\n{\n const sinYaw = Math.sin(yaw / 2);\n const cosYaw = Math.cos(yaw / 2);\n const sinPitch = Math.sin(pitch / 2);\n const cosPitch = Math.cos(pitch / 2);\n const sinRoll = Math.sin(roll / 2);\n const cosRoll = Math.cos(roll / 2);\n\n out[0] = sinYaw * cosPitch * sinRoll + cosYaw * sinPitch * cosRoll;\n out[1] = sinYaw * cosPitch * cosRoll - cosYaw * sinPitch * sinRoll;\n out[2] = cosYaw * cosPitch * sinRoll - sinYaw * sinPitch * cosRoll;\n out[3] = cosYaw * cosPitch * cosRoll + sinYaw * sinPitch * sinRoll;\n return out;\n}\n"],"names":["createMinStdRandom","seed","modulus","state","Math","trunc","next","getDistributionSeed","uniqueID","timeSeed","consistentRandom","id","Number","setYawPitchRoll","out","yaw","pitch","roll","sinYaw","sin","cosYaw","cos","sinPitch","cosPitch","sinRoll","cosRoll"],"mappings":"AAAA;AACA;AACA;AACA;AACO,SAASA,kBAAkBA,CAACC,IAAI,EACvC;EACE,MAAMC,OAAO,GAAG,UAAU;EAC1B,IAAIC,KAAK,GAAGC,IAAI,CAACC,KAAK,CAACJ,IAAI,CAAC,GAAGC,OAAO;EACtC,IAAIC,KAAK,KAAK,CAAC,EACf;AACEA,IAAAA,KAAK,GAAG,CAAC;AACX,EAAA,CAAC,MACI,IAAIA,KAAK,GAAG,CAAC,EAClB;AACEA,IAAAA,KAAK,IAAID,OAAO;AAClB,EAAA;EAEA,OAAO,SAASI,IAAIA,GACpB;AACEH,IAAAA,KAAK,GAAGA,KAAK,GAAG,KAAK,GAAGD,OAAO;IAC/B,OAAO,CAACC,KAAK,GAAG,CAAC,KAAKD,OAAO,GAAG,CAAC,CAAC;EACpC,CAAC;AACH;;AAGA;AACA;AACA;AACA;AACA;AACO,SAASK,mBAAmBA,CAACC,QAAQ,EAAEC,QAAQ,EAAEC,gBAAgB,EACxE;AACE,EAAA,MAAMC,EAAE,GAAGC,MAAM,CAACJ,QAAQ,CAAC,KAAK,CAAC;AACjC,EAAA,OAAOE,gBAAgB,GAAGC,EAAE,GAAIC,MAAM,CAACH,QAAQ,CAAC,IAAKE,EAAE,GAAG,EAAG,KAAM,CAAC;AACtE;;AAGA;AACO,SAASE,eAAeA,CAACC,GAAG,EAAEC,GAAG,EAAEC,KAAK,EAAEC,IAAI,EACrD;EACE,MAAMC,MAAM,GAAGd,IAAI,CAACe,GAAG,CAACJ,GAAG,GAAG,CAAC,CAAC;EAChC,MAAMK,MAAM,GAAGhB,IAAI,CAACiB,GAAG,CAACN,GAAG,GAAG,CAAC,CAAC;EAChC,MAAMO,QAAQ,GAAGlB,IAAI,CAACe,GAAG,CAACH,KAAK,GAAG,CAAC,CAAC;EACpC,MAAMO,QAAQ,GAAGnB,IAAI,CAACiB,GAAG,CAACL,KAAK,GAAG,CAAC,CAAC;EACpC,MAAMQ,OAAO,GAAGpB,IAAI,CAACe,GAAG,CAACF,IAAI,GAAG,CAAC,CAAC;EAClC,MAAMQ,OAAO,GAAGrB,IAAI,CAACiB,GAAG,CAACJ,IAAI,GAAG,CAAC,CAAC;AAElCH,EAAAA,GAAG,CAAC,CAAC,CAAC,GAAGI,MAAM,GAAGK,QAAQ,GAAGC,OAAO,GAAGJ,MAAM,GAAGE,QAAQ,GAAGG,OAAO;AAClEX,EAAAA,GAAG,CAAC,CAAC,CAAC,GAAGI,MAAM,GAAGK,QAAQ,GAAGE,OAAO,GAAGL,MAAM,GAAGE,QAAQ,GAAGE,OAAO;AAClEV,EAAAA,GAAG,CAAC,CAAC,CAAC,GAAGM,MAAM,GAAGG,QAAQ,GAAGC,OAAO,GAAGN,MAAM,GAAGI,QAAQ,GAAGG,OAAO;AAClEX,EAAAA,GAAG,CAAC,CAAC,CAAC,GAAGM,MAAM,GAAGG,QAAQ,GAAGE,OAAO,GAAGP,MAAM,GAAGI,QAAQ,GAAGE,OAAO;AAClE,EAAA,OAAOV,GAAG;AACZ;;;;"}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
// Source: E:\carbonengine\trinity\trinity\Eve\SpaceObject\Utils\EveThrottleable.cpp
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* The next-update clock behind EveThrottleable, held outside the schema so
|
|
5
|
+
* throttling state is never serialized or exported.
|
|
6
|
+
*/
|
|
3
7
|
class CjsEveThrottleableState {
|
|
4
8
|
#nextUpdateTime = 0;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Reports whether the host should skip this update; when it should not, the host's update frequency is recomputed from the detail level and the next allowed time is scheduled.
|
|
12
|
+
* @param {Object} host - the EveThrottleable supplying updateThrottle and the min/max frequency bounds, and receiving currentUpdateFrequency
|
|
13
|
+
* @param {Number} [normalizedUpdateFrequency] - 0..1 detail level interpolating between the host's min and max frequency
|
|
14
|
+
* @returns {Boolean} true to skip this update
|
|
15
|
+
*/
|
|
5
16
|
ShouldSkipUpdate(host, normalizedUpdateFrequency = 0.5, currentTime) {
|
|
6
17
|
if (!host.updateThrottle) {
|
|
7
18
|
return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CjsEveThrottleableState.js","sources":["../../../src/eve/CjsEveThrottleableState.js"],"sourcesContent":["// Source: E:\\carbonengine\\trinity\\trinity\\Eve\\SpaceObject\\Utils\\EveThrottleable.cpp\n\nexport class CjsEveThrottleableState\n{\n #nextUpdateTime = 0;\n\n ShouldSkipUpdate(host, normalizedUpdateFrequency = 0.5, currentTime)\n {\n if (!host.updateThrottle)\n {\n return false;\n }\n if (currentTime < this.#nextUpdateTime)\n {\n return true;\n }\n const updateFrequency = normalizedUpdateFrequency * (host.maxUpdateFrequency - host.minUpdateFrequency) + host.minUpdateFrequency;\n host.currentUpdateFrequency = Math.max(updateFrequency, 0.1);\n this.#nextUpdateTime = currentTime + 1 / host.currentUpdateFrequency;\n return false;\n }\n}\n"],"names":["CjsEveThrottleableState","ShouldSkipUpdate","host","normalizedUpdateFrequency","currentTime","updateThrottle","updateFrequency","maxUpdateFrequency","minUpdateFrequency","currentUpdateFrequency","Math","max"],"mappings":"AAAA;;
|
|
1
|
+
{"version":3,"file":"CjsEveThrottleableState.js","sources":["../../../src/eve/CjsEveThrottleableState.js"],"sourcesContent":["// Source: E:\\carbonengine\\trinity\\trinity\\Eve\\SpaceObject\\Utils\\EveThrottleable.cpp\n\n/**\n * The next-update clock behind EveThrottleable, held outside the schema so\n * throttling state is never serialized or exported.\n */\nexport class CjsEveThrottleableState\n{\n #nextUpdateTime = 0;\n\n /**\n * Reports whether the host should skip this update; when it should not, the host's update frequency is recomputed from the detail level and the next allowed time is scheduled.\n * @param {Object} host - the EveThrottleable supplying updateThrottle and the min/max frequency bounds, and receiving currentUpdateFrequency\n * @param {Number} [normalizedUpdateFrequency] - 0..1 detail level interpolating between the host's min and max frequency\n * @returns {Boolean} true to skip this update\n */\n ShouldSkipUpdate(host, normalizedUpdateFrequency = 0.5, currentTime)\n {\n if (!host.updateThrottle)\n {\n return false;\n }\n if (currentTime < this.#nextUpdateTime)\n {\n return true;\n }\n const updateFrequency = normalizedUpdateFrequency * (host.maxUpdateFrequency - host.minUpdateFrequency) + host.minUpdateFrequency;\n host.currentUpdateFrequency = Math.max(updateFrequency, 0.1);\n this.#nextUpdateTime = currentTime + 1 / host.currentUpdateFrequency;\n return false;\n }\n}\n"],"names":["CjsEveThrottleableState","ShouldSkipUpdate","host","normalizedUpdateFrequency","currentTime","updateThrottle","updateFrequency","maxUpdateFrequency","minUpdateFrequency","currentUpdateFrequency","Math","max"],"mappings":"AAAA;;AAEA;AACA;AACA;AACA;AACO,MAAMA,uBAAuB,CACpC;EACE,eAAe,GAAG,CAAC;;AAEnB;AACF;AACA;AACA;AACA;AACA;EACEC,gBAAgBA,CAACC,IAAI,EAAEC,yBAAyB,GAAG,GAAG,EAAEC,WAAW,EACnE;AACE,IAAA,IAAI,CAACF,IAAI,CAACG,cAAc,EACxB;AACE,MAAA,OAAO,KAAK;AACd,IAAA;AACA,IAAA,IAAID,WAAW,GAAG,IAAI,CAAC,eAAe,EACtC;AACE,MAAA,OAAO,IAAI;AACb,IAAA;AACA,IAAA,MAAME,eAAe,GAAGH,yBAAyB,IAAID,IAAI,CAACK,kBAAkB,GAAGL,IAAI,CAACM,kBAAkB,CAAC,GAAGN,IAAI,CAACM,kBAAkB;IACjIN,IAAI,CAACO,sBAAsB,GAAGC,IAAI,CAACC,GAAG,CAACL,eAAe,EAAE,GAAG,CAAC;IAC5D,IAAI,CAAC,eAAe,GAAGF,WAAW,GAAG,CAAC,GAAGF,IAAI,CAACO,sBAAsB;AACpE,IAAA,OAAO,KAAK;AACd,EAAA;AACF;;;;"}
|
|
@@ -5,6 +5,13 @@ import { CjsModel } from '@carbonenginejs/runtime-utils/model';
|
|
|
5
5
|
import { type } from '@carbonenginejs/runtime-utils/schema';
|
|
6
6
|
|
|
7
7
|
let _initClass, _init_spaceObjectParent, _init_extra_spaceObjectParent, _init_childParent, _init_extra_childParent, _init_boneCount, _init_extra_boneCount, _init_bones, _init_extra_bones, _init_ownerMaxSpeed, _init_extra_ownerMaxSpeed, _init_activationStrength, _init_extra_activationStrength, _init_controllerUpdateFrequency, _init_extra_controllerUpdateFrequency, _init_isVisible, _init_extra_isVisible, _init_localToWorldTransform, _init_extra_localToWorldTransform, _init_worldVelocity, _init_extra_worldVelocity;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The parameter block a parent passes down when updating a space-object child:
|
|
11
|
+
* the parent references, the parent's bone array, the child's world placement,
|
|
12
|
+
* and the owner's motion and activation state. Rebuilt by the parent for each
|
|
13
|
+
* child update, so nothing in it survives the call.
|
|
14
|
+
*/
|
|
8
15
|
let _EveChildUpdateParams;
|
|
9
16
|
class EveChildUpdateParams extends CjsModel {
|
|
10
17
|
static {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EveChildUpdateParams.js","sources":["../../../src/eve/EveChildUpdateParams.js"],"sourcesContent":["// Source: E:\\carbonengine\\trinity\\trinity\\Eve\\SpaceObject\\Children\\IEveSpaceObjectChild.h\nimport { mat4 } from \"@carbonenginejs/runtime-utils/mat4\";\nimport { vec3 } from \"@carbonenginejs/runtime-utils/vec3\";\nimport { CjsModel } from \"@carbonenginejs/runtime-utils/model\";\nimport { type } from \"@carbonenginejs/runtime-utils/schema\";\n\n\n@type.define({\n className: \"EveChildUpdateParams\",\n family: \"eve/child\"\n})\nexport class EveChildUpdateParams extends CjsModel\n{\n @type.objectRef(\"IEveSpaceObject2\")\n spaceObjectParent = null;\n\n @type.objectRef(\"IEveSpaceObjectChild\")\n childParent = null;\n\n @type.uint64\n boneCount = 0;\n\n @type.objectRef(\"Float4x3\")\n bones = null;\n\n @type.float32\n ownerMaxSpeed = 0;\n\n @type.float32\n activationStrength = 1;\n\n @type.float32\n controllerUpdateFrequency = 0.5;\n\n @type.boolean\n isVisible = true;\n\n @type.mat4\n localToWorldTransform = mat4.create();\n\n @type.vec3\n worldVelocity = vec3.create();\n}\n"],"names":["_EveChildUpdateParams","EveChildUpdateParams","CjsModel","e","_init_spaceObjectParent","_init_extra_spaceObjectParent","_init_childParent","_init_extra_childParent","_init_boneCount","_init_extra_boneCount","_init_bones","_init_extra_bones","_init_ownerMaxSpeed","_init_extra_ownerMaxSpeed","_init_activationStrength","_init_extra_activationStrength","_init_controllerUpdateFrequency","_init_extra_controllerUpdateFrequency","_init_isVisible","_init_extra_isVisible","_init_localToWorldTransform","_init_extra_localToWorldTransform","_init_worldVelocity","_init_extra_worldVelocity","c","_initClass","_applyDecs","type","define","className","family","objectRef","uint64","float32","boolean","mat4","vec3","constructor","args","spaceObjectParent","childParent","boneCount","bones","ownerMaxSpeed","activationStrength","controllerUpdateFrequency","isVisible","localToWorldTransform","create","worldVelocity"],"mappings":"
|
|
1
|
+
{"version":3,"file":"EveChildUpdateParams.js","sources":["../../../src/eve/EveChildUpdateParams.js"],"sourcesContent":["// Source: E:\\carbonengine\\trinity\\trinity\\Eve\\SpaceObject\\Children\\IEveSpaceObjectChild.h\nimport { mat4 } from \"@carbonenginejs/runtime-utils/mat4\";\nimport { vec3 } from \"@carbonenginejs/runtime-utils/vec3\";\nimport { CjsModel } from \"@carbonenginejs/runtime-utils/model\";\nimport { type } from \"@carbonenginejs/runtime-utils/schema\";\n\n\n/**\n * The parameter block a parent passes down when updating a space-object child:\n * the parent references, the parent's bone array, the child's world placement,\n * and the owner's motion and activation state. Rebuilt by the parent for each\n * child update, so nothing in it survives the call.\n */\n@type.define({\n className: \"EveChildUpdateParams\",\n family: \"eve/child\"\n})\nexport class EveChildUpdateParams extends CjsModel\n{\n @type.objectRef(\"IEveSpaceObject2\")\n spaceObjectParent = null;\n\n @type.objectRef(\"IEveSpaceObjectChild\")\n childParent = null;\n\n @type.uint64\n boneCount = 0;\n\n @type.objectRef(\"Float4x3\")\n bones = null;\n\n @type.float32\n ownerMaxSpeed = 0;\n\n @type.float32\n activationStrength = 1;\n\n @type.float32\n controllerUpdateFrequency = 0.5;\n\n @type.boolean\n isVisible = true;\n\n @type.mat4\n localToWorldTransform = mat4.create();\n\n @type.vec3\n worldVelocity = vec3.create();\n}\n"],"names":["_EveChildUpdateParams","EveChildUpdateParams","CjsModel","e","_init_spaceObjectParent","_init_extra_spaceObjectParent","_init_childParent","_init_extra_childParent","_init_boneCount","_init_extra_boneCount","_init_bones","_init_extra_bones","_init_ownerMaxSpeed","_init_extra_ownerMaxSpeed","_init_activationStrength","_init_extra_activationStrength","_init_controllerUpdateFrequency","_init_extra_controllerUpdateFrequency","_init_isVisible","_init_extra_isVisible","_init_localToWorldTransform","_init_extra_localToWorldTransform","_init_worldVelocity","_init_extra_worldVelocity","c","_initClass","_applyDecs","type","define","className","family","objectRef","uint64","float32","boolean","mat4","vec3","constructor","args","spaceObjectParent","childParent","boneCount","bones","ownerMaxSpeed","activationStrength","controllerUpdateFrequency","isVisible","localToWorldTransform","create","worldVelocity"],"mappings":";;;;;;;;AAOA;AACA;AACA;AACA;AACA;AACA;AALA,IAAAA;AAMA,MAAAC,oBAAA,SAI0CC,QAAQ,CAClD;AAAA,EAAA;AAAA,IAAA,CAAA;AAAAC,MAAAA,CAAA,GAAAC,uBAAA,EAAAC,6BAAA,EAAAC,iBAAA,EAAAC,uBAAA,EAAAC,eAAA,EAAAC,qBAAA,EAAAC,WAAA,EAAAC,iBAAA,EAAAC,mBAAA,EAAAC,yBAAA,EAAAC,wBAAA,EAAAC,8BAAA,EAAAC,+BAAA,EAAAC,qCAAA,EAAAC,eAAA,EAAAC,qBAAA,EAAAC,2BAAA,EAAAC,iCAAA,EAAAC,mBAAA,EAAAC,y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;AAGxBoC,EAAAA,WAAW,IAAAnC,6BAAA,CAAA,IAAA,CAAA,EAAAC,iBAAA,OAAG,IAAI,CAAA;AAGlBmC,EAAAA,SAAS,IAAAlC,uBAAA,CAAA,IAAA,CAAA,EAAAC,eAAA,OAAG,CAAC,CAAA;AAGbkC,EAAAA,KAAK,IAAAjC,qBAAA,CAAA,IAAA,CAAA,EAAAC,WAAA,OAAG,IAAI,CAAA;AAGZiC,EAAAA,aAAa,IAAAhC,iBAAA,CAAA,IAAA,CAAA,EAAAC,mBAAA,OAAG,CAAC,CAAA;AAGjBgC,EAAAA,kBAAkB,IAAA/B,yBAAA,CAAA,IAAA,CAAA,EAAAC,wBAAA,OAAG,CAAC,CAAA;AAGtB+B,EAAAA,yBAAyB,IAAA9B,8BAAA,CAAA,IAAA,CAAA,EAAAC,+BAAA,OAAG,GAAG,CAAA;AAG/B8B,EAAAA,SAAS,IAAA7B,qCAAA,CAAA,IAAA,CAAA,EAAAC,eAAA,OAAG,IAAI,CAAA;EAGhB6B,qBAAqB,IAAA5B,qBAAA,CAAA,IAAA,CAAA,EAAAC,2BAAA,OAAGe,IAAI,CAACa,MAAM,EAAE,CAAA;EAGrCC,aAAa,IAAA5B,iCAAA,CAAA,IAAA,CAAA,EAAAC,mBAAA,OAAGc,IAAI,CAACY,MAAM,EAAE,CAAA;AAAC,EAAA;IAAAvB,UAAA,EAAA;AAAA;AAChC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EveComponentTypes.js","sources":["../../../src/eve/EveComponentTypes.js"],"sourcesContent":["// Source: E:\\carbonengine\\trinity\\trinity\\Eve\\EveEntity.h\n// Source: E:\\carbonengine\\trinity\\trinity\\Eve\\EveEntity.cpp\n// Shared component-name vocabulary for the EveComponentRegistry. Carbon binds\n// each registry collection to a compile-time interface through\n// REGISTER_COMPONENT_TYPE(name, interface); JavaScript has no template\n// specialization, so the verbatim name strings are the load-bearing contract.\nimport { ReflectionMode, ReflectionSetting } from \"../generated/eve/enums.js\";\n\nexport { ReflectionMode, ReflectionSetting };\n\n/**\n * The nine Carbon component-name strings (VERBATIM). Each entry cites the\n * REGISTER_COMPONENT_TYPE declaration that binds the name to its interface.\n */\nexport const EveComponentType = Object.freeze({\n /** ITr2Renderable (ITr2Renderable.h:58). */\n ReflectionRenderable: \"ReflectionRenderable\",\n /** ITr2VolumetricRenderable (ITr2VolumetricRenderable.h:55). */\n VolumetricRenderable: \"VolumetricRenderable\",\n /** ITr2MeshMorph (ITr2MeshMorph.h:14). */\n MeshMorph: \"MeshMorph\",\n /** ITr2PostProcessOwner (PostProcess/ITr2PostProcessOwner.h:15). */\n PostProcessOwner: \"PostProcessOwner\",\n /** IEveInstanceMeshProvider (Eve/EveInstancedMeshManager.h:273). */\n InstancedMeshProvider: \"InstancedMeshProvider\",\n /** ITr2LightOwner (Lights/ITr2LightOwner.h:18). */\n LightOwner: \"LightOwner\",\n /** ITr2FroxelFogSettings (Tr2VolumetricsRenderer.h:57). */\n FroxelFogSettings: \"FroxelFogSettings\",\n /** IEveShadowCaster (Eve/IEveShadowCaster.h:164). */\n ShadowCaster: \"ShadowCaster\",\n /** IEveLightingOverride (EveChildLightingOverride.h:35). */\n EveLightingOverride: \"EveLightingOverride\"\n});\n\n/**\n * Required duck methods per component name: each Carbon interface's\n * pure-virtual surface (methods Carbon gives default implementations - e.g.\n * ITr2Renderable::IsVisible, ITr2LightOwner::AddLight/ClearLights,\n * IEveShadowCaster::PushRtGeometry/MarkRtDirty/IsShadowCastingDirty and the\n * sphere-overload IsCastingShadow - are not required). Consumed fail-closed by\n * EveComponentRegistry.RegisterComponent.\n */\nexport const EveComponentRequiredMethods = Object.freeze({\n /** ITr2Renderable.h:47-57 pure virtuals. */\n ReflectionRenderable: Object.freeze([\"GetBatches\", \"HasTransparentBatches\", \"GetSortValue\", \"GetPerObjectData\"]),\n /** ITr2VolumetricRenderable.h:44-51 pure virtuals. */\n VolumetricRenderable: Object.freeze([\n \"GetSortValue\",\n \"GetVolumetricBatches\",\n \"UpdateVolumetricLightmap\",\n \"SetSceneInformation\",\n \"GetVolumetricShadowBatches\",\n \"GetVolumetricShadowInfo\",\n \"PrepareCloudShadowMap\",\n \"SetCloudShadowMapHandle\"\n ]),\n /** ITr2MeshMorph.h:11. */\n MeshMorph: Object.freeze([\"UpdateMeshMorphs\"]),\n /** PostProcess/ITr2PostProcessOwner.h:12. */\n PostProcessOwner: Object.freeze([\"GetPostProcessAttributes\"]),\n /** Eve/EveInstancedMeshManager.h:270. */\n InstancedMeshProvider: Object.freeze([\"AddMeshesToManager\"]),\n /** Lights/ITr2LightOwner.h:13. */\n LightOwner: Object.freeze([\"GetLights\"]),\n /** Tr2VolumetricsRenderer.h:55. */\n FroxelFogSettings: Object.freeze([\"GetFroxelFogSettings\"]),\n /** Eve/IEveShadowCaster.h:143-149 pure virtuals. */\n ShadowCaster: Object.freeze([\"IsCastingShadow\", \"GetShadowBatches\", \"GetShadowPerObjectData\"]),\n /** EveChildLightingOverride.h:31. */\n EveLightingOverride: Object.freeze([\"GetOverrides\"])\n});\n\n// Carbon's global reflection knob g_eveReflectionMode (scene setting\n// \"eveReflectionSetting\"). CARBON QUIRK: EveSpaceScene.cpp:112 initializes the\n// global with the WRONG enum - EntityComponents::REFLECT_NEVER (== 3), which\n// read as a ReflectionSetting is REFLECTION_SETTING_HIGH - so Carbon's shipped\n// default is effectively HIGH. The port keeps the shipped behavior by\n// defaulting to REFLECTION_SETTING_HIGH directly.\nlet eveReflectionSetting = ReflectionSetting.REFLECTION_SETTING_HIGH;\n\n/**\n * Reads the module-level reflection setting (Carbon g_eveReflectionMode).\n * @returns {Number} a ReflectionSetting value\n */\nexport function GetReflectionSetting()\n{\n return eveReflectionSetting;\n}\n\n/**\n * Stamps the module-level reflection setting (Carbon TRI_REGISTER_SETTING\n * \"eveReflectionSetting\", EveSpaceScene.cpp:113).\n * @param {Number} setting - a ReflectionSetting value\n */\nexport function SetReflectionSetting(setting)\n{\n eveReflectionSetting = setting;\n}\n\n/**\n * Carbon EntityComponents::ShouldReflect (EveEntity.cpp:13-33): whether an\n * entity with the given per-entity ReflectionMode registers as\n * \"ReflectionRenderable\" under the current global ReflectionSetting.\n * @param {Number} mode - a ReflectionMode value\n * @returns {Boolean}\n */\nexport function ShouldReflect(mode)\n{\n if (eveReflectionSetting === ReflectionSetting.REFLECTION_SETTING_OFF)\n {\n return false;\n }\n\n switch (mode)\n {\n case ReflectionMode.REFLECT_NEVER:\n return false;\n case ReflectionMode.REFLECT_LOW_MEDIUM_HIGH:\n return true;\n case ReflectionMode.REFLECT_MEDIUM_AND_HIGH:\n // Carbon: \"we have either medium, high or highest settings\".\n return eveReflectionSetting !== ReflectionSetting.REFLECTION_SETTING_LOW;\n case ReflectionMode.REFLECT_HIGH:\n return eveReflectionSetting === ReflectionSetting.REFLECTION_SETTING_HIGH ||\n eveReflectionSetting === ReflectionSetting.REFLECTION_SETTING_ULTRA;\n default:\n return false;\n }\n}\n"],"names":["EveComponentType","Object","freeze","ReflectionRenderable","VolumetricRenderable","MeshMorph","PostProcessOwner","InstancedMeshProvider","LightOwner","FroxelFogSettings","ShadowCaster","EveLightingOverride","EveComponentRequiredMethods","eveReflectionSetting","ReflectionSetting","REFLECTION_SETTING_HIGH","GetReflectionSetting","SetReflectionSetting","setting","ShouldReflect","mode","REFLECTION_SETTING_OFF","ReflectionMode","REFLECT_NEVER","REFLECT_LOW_MEDIUM_HIGH","REFLECT_MEDIUM_AND_HIGH","REFLECTION_SETTING_LOW","REFLECT_HIGH","REFLECTION_SETTING_ULTRA"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;AAKA;AACA;AACA;AACA;MACaA,gBAAgB,GAAGC,MAAM,CAACC,MAAM,CAAC;AAC5C;AACAC,EAAAA,oBAAoB,EAAE,sBAAsB;
|
|
1
|
+
{"version":3,"file":"EveComponentTypes.js","sources":["../../../src/eve/EveComponentTypes.js"],"sourcesContent":["// Source: E:\\carbonengine\\trinity\\trinity\\Eve\\EveEntity.h\n// Source: E:\\carbonengine\\trinity\\trinity\\Eve\\EveEntity.cpp\n// Shared component-name vocabulary for the EveComponentRegistry. Carbon binds\n// each registry collection to a compile-time interface through\n// REGISTER_COMPONENT_TYPE(name, interface); JavaScript has no template\n// specialization, so the verbatim name strings are the load-bearing contract.\nimport { ReflectionMode, ReflectionSetting } from \"../generated/eve/enums.js\";\n\nexport { ReflectionMode, ReflectionSetting };\n\n/**\n * The nine Carbon component-name strings (VERBATIM). Each entry cites the\n * REGISTER_COMPONENT_TYPE declaration that binds the name to its interface.\n */\nexport const EveComponentType = Object.freeze({\n /** ITr2Renderable (ITr2Renderable.h:58). */\n ReflectionRenderable: \"ReflectionRenderable\",\n\n /** ITr2VolumetricRenderable (ITr2VolumetricRenderable.h:55). */\n VolumetricRenderable: \"VolumetricRenderable\",\n\n /** ITr2MeshMorph (ITr2MeshMorph.h:14). */\n MeshMorph: \"MeshMorph\",\n\n /** ITr2PostProcessOwner (PostProcess/ITr2PostProcessOwner.h:15). */\n PostProcessOwner: \"PostProcessOwner\",\n\n /** IEveInstanceMeshProvider (Eve/EveInstancedMeshManager.h:273). */\n InstancedMeshProvider: \"InstancedMeshProvider\",\n\n /** ITr2LightOwner (Lights/ITr2LightOwner.h:18). */\n LightOwner: \"LightOwner\",\n\n /** ITr2FroxelFogSettings (Tr2VolumetricsRenderer.h:57). */\n FroxelFogSettings: \"FroxelFogSettings\",\n\n /** IEveShadowCaster (Eve/IEveShadowCaster.h:164). */\n ShadowCaster: \"ShadowCaster\",\n\n /** IEveLightingOverride (EveChildLightingOverride.h:35). */\n EveLightingOverride: \"EveLightingOverride\"\n});\n\n/**\n * Required duck methods per component name: each Carbon interface's\n * pure-virtual surface (methods Carbon gives default implementations - e.g.\n * ITr2Renderable::IsVisible, ITr2LightOwner::AddLight/ClearLights,\n * IEveShadowCaster::PushRtGeometry/MarkRtDirty/IsShadowCastingDirty and the\n * sphere-overload IsCastingShadow - are not required). Consumed fail-closed by\n * EveComponentRegistry.RegisterComponent.\n */\nexport const EveComponentRequiredMethods = Object.freeze({\n /** ITr2Renderable.h:47-57 pure virtuals. */\n ReflectionRenderable: Object.freeze([\"GetBatches\", \"HasTransparentBatches\", \"GetSortValue\", \"GetPerObjectData\"]),\n\n /** ITr2VolumetricRenderable.h:44-51 pure virtuals. */\n VolumetricRenderable: Object.freeze([\n \"GetSortValue\",\n \"GetVolumetricBatches\",\n \"UpdateVolumetricLightmap\",\n \"SetSceneInformation\",\n \"GetVolumetricShadowBatches\",\n \"GetVolumetricShadowInfo\",\n \"PrepareCloudShadowMap\",\n \"SetCloudShadowMapHandle\"\n ]),\n\n /** ITr2MeshMorph.h:11. */\n MeshMorph: Object.freeze([\"UpdateMeshMorphs\"]),\n\n /** PostProcess/ITr2PostProcessOwner.h:12. */\n PostProcessOwner: Object.freeze([\"GetPostProcessAttributes\"]),\n\n /** Eve/EveInstancedMeshManager.h:270. */\n InstancedMeshProvider: Object.freeze([\"AddMeshesToManager\"]),\n\n /** Lights/ITr2LightOwner.h:13. */\n LightOwner: Object.freeze([\"GetLights\"]),\n\n /** Tr2VolumetricsRenderer.h:55. */\n FroxelFogSettings: Object.freeze([\"GetFroxelFogSettings\"]),\n\n /** Eve/IEveShadowCaster.h:143-149 pure virtuals. */\n ShadowCaster: Object.freeze([\"IsCastingShadow\", \"GetShadowBatches\", \"GetShadowPerObjectData\"]),\n\n /** EveChildLightingOverride.h:31. */\n EveLightingOverride: Object.freeze([\"GetOverrides\"])\n});\n\n// Carbon's global reflection knob g_eveReflectionMode (scene setting\n// \"eveReflectionSetting\"). CARBON QUIRK: EveSpaceScene.cpp:112 initializes the\n// global with the WRONG enum - EntityComponents::REFLECT_NEVER (== 3), which\n// read as a ReflectionSetting is REFLECTION_SETTING_HIGH - so Carbon's shipped\n// default is effectively HIGH. The port keeps the shipped behavior by\n// defaulting to REFLECTION_SETTING_HIGH directly.\nlet eveReflectionSetting = ReflectionSetting.REFLECTION_SETTING_HIGH;\n\n/**\n * Reads the module-level reflection setting (Carbon g_eveReflectionMode).\n * @returns {Number} a ReflectionSetting value\n */\nexport function GetReflectionSetting()\n{\n return eveReflectionSetting;\n}\n\n/**\n * Stamps the module-level reflection setting (Carbon TRI_REGISTER_SETTING\n * \"eveReflectionSetting\", EveSpaceScene.cpp:113).\n * @param {Number} setting - a ReflectionSetting value\n */\nexport function SetReflectionSetting(setting)\n{\n eveReflectionSetting = setting;\n}\n\n/**\n * Carbon EntityComponents::ShouldReflect (EveEntity.cpp:13-33): whether an\n * entity with the given per-entity ReflectionMode registers as\n * \"ReflectionRenderable\" under the current global ReflectionSetting.\n * @param {Number} mode - a ReflectionMode value\n * @returns {Boolean}\n */\nexport function ShouldReflect(mode)\n{\n if (eveReflectionSetting === ReflectionSetting.REFLECTION_SETTING_OFF)\n {\n return false;\n }\n\n switch (mode)\n {\n case ReflectionMode.REFLECT_NEVER:\n return false;\n case ReflectionMode.REFLECT_LOW_MEDIUM_HIGH:\n return true;\n case ReflectionMode.REFLECT_MEDIUM_AND_HIGH:\n // Carbon: \"we have either medium, high or highest settings\".\n return eveReflectionSetting !== ReflectionSetting.REFLECTION_SETTING_LOW;\n case ReflectionMode.REFLECT_HIGH:\n return eveReflectionSetting === ReflectionSetting.REFLECTION_SETTING_HIGH ||\n eveReflectionSetting === ReflectionSetting.REFLECTION_SETTING_ULTRA;\n default:\n return false;\n }\n}\n"],"names":["EveComponentType","Object","freeze","ReflectionRenderable","VolumetricRenderable","MeshMorph","PostProcessOwner","InstancedMeshProvider","LightOwner","FroxelFogSettings","ShadowCaster","EveLightingOverride","EveComponentRequiredMethods","eveReflectionSetting","ReflectionSetting","REFLECTION_SETTING_HIGH","GetReflectionSetting","SetReflectionSetting","setting","ShouldReflect","mode","REFLECTION_SETTING_OFF","ReflectionMode","REFLECT_NEVER","REFLECT_LOW_MEDIUM_HIGH","REFLECT_MEDIUM_AND_HIGH","REFLECTION_SETTING_LOW","REFLECT_HIGH","REFLECTION_SETTING_ULTRA"],"mappings":";;AA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AAsB,CAAC,CAAC;AAE1D;AACAQ,EAAAA,YAAY,EAAET,MAAM,CAACC,MAAM,CAAC,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,wBAAwB,CAAC,CAAC;AAE9F;AACAS,EAAAA,mBAAmB,EAAEV,MAAM,CAACC,MAAM,CAAC,CAAC,cAAc,CAAC;AACrD,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,IAAIW,oBAAoB,GAAGC,iBAAiB,CAACC,uBAAuB;;AAEpE;AACA;AACA;AACA;AACO,SAASC,oBAAoBA,GACpC;AACE,EAAA,OAAOH,oBAAoB;AAC7B;;AAEA;AACA;AACA;AACA;AACA;AACO,SAASI,oBAAoBA,CAACC,OAAO,EAC5C;AACEL,EAAAA,oBAAoB,GAAGK,OAAO;AAChC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,aAAaA,CAACC,IAAI,EAClC;AACE,EAAA,IAAIP,oBAAoB,KAAKC,iBAAiB,CAACO,sBAAsB,EACrE;AACE,IAAA,OAAO,KAAK;AACd,EAAA;AAEA,EAAA,QAAQD,IAAI;IAEV,KAAKE,cAAc,CAACC,aAAa;AAC/B,MAAA,OAAO,KAAK;IACd,KAAKD,cAAc,CAACE,uBAAuB;AACzC,MAAA,OAAO,IAAI;IACb,KAAKF,cAAc,CAACG,uBAAuB;AACzC;AACA,MAAA,OAAOZ,oBAAoB,KAAKC,iBAAiB,CAACY,sBAAsB;IAC1E,KAAKJ,cAAc,CAACK,YAAY;MAC9B,OAAOd,oBAAoB,KAAKC,iBAAiB,CAACC,uBAAuB,IACvEF,oBAAoB,KAAKC,iBAAiB,CAACc,wBAAwB;AACvE,IAAA;AACE,MAAA,OAAO,KAAK;AAChB;AACF;;;;"}
|
|
@@ -7,6 +7,11 @@ import { CjsModel } from '@carbonenginejs/runtime-utils/model';
|
|
|
7
7
|
import { io, type, carbon, impl } from '@carbonenginejs/runtime-utils/schema';
|
|
8
8
|
|
|
9
9
|
let _initProto, _initStatic, _initClass, _init_clampU, _init_extra_clampU, _init_clampV, _init_extra_clampV, _init_position, _init_extra_position, _init_scaling, _init_extra_scaling, _init_rotation, _init_extra_rotation, _init_materialIndex, _init_extra_materialIndex, _init_isMirrored, _init_extra_isMirrored, _init_targetMaterials, _init_extra_targetMaterials;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* One oriented box projected onto a hull that replaces a source material with a
|
|
13
|
+
* chosen blend of target materials inside it.
|
|
14
|
+
*/
|
|
10
15
|
let _EveCustomMask;
|
|
11
16
|
new class extends _identity {
|
|
12
17
|
static [class EveCustomMask extends CjsModel {
|
|
@@ -32,6 +37,12 @@ new class extends _identity {
|
|
|
32
37
|
materialIndex = (_init_extra_rotation(this), _init_materialIndex(this, 0));
|
|
33
38
|
isMirrored = (_init_extra_materialIndex(this), _init_isMirrored(this, false));
|
|
34
39
|
targetMaterials = (_init_extra_isMirrored(this), _init_targetMaterials(this, vec4.fromValues(1, 1, 1, 1)));
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Assigns the mask's placement, mirroring, UV clamping, source material index
|
|
43
|
+
* and target material weights in one call, substituting neutral defaults for
|
|
44
|
+
* any argument that is missing.
|
|
45
|
+
*/
|
|
35
46
|
Setup(position, scaling, rotation, isMirrored, clampU, clampV, sourceMaterialID, targets) {
|
|
36
47
|
vec3.copy(this.position, position || _EveCustomMask.#zero);
|
|
37
48
|
vec3.copy(this.scaling, scaling || _EveCustomMask.#one);
|
|
@@ -43,60 +54,80 @@ new class extends _identity {
|
|
|
43
54
|
vec4.copy(this.targetMaterials, targets || _EveCustomMask.#one4);
|
|
44
55
|
return true;
|
|
45
56
|
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Builds the box to draw when visualising this mask: the mask placement with its extents scaled by the owner's radius and flattened along X.
|
|
60
|
+
* @param {Array} [out] - caller-owned mat4; a fresh matrix is allocated when omitted
|
|
61
|
+
* @returns {Array} out
|
|
62
|
+
*/
|
|
46
63
|
GetDebugDrawMatrix(out = mat4.create(), objectRadius = 0) {
|
|
47
64
|
const radius = Number(objectRadius) || 0;
|
|
48
65
|
const scale = vec3.fromValues(0.1 * radius, this.scaling[1] * radius, this.scaling[2] * radius);
|
|
49
66
|
return mat4.fromRotationTranslationScale(out, this.rotation, this.position, scale);
|
|
50
67
|
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Writes this mask into one of the two custom-mask slots of the per-object value structs: the transposed inverse placement plus the enable and mirror flags for the vertex stage, and the source material ID, target weights and UV clamps for the pixel stage. These are CPU-side value records; nothing is uploaded here.
|
|
71
|
+
* @param {Number} index - custom-mask slot, 0 or 1
|
|
72
|
+
* @returns {Boolean} false for an out-of-range slot, a missing struct, or a placement that cannot be inverted
|
|
73
|
+
*/
|
|
51
74
|
FillPerObjectData(index, vsData, psData) {
|
|
52
75
|
if (!_EveCustomMask.#isValidSlot(index) || !vsData || !psData) {
|
|
53
76
|
return false;
|
|
54
77
|
}
|
|
78
|
+
// Carbon TransformationMatrix(scaling, rotation, position); gl takes
|
|
79
|
+
// (rotation, translation, scale) - the same matrix, different argument order.
|
|
55
80
|
const transform = mat4.fromRotationTranslationScale(mat4.create(), this.rotation, this.position, this.scaling);
|
|
56
81
|
const inverse = mat4.invert(mat4.create(), transform);
|
|
57
82
|
if (!inverse) {
|
|
58
83
|
return false;
|
|
59
84
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
85
|
+
// Carbon stores Transpose(invCustomMaskTransform); SetAndTranspose performs
|
|
86
|
+
// that, so the LOGICAL inverse is what gets passed.
|
|
87
|
+
vsData.SetAndTransposeIndex("customMaskMatrix", index, inverse);
|
|
88
|
+
vsData.SetIndex("customMaskData", index, [1, this.isMirrored ? 1 : 0, 0, 0]);
|
|
89
|
+
psData.SetIndex("customMaskMaterialIDs", index, [this.materialIndex, 0, 0, 0]);
|
|
90
|
+
psData.SetIndex("customMaskTargets", index, this.targetMaterials);
|
|
91
|
+
|
|
92
|
+
// customMaskClamps is ONE vec4 shared by both slots: slot n owns lanes
|
|
93
|
+
// 2n and 2n+1 (EveCustomMask.cpp:80-81).
|
|
94
|
+
const clamps = psData.Get("customMaskClamps");
|
|
95
|
+
clamps[index * 2] = this.clampU ? 1 : 0;
|
|
96
|
+
clamps[index * 2 + 1] = this.clampV ? 1 : 0;
|
|
69
97
|
return true;
|
|
70
98
|
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Clears a custom-mask slot in the per-object value structs so the slot contributes nothing; the UV clamp values are left as they were.
|
|
102
|
+
* @param {Number} index - custom-mask slot, 0 or 1
|
|
103
|
+
* @returns {Boolean} false for an out-of-range slot or a missing struct
|
|
104
|
+
*/
|
|
71
105
|
static ZeroPerObjectData(index, vsData, psData) {
|
|
72
106
|
if (!_EveCustomMask.#isValidSlot(index) || !vsData || !psData) {
|
|
73
107
|
return false;
|
|
74
108
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
109
|
+
// Carbon quirk (EveCustomMask.cpp:88-93): the zeroing path clears the
|
|
110
|
+
// matrix, data, material IDs and targets but NOT customMaskClamps, so a
|
|
111
|
+
// slot that stops being filled keeps its last clamp lanes. Reproduced.
|
|
112
|
+
vsData.SetAndTransposeIndex("customMaskMatrix", index, _EveCustomMask.#identity);
|
|
113
|
+
vsData.SetIndex("customMaskData", index, _EveCustomMask.#zero4);
|
|
114
|
+
psData.SetIndex("customMaskMaterialIDs", index, _EveCustomMask.#zero4);
|
|
115
|
+
psData.SetIndex("customMaskTargets", index, _EveCustomMask.#zero4);
|
|
79
116
|
return true;
|
|
80
117
|
}
|
|
118
|
+
|
|
119
|
+
/** Whether an index addresses one of the two custom-mask slots. */
|
|
120
|
+
|
|
121
|
+
/** A zeroed vec4, for the slot-clearing writes. */
|
|
122
|
+
|
|
123
|
+
/** Identity, for the cleared custom-mask matrix slot. */
|
|
81
124
|
}];
|
|
82
125
|
CUSTOM_MASK_COUNT = 2;
|
|
83
126
|
#isValidSlot(index) {
|
|
84
127
|
return Number.isInteger(index) && index >= 0 && index < _EveCustomMask.CUSTOM_MASK_COUNT;
|
|
85
128
|
}
|
|
86
|
-
#
|
|
87
|
-
|
|
88
|
-
throw new TypeError("EveCustomMask requires a fixed customMaskMatrix array");
|
|
89
|
-
}
|
|
90
|
-
if (!slots[index] || slots[index].length !== 16) slots[index] = mat4.create();
|
|
91
|
-
return slots[index];
|
|
92
|
-
}
|
|
93
|
-
#vec4Slot(slots, index) {
|
|
94
|
-
if (!Array.isArray(slots)) {
|
|
95
|
-
throw new TypeError("EveCustomMask requires a fixed custom-mask vec4 array");
|
|
96
|
-
}
|
|
97
|
-
if (!slots[index] || slots[index].length !== 4) slots[index] = vec4.create();
|
|
98
|
-
return slots[index];
|
|
99
|
-
}
|
|
129
|
+
#zero4 = vec4.create();
|
|
130
|
+
#identity = mat4.create();
|
|
100
131
|
#zero = vec3.create();
|
|
101
132
|
#one = vec3.fromValues(1, 1, 1);
|
|
102
133
|
#identityRotation = quat.create();
|