@woosh/meep-engine 2.165.6 → 2.165.7
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/editor/tools/v2/GizmoNode.d.ts +21 -0
- package/editor/tools/v2/GizmoNode.d.ts.map +1 -0
- package/editor/tools/v2/TransformControls.d.ts +87 -20
- package/editor/tools/v2/TransformControls.d.ts.map +1 -0
- package/editor/tools/v2/TransformControlsGizmo.d.ts +22 -0
- package/editor/tools/v2/TransformControlsGizmo.d.ts.map +1 -0
- package/editor/tools/v2/TransformControlsPlane.d.ts +6 -0
- package/editor/tools/v2/TransformControlsPlane.d.ts.map +1 -0
- package/editor/tools/v2/TranslateHelperGeometry.d.ts +6 -0
- package/editor/tools/v2/TranslateHelperGeometry.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/core/binary/data_view/DataType2DataViewReaders.d.ts +8 -12
- package/src/core/binary/data_view/DataType2DataViewReaders.d.ts.map +1 -1
- package/src/core/binary/data_view/DataType2DataViewWriters.d.ts +8 -12
- package/src/core/binary/data_view/DataType2DataViewWriters.d.ts.map +1 -1
- package/src/core/binary/data_view/DataViewStructAccessor.d.ts +39 -18
- package/src/core/binary/type/BinaryDataType.d.ts +15 -15
- package/src/core/binary/type/DataType2TypedArrayConstructorMapping.d.ts +7 -11
- package/src/core/binary/type/DataType2TypedArrayConstructorMapping.d.ts.map +1 -1
- package/src/core/binary/type/DataTypeByteSizes.d.ts +7 -13
- package/src/core/binary/type/DataTypeByteSizes.d.ts.map +1 -1
- package/src/core/binary/type/DataTypeIndices.d.ts +8 -11
- package/src/core/binary/type/DataTypeIndices.d.ts.map +1 -1
- package/src/core/cache/Cache.d.ts +226 -56
- package/src/core/cache/Cache.d.ts.map +1 -1
- package/src/core/cache/LoadingCache.d.ts +72 -23
- package/src/core/collection/Stack.d.ts +2 -2
- package/src/core/collection/array/array_copy.d.ts +12 -7
- package/src/core/collection/array/computeHashArray.d.ts +9 -1
- package/src/core/collection/array/isArrayEqualStrict.d.ts +8 -1
- package/src/core/collection/array/isArraysEqualWithComparator.d.ts +10 -1
- package/src/core/collection/array/iterator/ArrayIteratorRandom.d.ts +3 -1
- package/src/core/collection/array/iterator/ArrayIteratorRandom.d.ts.map +1 -1
- package/src/core/collection/list/List.d.ts +334 -45
- package/src/core/collection/list/List.d.ts.map +1 -1
- package/src/core/collection/list/ListForwarder.d.ts +37 -18
- package/src/core/collection/map/HashMap.d.ts +199 -40
- package/src/core/collection/queue/Deque.d.ts +113 -37
- package/src/core/collection/set/ArraySet.d.ts +87 -26
- package/src/core/collection/set/HashSet.d.ts +66 -33
- package/src/core/collection/set/HashSet.d.ts.map +1 -1
- package/src/core/collection/table/bind/TableRecord.d.ts +21 -20
- package/src/core/color/Color.d.ts +1 -2
- package/src/core/color/Color.d.ts.map +1 -1
- package/src/core/events/signal/Signal.d.ts +210 -57
- package/src/core/events/signal/signal_filter.d.ts +1 -1
- package/src/core/fsm/simple/SimpleStateMachine.d.ts +83 -27
- package/src/core/fsm/simple/SimpleStateMachineDescription.d.ts +90 -21
- package/src/core/geom/2d/aabb/AABB2.d.ts +335 -51
- package/src/core/geom/2d/quad-tree/QuadTreeDatum.d.ts +1 -6
- package/src/core/geom/2d/quad-tree/QuadTreeDatum.d.ts.map +1 -1
- package/src/core/geom/2d/quad-tree/QuadTreeNode.d.ts +1 -2
- package/src/core/geom/2d/quad-tree/QuadTreeNode.d.ts.map +1 -1
- package/src/core/geom/3d/SurfacePoint3.d.ts +62 -17
- package/src/core/geom/3d/aabb/aabb3_build_corners.d.ts +13 -1
- package/src/core/geom/3d/frustum/read_three_planes_to_array.d.ts +7 -3
- package/src/core/geom/3d/line/line3_compute_nearest_point_to_point.d.ts +7 -6
- package/src/core/geom/3d/sphere/harmonics/sh3_sample_by_direction.d.ts +16 -6
- package/src/core/geom/Quaternion.d.ts +1 -2
- package/src/core/geom/Quaternion.d.ts.map +1 -1
- package/src/core/geom/Vector1.d.ts +1 -2
- package/src/core/geom/Vector1.d.ts.map +1 -1
- package/src/core/geom/Vector2.d.ts +1 -2
- package/src/core/geom/Vector2.d.ts.map +1 -1
- package/src/core/geom/Vector3.d.ts +1 -2
- package/src/core/geom/Vector3.d.ts.map +1 -1
- package/src/core/geom/Vector4.d.ts +1 -1
- package/src/core/geom/Vector4.d.ts.map +1 -1
- package/src/core/graph/v2/Graph.d.ts +4 -4
- package/src/core/graph/v2/Graph.d.ts.map +1 -1
- package/src/core/json/resolvePathByArray.d.ts +10 -1
- package/src/core/math/clamp.d.ts +9 -1
- package/src/core/math/epsilonEquals.d.ts +9 -1
- package/src/core/math/interval/NumericInterval.d.ts +1 -2
- package/src/core/math/interval/NumericInterval.d.ts.map +1 -1
- package/src/core/math/noise/create_simplex_noise_2d.d.ts +7 -1
- package/src/core/math/random/seededRandom.d.ts +3 -1
- package/src/core/math/remap.d.ts +12 -5
- package/src/core/math/sign.d.ts +10 -1
- package/src/core/model/BooleanVector3.d.ts +77 -28
- package/src/core/model/BooleanVector3.d.ts.map +1 -1
- package/src/core/model/BoundedValue.d.ts +5 -5
- package/src/core/model/BoundedValue.d.ts.map +1 -1
- package/src/core/model/ModuleRegistry.d.ts +45 -3
- package/src/core/model/ObservedBoolean.d.ts +1 -2
- package/src/core/model/ObservedBoolean.d.ts.map +1 -1
- package/src/core/model/ObservedEnum.d.ts +91 -7
- package/src/core/model/ObservedEnum.d.ts.map +1 -1
- package/src/core/model/ObservedString.d.ts +1 -2
- package/src/core/model/ObservedString.d.ts.map +1 -1
- package/src/core/model/ObservedValue.d.ts +1 -1
- package/src/core/model/ObservedValue.d.ts.map +1 -1
- package/src/core/model/node-graph/Connection.d.ts +57 -12
- package/src/core/model/node-graph/NodeGraph.d.ts +2 -2
- package/src/core/model/node-graph/node/NodeDescription.d.ts +166 -15
- package/src/core/model/node-graph/node/NodeDescription.d.ts.map +1 -1
- package/src/core/model/node-graph/node/NodeInstance.d.ts +181 -22
- package/src/core/model/node-graph/node/NodeInstance.d.ts.map +1 -1
- package/src/core/model/node-graph/node/NodeInstancePortReference.d.ts +82 -3
- package/src/core/model/node-graph/node/Port.d.ts +72 -3
- package/src/core/model/node-graph/node/Port.d.ts.map +1 -1
- package/src/core/model/node-graph/node/PortDirection.d.ts +7 -5
- package/src/core/model/node-graph/type/DataType.d.ts +61 -4
- package/src/core/model/node-graph/type/ParametricDataType.d.ts +0 -1
- package/src/core/model/node-graph/type/ParametricDataType.d.ts.map +1 -1
- package/src/core/model/object/ImmutableObjectPool.d.ts +1 -2
- package/src/core/model/object/ImmutableObjectPool.d.ts.map +1 -1
- package/src/core/model/object/invokeObjectEquals.d.ts +9 -5
- package/src/core/model/object/invokeObjectHash.d.ts +7 -5
- package/src/core/model/object/objectDeepEquals.d.ts +10 -1
- package/src/core/model/object/objectKeyByValue.d.ts +10 -1
- package/src/core/model/object/read_property.d.ts +11 -1
- package/src/core/model/object/write_property.d.ts +10 -1
- package/src/core/model/reactive/evaluation/MultiPredicateEvaluator.d.ts +6 -0
- package/src/core/model/reactive/evaluation/MultiPredicateEvaluator.d.ts.map +1 -1
- package/src/core/model/reactive/evaluation/MultiPredicateEvaluator.js +12 -12
- package/src/core/model/reactive/js/compileReactiveToJS.d.ts.map +1 -1
- package/src/core/model/reactive/js/compileReactiveToJS.js +35 -1
- package/src/core/model/reactive/model/ReactiveBinaryExpression.d.ts +1 -3
- package/src/core/model/reactive/model/ReactiveBinaryExpression.d.ts.map +1 -1
- package/src/core/model/reactive/model/ReactiveExpression.d.ts +63 -10
- package/src/core/model/reactive/model/ReactiveExpression.d.ts.map +1 -1
- package/src/core/model/reactive/model/ReactiveUnaryExpression.d.ts +0 -12
- package/src/core/model/reactive/model/ReactiveUnaryExpression.d.ts.map +1 -1
- package/src/core/model/reactive/model/arithmetic/ReactiveAdd.d.ts +1 -1
- package/src/core/model/reactive/model/arithmetic/ReactiveAdd.d.ts.map +1 -1
- package/src/core/model/reactive/model/arithmetic/ReactiveDivide.d.ts +1 -1
- package/src/core/model/reactive/model/arithmetic/ReactiveDivide.d.ts.map +1 -1
- package/src/core/model/reactive/model/arithmetic/ReactiveMultiply.d.ts +1 -1
- package/src/core/model/reactive/model/arithmetic/ReactiveMultiply.d.ts.map +1 -1
- package/src/core/model/reactive/model/arithmetic/ReactiveNegate.d.ts +1 -1
- package/src/core/model/reactive/model/arithmetic/ReactiveNegate.d.ts.map +1 -1
- package/src/core/model/reactive/model/arithmetic/ReactiveSubtract.d.ts +1 -1
- package/src/core/model/reactive/model/arithmetic/ReactiveSubtract.d.ts.map +1 -1
- package/src/core/model/reactive/model/comparative/ReactiveEquals.d.ts +1 -1
- package/src/core/model/reactive/model/comparative/ReactiveEquals.d.ts.map +1 -1
- package/src/core/model/reactive/model/comparative/ReactiveGreaterThan.d.ts +1 -1
- package/src/core/model/reactive/model/comparative/ReactiveGreaterThan.d.ts.map +1 -1
- package/src/core/model/reactive/model/comparative/ReactiveGreaterThanOrEqual.d.ts +1 -1
- package/src/core/model/reactive/model/comparative/ReactiveGreaterThanOrEqual.d.ts.map +1 -1
- package/src/core/model/reactive/model/comparative/ReactiveLessThan.d.ts +1 -1
- package/src/core/model/reactive/model/comparative/ReactiveLessThan.d.ts.map +1 -1
- package/src/core/model/reactive/model/comparative/ReactiveLessThanOrEqual.d.ts +1 -1
- package/src/core/model/reactive/model/comparative/ReactiveLessThanOrEqual.d.ts.map +1 -1
- package/src/core/model/reactive/model/comparative/ReactiveNotEquals.d.ts +1 -1
- package/src/core/model/reactive/model/comparative/ReactiveNotEquals.d.ts.map +1 -1
- package/src/core/model/reactive/model/logic/ReactiveAnd.d.ts +41 -5
- package/src/core/model/reactive/model/logic/ReactiveAnd.d.ts.map +1 -1
- package/src/core/model/reactive/model/logic/ReactiveNot.d.ts +1 -1
- package/src/core/model/reactive/model/logic/ReactiveNot.d.ts.map +1 -1
- package/src/core/model/reactive/model/logic/ReactiveOr.d.ts +2 -1
- package/src/core/model/reactive/model/logic/ReactiveOr.d.ts.map +1 -1
- package/src/core/model/reactive/model/terminal/ReactiveLiteralBoolean.d.ts +2 -1
- package/src/core/model/reactive/model/terminal/ReactiveLiteralBoolean.d.ts.map +1 -1
- package/src/core/model/reactive/model/terminal/ReactiveLiteralNumber.d.ts +2 -3
- package/src/core/model/reactive/model/terminal/ReactiveLiteralNumber.d.ts.map +1 -1
- package/src/core/model/reactive/model/terminal/ReactiveLiteralString.d.ts +2 -4
- package/src/core/model/reactive/model/terminal/ReactiveLiteralString.d.ts.map +1 -1
- package/src/core/model/reactive/model/terminal/ReactiveReference.d.ts +68 -11
- package/src/core/model/reactive/model/terminal/ReactiveReference.d.ts.map +1 -1
- package/src/core/model/stat/LinearModifier.d.ts +79 -24
- package/src/core/parser/simple/DataType.d.ts +13 -5
- package/src/core/parser/simple/Token.d.ts +52 -13
- package/src/core/parser/simple/readArrayLiteral.d.ts +1 -0
- package/src/core/parser/simple/readArrayLiteral.d.ts.map +1 -1
- package/src/core/parser/simple/readBooleanToken.d.ts +1 -0
- package/src/core/parser/simple/readBooleanToken.d.ts.map +1 -1
- package/src/core/parser/simple/readHexToken.d.ts +1 -0
- package/src/core/parser/simple/readHexToken.d.ts.map +1 -1
- package/src/core/parser/simple/readIdentifierToken.d.ts +1 -0
- package/src/core/parser/simple/readIdentifierToken.d.ts.map +1 -1
- package/src/core/parser/simple/readNumberToken.d.ts +1 -0
- package/src/core/parser/simple/readNumberToken.d.ts.map +1 -1
- package/src/core/parser/simple/readReferenceToken.d.ts +1 -0
- package/src/core/parser/simple/readReferenceToken.d.ts.map +1 -1
- package/src/core/parser/simple/readStringToken.d.ts +1 -0
- package/src/core/parser/simple/readStringToken.d.ts.map +1 -1
- package/src/core/parser/simple/readUnsignedIntegerToken.d.ts +1 -0
- package/src/core/parser/simple/readUnsignedIntegerToken.d.ts.map +1 -1
- package/src/core/process/BaseProcess.d.ts +17 -5
- package/src/core/process/BaseProcess.d.ts.map +1 -1
- package/src/core/process/CompositeProcess.d.ts +0 -1
- package/src/core/process/CompositeProcess.d.ts.map +1 -1
- package/src/core/process/action/AsynchronousAction.d.ts +3 -3
- package/src/core/process/executor/ConcurrentExecutor.d.ts +3 -3
- package/src/core/process/filter/MutableFilter.d.ts +1 -1
- package/src/core/process/filter/MutableFilter.d.ts.map +1 -1
- package/src/core/process/task/Task.d.ts +1 -1
- package/src/core/process/task/Task.d.ts.map +1 -1
- package/src/core/process/task/TaskGroup.d.ts +3 -3
- package/src/core/process/task/TaskSignal.d.ts +8 -6
- package/src/core/process/undo/Action.d.ts +31 -9
- package/src/core/process/undo/ActionGroup.d.ts +20 -5
- package/src/core/process/undo/ActionProcessor.d.ts +163 -27
- package/src/core/process/undo/ActionProcessor.d.ts.map +1 -1
- package/src/engine/Engine.d.ts +178 -42
- package/src/engine/Engine.d.ts.map +1 -1
- package/src/engine/EngineConfiguration.d.ts +74 -20
- package/src/engine/achievements/AchievementGateway.d.ts +17 -5
- package/src/engine/achievements/AchievementManager.d.ts +0 -1
- package/src/engine/achievements/AchievementManager.d.ts.map +1 -1
- package/src/engine/animation/Tween.d.ts +1 -1
- package/src/engine/animation/clip/AnimationClip.d.ts +24 -4
- package/src/engine/animation/clip/AnimationClipBinding.d.ts +35 -14
- package/src/engine/animation/curve/actionProcessorOperations/curveActions.d.ts +2 -2
- package/src/engine/animation/curve/actionProcessorOperations/curveActions.d.ts.map +1 -1
- package/src/engine/animation/curve/editor/createKeyframeMarker.d.ts +1 -1
- package/src/engine/animation/curve/editor/createKeyframeMarker.d.ts.map +1 -1
- package/src/engine/animation/keyed2/AnimationTrackPlayback.d.ts +1 -1
- package/src/engine/animation/keyed2/behavior/AnimationBehavior.d.ts +0 -1
- package/src/engine/animation/keyed2/behavior/AnimationBehavior.d.ts.map +1 -1
- package/src/engine/asset/Asset.d.ts +47 -7
- package/src/engine/asset/AssetManager.d.ts +258 -60
- package/src/engine/asset/AssetRequestScope.d.ts +27 -3
- package/src/engine/asset/AssetTransformer.d.ts +16 -5
- package/src/engine/asset/CORS/CrossOriginConfig.d.ts +8 -5
- package/src/engine/asset/CORS/CrossOriginConfig.d.ts.map +1 -1
- package/src/engine/asset/CORS/CrossOriginKind.d.ts +5 -4
- package/src/engine/asset/loaders/AssetLoader.d.ts +50 -12
- package/src/engine/asset/loaders/GLTFAssetLoader.d.ts +71 -6
- package/src/engine/asset/loaders/image/ImageRGBADataAsset.d.ts +0 -1
- package/src/engine/asset/loaders/image/ImageRGBADataAsset.d.ts.map +1 -1
- package/src/engine/asset/loaders/material/StaticMaterialCache.d.ts +30 -7
- package/src/engine/asset/loaders/material/computeMaterialEquality.d.ts +8 -3
- package/src/engine/asset/loaders/material/computeMaterialHash.d.ts +7 -3
- package/src/engine/asset/loaders/material/traverseMaterialTextures.d.ts +8 -3
- package/src/engine/asset/loaders/texture/TextureAssetLoader.d.ts +6 -6
- package/src/engine/asset/preloader/AssetPreloader.d.ts +6 -15
- package/src/engine/asset/preloader/AssetPreloader.d.ts.map +1 -1
- package/src/engine/control/first-person/FirstPersonPlayerController.d.ts +13 -13
- package/src/engine/control/first-person/FirstPersonPlayerController.d.ts.map +1 -1
- package/src/engine/control/first-person/FirstPersonPlayerControllerSystem.d.ts +14 -4
- package/src/engine/control/first-person/FirstPersonPlayerControllerSystem.d.ts.map +1 -1
- package/src/engine/control/first-person/sensors/FirstPersonSensorsSystem.d.ts +1 -1
- package/src/engine/ecs/Entity.d.ts +228 -41
- package/src/engine/ecs/EntityBlueprint.d.ts +43 -17
- package/src/engine/ecs/EntityComponentDataset.d.ts +580 -60
- package/src/engine/ecs/EntityComponentDataset.d.ts.map +1 -1
- package/src/engine/ecs/EntityManager.d.ts +10 -9
- package/src/engine/ecs/EntityManager.d.ts.map +1 -1
- package/src/engine/ecs/EntityObserver.d.ts +80 -13
- package/src/engine/ecs/System.d.ts +162 -33
- package/src/engine/ecs/animation/AnimationSerializationAdapter.d.ts +0 -1
- package/src/engine/ecs/animation/AnimationSerializationAdapter.d.ts.map +1 -1
- package/src/engine/ecs/attachment/AttachmentSystem.d.ts +1 -1
- package/src/engine/ecs/attachment/AttachmentSystem.d.ts.map +1 -1
- package/src/engine/ecs/components/PropertySetSerializationAdapter.d.ts +0 -1
- package/src/engine/ecs/components/PropertySetSerializationAdapter.d.ts.map +1 -1
- package/src/engine/ecs/components/SerializationMetadataSerializationAdapter.d.ts +0 -1
- package/src/engine/ecs/components/SerializationMetadataSerializationAdapter.d.ts.map +1 -1
- package/src/engine/ecs/components/TagSerializationAdapter.d.ts +0 -1
- package/src/engine/ecs/components/TagSerializationAdapter.d.ts.map +1 -1
- package/src/engine/ecs/dynamic_actions/rules/DynamicRuleDescriptionTable.d.ts +1 -1
- package/src/engine/ecs/dynamic_actions/rules/DynamicRuleDescriptionTable.d.ts.map +1 -1
- package/src/engine/ecs/fow/FogOfWar.d.ts +1 -1
- package/src/engine/ecs/fow/FogOfWarRevealerSystem.d.ts +1 -1
- package/src/engine/ecs/fow/FogOfWarSystem.d.ts +1 -6
- package/src/engine/ecs/fow/FogOfWarSystem.d.ts.map +1 -1
- package/src/engine/ecs/fow/serialization/FogOfWarRevealerSerializationAdapter.d.ts +0 -1
- package/src/engine/ecs/fow/serialization/FogOfWarRevealerSerializationAdapter.d.ts.map +1 -1
- package/src/engine/ecs/fow/serialization/FogOfWarSerializationAdapter.d.ts +0 -1
- package/src/engine/ecs/fow/serialization/FogOfWarSerializationAdapter.d.ts.map +1 -1
- package/src/engine/ecs/gui/GUIElement.d.ts +115 -5
- package/src/engine/ecs/gui/GUIElementSerializationAdapter.d.ts +0 -1
- package/src/engine/ecs/gui/GUIElementSerializationAdapter.d.ts.map +1 -1
- package/src/engine/ecs/gui/GUIElementSystem.d.ts +59 -8
- package/src/engine/ecs/gui/GUIElementSystem.d.ts.map +1 -1
- package/src/engine/ecs/gui/hud/HeadsUpDisplaySerializationAdapter.d.ts +0 -1
- package/src/engine/ecs/gui/hud/HeadsUpDisplaySerializationAdapter.d.ts.map +1 -1
- package/src/engine/ecs/gui/hud/HeadsUpDisplaySystem.d.ts +42 -6
- package/src/engine/ecs/gui/menu/radial/RadialContextMenu.d.ts +23 -22
- package/src/engine/ecs/gui/parallax/GuiElementParallaxSystem.d.ts +1 -1
- package/src/engine/ecs/gui/position/ViewportPositionSerializationAdapter.d.ts +0 -1
- package/src/engine/ecs/gui/position/ViewportPositionSerializationAdapter.d.ts.map +1 -1
- package/src/engine/ecs/gui/position/ViewportPositionSystem.d.ts +1 -1
- package/src/engine/ecs/gui/view/ViewEntity.d.ts +1 -2
- package/src/engine/ecs/gui/view/ViewEntity.d.ts.map +1 -1
- package/src/engine/ecs/guid/UUIDSerializationAdapter.d.ts +0 -1
- package/src/engine/ecs/guid/UUIDSerializationAdapter.d.ts.map +1 -1
- package/src/engine/ecs/ik/InverseKinematicsSerializationAdapter.d.ts +0 -1
- package/src/engine/ecs/ik/InverseKinematicsSerializationAdapter.d.ts.map +1 -1
- package/src/engine/ecs/ik/InverseKinematicsSystem.d.ts +1 -1
- package/src/engine/ecs/ik/InverseKinematicsSystem.d.ts.map +1 -1
- package/src/engine/ecs/name/NameSerializationAdapter.d.ts +0 -1
- package/src/engine/ecs/name/NameSerializationAdapter.d.ts.map +1 -1
- package/src/engine/ecs/parent/ChildEntities.d.ts +23 -3
- package/src/engine/ecs/parent/EntityNode.d.ts +157 -25
- package/src/engine/ecs/parent/ParentEntity.d.ts +31 -11
- package/src/engine/ecs/parent/ParentEntitySystem.d.ts +44 -11
- package/src/engine/ecs/renderable/RenderSystem.d.ts +65 -7
- package/src/engine/ecs/renderable/Renderable.d.ts +95 -25
- package/src/engine/ecs/speaker/VoiceSystem.d.ts +3 -3
- package/src/engine/ecs/speaker/VoiceSystem.d.ts.map +1 -1
- package/src/engine/ecs/storage/binary/BinaryClassSerializationAdapter.d.ts +86 -21
- package/src/engine/ecs/storage/binary/object-v2/serializerTestHarness.d.ts +1 -1
- package/src/engine/ecs/storage/binary/object-v2/serializerTestHarness.d.ts.map +1 -1
- package/src/engine/ecs/system/AbstractContextSystem.d.ts +1 -1
- package/src/engine/ecs/system_validate_class.d.ts +1 -1
- package/src/engine/ecs/system_validate_class.d.ts.map +1 -1
- package/src/engine/ecs/systems/AnimationSystem.d.ts +41 -6
- package/src/engine/ecs/systems/AnimationSystem.d.ts.map +1 -1
- package/src/engine/ecs/systems/ScriptSystem.d.ts +9 -5
- package/src/engine/ecs/systems/ScriptSystem.d.ts.map +1 -1
- package/src/engine/ecs/systems/TimerSystem.d.ts +1 -1
- package/src/engine/ecs/systems/TimerSystem.d.ts.map +1 -1
- package/src/engine/ecs/team/TeamSerializationAdapter.d.ts +0 -1
- package/src/engine/ecs/team/TeamSerializationAdapter.d.ts.map +1 -1
- package/src/engine/ecs/terrain/ecs/OffsetScaleTransform2D.d.ts +7 -6
- package/src/engine/ecs/terrain/ecs/Terrain.d.ts +389 -17
- package/src/engine/ecs/terrain/ecs/TerrainSystem.d.ts +65 -8
- package/src/engine/ecs/terrain/ecs/cling/ClingToTerrainSerializationAdapter.d.ts +0 -1
- package/src/engine/ecs/terrain/ecs/cling/ClingToTerrainSerializationAdapter.d.ts.map +1 -1
- package/src/engine/ecs/terrain/ecs/cling/ClingToTerrainSystem.d.ts +1 -1
- package/src/engine/ecs/terrain/ecs/cling/ClingToTerrainSystem.d.ts.map +1 -1
- package/src/engine/ecs/terrain/serialization/TerrainSerializationAdapter.d.ts +0 -1
- package/src/engine/ecs/terrain/serialization/TerrainSerializationAdapter.d.ts.map +1 -1
- package/src/engine/ecs/terrain/tiles/TerrainTile.d.ts +2 -2
- package/src/engine/ecs/terrain/tiles/TerrainTile.d.ts.map +1 -1
- package/src/engine/ecs/terrain/tiles/TerrainTileManager.d.ts +2 -2
- package/src/engine/ecs/tooltip/TooltipComponentSerializationAdapter.d.ts +0 -1
- package/src/engine/ecs/tooltip/TooltipComponentSerializationAdapter.d.ts.map +1 -1
- package/src/engine/ecs/tooltip/TooltipComponentSystem.d.ts +1 -1
- package/src/engine/ecs/transform/TransformSerializationAdapter.d.ts +0 -1
- package/src/engine/ecs/transform/TransformSerializationAdapter.d.ts.map +1 -1
- package/src/engine/ecs/transform-attachment/TransformAttachment.d.ts +116 -19
- package/src/engine/ecs/transform-attachment/TransformAttachmentSystem.d.ts +58 -6
- package/src/engine/graphics/GraphicsEngine.d.ts +220 -41
- package/src/engine/graphics/camera/CameraShake.d.ts +6 -6
- package/src/engine/graphics/camera/CameraShake.d.ts.map +1 -1
- package/src/engine/graphics/camera/CameraShakeBehavior.d.ts +1 -2
- package/src/engine/graphics/camera/CameraShakeBehavior.d.ts.map +1 -1
- package/src/engine/graphics/camera/CameraShakeTraumaBehavior.d.ts +1 -2
- package/src/engine/graphics/camera/CameraShakeTraumaBehavior.d.ts.map +1 -1
- package/src/engine/graphics/camera/camera_compute_distance_to_fit_length.d.ts +8 -1
- package/src/engine/graphics/camera/makeScreenScissorFrustum.d.ts +8 -4
- package/src/engine/graphics/composit/CompositLayer.d.ts +1 -1
- package/src/engine/graphics/ecs/animation/AnimationControllerSerializationAdapter.d.ts +0 -1
- package/src/engine/graphics/ecs/animation/AnimationControllerSerializationAdapter.d.ts.map +1 -1
- package/src/engine/graphics/ecs/animation/AnimationControllerSystem.d.ts +1 -2
- package/src/engine/graphics/ecs/animation/AnimationControllerSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/animation/animator/AnimationGraphSystem.d.ts +1 -1
- package/src/engine/graphics/ecs/animation/animator/graph/AnimationGraphSerializationAdapter.d.ts +0 -1
- package/src/engine/graphics/ecs/animation/animator/graph/AnimationGraphSerializationAdapter.d.ts.map +1 -1
- package/src/engine/graphics/ecs/animation/animator/graph/definition/serialization/AnimationGraphDefinitionSerializationAdapter.d.ts +0 -1
- package/src/engine/graphics/ecs/animation/animator/graph/definition/serialization/AnimationGraphDefinitionSerializationAdapter.d.ts.map +1 -1
- package/src/engine/graphics/ecs/camera/Camera.d.ts +113 -18
- package/src/engine/graphics/ecs/camera/Camera.d.ts.map +1 -1
- package/src/engine/graphics/ecs/camera/CameraSystem.d.ts +74 -10
- package/src/engine/graphics/ecs/camera/serialization/CameraSerializationAdapter.d.ts +0 -1
- package/src/engine/graphics/ecs/camera/serialization/CameraSerializationAdapter.d.ts.map +1 -1
- package/src/engine/graphics/ecs/camera/topdown/TopDownCameraController.d.ts +90 -33
- package/src/engine/graphics/ecs/camera/topdown/TopDownCameraControllerSerializationAdapter.d.ts +0 -1
- package/src/engine/graphics/ecs/camera/topdown/TopDownCameraControllerSerializationAdapter.d.ts.map +1 -1
- package/src/engine/graphics/ecs/camera/topdown/TopDownCameraControllerSystem.d.ts +34 -5
- package/src/engine/graphics/ecs/camera/topdown/TopDownCameraLander.d.ts +0 -1
- package/src/engine/graphics/ecs/camera/topdown/TopDownCameraLander.d.ts.map +1 -1
- package/src/engine/graphics/ecs/camera/topdown/TopDownCameraLanderSystem.d.ts +1 -1
- package/src/engine/graphics/ecs/decal/v2/Decal.d.ts +52 -15
- package/src/engine/graphics/ecs/decal/v2/DecalSerializationAdapter.d.ts +0 -1
- package/src/engine/graphics/ecs/decal/v2/DecalSerializationAdapter.d.ts.map +1 -1
- package/src/engine/graphics/ecs/decal/v2/FPDecalSystem.d.ts +70 -24
- package/src/engine/graphics/ecs/highlight/Highlight.d.ts +61 -16
- package/src/engine/graphics/ecs/highlight/HighlightDefinition.d.ts +57 -19
- package/src/engine/graphics/ecs/highlight/HighlightSerializationAdapter.d.ts +0 -1
- package/src/engine/graphics/ecs/highlight/HighlightSerializationAdapter.d.ts.map +1 -1
- package/src/engine/graphics/ecs/highlight/plugin/OutlineRenderPlugin.d.ts +0 -1
- package/src/engine/graphics/ecs/highlight/plugin/OutlineRenderPlugin.d.ts.map +1 -1
- package/src/engine/graphics/ecs/highlight/system/MeshHighlightSystem.d.ts +57 -8
- package/src/engine/graphics/ecs/highlight/system/MeshHighlightSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/highlight/system/RenderableHighlightSystem.d.ts +62 -8
- package/src/engine/graphics/ecs/highlight/system/RenderableHighlightSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/highlight/system/ShadedGeometryHighlightSystem.d.ts +68 -8
- package/src/engine/graphics/ecs/highlight/system/ShadedGeometryHighlightSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/light/Light.d.ts +79 -19
- package/src/engine/graphics/ecs/light/Light.d.ts.map +1 -1
- package/src/engine/graphics/ecs/light/LightSerializationAdapter.d.ts +0 -1
- package/src/engine/graphics/ecs/light/LightSerializationAdapter.d.ts.map +1 -1
- package/src/engine/graphics/ecs/light/LightSystem.d.ts +123 -11
- package/src/engine/graphics/ecs/light/LightType.d.ts +8 -6
- package/src/engine/graphics/ecs/mesh/Mesh.d.ts +176 -30
- package/src/engine/graphics/ecs/mesh/MeshEvents.d.ts +6 -12
- package/src/engine/graphics/ecs/mesh/MeshSystem.d.ts +99 -7
- package/src/engine/graphics/ecs/mesh/serialization/MeshSerializationAdapter.d.ts +0 -1
- package/src/engine/graphics/ecs/mesh/serialization/MeshSerializationAdapter.d.ts.map +1 -1
- package/src/engine/graphics/ecs/mesh-v2/DrawMode.d.ts +8 -6
- package/src/engine/graphics/ecs/mesh-v2/ShadedGeometrySystem.d.ts +147 -32
- package/src/engine/graphics/ecs/mesh-v2/ShadedGeometrySystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/mesh-v2/ShadedGeometrySystem.js +37 -0
- package/src/engine/graphics/ecs/mesh-v2/aggregate/SGAnimationPlayback.d.ts +6 -5
- package/src/engine/graphics/ecs/mesh-v2/aggregate/SGMesh.d.ts +162 -25
- package/src/engine/graphics/ecs/mesh-v2/aggregate/SGMeshAnimationController.d.ts +40 -12
- package/src/engine/graphics/ecs/mesh-v2/aggregate/SGMeshAnimationControllerSystem.d.ts +31 -11
- package/src/engine/graphics/ecs/mesh-v2/aggregate/SGMeshEvents.d.ts +5 -12
- package/src/engine/graphics/ecs/mesh-v2/aggregate/SGMeshHighlightSystem.d.ts +36 -7
- package/src/engine/graphics/ecs/mesh-v2/aggregate/SGMeshSystem.d.ts +63 -8
- package/src/engine/graphics/ecs/mesh-v2/sg_hierarchy_compute_bounding_box_via_parent_entity.d.ts +9 -4
- package/src/engine/graphics/ecs/path/PathDisplay.d.ts +21 -9
- package/src/engine/graphics/ecs/path/PathDisplayEvents.d.ts +6 -3
- package/src/engine/graphics/ecs/path/PathDisplaySpec.d.ts +28 -11
- package/src/engine/graphics/ecs/path/PathDisplaySystem.d.ts +55 -10
- package/src/engine/graphics/ecs/path/PathDisplaySystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/path/PathDisplayType.d.ts +8 -6
- package/src/engine/graphics/ecs/path/entity/EntityPathMarkerDefinition.d.ts +39 -8
- package/src/engine/graphics/ecs/path/entity/EntityPathStyle.d.ts +38 -12
- package/src/engine/graphics/ecs/path/highlight/PathDisplayHighlightSystem.d.ts +31 -7
- package/src/engine/graphics/ecs/path/ribbon/RibbonPathStyle.d.ts +24 -7
- package/src/engine/graphics/ecs/path/tube/BasicMaterialDefinition.d.ts +4 -3
- package/src/engine/graphics/ecs/path/tube/CapType.d.ts +7 -5
- package/src/engine/graphics/ecs/path/tube/MatcapMaterialDefinition.d.ts +11 -3
- package/src/engine/graphics/ecs/path/tube/PathNormalType.d.ts +6 -4
- package/src/engine/graphics/ecs/path/tube/StandardMaterialDefinition.d.ts +9 -4
- package/src/engine/graphics/ecs/path/tube/TubeMaterialType.d.ts +7 -6
- package/src/engine/graphics/ecs/path/tube/TubePathStyle.d.ts +114 -35
- package/src/engine/graphics/ecs/path/tube/TubePathStyle.d.ts.map +1 -1
- package/src/engine/graphics/ecs/trail2d/Trail2DSystem.d.ts +85 -6
- package/src/engine/graphics/ecs/trail3d/Trail3DSystem.d.ts +1 -1
- package/src/engine/graphics/ecs/water/WaterSerializationAdapter.d.ts +0 -1
- package/src/engine/graphics/ecs/water/WaterSerializationAdapter.d.ts.map +1 -1
- package/src/engine/graphics/ecs/water/WaterSystem.d.ts +1 -1
- package/src/engine/graphics/geometry/AttributeGroupSpec.d.ts +75 -25
- package/src/engine/graphics/geometry/AttributeSpec.d.ts +85 -12
- package/src/engine/graphics/geometry/instancing/InstancedMeshGroup.d.ts +1 -2
- package/src/engine/graphics/geometry/instancing/InstancedMeshGroup.d.ts.map +1 -1
- package/src/engine/graphics/impostors/octahedral/grid/OctahedralUvEncoder.d.ts +6 -4
- package/src/engine/graphics/material/manager/MaterialManager.d.ts +12 -0
- package/src/engine/graphics/material/manager/MaterialManager.d.ts.map +1 -1
- package/src/engine/graphics/material/manager/MaterialManager.js +78 -41
- package/src/engine/graphics/particles/ecs/ParticleEmitterSystem.d.ts +55 -7
- package/src/engine/graphics/particles/ecs/ParticleEmitterSystem.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/codegen/glsl/getTypeByteSize.d.ts +9 -9
- package/src/engine/graphics/particles/node-based/editor/ParticleSpecificationEditorView.d.ts +1 -2
- package/src/engine/graphics/particles/node-based/editor/ParticleSpecificationEditorView.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/nodes/FloatConstant.d.ts +0 -1
- package/src/engine/graphics/particles/node-based/nodes/FloatConstant.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/nodes/ParticleDataTypes.d.ts +10 -9
- package/src/engine/graphics/particles/node-based/nodes/ParticleDataTypes.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/nodes/ReadFloatUniform.d.ts +0 -1
- package/src/engine/graphics/particles/node-based/nodes/ReadFloatUniform.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/nodes/ReadVelocity.d.ts +0 -1
- package/src/engine/graphics/particles/node-based/nodes/ReadVelocity.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/nodes/Vector3Constant.d.ts +0 -1
- package/src/engine/graphics/particles/node-based/nodes/Vector3Constant.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/nodes/Vector3Merge.d.ts +0 -1
- package/src/engine/graphics/particles/node-based/nodes/Vector3Merge.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/nodes/Vector3Split.d.ts +0 -1
- package/src/engine/graphics/particles/node-based/nodes/Vector3Split.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/nodes/WriteVelocity.d.ts +0 -1
- package/src/engine/graphics/particles/node-based/nodes/WriteVelocity.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/nodes/attribute/ReadVector3Attribute.d.ts +0 -1
- package/src/engine/graphics/particles/node-based/nodes/attribute/ReadVector3Attribute.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/nodes/attribute/WriteVector3Attribute.d.ts +0 -1
- package/src/engine/graphics/particles/node-based/nodes/attribute/WriteVector3Attribute.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/nodes/math/AddFloatNode.d.ts +0 -1
- package/src/engine/graphics/particles/node-based/nodes/math/AddFloatNode.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/nodes/math/Vector3Add.d.ts +0 -1
- package/src/engine/graphics/particles/node-based/nodes/math/Vector3Add.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/nodes/math/Vector3Divide.d.ts +0 -1
- package/src/engine/graphics/particles/node-based/nodes/math/Vector3Divide.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/nodes/math/Vector3Multiply.d.ts +0 -1
- package/src/engine/graphics/particles/node-based/nodes/math/Vector3Multiply.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/nodes/math/Vector3Subtract.d.ts +0 -1
- package/src/engine/graphics/particles/node-based/nodes/math/Vector3Subtract.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/nodes/noise/CurlNoiseNode.d.ts +0 -1
- package/src/engine/graphics/particles/node-based/nodes/noise/CurlNoiseNode.d.ts.map +1 -1
- package/src/engine/graphics/particles/node-based/particle/ParticleAttributeSpecification.d.ts +18 -18
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleEmitter.d.ts +252 -2
- package/src/engine/graphics/particles/particular/engine/emitter/serde/ParameterLookupTableSerializationAdapter.d.ts +0 -1
- package/src/engine/graphics/particles/particular/engine/emitter/serde/ParameterLookupTableSerializationAdapter.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/emitter/serde/ParticleEmitterSerializationAdapter.d.ts +0 -1
- package/src/engine/graphics/particles/particular/engine/emitter/serde/ParticleEmitterSerializationAdapter.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterLookupTable.d.ts +2 -15
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrack.d.ts +5 -1
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrack.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrackSet.d.ts +1 -1
- package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrackSet.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/parameter/ParticleParameter.d.ts +5 -1
- package/src/engine/graphics/particles/particular/engine/parameter/ParticleParameter.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/utils/volume/AttributeValue.d.ts +76 -16
- package/src/engine/graphics/particles/particular/engine/utils/volume/SamplingFunctionKind.d.ts +6 -4
- package/src/engine/graphics/render/buffer/simple-fx/ao/AmbientOcclusionPostProcessEffect.d.ts +92 -8
- package/src/engine/graphics/render/buffer/simple-fx/ao/AmbientOcclusionPostProcessEffect.d.ts.map +1 -1
- package/src/engine/graphics/render/buffer/simple-fx/ao/SAOUpscaleShader.js +78 -37
- package/src/engine/graphics/render/buffer/simple-fx/taa/TemporalSupersamplingRenderPlugin.d.ts +0 -3
- package/src/engine/graphics/render/buffer/simple-fx/taa/TemporalSupersamplingRenderPlugin.d.ts.map +1 -1
- package/src/engine/graphics/render/forward_plus/model/Decal.d.ts +1 -1
- package/src/engine/graphics/render/forward_plus/model/Decal.d.ts.map +1 -1
- package/src/engine/graphics/render/forward_plus/plugin/ForwardPlusRenderingPlugin.d.ts +27 -5
- package/src/engine/graphics/render/forward_plus/plugin/MaterialTransformer.d.ts.map +1 -1
- package/src/engine/graphics/render/forward_plus/plugin/MaterialTransformer.js +4 -9
- package/src/engine/graphics/render/forward_plus/plugin/forwardPlusMaterialMarker.d.ts +16 -0
- package/src/engine/graphics/render/forward_plus/plugin/forwardPlusMaterialMarker.d.ts.map +1 -0
- package/src/engine/graphics/render/forward_plus/plugin/forwardPlusMaterialMarker.js +18 -0
- package/src/engine/graphics/render/forward_plus/plugin/isForwardPlusLightingSkipped.d.ts +16 -0
- package/src/engine/graphics/render/forward_plus/plugin/isForwardPlusLightingSkipped.d.ts.map +1 -0
- package/src/engine/graphics/render/forward_plus/plugin/isForwardPlusLightingSkipped.js +31 -0
- package/src/engine/graphics/render/frame_graph/FrameGraph.d.ts +1 -1
- package/src/engine/graphics/render/frame_graph/FrameGraph.d.ts.map +1 -1
- package/src/engine/graphics/render/frame_graph/resource/TextureResourceDescriptor.d.ts +1 -1
- package/src/engine/graphics/render/gizmo/Gizmo.d.ts +7 -3
- package/src/engine/graphics/render/gizmo/GizmoRenderingPlugin.d.ts +5 -5
- package/src/engine/graphics/render/gizmo/GizmoRenderingPlugin.d.ts.map +1 -1
- package/src/engine/graphics/render/gizmo/GizmoShapeRenderingInterface.d.ts +72 -13
- package/src/engine/graphics/render/layers/RenderLayer.d.ts +78 -22
- package/src/engine/graphics/render/layers/RenderLayerManager.d.ts +72 -17
- package/src/engine/graphics/render/layers/RenderLayerState.d.ts +18 -3
- package/src/engine/graphics/render/view/CameraView.d.ts +3 -3
- package/src/engine/graphics/render/view/CameraViewManager.d.ts +2 -2
- package/src/engine/graphics/render/visibility/IncrementalDeltaSet.d.ts +143 -24
- package/src/engine/graphics/sh3/lpg/serialization/LightProbeGridSerializationAdapter.d.ts +0 -1
- package/src/engine/graphics/sh3/lpg/serialization/LightProbeGridSerializationAdapter.d.ts.map +1 -1
- package/src/engine/graphics/sh3/lpv/PathTracerProbeRenderer.d.ts +3 -1
- package/src/engine/graphics/sh3/lpv/PathTracerProbeRenderer.d.ts.map +1 -1
- package/src/engine/graphics/sh3/lpv/serialization/LightProbeVolumeSerializationAdapter.d.ts +0 -1
- package/src/engine/graphics/sh3/lpv/serialization/LightProbeVolumeSerializationAdapter.d.ts.map +1 -1
- package/src/engine/graphics/sh3/path_tracer/material/StandardTexture.d.ts +1 -2
- package/src/engine/graphics/sh3/path_tracer/material/StandardTexture.d.ts.map +1 -1
- package/src/engine/graphics/texture/atlas/TextureAtlas.d.ts +3 -3
- package/src/engine/graphics/texture/atlas/TextureAtlas.d.ts.map +1 -1
- package/src/engine/graphics/texture/cubemap/load_environment_map.d.ts +13 -8
- package/src/engine/graphics/texture/sampler/Sampler2D.d.ts +1 -1
- package/src/engine/graphics/texture/sampler/serialization/Sampler2DSerializationAdapter.d.ts +0 -1
- package/src/engine/graphics/texture/sampler/serialization/Sampler2DSerializationAdapter.d.ts.map +1 -1
- package/src/engine/graphics/texture/virtual/VirtualTextureTileLoader.d.ts +1 -3
- package/src/engine/graphics/texture/virtual/VirtualTextureTileLoader.d.ts.map +1 -1
- package/src/engine/graphics/three/cloneObject3D.d.ts +7 -3
- package/src/engine/graphics/trail/tube/TubeXPlugin.d.ts +0 -1
- package/src/engine/graphics/trail/tube/TubeXPlugin.d.ts.map +1 -1
- package/src/engine/graphics/trail/x/RibbonXMaterialSpec.d.ts +13 -3
- package/src/engine/graphics/trail/x/RibbonXPlugin.d.ts +0 -3
- package/src/engine/graphics/trail/x/RibbonXPlugin.d.ts.map +1 -1
- package/src/engine/graphics/util/promiseMaterialLoaded.d.ts +7 -3
- package/src/engine/grid/grid2transform/GridPosition2TransformSerializationAdapter.d.ts +0 -1
- package/src/engine/grid/grid2transform/GridPosition2TransformSerializationAdapter.d.ts.map +1 -1
- package/src/engine/grid/grid2transform/GridPosition2TransformSystem.d.ts +1 -1
- package/src/engine/grid/obstacle/GridObstacleSerializationAdapter.d.ts +0 -1
- package/src/engine/grid/obstacle/GridObstacleSerializationAdapter.d.ts.map +1 -1
- package/src/engine/grid/position/GridPositionSerializationAdapter.d.ts +0 -1
- package/src/engine/grid/position/GridPositionSerializationAdapter.d.ts.map +1 -1
- package/src/engine/grid/position/GridPositionSystem.d.ts +1 -1
- package/src/engine/grid/transform2grid/Transform2GridPositionSystem.d.ts +1 -1
- package/src/engine/input/GAMEPAD_API_PROPOSAL.md +717 -0
- package/src/engine/input/analog/apply_radial_dead_zone.d.ts +23 -0
- package/src/engine/input/analog/apply_radial_dead_zone.d.ts.map +1 -0
- package/src/engine/input/analog/apply_radial_dead_zone.js +38 -0
- package/src/engine/input/devices/GamepadDevice.d.ts +140 -23
- package/src/engine/input/devices/GamepadDevice.d.ts.map +1 -1
- package/src/engine/input/devices/GamepadDevice.js +202 -16
- package/src/engine/input/devices/InputDeviceSwitch.d.ts +44 -11
- package/src/engine/input/devices/InputDeviceSwitch.d.ts.map +1 -1
- package/src/engine/input/devices/KeyCodes.d.ts +112 -1
- package/src/engine/input/devices/KeyboardDevice.d.ts +2 -3
- package/src/engine/input/devices/KeyboardDevice.d.ts.map +1 -1
- package/src/engine/input/devices/PointerDevice.d.ts +96 -31
- package/src/engine/input/devices/PointerDevice.d.ts.map +1 -1
- package/src/engine/input/devices/events/KeyboardEvents.d.ts +5 -4
- package/src/engine/input/devices/events/MouseEvents.d.ts +18 -12
- package/src/engine/input/devices/events/TouchEvents.d.ts +12 -6
- package/src/engine/input/devices/gamepad/GamepadAxes.d.ts +5 -1
- package/src/engine/input/devices/gamepad/GamepadAxes.d.ts.map +1 -1
- package/src/engine/input/devices/gamepad/GamepadAxes.js +5 -1
- package/src/engine/input/devices/gamepad/GamepadHandle.d.ts +130 -26
- package/src/engine/input/devices/gamepad/GamepadHandle.d.ts.map +1 -1
- package/src/engine/input/devices/gamepad/GamepadHandle.js +60 -34
- package/src/engine/input/devices/gamepad/GamepadStandardMapping.d.ts +20 -0
- package/src/engine/input/devices/gamepad/GamepadStandardMapping.d.ts.map +1 -0
- package/src/engine/input/devices/gamepad/GamepadStandardMapping.js +20 -0
- package/src/engine/input/devices/gamepad/GamepadStick.d.ts +93 -0
- package/src/engine/input/devices/gamepad/GamepadStick.d.ts.map +1 -0
- package/src/engine/input/devices/gamepad/GamepadStick.js +165 -0
- package/src/engine/input/devices/gamepad/GamepadStickCalibration.d.ts +84 -0
- package/src/engine/input/devices/gamepad/GamepadStickCalibration.d.ts.map +1 -0
- package/src/engine/input/devices/gamepad/GamepadStickCalibration.js +119 -0
- package/src/engine/input/devices/gamepad/GamepadStickCalibrator.d.ts +92 -0
- package/src/engine/input/devices/gamepad/GamepadStickCalibrator.d.ts.map +1 -0
- package/src/engine/input/devices/gamepad/GamepadStickCalibrator.js +250 -0
- package/src/engine/input/devices/gamepad/gamepad_write_dpad_vector.d.ts +17 -0
- package/src/engine/input/devices/gamepad/gamepad_write_dpad_vector.d.ts.map +1 -0
- package/src/engine/input/devices/gamepad/gamepad_write_dpad_vector.js +30 -0
- package/src/engine/input/devices/touch/TouchDevice.d.ts +3 -3
- package/src/engine/input/ecs/components/Input.d.ts +49 -6
- package/src/engine/input/ecs/components/InputController.d.ts +33 -3
- package/src/engine/input/ecs/ism/InputBinding.d.ts +40 -4
- package/src/engine/input/ecs/systems/InputControllerSystem.d.ts +28 -6
- package/src/engine/input/ecs/systems/InputSystem.d.ts +59 -6
- package/src/engine/intelligence/behavior/Behavior.d.ts +58 -16
- package/src/engine/intelligence/behavior/Behavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/BehaviorStatus.d.ts +10 -8
- package/src/engine/intelligence/behavior/SelectorBehavior.d.ts +0 -1
- package/src/engine/intelligence/behavior/SelectorBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/composite/ParallelBehavior.d.ts +0 -8
- package/src/engine/intelligence/behavior/composite/ParallelBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/composite/ParallelBehaviorSerializationAdapter.d.ts +0 -1
- package/src/engine/intelligence/behavior/composite/ParallelBehaviorSerializationAdapter.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/composite/SequenceBehavior.d.ts +0 -1
- package/src/engine/intelligence/behavior/composite/SequenceBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/composite/SequenceBehaviorSerializationAdapter.d.ts +0 -1
- package/src/engine/intelligence/behavior/composite/SequenceBehaviorSerializationAdapter.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/decorator/AbstractDecoratorBehavior.d.ts +0 -1
- package/src/engine/intelligence/behavior/decorator/AbstractDecoratorBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/decorator/IgnoreFailureBehavior.d.ts +1 -2
- package/src/engine/intelligence/behavior/decorator/IgnoreFailureBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/decorator/InvertStatusBehavior.d.ts +1 -2
- package/src/engine/intelligence/behavior/decorator/InvertStatusBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/decorator/InvertStatusBehaviorSerializationAdapter.d.ts +0 -1
- package/src/engine/intelligence/behavior/decorator/InvertStatusBehaviorSerializationAdapter.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/decorator/OverrideContextBehavior.d.ts +1 -1
- package/src/engine/intelligence/behavior/decorator/OverrideContextBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/decorator/RepeatBehavior.d.ts +1 -2
- package/src/engine/intelligence/behavior/decorator/RepeatBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/decorator/RepeatBehaviorSerializationAdapter.d.ts +0 -1
- package/src/engine/intelligence/behavior/decorator/RepeatBehaviorSerializationAdapter.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/decorator/RepeatUntilSuccessBehavior.d.ts +1 -2
- package/src/engine/intelligence/behavior/decorator/RepeatUntilSuccessBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/ecs/BehaviorComponentSerializationAdapter.d.ts +0 -1
- package/src/engine/intelligence/behavior/ecs/BehaviorComponentSerializationAdapter.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/ecs/BehaviorSystem.d.ts +1 -1
- package/src/engine/intelligence/behavior/ecs/DieBehavior.d.ts +1 -2
- package/src/engine/intelligence/behavior/ecs/DieBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/ecs/EntityBehavior.d.ts +0 -1
- package/src/engine/intelligence/behavior/ecs/EntityBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/ecs/KillBehavior.d.ts +1 -2
- package/src/engine/intelligence/behavior/ecs/KillBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/ecs/OrbitingBehavior.d.ts +1 -2
- package/src/engine/intelligence/behavior/ecs/OrbitingBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/ecs/SendEventBehavior.d.ts +1 -2
- package/src/engine/intelligence/behavior/ecs/SendEventBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/ecs/WaitForEventBehavior.d.ts +1 -2
- package/src/engine/intelligence/behavior/ecs/WaitForEventBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/ecs/WaitForEventBehaviorSerializationAdapter.d.ts +0 -1
- package/src/engine/intelligence/behavior/ecs/WaitForEventBehaviorSerializationAdapter.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/primitive/ActionBehavior.d.ts +1 -2
- package/src/engine/intelligence/behavior/primitive/ActionBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/primitive/FailingBehavior.d.ts +1 -3
- package/src/engine/intelligence/behavior/primitive/FailingBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/primitive/FailingBehaviorSerializationAdapter.d.ts +0 -1
- package/src/engine/intelligence/behavior/primitive/FailingBehaviorSerializationAdapter.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/primitive/PromiseBehavior.d.ts +2 -4
- package/src/engine/intelligence/behavior/primitive/PromiseBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/primitive/SucceedingBehavior.d.ts +1 -3
- package/src/engine/intelligence/behavior/primitive/SucceedingBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/primitive/SucceedingBehaviorSerializationAdapter.d.ts +0 -1
- package/src/engine/intelligence/behavior/primitive/SucceedingBehaviorSerializationAdapter.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/selector/WeightedRandomBehavior.d.ts +1 -2
- package/src/engine/intelligence/behavior/selector/WeightedRandomBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/util/BranchBehavior.d.ts +1 -3
- package/src/engine/intelligence/behavior/util/BranchBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/util/ConditionBehavior.d.ts +1 -2
- package/src/engine/intelligence/behavior/util/ConditionBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/util/DelayBehavior.d.ts +1 -3
- package/src/engine/intelligence/behavior/util/DelayBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/util/LogMessageBehavior.d.ts +1 -2
- package/src/engine/intelligence/behavior/util/LogMessageBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/util/RandomDelayBehavior.d.ts +4 -4
- package/src/engine/intelligence/behavior/util/RandomDelayBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/util/RotationBehavior.d.ts +1 -2
- package/src/engine/intelligence/behavior/util/RotationBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/blackboard/AbstractBlackboard.d.ts +58 -15
- package/src/engine/intelligence/blackboard/AbstractBlackboard.d.ts.map +1 -1
- package/src/engine/intelligence/blackboard/Blackboard.d.ts +79 -11
- package/src/engine/intelligence/blackboard/Blackboard.d.ts.map +1 -1
- package/src/engine/intelligence/blackboard/BlackboardSerializationAdapter.d.ts +0 -1
- package/src/engine/intelligence/blackboard/BlackboardSerializationAdapter.d.ts.map +1 -1
- package/src/engine/intelligence/blackboard/BlackboardValue.d.ts +1 -0
- package/src/engine/intelligence/blackboard/BlackboardValue.d.ts.map +1 -1
- package/src/engine/intelligence/controller/graph/StateGraphSystem.d.ts +1 -3
- package/src/engine/intelligence/controller/graph/StateGraphSystem.d.ts.map +1 -1
- package/src/engine/interpolation/InterpolationSystem.d.ts +1 -5
- package/src/engine/interpolation/InterpolationSystem.d.ts.map +1 -1
- package/src/engine/interpolation/TransformPoseSerializationAdapter.d.ts +0 -1
- package/src/engine/interpolation/TransformPoseSerializationAdapter.d.ts.map +1 -1
- package/src/engine/knowledge/database/StaticKnowledgeDataTable.d.ts +140 -9
- package/src/engine/knowledge/database/StaticKnowledgeDataTableDescriptor.d.ts +26 -7
- package/src/engine/knowledge/database/StaticKnowledgeDatabase.d.ts +2 -3
- package/src/engine/knowledge/database/StaticKnowledgeDatabase.d.ts.map +1 -1
- package/src/engine/navigation/ecs/components/InterpolationType.d.ts +8 -4
- package/src/engine/navigation/ecs/components/Path.d.ts +167 -47
- package/src/engine/navigation/ecs/components/PathEvents.d.ts +8 -6
- package/src/engine/navigation/ecs/components/PathSerializationAdapter.d.ts +0 -1
- package/src/engine/navigation/ecs/components/PathSerializationAdapter.d.ts.map +1 -1
- package/src/engine/navigation/ecs/path_following/PathFollower.d.ts +85 -45
- package/src/engine/navigation/ecs/path_following/PathFollowerEventType.d.ts +5 -3
- package/src/engine/navigation/ecs/path_following/PathFollowerFlags.d.ts +14 -20
- package/src/engine/navigation/ecs/path_following/PathFollowerSerializationAdapter.d.ts +0 -1
- package/src/engine/navigation/ecs/path_following/PathFollowerSerializationAdapter.d.ts.map +1 -1
- package/src/engine/navigation/ecs/path_following/PathFollowingSystem.d.ts +31 -6
- package/src/engine/navigation/ecs/path_following/PathFollowingSystem.d.ts.map +1 -1
- package/src/engine/network/adapters/TransformReplicationAdapter.d.ts +0 -1
- package/src/engine/network/adapters/TransformReplicationAdapter.d.ts.map +1 -1
- package/src/engine/network/ecs/NetworkSystem.d.ts +1 -1
- package/src/engine/network/ecs/serialization/NetworkIdentitySerializationAdapter.d.ts +0 -1
- package/src/engine/network/ecs/serialization/NetworkIdentitySerializationAdapter.d.ts.map +1 -1
- package/src/engine/options/Option.d.ts +3 -3
- package/src/engine/options/OptionsView.d.ts +1 -2
- package/src/engine/options/OptionsView.d.ts.map +1 -1
- package/src/engine/physics/body/SolverBodyState.d.ts.map +1 -1
- package/src/engine/physics/body/SolverBodyState.js +10 -1
- package/src/engine/physics/constraint/solve_constraints.d.ts.map +1 -1
- package/src/engine/physics/constraint/solve_constraints.js +840 -830
- package/src/engine/physics/ecs/ColliderObserverSystem.d.ts +3 -3
- package/src/engine/physics/ecs/ColliderObserverSystem.d.ts.map +1 -1
- package/src/engine/physics/ecs/ColliderSerializationAdapter.d.ts +0 -1
- package/src/engine/physics/ecs/ColliderSerializationAdapter.d.ts.map +1 -1
- package/src/engine/physics/ecs/JointSerializationAdapter.d.ts +0 -1
- package/src/engine/physics/ecs/JointSerializationAdapter.d.ts.map +1 -1
- package/src/engine/physics/ecs/PhysicsSystem.d.ts +14 -2
- package/src/engine/physics/ecs/PhysicsSystem.d.ts.map +1 -1
- package/src/engine/physics/ecs/PhysicsSystem.js +2246 -2172
- package/src/engine/physics/ecs/RigidBodySerializationAdapter.d.ts +0 -1
- package/src/engine/physics/ecs/RigidBodySerializationAdapter.d.ts.map +1 -1
- package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts +12 -8
- package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts.map +1 -1
- package/src/engine/physics/fluid/ecs/FluidSystem.d.ts +8 -4
- package/src/engine/physics/fluid/ecs/FluidSystem.d.ts.map +1 -1
- package/src/engine/physics/integration/integrate_velocity.d.ts.map +1 -1
- package/src/engine/physics/integration/integrate_velocity.js +25 -2
- package/src/engine/physics/narrowphase/capsule_contacts.d.ts.map +1 -1
- package/src/engine/physics/narrowphase/capsule_contacts.js +622 -617
- package/src/engine/physics/narrowphase/convex_convex_manifold.d.ts.map +1 -1
- package/src/engine/physics/narrowphase/convex_convex_manifold.js +632 -568
- package/src/engine/physics/solver/solve_contacts.d.ts +6 -5
- package/src/engine/physics/solver/solve_contacts.d.ts.map +1 -1
- package/src/engine/physics/solver/solve_contacts.js +1506 -1482
- package/src/engine/platform/EnginePlatform.d.ts +24 -14
- package/src/engine/platform/WebEnginePlatform.d.ts +20 -5
- package/src/engine/platform/WebEnginePlatform.d.ts.map +1 -1
- package/src/engine/plugin/EnginePlugin.d.ts +36 -3
- package/src/engine/plugin/EnginePlugin.d.ts.map +1 -1
- package/src/engine/plugin/EnginePluginManager.d.ts +85 -16
- package/src/engine/plugin/EnginePluginManager.d.ts.map +1 -1
- package/src/engine/plugin/PluginReferenceContext.d.ts +1 -1
- package/src/engine/reference/v2/Reference.d.ts +55 -17
- package/src/engine/reference/v2/Reference.d.ts.map +1 -1
- package/src/engine/save/GameStateLoader.d.ts +0 -1
- package/src/engine/save/GameStateLoader.d.ts.map +1 -1
- package/src/engine/save/Storage.d.ts +75 -15
- package/src/engine/save/storage/InMemoryStorage.d.ts +0 -1
- package/src/engine/save/storage/InMemoryStorage.d.ts.map +1 -1
- package/src/engine/save/storage/IndexedDBStorage.d.ts +0 -2
- package/src/engine/save/storage/IndexedDBStorage.d.ts.map +1 -1
- package/src/engine/scene/Scene.d.ts +65 -7
- package/src/engine/scene/SceneManager.d.ts +125 -25
- package/src/engine/simulation/Ticker.d.ts +1 -2
- package/src/engine/simulation/Ticker.d.ts.map +1 -1
- package/src/engine/sound/SoundEngine.d.ts +46 -3
- package/src/engine/sound/ecs/SoundController.d.ts +0 -1
- package/src/engine/sound/ecs/SoundController.d.ts.map +1 -1
- package/src/engine/sound/ecs/SoundControllerSystem.d.ts +1 -2
- package/src/engine/sound/ecs/SoundControllerSystem.d.ts.map +1 -1
- package/src/engine/sound/ecs/SoundListener.d.ts +0 -1
- package/src/engine/sound/ecs/SoundListener.d.ts.map +1 -1
- package/src/engine/sound/ecs/SoundListenerSystem.d.ts +1 -1
- package/src/engine/sound/ecs/audio/AudioEmitterSystem.d.ts +1 -1
- package/src/engine/sound/ecs/emitter/SoundEmitter.d.ts +1 -1
- package/src/engine/sound/ecs/emitter/SoundEmitter.d.ts.map +1 -1
- package/src/engine/sound/ecs/emitter/SoundEmitterSerializationAdapter.d.ts +0 -1
- package/src/engine/sound/ecs/emitter/SoundEmitterSerializationAdapter.d.ts.map +1 -1
- package/src/engine/sound/ecs/emitter/SoundEmitterSystem.d.ts +1 -1
- package/src/engine/sound/ecs/emitter/SoundTrack.d.ts +1 -2
- package/src/engine/sound/ecs/emitter/SoundTrack.d.ts.map +1 -1
- package/src/engine/sound/simulation/core/AcousticMediumSerializationAdapter.d.ts +0 -1
- package/src/engine/sound/simulation/core/AcousticMediumSerializationAdapter.d.ts.map +1 -1
- package/src/engine/sound/simulation/definition/AcousticDirectivitySerializationAdapter.d.ts +0 -1
- package/src/engine/sound/simulation/definition/AcousticDirectivitySerializationAdapter.d.ts.map +1 -1
- package/src/engine/sound/simulation/definition/AcousticMaterialSerializationAdapter.d.ts +0 -1
- package/src/engine/sound/simulation/definition/AcousticMaterialSerializationAdapter.d.ts.map +1 -1
- package/src/engine/sound/simulation/ecs/AcousticBodySerializationAdapter.d.ts +0 -1
- package/src/engine/sound/simulation/ecs/AcousticBodySerializationAdapter.d.ts.map +1 -1
- package/src/engine/sound/simulation/ecs/AcousticProbeFieldSystem.d.ts +1 -1
- package/src/engine/sound/simulation/ecs/AcousticSimulationSystem.d.ts +1 -1
- package/src/engine/sound/simulation/ecs/AcousticVolumeSerializationAdapter.d.ts +0 -1
- package/src/engine/sound/simulation/ecs/AcousticVolumeSerializationAdapter.d.ts.map +1 -1
- package/src/engine/sound/simulation/ecs/AcousticVolumeSystem.d.ts +1 -1
- package/src/engine/sound/simulation/probe/AcousticProbeFieldSerializationAdapter.d.ts +0 -1
- package/src/engine/sound/simulation/probe/AcousticProbeFieldSerializationAdapter.d.ts.map +1 -1
- package/src/engine/sound/sopra/definition/BusDefinitionSerializationAdapter.d.ts +0 -1
- package/src/engine/sound/sopra/definition/BusDefinitionSerializationAdapter.d.ts.map +1 -1
- package/src/engine/sound/sopra/definition/DuckingRuleSerializationAdapter.d.ts +0 -1
- package/src/engine/sound/sopra/definition/DuckingRuleSerializationAdapter.d.ts.map +1 -1
- package/src/engine/sound/sopra/definition/EventDescriptionSerializationAdapter.d.ts +0 -1
- package/src/engine/sound/sopra/definition/EventDescriptionSerializationAdapter.d.ts.map +1 -1
- package/src/engine/sound/sopra/definition/MixerSnapshotSerializationAdapter.d.ts +0 -1
- package/src/engine/sound/sopra/definition/MixerSnapshotSerializationAdapter.d.ts.map +1 -1
- package/src/engine/sound/sopra/definition/ParameterDefinitionSerializationAdapter.d.ts +0 -1
- package/src/engine/sound/sopra/definition/ParameterDefinitionSerializationAdapter.d.ts.map +1 -1
- package/src/engine/sound/sopra/definition/clip/BlendContainerAudioClipSerializationAdapter.d.ts +0 -1
- package/src/engine/sound/sopra/definition/clip/BlendContainerAudioClipSerializationAdapter.d.ts.map +1 -1
- package/src/engine/sound/sopra/definition/clip/RandomContainerAudioClipSerializationAdapter.d.ts +0 -1
- package/src/engine/sound/sopra/definition/clip/RandomContainerAudioClipSerializationAdapter.d.ts.map +1 -1
- package/src/engine/sound/sopra/definition/clip/SampleAudioClipSerializationAdapter.d.ts +0 -1
- package/src/engine/sound/sopra/definition/clip/SampleAudioClipSerializationAdapter.d.ts.map +1 -1
- package/src/engine/sound/sopra/definition/clip/SequenceContainerAudioClipSerializationAdapter.d.ts +0 -1
- package/src/engine/sound/sopra/definition/clip/SequenceContainerAudioClipSerializationAdapter.d.ts.map +1 -1
- package/src/engine/sound/sopra/definition/clip/SilenceAudioClipSerializationAdapter.d.ts +0 -1
- package/src/engine/sound/sopra/definition/clip/SilenceAudioClipSerializationAdapter.d.ts.map +1 -1
- package/src/engine/sound/sopra/definition/clip/SwitchContainerAudioClipSerializationAdapter.d.ts +0 -1
- package/src/engine/sound/sopra/definition/clip/SwitchContainerAudioClipSerializationAdapter.d.ts.map +1 -1
- package/src/engine/sound/sopra/definition/effect/CompressorEffectSerializationAdapter.d.ts +0 -1
- package/src/engine/sound/sopra/definition/effect/CompressorEffectSerializationAdapter.d.ts.map +1 -1
- package/src/engine/sound/sopra/definition/effect/EqEffectSerializationAdapter.d.ts +0 -1
- package/src/engine/sound/sopra/definition/effect/EqEffectSerializationAdapter.d.ts.map +1 -1
- package/src/engine/sound/sopra/definition/effect/ReverbEffectSerializationAdapter.d.ts +0 -1
- package/src/engine/sound/sopra/definition/effect/ReverbEffectSerializationAdapter.d.ts.map +1 -1
- package/src/engine/sound/sopra/runtime/EventInstance.d.ts +1 -2
- package/src/engine/sound/sopra/runtime/EventInstance.d.ts.map +1 -1
- package/src/engine/sound/sopra/runtime/ParameterStore.d.ts +1 -2
- package/src/engine/sound/sopra/runtime/ParameterStore.d.ts.map +1 -1
- package/src/engine/ui/bindings/DomElementProcessorManager.d.ts +0 -3
- package/src/engine/ui/bindings/DomElementProcessorManager.d.ts.map +1 -1
- package/src/engine/ui/modal/ModalStack.d.ts +3 -3
- package/src/engine/ui/notification/AnimatedObjectEmitter.d.ts +2 -2
- package/src/engine/ui/notification/ViewEmitter.d.ts +2 -2
- package/src/generation/filtering/CellFilter.d.ts +1 -1
- package/src/generation/filtering/CellFilter.d.ts.map +1 -1
- package/src/generation/markers/actions/placement/MarkerNodeEntityProcessorRandomRotation.d.ts +3 -1
- package/src/generation/markers/actions/placement/MarkerNodeEntityProcessorRandomRotation.d.ts.map +1 -1
- package/src/generation/markers/actions/probability/MarkerNodeActionSelectWeighted.d.ts +3 -1
- package/src/generation/markers/actions/probability/MarkerNodeActionSelectWeighted.d.ts.map +1 -1
- package/src/generation/markers/transform/MarkerNodeTransformRotateRandom.d.ts +3 -1
- package/src/generation/markers/transform/MarkerNodeTransformRotateRandom.d.ts.map +1 -1
- package/src/generation/markers/transform/MarkerNodeTransformerRecordPropertyClosure.d.ts +3 -1
- package/src/generation/markers/transform/MarkerNodeTransformerRecordPropertyClosure.d.ts.map +1 -1
- package/src/generation/markers/transform/MarkerNodeTransformerRecordUniqueRandomEnum.d.ts +3 -1
- package/src/generation/markers/transform/MarkerNodeTransformerRecordUniqueRandomEnum.d.ts.map +1 -1
- package/src/generation/placement/action/util/CellMatcherWithinAABB.d.ts +1 -1
- package/src/generation/placement/action/util/CellMatcherWithinAABB.d.ts.map +1 -1
- package/src/misc/makeMatcapSelectionOption.d.ts +11 -13
- package/src/view/View.d.ts +313 -30
- package/src/view/asset/AssetLoaderStatusView.d.ts +1 -1
- package/src/view/asset/PreloaderView.d.ts +1 -1
- package/src/view/common/LabelView.d.ts +2 -1
- package/src/view/common/LabelView.d.ts.map +1 -1
- package/src/view/common/ListView.d.ts +2 -2
- package/src/view/common/ListView.d.ts.map +1 -1
- package/src/view/common/TabbedView.d.ts +1 -1
- package/src/view/common/VirtualListView.d.ts +3 -3
- package/src/view/common/VirtualListView.d.ts.map +1 -1
- package/src/view/common/dnd/Draggable.d.ts +2 -2
- package/src/view/common/dnd/DropTarget.d.ts +6 -6
- package/src/view/controller/GuiController.d.ts +1 -2
- package/src/view/controller/GuiController.d.ts.map +1 -1
- package/src/view/controller/controls/BooleanVector3Control.d.ts +1 -2
- package/src/view/controller/controls/BooleanVector3Control.d.ts.map +1 -1
- package/src/view/controller/controls/NativeListController.d.ts +1 -1
- package/src/view/controller/controls/Vector1Control.d.ts +1 -1
- package/src/view/currency/CompositeCurrencyLabelView.d.ts +1 -1
- package/src/view/currency/CurrencyDenominationLabelView.d.ts +1 -1
- package/src/view/elements/BottomLeftResizeHandleView.d.ts +1 -1
- package/src/view/elements/CanvasView.d.ts +1 -2
- package/src/view/elements/CanvasView.d.ts.map +1 -1
- package/src/view/elements/CheckboxView.d.ts +1 -1
- package/src/view/elements/CompassArrowView.d.ts +1 -2
- package/src/view/elements/CompassArrowView.d.ts.map +1 -1
- package/src/view/elements/ConfirmationDialogView.d.ts +1 -1
- package/src/view/elements/DropDownSelectionView.d.ts +1 -1
- package/src/view/elements/EmptyView.d.ts +1 -2
- package/src/view/elements/EmptyView.d.ts.map +1 -1
- package/src/view/elements/Group.d.ts +1 -2
- package/src/view/elements/Group.d.ts.map +1 -1
- package/src/view/elements/MeshPreview.d.ts +1 -1
- package/src/view/elements/SimpleWindow.d.ts +1 -1
- package/src/view/elements/button/ButtonView.d.ts +1 -1
- package/src/view/elements/image/ImageView.d.ts +1 -2
- package/src/view/elements/image/ImageView.d.ts.map +1 -1
- package/src/view/elements/image/SvgImageView.d.ts +1 -1
- package/src/view/elements/label/LabeledValueView.d.ts +1 -1
- package/src/view/elements/navigation/ViewStack.d.ts +1 -8
- package/src/view/elements/navigation/ViewStack.d.ts.map +1 -1
- package/src/view/elements/notify/ToastLogView.d.ts +1 -1
- package/src/view/elements/progress/RectangularPieProgressView.d.ts +1 -1
- package/src/view/elements/progress/SmoothProgressBar.d.ts +1 -1
- package/src/view/elements/progress/segmented/SegmentedResourceBarView.d.ts +1 -1
- package/src/view/elements/radial/RadialMenu.d.ts +1 -1
- package/src/view/elements/radial/RadialMenuElement.d.ts +1 -1
- package/src/view/elements/radial/RadialMenuElementDefinition.d.ts +125 -39
- package/src/view/elements/radial/RadialProgressView.d.ts +1 -1
- package/src/view/elements/radial/RadialText.d.ts +1 -1
- package/src/view/elements/tiles2d/Tile.d.ts +1 -1
- package/src/view/elements/tiles2d/TileGrid.d.ts +4 -5
- package/src/view/elements/tiles2d/TileGrid.d.ts.map +1 -1
- package/src/view/elements/video/VideoView.d.ts +2 -2
- package/src/view/elements/video/VideoView.d.ts.map +1 -1
- package/src/view/elements/windrose/WindRoseDiagram.d.ts +1 -1
- package/src/view/game/achievements/AchievementNotificationView.d.ts +1 -1
- package/src/view/math/FunctionGraphView.d.ts +1 -1
- package/src/view/minimap/Minimap.d.ts +1 -1
- package/src/view/minimap/dom/MinimapCameraView.d.ts +1 -1
- package/src/view/minimap/dom/MinimapMarkerView.d.ts +1 -1
- package/src/view/minimap/dom/MinimapTerrainView.d.ts +1 -1
- package/src/view/task/TaskProgressView.d.ts +1 -1
- package/src/view/tooltip/DomTooltipObserver.d.ts +2 -2
- package/src/view/tooltip/TooltipView.d.ts +1 -1
- package/src/view/tooltip/gml/parser/parseTooltipString.d.ts +1 -0
- package/src/view/tooltip/gml/parser/parseTooltipString.d.ts.map +1 -1
- package/src/view/tooltip/gml/parser/readReferenceToken.d.ts +1 -0
- package/src/view/tooltip/gml/parser/readReferenceToken.d.ts.map +1 -1
- package/src/view/tooltip/gml/parser/readReferenceValueToken.d.ts +2 -1
- package/src/view/tooltip/gml/parser/readReferenceValueToken.d.ts.map +1 -1
- package/src/view/tooltip/gml/parser/readStyleToken.d.ts +1 -0
- package/src/view/tooltip/gml/parser/readStyleToken.d.ts.map +1 -1
- package/editor/ecs/component/TypeSchema.d.ts +0 -38
- package/editor/tools/v2/BlenderCameraOrientationGizmo.d.ts +0 -50
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Number of consecutive samples examined as one candidate rest window.
|
|
3
|
+
* At animation-frame rate this is roughly one second.
|
|
4
|
+
* @readonly
|
|
5
|
+
* @type {number}
|
|
6
|
+
*/
|
|
7
|
+
export const REST_SAMPLE_COUNT: number;
|
|
8
|
+
/**
|
|
9
|
+
* A window containing any sample further than this from the origin is not a plausible rest position.
|
|
10
|
+
*
|
|
11
|
+
* Deliberately tight, and tighter than the drift seen on the worst hardware. Two reasons.
|
|
12
|
+
*
|
|
13
|
+
* A large steady deflection is more likely to be a player holding the stick than a stick resting there, and
|
|
14
|
+
* the two cannot be told apart from a single window. This bound is what caps the damage when we guess wrong:
|
|
15
|
+
* a wrongly learned center can be no further out than this, which puts the resulting phantom deflection below
|
|
16
|
+
* any usable gameplay dead zone, so it stays invisible until it is superseded.
|
|
17
|
+
*
|
|
18
|
+
* And the case we would lose by being tight is the case that needs us least. Auto-calibration earns its keep
|
|
19
|
+
* on small drift, which sits under a gameplay dead zone yet still causes slow creep in anything with a tight
|
|
20
|
+
* one. Drift worse than this bound is already absorbed by any sane gameplay dead zone - XInput ships 0.24 -
|
|
21
|
+
* and is a pad heading either for replacement or for a calibration written from a settings screen.
|
|
22
|
+
*
|
|
23
|
+
* @readonly
|
|
24
|
+
* @type {number}
|
|
25
|
+
*/
|
|
26
|
+
export const REST_CANDIDATE_MAX: number;
|
|
27
|
+
/**
|
|
28
|
+
* A window whose per-axis spread exceeds this is the stick being moved or held, not resting.
|
|
29
|
+
*
|
|
30
|
+
* This is the main defence against learning a held position as the rest position. A held stick carries the
|
|
31
|
+
* hand's tremor, a settled one carries only sensor noise, and the two differ by roughly an order of magnitude.
|
|
32
|
+
* The bound sits between them, which costs an unusually noisy stick its calibration - an acceptable trade,
|
|
33
|
+
* since failing to calibrate leaves an exact passthrough while calibrating wrongly injects phantom deflection.
|
|
34
|
+
*
|
|
35
|
+
* @readonly
|
|
36
|
+
* @type {number}
|
|
37
|
+
*/
|
|
38
|
+
export const REST_SPREAD_MAX: number;
|
|
39
|
+
/**
|
|
40
|
+
* Scales the robust dispersion estimate into a radius that covers essentially all resting samples.
|
|
41
|
+
* @readonly
|
|
42
|
+
* @type {number}
|
|
43
|
+
*/
|
|
44
|
+
export const NOISE_RADIUS_DEVIATIONS: number;
|
|
45
|
+
/**
|
|
46
|
+
* Largest noise radius that can be produced by a window that passed {@link REST_SPREAD_MAX}.
|
|
47
|
+
*
|
|
48
|
+
* Not enforced anywhere, the spread bound already constrains the result structurally. Stated so that a change
|
|
49
|
+
* to the bounds is visibly a change to how much range calibration can consume.
|
|
50
|
+
*
|
|
51
|
+
* @readonly
|
|
52
|
+
* @type {number}
|
|
53
|
+
*/
|
|
54
|
+
export const NOISE_RADIUS_MAX: number;
|
|
55
|
+
/**
|
|
56
|
+
* Learns where a stick rests and how much it wanders while resting.
|
|
57
|
+
*
|
|
58
|
+
* Runs continuously and unattended. Windows are only accepted while the stick is actually still, so an
|
|
59
|
+
* actively-used stick simply never produces a candidate, and no wizard or calibration screen is required.
|
|
60
|
+
*
|
|
61
|
+
* A stick cannot be told from a single window whether it is resting or being held, both look steady. The
|
|
62
|
+
* bounds are therefore biased hard towards rejection, and a wrong estimate is self-correcting: only a rest
|
|
63
|
+
* position closer to the origin than the accepted one is ever adopted, so releasing the stick supersedes it.
|
|
64
|
+
* A player parked at a small steady deflection for a full second can still poison the estimate until they let
|
|
65
|
+
* go, bounded by {@link REST_CANDIDATE_MAX}.
|
|
66
|
+
*
|
|
67
|
+
* Robust statistics throughout: the center is a median rather than a mean, because one spike shifts a
|
|
68
|
+
* 60-sample mean by 1.7% of its amplitude and shifts the median by nothing, and the dispersion is a median
|
|
69
|
+
* absolute deviation rather than a high quantile, because a quantile computed from 60 samples is dominated by
|
|
70
|
+
* the very tail we are trying not to fit.
|
|
71
|
+
*
|
|
72
|
+
* @author Alex Goldring
|
|
73
|
+
* @copyright Company Named Limited (c) 2026
|
|
74
|
+
*/
|
|
75
|
+
export class GamepadStickCalibrator {
|
|
76
|
+
/**
|
|
77
|
+
* Feed one raw sample. Adopts a new estimate into the calibration whenever a window qualifies.
|
|
78
|
+
*
|
|
79
|
+
* @param {GamepadStickCalibration} calibration written when a window is accepted
|
|
80
|
+
* @param {number} x raw axis value
|
|
81
|
+
* @param {number} y raw axis value
|
|
82
|
+
* @returns {void}
|
|
83
|
+
*/
|
|
84
|
+
sample(calibration: GamepadStickCalibration, x: number, y: number): void;
|
|
85
|
+
/**
|
|
86
|
+
* Discard the current window and the accepted estimate, learning starts over.
|
|
87
|
+
* @returns {void}
|
|
88
|
+
*/
|
|
89
|
+
reset(): void;
|
|
90
|
+
#private;
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=GamepadStickCalibrator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GamepadStickCalibrator.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/input/devices/gamepad/GamepadStickCalibrator.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,gCAFU,MAAM,CAEoB;AAEpC;;;;;;;;;;;;;;;;;GAiBG;AACH,iCAFU,MAAM,CAEuB;AAEvC;;;;;;;;;;GAUG;AACH,8BAFU,MAAM,CAEqB;AAErC;;;;GAIG;AACH,sCAFU,MAAM,CAEyB;AAEzC;;;;;;;;GAQG;AACH,+BAFU,MAAM,CAE6E;AAyB7F;;;;;;;;;;;;;;;;;;;GAmBG;AACH;IAwCI;;;;;;;OAOG;IACH,gDAJW,MAAM,KACN,MAAM,GACJ,IAAI,CAiBhB;IAED;;;OAGG;IACH,SAFa,IAAI,CAKhB;;CA2EJ"}
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Number of consecutive samples examined as one candidate rest window.
|
|
3
|
+
* At animation-frame rate this is roughly one second.
|
|
4
|
+
* @readonly
|
|
5
|
+
* @type {number}
|
|
6
|
+
*/
|
|
7
|
+
export const REST_SAMPLE_COUNT = 60;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A window containing any sample further than this from the origin is not a plausible rest position.
|
|
11
|
+
*
|
|
12
|
+
* Deliberately tight, and tighter than the drift seen on the worst hardware. Two reasons.
|
|
13
|
+
*
|
|
14
|
+
* A large steady deflection is more likely to be a player holding the stick than a stick resting there, and
|
|
15
|
+
* the two cannot be told apart from a single window. This bound is what caps the damage when we guess wrong:
|
|
16
|
+
* a wrongly learned center can be no further out than this, which puts the resulting phantom deflection below
|
|
17
|
+
* any usable gameplay dead zone, so it stays invisible until it is superseded.
|
|
18
|
+
*
|
|
19
|
+
* And the case we would lose by being tight is the case that needs us least. Auto-calibration earns its keep
|
|
20
|
+
* on small drift, which sits under a gameplay dead zone yet still causes slow creep in anything with a tight
|
|
21
|
+
* one. Drift worse than this bound is already absorbed by any sane gameplay dead zone - XInput ships 0.24 -
|
|
22
|
+
* and is a pad heading either for replacement or for a calibration written from a settings screen.
|
|
23
|
+
*
|
|
24
|
+
* @readonly
|
|
25
|
+
* @type {number}
|
|
26
|
+
*/
|
|
27
|
+
export const REST_CANDIDATE_MAX = 0.08;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* A window whose per-axis spread exceeds this is the stick being moved or held, not resting.
|
|
31
|
+
*
|
|
32
|
+
* This is the main defence against learning a held position as the rest position. A held stick carries the
|
|
33
|
+
* hand's tremor, a settled one carries only sensor noise, and the two differ by roughly an order of magnitude.
|
|
34
|
+
* The bound sits between them, which costs an unusually noisy stick its calibration - an acceptable trade,
|
|
35
|
+
* since failing to calibrate leaves an exact passthrough while calibrating wrongly injects phantom deflection.
|
|
36
|
+
*
|
|
37
|
+
* @readonly
|
|
38
|
+
* @type {number}
|
|
39
|
+
*/
|
|
40
|
+
export const REST_SPREAD_MAX = 0.015;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Scales the robust dispersion estimate into a radius that covers essentially all resting samples.
|
|
44
|
+
* @readonly
|
|
45
|
+
* @type {number}
|
|
46
|
+
*/
|
|
47
|
+
export const NOISE_RADIUS_DEVIATIONS = 4;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Largest noise radius that can be produced by a window that passed {@link REST_SPREAD_MAX}.
|
|
51
|
+
*
|
|
52
|
+
* Not enforced anywhere, the spread bound already constrains the result structurally. Stated so that a change
|
|
53
|
+
* to the bounds is visibly a change to how much range calibration can consume.
|
|
54
|
+
*
|
|
55
|
+
* @readonly
|
|
56
|
+
* @type {number}
|
|
57
|
+
*/
|
|
58
|
+
export const NOISE_RADIUS_MAX = REST_SPREAD_MAX * Math.SQRT2 * (1 + NOISE_RADIUS_DEVIATIONS);
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Median of a full sample window, computed via {@link scratch} so the input is left untouched and nothing is
|
|
62
|
+
* allocated.
|
|
63
|
+
*
|
|
64
|
+
* @param {Float64Array} values exactly {@link REST_SAMPLE_COUNT} long
|
|
65
|
+
* @param {Float64Array} scratch exactly {@link REST_SAMPLE_COUNT} long
|
|
66
|
+
* @returns {number}
|
|
67
|
+
*/
|
|
68
|
+
function median(values, scratch) {
|
|
69
|
+
scratch.set(values);
|
|
70
|
+
|
|
71
|
+
// typed array sort is numeric ascending
|
|
72
|
+
scratch.sort();
|
|
73
|
+
|
|
74
|
+
const middle = REST_SAMPLE_COUNT >> 1;
|
|
75
|
+
|
|
76
|
+
if ((REST_SAMPLE_COUNT & 1) === 1) {
|
|
77
|
+
return scratch[middle];
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return (scratch[middle - 1] + scratch[middle]) * 0.5;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Learns where a stick rests and how much it wanders while resting.
|
|
85
|
+
*
|
|
86
|
+
* Runs continuously and unattended. Windows are only accepted while the stick is actually still, so an
|
|
87
|
+
* actively-used stick simply never produces a candidate, and no wizard or calibration screen is required.
|
|
88
|
+
*
|
|
89
|
+
* A stick cannot be told from a single window whether it is resting or being held, both look steady. The
|
|
90
|
+
* bounds are therefore biased hard towards rejection, and a wrong estimate is self-correcting: only a rest
|
|
91
|
+
* position closer to the origin than the accepted one is ever adopted, so releasing the stick supersedes it.
|
|
92
|
+
* A player parked at a small steady deflection for a full second can still poison the estimate until they let
|
|
93
|
+
* go, bounded by {@link REST_CANDIDATE_MAX}.
|
|
94
|
+
*
|
|
95
|
+
* Robust statistics throughout: the center is a median rather than a mean, because one spike shifts a
|
|
96
|
+
* 60-sample mean by 1.7% of its amplitude and shifts the median by nothing, and the dispersion is a median
|
|
97
|
+
* absolute deviation rather than a high quantile, because a quantile computed from 60 samples is dominated by
|
|
98
|
+
* the very tail we are trying not to fit.
|
|
99
|
+
*
|
|
100
|
+
* @author Alex Goldring
|
|
101
|
+
* @copyright Company Named Limited (c) 2026
|
|
102
|
+
*/
|
|
103
|
+
export class GamepadStickCalibrator {
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @type {Float64Array}
|
|
107
|
+
*/
|
|
108
|
+
#samplesX = new Float64Array(REST_SAMPLE_COUNT);
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @type {Float64Array}
|
|
112
|
+
*/
|
|
113
|
+
#samplesY = new Float64Array(REST_SAMPLE_COUNT);
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Scratch space for distances of the current window from its own center
|
|
117
|
+
* @type {Float64Array}
|
|
118
|
+
*/
|
|
119
|
+
#distances = new Float64Array(REST_SAMPLE_COUNT);
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Scratch space for median computation
|
|
123
|
+
* @type {Float64Array}
|
|
124
|
+
*/
|
|
125
|
+
#scratch = new Float64Array(REST_SAMPLE_COUNT);
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @type {number}
|
|
129
|
+
*/
|
|
130
|
+
#count = 0;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Magnitude of the accepted center, or -1 when nothing has been accepted yet.
|
|
134
|
+
* A window is only adopted if it rests closer to the origin than what we already have, which makes a bad
|
|
135
|
+
* estimate self-correcting: a stick that was being held when sampling started is superseded the moment it
|
|
136
|
+
* is released. The trade is that drift growing within a single session is not followed, which is fine -
|
|
137
|
+
* that is a wear process measured in weeks, and calibration restarts whenever the pad reconnects.
|
|
138
|
+
*
|
|
139
|
+
* @type {number}
|
|
140
|
+
*/
|
|
141
|
+
#acceptedMagnitude = -1;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Feed one raw sample. Adopts a new estimate into the calibration whenever a window qualifies.
|
|
145
|
+
*
|
|
146
|
+
* @param {GamepadStickCalibration} calibration written when a window is accepted
|
|
147
|
+
* @param {number} x raw axis value
|
|
148
|
+
* @param {number} y raw axis value
|
|
149
|
+
* @returns {void}
|
|
150
|
+
*/
|
|
151
|
+
sample(calibration, x, y) {
|
|
152
|
+
const i = this.#count;
|
|
153
|
+
|
|
154
|
+
this.#samplesX[i] = x;
|
|
155
|
+
this.#samplesY[i] = y;
|
|
156
|
+
|
|
157
|
+
this.#count = i + 1;
|
|
158
|
+
|
|
159
|
+
if (this.#count < REST_SAMPLE_COUNT) {
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
this.#count = 0;
|
|
164
|
+
|
|
165
|
+
this.#evaluateWindow(calibration);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Discard the current window and the accepted estimate, learning starts over.
|
|
170
|
+
* @returns {void}
|
|
171
|
+
*/
|
|
172
|
+
reset() {
|
|
173
|
+
this.#count = 0;
|
|
174
|
+
this.#acceptedMagnitude = -1;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* @param {GamepadStickCalibration} calibration
|
|
180
|
+
*/
|
|
181
|
+
#evaluateWindow(calibration) {
|
|
182
|
+
const samplesX = this.#samplesX;
|
|
183
|
+
const samplesY = this.#samplesY;
|
|
184
|
+
|
|
185
|
+
let minX = samplesX[0];
|
|
186
|
+
let maxX = minX;
|
|
187
|
+
let minY = samplesY[0];
|
|
188
|
+
let maxY = minY;
|
|
189
|
+
|
|
190
|
+
for (let i = 0; i < REST_SAMPLE_COUNT; i++) {
|
|
191
|
+
const x = samplesX[i];
|
|
192
|
+
const y = samplesY[i];
|
|
193
|
+
|
|
194
|
+
if (x * x + y * y > REST_CANDIDATE_MAX * REST_CANDIDATE_MAX) {
|
|
195
|
+
// too far out to be a rest position
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
if (x < minX) {
|
|
200
|
+
minX = x;
|
|
201
|
+
} else if (x > maxX) {
|
|
202
|
+
maxX = x;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
if (y < minY) {
|
|
206
|
+
minY = y;
|
|
207
|
+
} else if (y > maxY) {
|
|
208
|
+
maxY = y;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
if (maxX - minX > REST_SPREAD_MAX || maxY - minY > REST_SPREAD_MAX) {
|
|
213
|
+
// the stick is being moved, this is not a rest window
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
const scratch = this.#scratch;
|
|
218
|
+
|
|
219
|
+
const centerX = median(samplesX, scratch);
|
|
220
|
+
const centerY = median(samplesY, scratch);
|
|
221
|
+
|
|
222
|
+
const magnitude = Math.sqrt(centerX * centerX + centerY * centerY);
|
|
223
|
+
|
|
224
|
+
if (this.#acceptedMagnitude !== -1 && magnitude >= this.#acceptedMagnitude) {
|
|
225
|
+
// we already know of a rest position closer to the origin
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
const distances = this.#distances;
|
|
230
|
+
|
|
231
|
+
for (let i = 0; i < REST_SAMPLE_COUNT; i++) {
|
|
232
|
+
const dx = samplesX[i] - centerX;
|
|
233
|
+
const dy = samplesY[i] - centerY;
|
|
234
|
+
|
|
235
|
+
distances[i] = Math.sqrt(dx * dx + dy * dy);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
const medianDistance = median(distances, scratch);
|
|
239
|
+
|
|
240
|
+
for (let i = 0; i < REST_SAMPLE_COUNT; i++) {
|
|
241
|
+
distances[i] = Math.abs(distances[i] - medianDistance);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
const absoluteDeviation = median(distances, scratch);
|
|
245
|
+
|
|
246
|
+
calibration.set(centerX, centerY, medianDistance + NOISE_RADIUS_DEVIATIONS * absoluteDeviation);
|
|
247
|
+
|
|
248
|
+
this.#acceptedMagnitude = magnitude;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Analog view of the D-pad, for consumers that drive the same thing from a stick and a D-pad.
|
|
3
|
+
*
|
|
4
|
+
* Written in the hardware frame ({@link GamepadAxes}: +x is right, +y is down), matching
|
|
5
|
+
* {@link GamepadStick#value}, so the two compose without the caller tracking which of them is flipped.
|
|
6
|
+
* Components are exactly -1, 0 or 1, a full diagonal is (1,1) and has magnitude sqrt(2) - normalize at the call
|
|
7
|
+
* site if unit length is wanted.
|
|
8
|
+
*
|
|
9
|
+
* How the two views combine is game policy and stays with the caller: whether the stick wins, whether they sum,
|
|
10
|
+
* whether a held D-pad suppresses stick drift.
|
|
11
|
+
*
|
|
12
|
+
* @param {Vector2} result
|
|
13
|
+
* @param {GamepadHandle} pad
|
|
14
|
+
* @returns {void}
|
|
15
|
+
*/
|
|
16
|
+
export function gamepad_write_dpad_vector(result: Vector2, pad: GamepadHandle): void;
|
|
17
|
+
//# sourceMappingURL=gamepad_write_dpad_vector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gamepad_write_dpad_vector.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/input/devices/gamepad/gamepad_write_dpad_vector.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,gFAFa,IAAI,CAchB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { GamepadButtons } from "./GamepadButtons.js";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Analog view of the D-pad, for consumers that drive the same thing from a stick and a D-pad.
|
|
5
|
+
*
|
|
6
|
+
* Written in the hardware frame ({@link GamepadAxes}: +x is right, +y is down), matching
|
|
7
|
+
* {@link GamepadStick#value}, so the two compose without the caller tracking which of them is flipped.
|
|
8
|
+
* Components are exactly -1, 0 or 1, a full diagonal is (1,1) and has magnitude sqrt(2) - normalize at the call
|
|
9
|
+
* site if unit length is wanted.
|
|
10
|
+
*
|
|
11
|
+
* How the two views combine is game policy and stays with the caller: whether the stick wins, whether they sum,
|
|
12
|
+
* whether a held D-pad suppresses stick drift.
|
|
13
|
+
*
|
|
14
|
+
* @param {Vector2} result
|
|
15
|
+
* @param {GamepadHandle} pad
|
|
16
|
+
* @returns {void}
|
|
17
|
+
*/
|
|
18
|
+
export function gamepad_write_dpad_vector(result, pad) {
|
|
19
|
+
const buttons = pad.buttons;
|
|
20
|
+
|
|
21
|
+
const up = buttons[GamepadButtons.dpad_up].is_down;
|
|
22
|
+
const down = buttons[GamepadButtons.dpad_down].is_down;
|
|
23
|
+
const left = buttons[GamepadButtons.dpad_left].is_down;
|
|
24
|
+
const right = buttons[GamepadButtons.dpad_right].is_down;
|
|
25
|
+
|
|
26
|
+
result.set(
|
|
27
|
+
(right ? 1 : 0) - (left ? 1 : 0),
|
|
28
|
+
(down ? 1 : 0) - (up ? 1 : 0)
|
|
29
|
+
);
|
|
30
|
+
}
|
|
@@ -9,9 +9,9 @@ export class TouchDevice {
|
|
|
9
9
|
* @readonly
|
|
10
10
|
*/
|
|
11
11
|
readonly on: {
|
|
12
|
-
pinch: Signal
|
|
13
|
-
pinchStart: Signal
|
|
14
|
-
pinchEnd: Signal
|
|
12
|
+
pinch: Signal;
|
|
13
|
+
pinchStart: Signal;
|
|
14
|
+
pinchEnd: Signal;
|
|
15
15
|
};
|
|
16
16
|
#private;
|
|
17
17
|
}
|
|
@@ -1,6 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
export class Input {
|
|
2
|
+
/**
|
|
3
|
+
* @readonly
|
|
4
|
+
* @type {List<InputBinding>}
|
|
5
|
+
*/
|
|
6
|
+
readonly bindings: List<InputBinding>;
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @param {Input} other
|
|
10
|
+
* @returns {boolean}
|
|
11
|
+
*/
|
|
12
|
+
equals(other: Input): boolean;
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @return {number}
|
|
16
|
+
*/
|
|
17
|
+
hash(): number;
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @param {string} path
|
|
21
|
+
* @param {string} event
|
|
22
|
+
* @returns {boolean}
|
|
23
|
+
*/
|
|
24
|
+
exists(path: string, event: string): boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @param {string} path
|
|
28
|
+
* @param {string} event
|
|
29
|
+
* @returns {boolean}
|
|
30
|
+
*/
|
|
31
|
+
bind(path: string, event: string): boolean;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @param {BinaryBuffer} buffer
|
|
35
|
+
*/
|
|
36
|
+
toBinaryBuffer(buffer: BinaryBuffer): void;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @param {BinaryBuffer} buffer
|
|
40
|
+
*/
|
|
41
|
+
fromBinaryBuffer(buffer: BinaryBuffer): void;
|
|
42
|
+
}
|
|
43
|
+
export namespace Input {
|
|
44
|
+
let typeName: string;
|
|
45
|
+
let serializable: boolean;
|
|
46
|
+
}
|
|
47
|
+
import List from "../../../../core/collection/list/List.js";
|
|
48
|
+
import { InputBinding } from "../ism/InputBinding.js";
|
|
49
|
+
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -1,3 +1,33 @@
|
|
|
1
|
-
export default
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export default InputController;
|
|
2
|
+
declare class InputController {
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param {Array} bindings
|
|
6
|
+
*/
|
|
7
|
+
static from(bindings: any[]): InputController;
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param {Array} [bindings]
|
|
11
|
+
* @constructor
|
|
12
|
+
*/
|
|
13
|
+
constructor(bindings?: any[]);
|
|
14
|
+
mapping: List<any>;
|
|
15
|
+
on: {
|
|
16
|
+
unlinked: Signal;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @param {string} path
|
|
21
|
+
* @param {function} action
|
|
22
|
+
* @returns {InputBinding}
|
|
23
|
+
*/
|
|
24
|
+
bind(path: string, action: Function): InputBinding;
|
|
25
|
+
}
|
|
26
|
+
declare namespace InputController {
|
|
27
|
+
let typeName: string;
|
|
28
|
+
let serializable: boolean;
|
|
29
|
+
}
|
|
30
|
+
import List from '../../../../core/collection/list/List.js';
|
|
31
|
+
import Signal from "../../../../core/events/signal/Signal.js";
|
|
32
|
+
import { InputBinding } from "./InputBinding.js";
|
|
33
|
+
//# sourceMappingURL=InputController.d.ts.map
|
|
@@ -1,4 +1,40 @@
|
|
|
1
|
-
export class InputBinding {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
1
|
+
export class InputBinding {
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @type {string}
|
|
5
|
+
*/
|
|
6
|
+
path: string;
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @type {string}
|
|
10
|
+
*/
|
|
11
|
+
event: string;
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @param {string} path
|
|
15
|
+
* @param {string} event
|
|
16
|
+
*/
|
|
17
|
+
set(path: string, event: string): void;
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @param {InputBinding} other
|
|
21
|
+
* @returns {boolean}
|
|
22
|
+
*/
|
|
23
|
+
equals(other: InputBinding): boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @return {number}
|
|
27
|
+
*/
|
|
28
|
+
hash(): number;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @param {BinaryBuffer} buffer
|
|
32
|
+
*/
|
|
33
|
+
toBinaryBuffer(buffer: BinaryBuffer): void;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @param {BinaryBuffer} buffer
|
|
37
|
+
*/
|
|
38
|
+
fromBinaryBuffer(buffer: BinaryBuffer): void;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=InputBinding.d.ts.map
|
|
@@ -1,6 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
export default InputControllerSystem;
|
|
2
|
+
/**
|
|
3
|
+
* Prefer to use {@link InputSystem} instead
|
|
4
|
+
*/
|
|
5
|
+
declare class InputControllerSystem extends System<any> {
|
|
6
|
+
constructor(devices: any);
|
|
7
|
+
enabled: ObservedValue;
|
|
8
|
+
dependencies: (typeof InputController)[];
|
|
9
|
+
devices: any;
|
|
10
|
+
startup(entityManager: any): Promise<void>;
|
|
11
|
+
proxies: {};
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @param {InputController} component
|
|
15
|
+
* @param entity
|
|
16
|
+
*/
|
|
17
|
+
link(component: InputController, entity: any): void;
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @param {InputController} component
|
|
21
|
+
* @param entity
|
|
22
|
+
*/
|
|
23
|
+
unlink(component: InputController, entity: any): void;
|
|
24
|
+
}
|
|
25
|
+
import { System } from "../../../ecs/System.js";
|
|
26
|
+
import ObservedValue from "../../../../core/model/ObservedValue.js";
|
|
27
|
+
import InputController from "../components/InputController.js";
|
|
28
|
+
//# sourceMappingURL=InputControllerSystem.d.ts.map
|
|
@@ -1,6 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
export class InputSystem extends System<any> {
|
|
2
|
+
constructor(devices: any);
|
|
3
|
+
dependencies: (typeof Input)[];
|
|
4
|
+
devices: any;
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @type {Map<number,BindingLink[]>}
|
|
8
|
+
*/
|
|
9
|
+
links: Map<number, BindingLink[]>;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @param {Input} component
|
|
13
|
+
* @param entity
|
|
14
|
+
*/
|
|
15
|
+
link(component: Input, entity: any): void;
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @param {Input} component
|
|
19
|
+
* @param entity
|
|
20
|
+
*/
|
|
21
|
+
unlink(component: Input, entity: any): void;
|
|
22
|
+
}
|
|
23
|
+
import { System } from "../../../ecs/System.js";
|
|
24
|
+
import { Input } from "../components/Input.js";
|
|
25
|
+
declare class BindingLink {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @param {InputBinding} binding
|
|
29
|
+
* @param {EntityComponentDataset} dataset
|
|
30
|
+
* @param {number} entity
|
|
31
|
+
* @param {object} devices
|
|
32
|
+
*/
|
|
33
|
+
constructor(binding: InputBinding, dataset: EntityComponentDataset, entity: number, devices: object);
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {InputBinding}
|
|
37
|
+
*/
|
|
38
|
+
binding: InputBinding;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {EntityComponentDataset}
|
|
42
|
+
*/
|
|
43
|
+
dataset: EntityComponentDataset;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {number}
|
|
47
|
+
*/
|
|
48
|
+
entity: number;
|
|
49
|
+
devices: any;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @param {*} eventData
|
|
53
|
+
*/
|
|
54
|
+
emit(eventData: any): void;
|
|
55
|
+
link(): void;
|
|
56
|
+
unlink(): void;
|
|
57
|
+
}
|
|
58
|
+
export {};
|
|
59
|
+
//# sourceMappingURL=InputSystem.d.ts.map
|