@woosh/meep-engine 2.54.0 → 2.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/editor/view/node-graph/PortView.js +2 -2
- package/package.json +1 -1
- package/src/core/__module.js +1 -1
- package/src/core/binary/BinaryBuffer.js +2 -1
- package/src/core/cache/Cache.js +1 -1
- package/src/core/cache/LoadingCache.js +10 -5
- package/src/core/collection/Stack.js +11 -14
- package/src/core/collection/array/array_contains_duplicates.js +5 -2
- package/src/core/collection/array/array_contains_duplicates.spec.js +14 -0
- package/src/core/collection/array/array_copy_entire.js +6 -11
- package/src/core/collection/array/array_get_index_in_range.js +5 -0
- package/src/core/collection/array/array_get_index_in_range.spec.js +16 -0
- package/src/core/collection/array/array_remove_element.js +6 -9
- package/src/core/collection/array/array_remove_first.js +13 -6
- package/src/core/collection/array/array_remove_first.spec.js +39 -0
- package/src/core/collection/array/binarySearchHighIndex.spec.js +10 -9
- package/src/core/collection/array/groupArrayBy.js +1 -1
- package/src/core/collection/array/isArrayEqual.js +4 -1
- package/src/core/collection/array/randomizeArrayElementOrder.js +1 -0
- package/src/core/collection/array/randomizeArrayElementOrder.spec.js +27 -0
- package/src/core/collection/heap/Uin32Heap.spec.js +100 -0
- package/src/core/collection/heap/Uint32Heap.js +16 -7
- package/src/core/collection/list/List.js +1 -0
- package/src/core/collection/{HashMap.js → map/HashMap.js} +10 -10
- package/src/core/collection/{HashMap.spec.js → map/HashMap.spec.js} +1 -1
- package/src/core/collection/{ObservedMap.js → map/ObservedMap.js} +1 -1
- package/src/core/collection/{HashSet.js → set/HashSet.js} +4 -3
- package/src/core/collection/{Set.d.ts → set/Set.d.ts} +1 -1
- package/src/core/collection/{Set.js → set/Set.js} +17 -14
- package/src/core/function/FunctionCompiler.js +4 -4
- package/src/core/function/Functions.js +0 -19
- package/src/core/geom/2d/aabb/AABB2.js +1 -1
- package/src/core/geom/3d/SurfacePoint3.js +30 -20
- package/src/core/geom/3d/SurfacePoint3.spec.js +116 -0
- package/src/core/geom/3d/aabb/AABB3.js +13 -10
- package/src/core/geom/3d/aabb/{aabb3_array_contains_point.js → aabb3_array_intersects_point.js} +4 -1
- package/src/core/geom/3d/aabb/aabb3_from_min_max.js +25 -1
- package/src/core/geom/3d/aabb/aabb3_from_threejs_geometry.js +2 -25
- package/src/core/geom/3d/aabb/aabb3_signed_distance_sqr_to_point.js +5 -1
- package/src/core/geom/3d/apply_mat4_transform_to_direction_v3_array.js +5 -1
- package/src/core/geom/3d/apply_mat4_transform_to_v3_array.js +5 -1
- package/src/core/geom/3d/tetrahedra/TetrahedralMesh.js +2 -2
- package/src/core/geom/3d/topology/struct/binary/io/bt_mesh_calc_edges.js +1 -1
- package/src/core/geom/3d/triangle/computeTriangleRayIntersectionBarycentric.spec.js +26 -0
- package/src/core/geom/3d/v3_compute_triangle_normal.spec.js +18 -0
- package/src/core/geom/Vector2.js +1 -1
- package/src/core/geom/Vector3.js +1 -1
- package/src/core/geom/packing/miniball/Miniball.spec.js +24 -0
- package/src/core/math/statistics/computeStatisticalPartialMedian.js +2 -2
- package/src/core/model/ObservedInteger.js +12 -7
- package/src/core/model/ObservedString.js +10 -8
- package/src/core/model/node-graph/visual/NodeGraphVisualData.js +1 -1
- package/src/core/model/object/ImmutableObjectPool.js +1 -1
- package/src/core/model/object/read_property.js +2 -2
- package/src/core/model/object/write_property.js +3 -3
- package/src/core/model/reactive/evaluation/MultiPredicateEvaluator.js +1 -1
- package/src/core/primitives/numbers/compareNumbers.js +4 -4
- package/src/core/primitives/numbers/number_compare_ascending.js +9 -0
- package/src/core/primitives/numbers/number_compare_ascending.spec.js +9 -0
- package/src/core/primitives/numbers/number_compare_descending.js +9 -0
- package/src/core/primitives/numbers/number_compare_descending.spec.js +9 -0
- package/src/core/primitives/numbers/number_format_by_thousands.spec.js +12 -0
- package/src/core/primitives/numbers/number_pretty_print.js +1 -1
- package/src/core/primitives/strings/compareStrings.spec.js +12 -0
- package/src/core/primitives/strings/string_capitalize.js +15 -0
- package/src/core/primitives/strings/string_capitalize.spec.js +13 -0
- package/src/core/primitives/strings/string_compute_byte_size.js +21 -0
- package/src/core/primitives/strings/string_compute_common_prefix.js +44 -0
- package/src/core/primitives/strings/string_compute_common_prefix.spec.js +23 -0
- package/src/core/primitives/strings/string_format_camel_to_kebab.js +9 -0
- package/src/core/primitives/strings/string_format_camel_to_kebab.spec.js +8 -0
- package/src/core/primitives/strings/string_format_kebab_to_underscore.js +8 -0
- package/src/core/time/current_time_in_seconds.js +11 -0
- package/src/engine/Clock.js +3 -13
- package/src/engine/animation/curve/AnimationCurve.spec.js +27 -0
- package/src/engine/asset/AssetManager.js +5 -5
- package/src/engine/asset/loaders/GLTFAssetLoader.js +1 -1
- package/src/engine/ecs/EntityBlueprint.js +8 -10
- package/src/engine/ecs/EntityManager.js +8 -1
- package/src/engine/ecs/EntityManager.spec.js +56 -6
- package/src/engine/ecs/animation/Animation.spec.js +22 -0
- package/src/engine/ecs/animation/AnimationSerializationAdapter.js +2 -5
- package/src/engine/ecs/attachment/Attachment.js +24 -25
- package/src/engine/ecs/attachment/AttachmentBinding.js +27 -30
- package/src/engine/ecs/attachment/AttachmentSystem.js +21 -24
- package/src/engine/ecs/attachment/BoneAttachmentBinding.js +6 -9
- package/src/engine/ecs/attachment/TransformAttachmentBinding.js +0 -3
- package/src/engine/ecs/components/CharacterController.js +24 -18
- package/src/engine/ecs/components/Motion.js +0 -27
- package/src/engine/ecs/components/MotionSerializationAdapter.js +26 -0
- package/src/engine/ecs/components/PropertySet.js +0 -29
- package/src/engine/ecs/components/PropertySetSerializationAdapter.js +29 -0
- package/src/engine/ecs/components/SerializationMetadata.js +0 -28
- package/src/engine/ecs/components/SerializationMetadataSerializationAdapter.js +26 -0
- package/src/engine/ecs/components/Steering.js +0 -35
- package/src/engine/ecs/components/SteeringSerializationAdapter.js +34 -0
- package/src/engine/ecs/components/Tag.js +6 -102
- package/src/engine/ecs/components/TagSerializationAdapter.js +44 -0
- package/src/engine/ecs/components/TagSerializationUpgrader_0_1.js +18 -0
- package/src/engine/ecs/components/Timer.js +1 -1
- package/src/engine/ecs/dynamic_actions/DynamicActorSystem.js +4 -3
- package/src/engine/ecs/dynamic_actions/rules/DynamicRuleCooldownDescription.js +10 -14
- package/src/engine/ecs/dynamic_actions/rules/DynamicRuleDescription.js +31 -39
- package/src/engine/ecs/dynamic_actions/rules/DynamicRuleDescriptionTable.js +1 -1
- package/src/engine/ecs/dynamic_actions/{DynamicRuleDescriptionTable.spec.js → rules/DynamicRuleDescriptionTable.spec.js} +12 -12
- package/src/engine/ecs/foliage/ecs/InstancedMeshSerializationAdapter.js +2 -5
- package/src/engine/ecs/fow/FogOfWarRevealer.js +2 -3
- package/src/engine/ecs/fow/serialization/FogOfWarRevealerSerializationAdapter.js +2 -5
- package/src/engine/ecs/fow/serialization/FogOfWarSerializationAdapter.js +5 -8
- package/src/engine/ecs/gui/GUIElementSerializationAdapter.js +2 -5
- package/src/engine/ecs/gui/hud/HeadsUpDisplaySerializationAdapter.js +3 -6
- package/src/engine/ecs/gui/position/ViewportPosition.js +2 -5
- package/src/engine/ecs/ik/IKConstraint.js +95 -0
- package/src/engine/ecs/ik/IKMath.js +6 -1
- package/src/engine/ecs/ik/IKProblem.js +17 -17
- package/src/engine/ecs/ik/InverseKinematics.js +14 -174
- package/src/engine/ecs/ik/InverseKinematicsSerializationAdapter.js +72 -0
- package/src/engine/ecs/ik/InverseKinematicsSystem.js +24 -26
- package/src/engine/ecs/speaker/Voice.js +5 -8
- package/src/engine/ecs/speaker/VoiceSystem.js +15 -19
- package/src/engine/ecs/speaker/lines/LineDescription.js +20 -25
- package/src/engine/ecs/speaker/lines/sets/LineSetDescription.js +15 -19
- package/src/engine/ecs/storage/BinaryBufferSerializer.js +3 -3
- package/src/engine/ecs/storage/binary/BinaryClassSerializationAdapter.js +7 -0
- package/src/engine/ecs/storage/binary/collection/BinaryCollectionSerializer.js +1 -1
- package/src/engine/ecs/storage/binary/object/ObjectBasedClassSerializationAdapter.js +6 -9
- package/src/engine/ecs/systems/TagSystem.js +1 -6
- package/src/engine/ecs/team/TeamSerializationAdapter.js +2 -5
- package/src/engine/ecs/terrain/ecs/Terrain.spec.js +5 -0
- package/src/engine/ecs/terrain/ecs/cling/ClingToTerrain.js +23 -21
- package/src/engine/ecs/terrain/ecs/cling/ClingToTerrainSerializationAdapter.js +2 -5
- package/src/engine/ecs/terrain/ecs/layers/TerrainLayer.js +2 -2
- package/src/engine/ecs/terrain/ecs/layers/TerrainLayers.js +2 -40
- package/src/engine/ecs/terrain/serialization/TerrainSerializationAdapter.js +7 -10
- package/src/engine/ecs/tooltip/TooltipComponent.spec.js +47 -0
- package/src/engine/ecs/tooltip/TooltipComponentSerializationAdapter.js +2 -5
- package/src/engine/ecs/transform/Transform.spec.js +52 -0
- package/src/engine/ecs/transform/TransformSerializationAdapter.js +2 -5
- package/src/engine/ecs/transform-attachment/TransformAttachment.js +18 -19
- package/src/engine/graphics/ecs/animation/AnimationController.js +20 -129
- package/src/engine/graphics/ecs/animation/AnimationControllerSerializationAdapter.js +27 -0
- package/src/engine/graphics/ecs/animation/AnimationRule.js +79 -0
- package/src/engine/graphics/ecs/animation/animator/graph/AnimationGraphSerializationAdapter.js +9 -11
- package/src/engine/graphics/ecs/animation/animator/graph/definition/serialization/AnimationGraphDefinitionSerializationAdapter.js +3 -5
- package/src/engine/graphics/ecs/camera/serialization/CameraSerializationAdapter.js +2 -5
- package/src/engine/graphics/ecs/camera/topdown/TopDownCameraControllerSerializationAdapter.js +2 -6
- package/src/engine/graphics/ecs/camera/topdown/TopDownCameraLander.js +3 -15
- package/src/engine/graphics/ecs/decal/v2/DecalSerializationAdapter.js +2 -4
- package/src/engine/graphics/ecs/highlight/HighlightSerializationAdapter.js +2 -5
- package/src/engine/graphics/ecs/highlight/renderer/OutlineRenderer.js +1 -1
- package/src/engine/graphics/ecs/light/LightSerializationAdapter.js +2 -5
- package/src/engine/graphics/ecs/mesh/serialization/MeshSerializationAdapter.js +2 -5
- package/src/engine/graphics/ecs/mesh/skeleton/BoneMapping.js +2 -2
- package/src/engine/graphics/ecs/mesh-v2/ShadedGeometry.js +3 -0
- package/src/engine/graphics/ecs/mesh-v2/ShadedGeometry.spec.js +14 -0
- package/src/engine/graphics/ecs/mesh-v2/render/adapters/InstancedRendererAdapter.js +1 -1
- package/src/engine/graphics/ecs/mesh-v2/render/adapters/SGCacheKey.js +21 -9
- package/src/engine/graphics/ecs/mesh-v2/render/adapters/SGCacheKey.spec.js +79 -0
- package/src/engine/graphics/ecs/water/WaterSerializationAdapter.js +2 -5
- package/src/engine/graphics/geometry/optimization/merge/merge_geometry_hierarchy.js +1 -1
- package/src/engine/graphics/impostors/octahedral/ImpostorBaker.js +1 -1
- package/src/engine/graphics/material/manager/MaterialManager.js +1 -1
- package/src/engine/graphics/material/optimization/MaterialOptimizationContext.js +1 -1
- package/src/engine/graphics/particles/node-based/codegen/CodeContext.js +1 -1
- package/src/engine/graphics/particles/particular/engine/emitter/serde/ParameterLookupTableSerializationAdapter.js +2 -5
- package/src/engine/graphics/particles/particular/engine/emitter/serde/ParticleEmitterSerializationAdapter.js +2 -5
- package/src/engine/graphics/particles/particular/engine/shader/ShaderManager.js +1 -1
- package/src/engine/graphics/render/visibility/IncrementalDeltaSet.spec.js +7 -6
- package/src/engine/graphics/texture/atlas/ManagedTextureAtlas.js +1 -1
- package/src/engine/graphics/texture/sampler/serialization/Sampler2DSerializationAdapter.js +2 -5
- package/src/engine/grid/grid2transform/GridPosition2Transform.js +11 -13
- package/src/engine/grid/grid2transform/GridPosition2TransformSerializationAdapter.js +3 -5
- package/src/engine/grid/obstacle/GridObstacleSerializationAdapter.js +2 -5
- package/src/engine/grid/position/GridPositionSerializationAdapter.js +2 -5
- package/src/engine/grid/transform2grid/Transform2GridPosition.js +10 -13
- package/src/engine/input/devices/KeyboardDevice.js +5 -2
- package/src/engine/input/devices/KeyboardDevice.spec.js +12 -0
- package/src/engine/input/devices/PointerDevice.js +5 -1
- package/src/engine/input/ecs/components/Input.js +37 -11
- package/src/engine/input/ecs/ism/InputBinding.js +30 -12
- package/src/engine/intelligence/behavior/ecs/BehaviorComponentSerializationAdapter.js +7 -10
- package/src/engine/intelligence/behavior/ecs/WaitForEventBehaviorSerializationAdapter.js +2 -5
- package/src/engine/intelligence/behavior/primitive/FailingBehaviorSerializationAdapter.js +2 -6
- package/src/engine/intelligence/behavior/primitive/SucceedingBehaviorSerializationAdapter.js +2 -5
- package/src/engine/intelligence/blackboard/BlackboardSerializationAdapter.js +2 -5
- package/src/engine/knowledge/database/StaticKnowledgeDatabase.js +12 -13
- package/src/engine/knowledge/database/StaticKnowledgeDatabase.spec.js +23 -0
- package/src/engine/navigation/ecs/components/PathSerializationAdapter.js +2 -5
- package/src/engine/navigation/ecs/path_following/PathFollowerSerializationAdapter.js +2 -5
- package/src/engine/navigation/grid/find_path_on_grid_astar.spec.js +25 -0
- package/src/engine/options/OptionAbstract.js +6 -5
- package/src/engine/options/OptionGroup.js +13 -25
- package/src/engine/options/OptionGroup.spec.js +61 -0
- package/src/engine/save/storage/InMemoryStorage.js +3 -2
- package/src/engine/simulation/Ticker.js +17 -20
- package/src/engine/sound/ecs/SoundController.js +2 -6
- package/src/engine/sound/ecs/SoundListener.js +3 -21
- package/src/engine/sound/ecs/emitter/SoundEmitterSerializationAdapter.js +2 -6
- package/src/generation/GridTaskGroup.js +5 -9
- package/src/generation/filtering/numeric/CellFilterCache.js +12 -16
- package/src/generation/filtering/numeric/complex/CellFilterFXAA.js +31 -32
- package/src/generation/filtering/numeric/complex/CellFilterLookupTable.js +6 -9
- package/src/generation/filtering/numeric/complex/CellFilterSimplexNoise.js +7 -10
- package/src/generation/filtering/numeric/complex/CellFilterSobel.js +6 -9
- package/src/generation/filtering/numeric/math/CellFilterMembershipGeneralizedBell.js +18 -21
- package/src/generation/filtering/numeric/sampling/AbstractCellFilterSampleGridLayer.js +24 -25
- package/src/generation/filtering/numeric/sampling/CellFilterSampleLayerLinear.js +1 -1
- package/src/generation/grid/GridData.js +23 -22
- package/src/generation/grid/GridData.spec.js +41 -0
- package/src/generation/grid/GridTaskGenerator.js +7 -8
- package/src/generation/grid/layers/GridDataLayer.js +23 -25
- package/src/generation/markers/GridActionRuleSet.js +20 -22
- package/src/generation/markers/GridCellActionPlaceMarker.js +40 -43
- package/src/generation/markers/GridCellActionPlaceMarkerGroup.js +7 -9
- package/src/generation/markers/MarkerNode.js +44 -44
- package/src/generation/markers/actions/MarkerNodeActionEntityPlacement.js +15 -18
- package/src/generation/markers/actions/MarkerNodeActionSequence.js +6 -9
- package/src/generation/markers/actions/MarkerNodeProcessingRuleSet.js +5 -7
- package/src/generation/markers/actions/MarkerProcessingRule.js +25 -26
- package/src/generation/markers/actions/placement/MarkerNodeEntityProcessorClingToTerrain.js +12 -15
- package/src/generation/markers/actions/placement/MarkerNodeEntityProcessorRandomRotation.js +2 -5
- package/src/generation/markers/actions/placement/MarkerNodeEntityProcessorSequence.js +6 -9
- package/src/generation/markers/actions/probability/MarkerNodeActionSelectWeighted.js +8 -11
- package/src/generation/markers/actions/probability/MarkerNodeActionWeightedElement.js +13 -13
- package/src/generation/markers/actions/util/GridCellActionDebugBreak.js +5 -8
- package/src/generation/markers/actions/util/GridCellActionLogToConsole.js +1 -4
- package/src/generation/markers/emitter/MarkerNodeConsumerBuffer.js +10 -13
- package/src/generation/markers/emitter/MarkerNodeEmitterFromAction.js +5 -9
- package/src/generation/markers/emitter/MarkerNodeEmitterGridCellAction.js +12 -15
- package/src/generation/markers/emitter/MarkerNodeEmitterGroup.js +5 -8
- package/src/generation/markers/emitter/MarkerNodeEmitterPredicated.js +18 -21
- package/src/generation/markers/matcher/MarkerNodeMatcher.js +2 -1
- package/src/generation/markers/matcher/MarkerNodeMatcherBinary.js +12 -13
- package/src/generation/markers/matcher/MarkerNodeMatcherContainsTag.js +7 -9
- package/src/generation/markers/matcher/MarkerNodeMatcherNot.js +7 -9
- package/src/generation/markers/predicate/GridDataNodePredicateBinary.js +10 -14
- package/src/generation/markers/predicate/GridDataNodePredicateNot.js +9 -11
- package/src/generation/markers/predicate/GridDataNodePredicateOverlaps.js +6 -9
- package/src/generation/markers/transform/MarkerNodeTransformRotateRandom.js +2 -6
- package/src/generation/markers/transform/MarkerNodeTransformerAddPositionYFromFilter.js +6 -9
- package/src/generation/markers/transform/MarkerNodeTransformerOffsetPosition.js +1 -4
- package/src/generation/markers/transform/MarkerNodeTransformerRecordProperty.js +12 -15
- package/src/generation/markers/transform/MarkerNodeTransformerRecordPropertyClosure.js +14 -17
- package/src/generation/markers/transform/MarkerNodeTransformerRecordUniqueRandomEnum.js +21 -23
- package/src/generation/markers/transform/MarkerNodeTransformerRemoveTag.js +1 -4
- package/src/generation/markers/transform/MarkerNodeTransformerSequence.js +6 -9
- package/src/generation/markers/transform/MarkerNodeTransformerYRotateByFilter.js +13 -17
- package/src/generation/markers/transform/MarkerNodeTransformerYRotateByFilterGradient.js +12 -16
- package/src/generation/placement/GridCellActionTransformNearbyMarkers.js +26 -29
- package/src/generation/placement/GridCellPlacementRule.js +30 -32
- package/src/generation/placement/action/GridCellActionPlaceTags.js +26 -28
- package/src/generation/placement/action/GridCellActionWriteFilterToLayer.js +16 -20
- package/src/generation/placement/action/random/weighted/CellActionSelectWeightedRandom.js +13 -16
- package/src/generation/placement/action/random/weighted/WeightedGridCellAction.js +11 -14
- package/src/generation/placement/action/util/CellMatcherWithinAABB.js +2 -6
- package/src/generation/placement/action/util/GridCellActionSequence.js +7 -9
- package/src/generation/placement/action/util/GridCellDisplacedAction.js +9 -12
- package/src/generation/rules/CellMatcherFromFilter.js +6 -9
- package/src/generation/rules/CellMatcherLayerBitMaskTest.js +6 -9
- package/src/generation/rules/GridLayerCellMatcher.js +11 -14
- package/src/generation/rules/cell/CellMatcherContainsMarkerWithinRadius.js +11 -14
- package/src/generation/rules/cell/CellMatcherGridPattern.js +6 -8
- package/src/generation/rules/cell/GridPatternMatcherCell.js +11 -12
- package/src/generation/rules/logic/CellMatcherBinary.js +10 -14
- package/src/generation/rules/logic/CellMatcherDecorator.js +5 -8
- package/src/generation/theme/AreaMask.js +15 -17
- package/src/generation/theme/AreaTheme.js +7 -8
- package/src/generation/theme/TerrainLayerDescription.js +10 -12
- package/src/generation/theme/TerrainLayerRule.js +11 -13
- package/src/generation/theme/TerrainTheme.js +6 -7
- package/src/generation/theme/Theme.js +15 -17
- package/src/generation/theme/ThemeEngine.js +17 -19
- package/src/view/string_tag_to_css_class_name.js +2 -2
- package/src/view/tooltip/gml/TooltipParser.js +2 -2
- package/src/core/cache/PersistentCacheAdapter.js +0 -378
- package/src/core/collection/LazyStream.js +0 -23
- package/src/core/collection/LazyStream.spec.js +0 -13
- package/src/core/collection/heap/BinaryHeap.js +0 -153
- package/src/core/primitives/strings/StringUtils.js +0 -105
- package/src/core/primitives/strings/StringUtils.spec.js +0 -42
- package/src/engine/ecs/components/GeometryBVH.js +0 -44
- package/src/engine/ecs/components/MonsterAI.js +0 -15
- package/src/engine/ecs/systems/GeometryBVHSystem.js +0 -36
- package/src/generation/markers/MarkerRelation.js +0 -13
- /package/src/core/collection/{HashMap.d.ts → map/HashMap.d.ts} +0 -0
- /package/src/core/collection/{HashSet.d.ts → set/HashSet.d.ts} +0 -0
|
@@ -2,23 +2,23 @@ import { ObjectPoolFactory } from "../../../core/model/object/ObjectPoolFactory.
|
|
|
2
2
|
import { noop } from "../../../core/function/Functions.js";
|
|
3
3
|
|
|
4
4
|
export class IKProblem {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* @type {IKConstraint}
|
|
9
|
+
*/
|
|
10
|
+
constraint = null;
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @type {Skeleton}
|
|
14
|
+
*/
|
|
15
|
+
skeleton = null;
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @type {Terrain}
|
|
19
|
+
*/
|
|
20
|
+
terrain = null;
|
|
21
|
+
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -1,110 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NumericInterval } from "../../../core/math/interval/NumericInterval.js";
|
|
3
|
-
import { computeStringHash } from "../../../core/primitives/strings/computeStringHash.js";
|
|
4
|
-
import { computeHashIntegerArray } from "../../../core/collection/array/computeHashIntegerArray.js";
|
|
5
|
-
import { computeHashFloat } from "../../../core/primitives/numbers/computeHashFloat.js";
|
|
1
|
+
import { IKConstraint } from "./IKConstraint.js";
|
|
6
2
|
|
|
7
|
-
class IKConstraint {
|
|
8
|
-
constructor() {
|
|
9
3
|
|
|
10
|
-
|
|
11
|
-
* End bone that is going to be placed
|
|
12
|
-
* @type {String}
|
|
13
|
-
*/
|
|
14
|
-
this.effector = "";
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* How far should effector be from the contact, positive values result in effector not reaching the surface, and negative result in penetration
|
|
18
|
-
* @example For a foot effector this would be distance above the ground
|
|
19
|
-
* @type {number}
|
|
20
|
-
*/
|
|
21
|
-
this.offset = 0;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Positive distance from the surface at which IK starts to take effect, low value represents full effect and high value represents where the influence begins
|
|
25
|
-
* @type {NumericInterval}
|
|
26
|
-
*/
|
|
27
|
-
this.distance = new NumericInterval(0, 0);
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {number}
|
|
32
|
-
*/
|
|
33
|
-
this.strength = 1;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {number}
|
|
38
|
-
*/
|
|
39
|
-
this.limit = Math.PI;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Solver to be used for this constraint
|
|
43
|
-
* @type {string}
|
|
44
|
-
*/
|
|
45
|
-
this.solver = "2BIK";
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @param {IKConstraint} other
|
|
51
|
-
*/
|
|
52
|
-
copy(other) {
|
|
53
|
-
this.effector = other.effector;
|
|
54
|
-
this.offset = other.offset;
|
|
55
|
-
this.distance.copy(other.distance);
|
|
56
|
-
this.strength = other.strength;
|
|
57
|
-
this.limit = other.limit;
|
|
58
|
-
this.solver = other.solver;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
clone() {
|
|
62
|
-
const r = new IKConstraint();
|
|
63
|
-
|
|
64
|
-
r.copy(this);
|
|
65
|
-
|
|
66
|
-
return r;
|
|
67
|
-
}
|
|
4
|
+
export class InverseKinematics {
|
|
68
5
|
|
|
69
6
|
/**
|
|
70
|
-
*
|
|
71
|
-
* @
|
|
72
|
-
* @returns {boolean}
|
|
7
|
+
* @readonly
|
|
8
|
+
* @type {IKConstraint[]}
|
|
73
9
|
*/
|
|
74
|
-
|
|
75
|
-
return this.effector === other.effector
|
|
76
|
-
&& this.offset === other.offset
|
|
77
|
-
&& this.distance.equals(other.distance)
|
|
78
|
-
&& this.strength === other.strength
|
|
79
|
-
&& this.limit === other.limit
|
|
80
|
-
&& this.solver === other.solver;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
* @return {number}
|
|
86
|
-
*/
|
|
87
|
-
hash() {
|
|
88
|
-
return computeHashIntegerArray(
|
|
89
|
-
computeStringHash(this.effector),
|
|
90
|
-
computeHashFloat(this.offset),
|
|
91
|
-
this.distance.hash(),
|
|
92
|
-
computeHashFloat(this.strength),
|
|
93
|
-
computeHashFloat(this.limit),
|
|
94
|
-
computeStringHash(this.solver)
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
export class InverseKinematics {
|
|
101
|
-
constructor() {
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
* @type {IKConstraint[]}
|
|
105
|
-
*/
|
|
106
|
-
this.constraints = [];
|
|
107
|
-
}
|
|
10
|
+
constraints = [];
|
|
108
11
|
|
|
109
12
|
/**
|
|
110
13
|
*
|
|
@@ -143,7 +46,15 @@ export class InverseKinematics {
|
|
|
143
46
|
* @param {number} limit
|
|
144
47
|
* @param {String} solver
|
|
145
48
|
*/
|
|
146
|
-
add({
|
|
49
|
+
add({
|
|
50
|
+
effector,
|
|
51
|
+
offset = 0,
|
|
52
|
+
distanceMin = 0,
|
|
53
|
+
distanceMax = 0.1,
|
|
54
|
+
strength = 1,
|
|
55
|
+
limit = Math.PI * 0.9,
|
|
56
|
+
solver = "2BIK"
|
|
57
|
+
}) {
|
|
147
58
|
const c = new IKConstraint();
|
|
148
59
|
|
|
149
60
|
c.effector = effector;
|
|
@@ -205,74 +116,3 @@ export class InverseKinematics {
|
|
|
205
116
|
|
|
206
117
|
InverseKinematics.typeName = "InverseKinematics";
|
|
207
118
|
|
|
208
|
-
export class InverseKinematicsSerializationAdapter extends BinaryClassSerializationAdapter {
|
|
209
|
-
constructor() {
|
|
210
|
-
super();
|
|
211
|
-
|
|
212
|
-
this.klass = InverseKinematics;
|
|
213
|
-
this.version = 0;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
*
|
|
218
|
-
* @param {BinaryBuffer} buffer
|
|
219
|
-
* @param {InverseKinematics} value
|
|
220
|
-
*/
|
|
221
|
-
serialize(buffer, value) {
|
|
222
|
-
const constraints = value.constraints;
|
|
223
|
-
const n = constraints.length;
|
|
224
|
-
buffer.writeUintVar(n);
|
|
225
|
-
|
|
226
|
-
for (let i = 0; i < n; i++) {
|
|
227
|
-
const constraint = constraints[i];
|
|
228
|
-
|
|
229
|
-
buffer.writeUTF8String(constraint.effector);
|
|
230
|
-
|
|
231
|
-
buffer.writeFloat32(constraint.offset);
|
|
232
|
-
buffer.writeFloat32(constraint.strength);
|
|
233
|
-
buffer.writeFloat32(constraint.limit);
|
|
234
|
-
|
|
235
|
-
buffer.writeFloat32(constraint.distance.min);
|
|
236
|
-
buffer.writeFloat32(constraint.distance.max);
|
|
237
|
-
|
|
238
|
-
buffer.writeUTF8String(constraint.solver);
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
*
|
|
244
|
-
* @param {BinaryBuffer} buffer
|
|
245
|
-
* @param {InverseKinematics} value
|
|
246
|
-
*/
|
|
247
|
-
deserialize(buffer, value) {
|
|
248
|
-
const n = buffer.readUintVar();
|
|
249
|
-
|
|
250
|
-
const constraints = [];
|
|
251
|
-
|
|
252
|
-
for (let i = 0; i < n; i++) {
|
|
253
|
-
const effector = buffer.readUTF8String();
|
|
254
|
-
|
|
255
|
-
const offset = buffer.readFloat32();
|
|
256
|
-
const strength = buffer.readFloat32();
|
|
257
|
-
const limit = buffer.readFloat32();
|
|
258
|
-
|
|
259
|
-
const distanceMin = buffer.readFloat32();
|
|
260
|
-
const distanceMax = buffer.readFloat32();
|
|
261
|
-
|
|
262
|
-
const solver = buffer.readUTF8String();
|
|
263
|
-
|
|
264
|
-
const ikConstraint = new IKConstraint();
|
|
265
|
-
|
|
266
|
-
ikConstraint.effector = effector;
|
|
267
|
-
ikConstraint.offset = offset;
|
|
268
|
-
ikConstraint.strength = strength;
|
|
269
|
-
ikConstraint.limit = limit;
|
|
270
|
-
ikConstraint.distance.set(distanceMin, distanceMax);
|
|
271
|
-
ikConstraint.solver = solver;
|
|
272
|
-
|
|
273
|
-
constraints.push(ikConstraint);
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
value.constraints = constraints;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { BinaryClassSerializationAdapter } from "../storage/binary/BinaryClassSerializationAdapter.js";
|
|
2
|
+
import { IKConstraint } from "./IKConstraint.js";
|
|
3
|
+
import { InverseKinematics } from "./InverseKinematics.js";
|
|
4
|
+
|
|
5
|
+
export class InverseKinematicsSerializationAdapter extends BinaryClassSerializationAdapter {
|
|
6
|
+
|
|
7
|
+
klass = InverseKinematics;
|
|
8
|
+
version = 0;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @param {BinaryBuffer} buffer
|
|
13
|
+
* @param {InverseKinematics} value
|
|
14
|
+
*/
|
|
15
|
+
serialize(buffer, value) {
|
|
16
|
+
const constraints = value.constraints;
|
|
17
|
+
const n = constraints.length;
|
|
18
|
+
buffer.writeUintVar(n);
|
|
19
|
+
|
|
20
|
+
for (let i = 0; i < n; i++) {
|
|
21
|
+
const constraint = constraints[i];
|
|
22
|
+
|
|
23
|
+
buffer.writeUTF8String(constraint.effector);
|
|
24
|
+
|
|
25
|
+
buffer.writeFloat32(constraint.offset);
|
|
26
|
+
buffer.writeFloat32(constraint.strength);
|
|
27
|
+
buffer.writeFloat32(constraint.limit);
|
|
28
|
+
|
|
29
|
+
buffer.writeFloat32(constraint.distance.min);
|
|
30
|
+
buffer.writeFloat32(constraint.distance.max);
|
|
31
|
+
|
|
32
|
+
buffer.writeUTF8String(constraint.solver);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @param {BinaryBuffer} buffer
|
|
39
|
+
* @param {InverseKinematics} value
|
|
40
|
+
*/
|
|
41
|
+
deserialize(buffer, value) {
|
|
42
|
+
const n = buffer.readUintVar();
|
|
43
|
+
|
|
44
|
+
const constraints = [];
|
|
45
|
+
|
|
46
|
+
for (let i = 0; i < n; i++) {
|
|
47
|
+
const effector = buffer.readUTF8String();
|
|
48
|
+
|
|
49
|
+
const offset = buffer.readFloat32();
|
|
50
|
+
const strength = buffer.readFloat32();
|
|
51
|
+
const limit = buffer.readFloat32();
|
|
52
|
+
|
|
53
|
+
const distanceMin = buffer.readFloat32();
|
|
54
|
+
const distanceMax = buffer.readFloat32();
|
|
55
|
+
|
|
56
|
+
const solver = buffer.readUTF8String();
|
|
57
|
+
|
|
58
|
+
const ikConstraint = new IKConstraint();
|
|
59
|
+
|
|
60
|
+
ikConstraint.effector = effector;
|
|
61
|
+
ikConstraint.offset = offset;
|
|
62
|
+
ikConstraint.strength = strength;
|
|
63
|
+
ikConstraint.limit = limit;
|
|
64
|
+
ikConstraint.distance.set(distanceMin, distanceMax);
|
|
65
|
+
ikConstraint.solver = solver;
|
|
66
|
+
|
|
67
|
+
constraints.push(ikConstraint);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
value.constraints = constraints;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -11,32 +11,30 @@ import { ResourceAccessKind } from "../../../core/model/ResourceAccessKind.js";
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
export class InverseKinematicsSystem extends System {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
this.__terrain = null;
|
|
39
|
-
}
|
|
14
|
+
|
|
15
|
+
dependencies = [InverseKinematics, Mesh];
|
|
16
|
+
|
|
17
|
+
components_used = [
|
|
18
|
+
ResourceAccessSpecification.from(Mesh, ResourceAccessKind.Read | ResourceAccessSpecification.Write)
|
|
19
|
+
];
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {{"2BIK": TwoBoneInverseKinematicsSolver}}
|
|
24
|
+
*/
|
|
25
|
+
solvers = {
|
|
26
|
+
"2BIK": new TwoBoneInverseKinematicsSolver(),
|
|
27
|
+
"1BSA": new OneBoneSurfaceAlignmentSolver()
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
problems = {};
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Terrain}
|
|
35
|
+
*/
|
|
36
|
+
__terrain = null;
|
|
37
|
+
|
|
40
38
|
|
|
41
39
|
get componentClass() {
|
|
42
40
|
return InverseKinematics;
|
|
@@ -52,25 +52,21 @@ const TIMING_MINIMUM_READ_TIME = 1.2;
|
|
|
52
52
|
const temp_lines = [];
|
|
53
53
|
|
|
54
54
|
class LineWeigher {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
* @type {number}
|
|
71
|
-
*/
|
|
72
|
-
this.time = 0;
|
|
73
|
-
}
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
*/
|
|
59
|
+
entity = -1;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {VoiceSystem}
|
|
63
|
+
*/
|
|
64
|
+
system = null;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {number}
|
|
68
|
+
*/
|
|
69
|
+
time = 0;
|
|
74
70
|
|
|
75
71
|
/**
|
|
76
72
|
*
|
|
@@ -1,31 +1,26 @@
|
|
|
1
1
|
import { assert } from "../../../../core/assert.js";
|
|
2
2
|
|
|
3
3
|
export class LineDescription {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
* Time the line should be displayed on the screen before being removed, normalized value, 1 means standard, 1.5 means 50% longer
|
|
25
|
-
* @type {number}
|
|
26
|
-
*/
|
|
27
|
-
this.displayDuration = 1;
|
|
28
|
-
}
|
|
4
|
+
/**
|
|
5
|
+
* Unique id
|
|
6
|
+
* @type {string}
|
|
7
|
+
*/
|
|
8
|
+
id = "";
|
|
9
|
+
/**
|
|
10
|
+
* Comment about the line, useful for development purposes
|
|
11
|
+
* @type {string}
|
|
12
|
+
*/
|
|
13
|
+
comment = "";
|
|
14
|
+
/**
|
|
15
|
+
* Localization key for the line of text
|
|
16
|
+
* @type {string}
|
|
17
|
+
*/
|
|
18
|
+
text = "";
|
|
19
|
+
/**
|
|
20
|
+
* Time the line should be displayed on the screen before being removed, normalized value, 1 means standard, 1.5 means 50% longer
|
|
21
|
+
* @type {number}
|
|
22
|
+
*/
|
|
23
|
+
displayDuration = 1;
|
|
29
24
|
|
|
30
25
|
fromJSON({
|
|
31
26
|
id,
|
|
@@ -1,25 +1,21 @@
|
|
|
1
1
|
const temp_array = [];
|
|
2
2
|
|
|
3
3
|
export class LineSetDescription {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
* @type {LineSetDescription[]}
|
|
20
|
-
*/
|
|
21
|
-
this.sets = [];
|
|
22
|
-
}
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @type {string}
|
|
7
|
+
*/
|
|
8
|
+
id = "";
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @type {LineDescription[]}
|
|
12
|
+
*/
|
|
13
|
+
lines = [];
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @type {LineSetDescription[]}
|
|
17
|
+
*/
|
|
18
|
+
sets = [];
|
|
23
19
|
|
|
24
20
|
/**
|
|
25
21
|
* Collect all lines from this set recursively
|
|
@@ -2,9 +2,9 @@ import { SerializationFlags, SerializationMetadata } from "../components/Seriali
|
|
|
2
2
|
import { assert } from "../../../core/assert.js";
|
|
3
3
|
import { BinaryCollectionSerializer } from "./binary/collection/BinaryCollectionSerializer.js";
|
|
4
4
|
import { COMPONENT_SERIALIZATION_TRANSIENT_FIELD } from "./COMPONENT_SERIALIZATION_TRANSIENT_FIELD.js";
|
|
5
|
-
import { currentTimeInSeconds } from "../../Clock.js";
|
|
6
5
|
import { BinaryObjectSerializationAdapter } from "./binary/object/BinaryObjectSerializationAdapter.js";
|
|
7
6
|
import { logger } from "../../logging/GlobalLogger.js";
|
|
7
|
+
import { current_time_in_seconds } from "../../../core/time/current_time_in_seconds.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @template T
|
|
@@ -136,7 +136,7 @@ class BinaryBufferSerializer {
|
|
|
136
136
|
continue;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
const __start_time =
|
|
139
|
+
const __start_time = current_time_in_seconds();
|
|
140
140
|
|
|
141
141
|
let lastEntity = 0;
|
|
142
142
|
|
|
@@ -158,7 +158,7 @@ class BinaryBufferSerializer {
|
|
|
158
158
|
|
|
159
159
|
const numComponentsWritten = collectionSerializer.getElementCount();
|
|
160
160
|
|
|
161
|
-
const __end_time =
|
|
161
|
+
const __end_time = current_time_in_seconds();
|
|
162
162
|
|
|
163
163
|
collectionSerializer.finalize();
|
|
164
164
|
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines how to serialize and deserialize an instance of a given class
|
|
3
|
+
*/
|
|
1
4
|
export class BinaryClassSerializationAdapter {
|
|
2
5
|
|
|
3
6
|
/**
|
|
7
|
+
* Class that this adapter handles
|
|
4
8
|
* @protected
|
|
5
9
|
* @type {Class}
|
|
6
10
|
*/
|
|
7
11
|
klass = null;
|
|
8
12
|
|
|
9
13
|
/**
|
|
14
|
+
* Format version number, used to check for format changes and data compatibility
|
|
15
|
+
* Increment the number if you change the adapter to indicate the change in format
|
|
16
|
+
* See {@link BinaryClassUpgrader} for details on how to handle support for outdated format versions
|
|
10
17
|
* @protected
|
|
11
18
|
* @type {number}
|
|
12
19
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { assert } from "../../../../../core/assert.js";
|
|
2
2
|
import { BinaryCollectionHeaderCodec, BinaryCollectionHeaderLayout } from "./BinaryCollectionHeaderCodec.js";
|
|
3
|
-
import { HashMap } from "../../../../../core/collection/HashMap.js";
|
|
3
|
+
import { HashMap } from "../../../../../core/collection/map/HashMap.js";
|
|
4
4
|
import { returnEmptyArray } from "../../../../../core/function/Functions.js";
|
|
5
5
|
|
|
6
6
|
export class BinaryCollectionSerializer {
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { BinaryClassSerializationAdapter } from "../BinaryClassSerializationAdapter.js";
|
|
2
2
|
|
|
3
|
-
export class ObjectBasedClassSerializationAdapter extends BinaryClassSerializationAdapter{
|
|
4
|
-
constructor(){
|
|
5
|
-
super();
|
|
3
|
+
export class ObjectBasedClassSerializationAdapter extends BinaryClassSerializationAdapter {
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @type {BinaryObjectSerializationAdapter}
|
|
8
|
+
*/
|
|
9
|
+
objectAdapter = null;
|
|
13
10
|
|
|
14
11
|
/**
|
|
15
12
|
*
|
|
@@ -2,12 +2,9 @@ import { BinaryClassSerializationAdapter } from "../storage/binary/BinaryClassSe
|
|
|
2
2
|
import Team from "./Team.js";
|
|
3
3
|
|
|
4
4
|
export class TeamSerializationAdapter extends BinaryClassSerializationAdapter {
|
|
5
|
-
constructor() {
|
|
6
|
-
super();
|
|
7
5
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
6
|
+
klass = Team;
|
|
7
|
+
version = 0;
|
|
11
8
|
|
|
12
9
|
/**
|
|
13
10
|
*
|