@woosh/meep-engine 2.121.11 → 2.121.12

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.
Files changed (177) hide show
  1. package/editor/process/symbolic/make3DSymbolicDisplay.js +2 -2
  2. package/editor/tools/TransformTool.js +3 -3
  3. package/editor/view/v2/prototypeEditor.js +1 -1
  4. package/package.json +1 -1
  5. package/src/core/collection/array/array_pick_best_elements.js +1 -1
  6. package/src/core/collection/list/List.d.ts.map +1 -1
  7. package/src/core/collection/list/List.js +3 -5
  8. package/src/core/collection/map/HashMap.d.ts.map +1 -1
  9. package/src/core/collection/map/HashMap.js +3 -1
  10. package/src/core/color/oklab/compute_max_saturation.d.ts +3 -1
  11. package/src/core/color/oklab/compute_max_saturation.d.ts.map +1 -1
  12. package/src/core/color/oklab/compute_max_saturation.js +3 -1
  13. package/src/core/color/oklab/find_cusp.d.ts +3 -1
  14. package/src/core/color/oklab/find_cusp.d.ts.map +1 -1
  15. package/src/core/color/oklab/find_cusp.js +3 -1
  16. package/src/core/color/oklab/find_gamut_intersection.d.ts +3 -1
  17. package/src/core/color/oklab/find_gamut_intersection.d.ts.map +1 -1
  18. package/src/core/color/oklab/find_gamut_intersection.js +3 -1
  19. package/src/core/color/oklab/okhsv_to_linear_srgb.d.ts +3 -1
  20. package/src/core/color/oklab/okhsv_to_linear_srgb.d.ts.map +1 -1
  21. package/src/core/color/oklab/okhsv_to_linear_srgb.js +3 -1
  22. package/src/core/color/oklab/oklab_to_linear_srgb.d.ts +3 -1
  23. package/src/core/color/oklab/oklab_to_linear_srgb.d.ts.map +1 -1
  24. package/src/core/color/oklab/oklab_to_linear_srgb.js +3 -1
  25. package/src/core/color/oklab/oklab_to_xyz.d.ts +4 -1
  26. package/src/core/color/oklab/oklab_to_xyz.d.ts.map +1 -1
  27. package/src/core/color/oklab/oklab_to_xyz.js +4 -1
  28. package/src/core/color/oklab/xyz_to_oklab.d.ts +3 -1
  29. package/src/core/color/oklab/xyz_to_oklab.d.ts.map +1 -1
  30. package/src/core/color/oklab/xyz_to_oklab.js +3 -1
  31. package/src/core/fsm/simple/SimpleStateMachineDescription.js +3 -3
  32. package/src/core/geom/2d/convex-hull/fixed_convex_hull_relaxation.d.ts +2 -1
  33. package/src/core/geom/2d/convex-hull/fixed_convex_hull_relaxation.d.ts.map +1 -1
  34. package/src/core/geom/2d/convex-hull/fixed_convex_hull_relaxation.js +2 -1
  35. package/src/core/geom/3d/tetrahedra/compute_bounding_simplex_3d.d.ts +3 -1
  36. package/src/core/geom/3d/tetrahedra/compute_bounding_simplex_3d.d.ts.map +1 -1
  37. package/src/core/geom/3d/tetrahedra/compute_bounding_simplex_3d.js +5 -3
  38. package/src/core/geom/ConicRay.d.ts +3 -1
  39. package/src/core/geom/ConicRay.d.ts.map +1 -1
  40. package/src/core/geom/ConicRay.js +3 -1
  41. package/src/core/geom/Quaternion.d.ts.map +1 -1
  42. package/src/core/geom/Quaternion.js +3 -2
  43. package/src/core/geom/Vector1.js +1 -1
  44. package/src/core/geom/Vector2.d.ts.map +1 -1
  45. package/src/core/geom/Vector2.js +2 -1
  46. package/src/core/geom/Vector3.d.ts.map +1 -1
  47. package/src/core/geom/Vector3.js +2 -1
  48. package/src/core/graph/layout/CircleLayout.d.ts.map +1 -1
  49. package/src/core/graph/layout/CircleLayout.js +5 -2
  50. package/src/core/model/ObservedString.d.ts +5 -0
  51. package/src/core/model/ObservedString.d.ts.map +1 -1
  52. package/src/core/model/ObservedString.js +5 -5
  53. package/src/core/model/node-graph/node/NodeDescription.js +3 -3
  54. package/src/core/model/node-graph/visual/NodeDescriptionVisualRegistry.js +1 -1
  55. package/src/core/model/reactive/evaluation/MultiPredicateEvaluator.js +4 -4
  56. package/src/core/model/reactive/model/terminal/ReactiveReference.js +4 -4
  57. package/src/core/process/action/PromiseAsynchronousAction.js +3 -3
  58. package/src/core/process/action/SynchronousAction.js +1 -1
  59. package/src/core/process/buildPromiseChain.js +4 -4
  60. package/src/core/process/executor/ConcurrentExecutor.d.ts +104 -16
  61. package/src/core/process/task/Task.d.ts +153 -15
  62. package/src/core/process/task/Task.d.ts.map +1 -1
  63. package/src/core/process/task/Task.js +26 -4
  64. package/src/core/process/task/TaskGroup.d.ts +83 -5
  65. package/src/core/process/task/TaskGroup.d.ts.map +1 -1
  66. package/src/core/process/task/TaskGroup.js +6 -6
  67. package/src/core/process/undo/Action.d.ts.map +1 -1
  68. package/src/core/process/undo/Action.js +3 -4
  69. package/src/core/process/undo/ActionProcessor.d.ts.map +1 -1
  70. package/src/core/process/undo/ActionProcessor.js +3 -6
  71. package/src/engine/asset/AssetManager.js +1 -1
  72. package/src/engine/development/performance/MetricCollection.js +1 -1
  73. package/src/engine/ecs/Entity.d.ts.map +1 -1
  74. package/src/engine/ecs/Entity.js +2 -0
  75. package/src/engine/ecs/EntityComponentDataset.d.ts.map +1 -1
  76. package/src/engine/ecs/EntityComponentDataset.js +35 -15
  77. package/src/engine/ecs/EntityManager.d.ts +12 -6
  78. package/src/engine/ecs/EntityManager.d.ts.map +1 -1
  79. package/src/engine/ecs/EntityManager.js +16 -8
  80. package/src/engine/ecs/System.d.ts.map +1 -1
  81. package/src/engine/ecs/System.js +41 -1
  82. package/src/engine/ecs/dynamic_actions/DataScope.d.ts +2 -2
  83. package/src/engine/ecs/dynamic_actions/DataScope.d.ts.map +1 -1
  84. package/src/engine/ecs/dynamic_actions/DataScope.js +7 -7
  85. package/src/engine/ecs/dynamic_actions/DynamicActorSystem.js +1 -1
  86. package/src/engine/ecs/dynamic_actions/actions/definition/SendRequestActionDescription.js +1 -1
  87. package/src/engine/ecs/dynamic_actions/actions/definition/SpeakLineActionDescription.js +2 -2
  88. package/src/engine/ecs/dynamic_actions/actions/definition/WriteToBlackboardActionDescription.js +1 -1
  89. package/src/engine/ecs/dynamic_actions/actions/definition/deserializeActionFromJSON.js +3 -3
  90. package/src/engine/ecs/dynamic_actions/rules/DynamicRuleDescription.js +1 -1
  91. package/src/engine/ecs/fow/FogOfWar.js +8 -8
  92. package/src/engine/ecs/fow/shader/FogOfWarRenderer.d.ts.map +1 -1
  93. package/src/engine/ecs/fow/shader/FogOfWarRenderer.js +13 -13
  94. package/src/engine/ecs/speaker/lines/LineDescription.js +1 -1
  95. package/src/engine/ecs/storage/binary/collection/BinaryCollectionDeSerializer.js +1 -1
  96. package/src/engine/ecs/terrain/ecs/Terrain.js +4 -4
  97. package/src/engine/graphics/particles/node-based/codegen/glsl/GLSLCodeGenerator.d.ts.map +1 -1
  98. package/src/engine/graphics/particles/node-based/codegen/glsl/GLSLCodeGenerator.js +5 -5
  99. package/src/engine/graphics/particles/node-based/codegen/modules/FunctionModule.d.ts +2 -1
  100. package/src/engine/graphics/particles/node-based/codegen/modules/FunctionModule.d.ts.map +1 -1
  101. package/src/engine/graphics/particles/node-based/codegen/modules/FunctionModule.js +13 -5
  102. package/src/engine/graphics/particles/node-based/codegen/modules/FunctionModuleReference.js +1 -1
  103. package/src/engine/graphics/particles/node-based/codegen/modules/FunctionModuleRegistry.js +2 -2
  104. package/src/engine/graphics/particles/node-based/particle/ParticleAttributeSpecification.js +2 -2
  105. package/src/engine/graphics/texture/sampler/HarmonicDiffusionGrid.js +5 -5
  106. package/src/engine/graphics/texture/sampler/distance/computeSignedDistanceField_NaiveFlood.d.ts +3 -1
  107. package/src/engine/graphics/texture/sampler/distance/computeSignedDistanceField_NaiveFlood.d.ts.map +1 -1
  108. package/src/engine/graphics/texture/sampler/distance/computeSignedDistanceField_NaiveFlood.js +4 -2
  109. package/src/engine/graphics/texture/sampler/sampler2d_combine.js +1 -1
  110. package/src/engine/graphics/three/TransfromControls.js +4 -5
  111. package/src/engine/input/devices/InputDeviceSwitch.d.ts.map +1 -1
  112. package/src/engine/input/devices/InputDeviceSwitch.js +1 -0
  113. package/src/engine/intelligence/behavior/selector/WeightedRandomBehavior.js +1 -1
  114. package/src/engine/intelligence/blackboard/AbstractBlackboard.js +3 -3
  115. package/src/engine/intelligence/blackboard/Blackboard.d.ts.map +1 -1
  116. package/src/engine/intelligence/blackboard/Blackboard.js +4 -4
  117. package/src/engine/intelligence/mcts/MonteCarlo.d.ts.map +1 -1
  118. package/src/engine/intelligence/mcts/MonteCarlo.js +36 -55
  119. package/src/engine/intelligence/resource/Resource.js +3 -3
  120. package/src/engine/save/StorageBackedList.js +2 -2
  121. package/src/engine/scene/SerializedScene.d.ts +1 -1
  122. package/src/engine/scene/SerializedScene.d.ts.map +1 -1
  123. package/src/engine/scene/SerializedScene.js +2 -2
  124. package/src/engine/sound/SoundEngine.d.ts.map +1 -1
  125. package/src/engine/sound/SoundEngine.js +2 -3
  126. package/src/engine/sound/ecs/emitter/SoundTrack.js +2 -2
  127. package/src/engine/sound/ecs/emitter/loadSoundTrackAsset.js +2 -2
  128. package/src/engine/ui/DraggableAspect.d.ts +5 -0
  129. package/src/engine/ui/DraggableAspect.d.ts.map +1 -1
  130. package/src/engine/ui/DraggableAspect.js +5 -5
  131. package/src/engine/ui/notification/NotificationManager.js +3 -3
  132. package/src/generation/filtering/boolean/CellFilterLiteralBoolean.d.ts.map +1 -1
  133. package/src/generation/filtering/boolean/CellFilterLiteralBoolean.js +3 -3
  134. package/src/generation/filtering/numeric/sampling/CellFilterSampleLayerCubic.d.ts.map +1 -1
  135. package/src/generation/filtering/numeric/sampling/CellFilterSampleLayerCubic.js +2 -2
  136. package/src/generation/grid/GridData.d.ts.map +1 -1
  137. package/src/generation/grid/GridData.js +3 -3
  138. package/src/generation/grid/generation/NoopGridTaskGenerator.d.ts +1 -1
  139. package/src/generation/grid/generation/NoopGridTaskGenerator.d.ts.map +1 -1
  140. package/src/generation/grid/generation/discrete/layer/GridTaskBuildSourceDistanceMap.js +1 -1
  141. package/src/generation/grid/generation/grid/GridTaskAddNodesFixed.d.ts +1 -1
  142. package/src/generation/grid/generation/grid/GridTaskAddNodesFixed.d.ts.map +1 -1
  143. package/src/generation/grid/layers/GridDataLayer.d.ts.map +1 -1
  144. package/src/generation/grid/layers/GridDataLayer.js +2 -2
  145. package/src/generation/markers/GridActionRuleSet.js +1 -1
  146. package/src/generation/markers/GridCellActionPlaceMarker.js +1 -1
  147. package/src/generation/markers/actions/MarkerProcessingRule.js +1 -1
  148. package/src/generation/markers/matcher/MarkerNodeMatcherByType.d.ts.map +1 -1
  149. package/src/generation/markers/matcher/MarkerNodeMatcherByType.js +2 -2
  150. package/src/generation/markers/matcher/MarkerNodeMatcherContainsTag.d.ts.map +1 -1
  151. package/src/generation/markers/matcher/MarkerNodeMatcherContainsTag.js +2 -2
  152. package/src/generation/markers/transform/MarkerNodeTransformerRecordProperty.d.ts.map +1 -1
  153. package/src/generation/markers/transform/MarkerNodeTransformerRecordProperty.js +2 -2
  154. package/src/generation/markers/transform/MarkerNodeTransformerRecordPropertyClosure.d.ts.map +1 -1
  155. package/src/generation/markers/transform/MarkerNodeTransformerRecordPropertyClosure.js +3 -3
  156. package/src/generation/markers/transform/MarkerNodeTransformerRecordUniqueRandomEnum.d.ts.map +1 -1
  157. package/src/generation/markers/transform/MarkerNodeTransformerRecordUniqueRandomEnum.js +3 -3
  158. package/src/generation/markers/transform/MarkerNodeTransformerRemoveTag.d.ts.map +1 -1
  159. package/src/generation/markers/transform/MarkerNodeTransformerRemoveTag.js +2 -2
  160. package/src/generation/placement/action/GridCellActionPlaceTags.d.ts.map +1 -1
  161. package/src/generation/placement/action/GridCellActionPlaceTags.js +1 -3
  162. package/src/generation/placement/action/GridCellActionWriteFilterToLayer.d.ts.map +1 -1
  163. package/src/generation/placement/action/GridCellActionWriteFilterToLayer.js +2 -2
  164. package/src/generation/rules/CellMatcherLayerBitMaskTest.d.ts.map +1 -1
  165. package/src/generation/rules/CellMatcherLayerBitMaskTest.js +2 -2
  166. package/src/generation/theme/TerrainTheme.js +1 -1
  167. package/src/view/View.d.ts.map +1 -1
  168. package/src/view/View.js +3 -5
  169. package/src/view/common/ListView.js +1 -1
  170. package/src/view/common/LocalizedLabelView.js +3 -3
  171. package/src/view/elements/radial/RadialText.d.ts.map +1 -1
  172. package/src/view/elements/radial/RadialText.js +14 -6
  173. package/src/view/interaction/InteractionCommand.d.ts.map +1 -1
  174. package/src/view/interaction/InteractionCommand.js +5 -5
  175. package/src/view/interaction/InteractionCommandSet.js +1 -1
  176. package/src/view/tooltip/gml/compiler/GMLReferenceCompiler.js +2 -2
  177. package/src/core/process/task/ITask.d.ts +0 -18
@@ -1,8 +1,8 @@
1
- import { buildScreenSpaceFogOfWarShader } from "./screenSpaceFogOfWarShader.js";
2
- import { assert } from "../../../../core/assert.js";
3
1
  import { Mesh, OrthographicCamera, Scene } from "three";
4
- import { FULL_SCREEN_TRIANGLE_GEOMETRY } from "../../../graphics/geometry/FULL_SCREEN_TRIANGLE_GEOMETRY.js";
2
+ import { assert } from "../../../../core/assert.js";
5
3
  import { isValueBetweenInclusive } from "../../../../core/math/interval/isValueBetweenInclusive.js";
4
+ import { FULL_SCREEN_TRIANGLE_GEOMETRY } from "../../../graphics/geometry/FULL_SCREEN_TRIANGLE_GEOMETRY.js";
5
+ import { buildScreenSpaceFogOfWarShader } from "./screenSpaceFogOfWarShader.js";
6
6
 
7
7
  /**
8
8
  *
@@ -60,22 +60,22 @@ export class FogOfWarRenderer {
60
60
  * @param {number} scaleY Transform scale from world coordinate position to UV v coordinate, minus offsetY
61
61
  */
62
62
  setUvTransform(offsetX, offsetY, scaleX, scaleY) {
63
- assert.typeOf(offsetX, 'number', 'offsetX');
64
- assert.notOk(Number.isNaN(offsetX), 'offsetX is NaN');
63
+ assert.isNumber(offsetX, 'offsetX');
64
+ assert.notNaN(offsetX, 'offsetX');
65
65
  assert.ok(isValueBetweenInclusive(offsetX, 0, 1), `expected offsetX to be between 0 and 1, instead was '${offsetX}'`);
66
66
 
67
- assert.typeOf(offsetY, 'number', 'offsetY');
68
- assert.notOk(Number.isNaN(offsetY), 'offsetY is NaN');
67
+ assert.isNumber(offsetY, 'offsetY');
68
+ assert.notNaN(offsetY, 'offsetY');
69
69
  assert.ok(isValueBetweenInclusive(offsetY, 0, 1), `expected offsetY to be between 0 and 1, instead was '${offsetY}'`);
70
70
 
71
71
 
72
- assert.typeOf(scaleX, 'number', 'scaleX');
73
- assert.notOk(Number.isNaN(scaleX), 'scaleX is NaN');
74
- assert.ok(Number.isFinite(scaleX), 'scaleX is Infinite');
72
+ assert.isNumber(scaleX, 'scaleX');
73
+ assert.notNaN(scaleX, 'scaleX');
74
+ assert.isFiniteNumber(scaleX, 'scaleX');
75
75
 
76
- assert.typeOf(scaleY, 'number', 'scaleY');
77
- assert.notOk(Number.isNaN(scaleY), 'scaleY is NaN');
78
- assert.ok(Number.isFinite(scaleY), 'scaleY is Infinite');
76
+ assert.isNumber(scaleY, 'scaleY');
77
+ assert.notNaN(scaleY, 'scaleY');
78
+ assert.isFiniteNumber(scaleY, 'scaleY');
79
79
 
80
80
  this.material.uniforms.uFogUvTransform.value.set(offsetX, offsetY, scaleX, scaleY);
81
81
  }
@@ -29,7 +29,7 @@ export class LineDescription {
29
29
  displayDuration = 1
30
30
  }) {
31
31
 
32
- assert.typeOf(text, 'string', 'text');
32
+ assert.isString(text, 'text');
33
33
 
34
34
  this.id = id;
35
35
  this.text = text;
@@ -160,7 +160,7 @@ export class BinaryCollectionDeSerializer {
160
160
  * @param {function(string,Class, BinaryClassSerializationAdapter):[]} [adapterOptionsSupplier]
161
161
  */
162
162
  initialize({ adapterOptionsSupplier = returnEmptyArray } = {}) {
163
- assert.typeOf(adapterOptionsSupplier, 'function', 'adapterOptionsSupplier');
163
+ assert.isFunction(adapterOptionsSupplier, 'adapterOptionsSupplier');
164
164
 
165
165
  if (this.state !== State.Initial) {
166
166
  throw new IllegalStateException(`Expected state to be Initial, instead was ${objectKeyByValue(State, this.state)}`);
@@ -555,11 +555,11 @@ class Terrain {
555
555
  * @param {Vector3} result
556
556
  */
557
557
  mapPointGrid2World(x, y, result) {
558
- assert.typeOf(x, "number", 'x');
559
- assert.typeOf(y, "number", 'y');
558
+ assert.isNumber(x, 'x');
559
+ assert.isNumber(y, 'y');
560
560
 
561
- assert.notEqual(result, null, 'result is null');
562
- assert.notEqual(result, undefined, 'result is undefined');
561
+ assert.notNull(result,'result');
562
+ assert.defined(result, 'result');
563
563
  assert.ok(result.isVector3, 'result is not Vector3');
564
564
 
565
565
  const transform = this.gridTransform;
@@ -1 +1 @@
1
- {"version":3,"file":"GLSLCodeGenerator.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/node-based/codegen/glsl/GLSLCodeGenerator.js"],"names":[],"mappings":"AAkEA;IAEI;;;;;OAKG;IACH,4BAJW,WAAW,SACX,SAAS,mBACT,sBAAsB,QAkChC;IAED;;;;;eA2IC;CACJ;8BAxP6B,qBAAqB;wBAI3B,+CAA+C"}
1
+ {"version":3,"file":"GLSLCodeGenerator.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/node-based/codegen/glsl/GLSLCodeGenerator.js"],"names":[],"mappings":"AAkEA;IAEI;;;;;OAKG;IACH,4BAJW,WAAW,SACX,SAAS,mBACT,sBAAsB,QAkChC;IAED;;;;;eA2IC;CACJ;8BAlP6B,qBAAqB;wBAJ3B,+CAA+C"}
@@ -1,10 +1,10 @@
1
- import { CodeGenerator } from "../CodeGenerator.js";
2
- import { CodeContext } from "../CodeContext.js";
1
+ import { assert } from "../../../../../../core/assert.js";
3
2
  import { BitSet } from "../../../../../../core/binary/BitSet.js";
4
- import { PortDirection } from "../../../../../../core/model/node-graph/node/PortDirection.js";
5
3
  import LineBuilder from "../../../../../../core/codegen/LineBuilder.js";
4
+ import { PortDirection } from "../../../../../../core/model/node-graph/node/PortDirection.js";
6
5
  import { ParticleDataTypes } from "../../nodes/ParticleDataTypes.js";
7
- import { assert } from "../../../../../../core/assert.js";
6
+ import { CodeContext } from "../CodeContext.js";
7
+ import { CodeGenerator } from "../CodeGenerator.js";
8
8
  import { genAttributeInputName } from "./genAttributeInputName.js";
9
9
  import { genAttributeOutputName } from "./genAttributeOutputName.js";
10
10
 
@@ -37,7 +37,7 @@ function genTypeSpecifier(type) {
37
37
  * @returns {string}
38
38
  */
39
39
  function genVarDeclaration(name, type) {
40
- assert.typeOf(name, 'string', 'name');
40
+ assert.isString(name, 'name');
41
41
 
42
42
  return `${genTypeSpecifier(type)} ${name}`;
43
43
  }
@@ -3,7 +3,7 @@ export class FunctionModule {
3
3
  *
4
4
  * @param {string} id
5
5
  * @param {FunctionSignature} signature
6
- * @param {FunctionModuleReference} [dependencies]
6
+ * @param {FunctionModuleReference[]} [dependencies]
7
7
  * @param {ParticleAttributeSpecification[]} [read_variables]
8
8
  * @param {LineBuilder} code_lines
9
9
  * @returns {FunctionModule}
@@ -59,5 +59,6 @@ export class FunctionModule {
59
59
  readonly isFunctionModule: boolean;
60
60
  }
61
61
  import { FunctionSignature } from "./FunctionSignature.js";
62
+ import { FunctionModuleReference } from "./FunctionModuleReference.js";
62
63
  import LineBuilder from "../../../../../../core/codegen/LineBuilder.js";
63
64
  //# sourceMappingURL=FunctionModule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FunctionModule.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/node-based/codegen/modules/FunctionModule.js"],"names":[],"mappings":"AAIA;IAiCI;;;;;;;;OAQG;IACH,yEAPW,MAAM,GAKJ,cAAc,CAc1B;IApDG;;;OAGG;IACH,IAFU,MAAM,CAEJ;IAEZ;;;OAGG;IACH,WAFU,iBAAiB,CAEa;IAExC;;;OAGG;IACH,cAFU,uBAAuB,EAAE,CAEb;IAEtB;;;OAGG;IACH,gBAFU,8BAA8B,EAAE,CAElB;IAExB;;;OAGG;IACH,YAFU,WAAW,CAEc;IA0BvC;;;;OAIG;IACH,4BAHW,uBAAuB,GACrB,OAAO,CAkBnB;IAED;;;;;OAKG;IACH,kBAJW,MAAM,aACN,iBAAiB,GACf,OAAO,CAoBnB;IAED;;;OAGG;IACH,iBAFW,WAAW,QAMrB;IAGL;;;OAGG;IACH,2BAFU,OAAO,CAEwB;CANxC;kCAtHiC,wBAAwB;wBAElC,+CAA+C"}
1
+ {"version":3,"file":"FunctionModule.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/node-based/codegen/modules/FunctionModule.js"],"names":[],"mappings":"AAKA;IAiCI;;;;;;;;OAQG;IACH,yEAPW,MAAM,GAKJ,cAAc,CAqB1B;IA3DG;;;OAGG;IACH,IAFU,MAAM,CAEJ;IAEZ;;;OAGG;IACH,WAFU,iBAAiB,CAEa;IAExC;;;OAGG;IACH,cAFU,uBAAuB,EAAE,CAEb;IAEtB;;;OAGG;IACH,gBAFU,8BAA8B,EAAE,CAElB;IAExB;;;OAGG;IACH,YAFU,WAAW,CAEc;IAiCvC;;;;OAIG;IACH,4BAHW,uBAAuB,GACrB,OAAO,CAkBnB;IAED;;;;;OAKG;IACH,kBAJW,MAAM,aACN,iBAAiB,GACf,OAAO,CAoBnB;IAED;;;OAGG;IACH,iBAFW,WAAW,QAMrB;IAGL;;;OAGG;IACH,2BAFU,OAAO,CAEwB;CANxC;kCA3HiC,wBAAwB;wCADlB,8BAA8B;wBAD9C,+CAA+C"}
@@ -1,6 +1,7 @@
1
- import { FunctionSignature } from "./FunctionSignature.js";
2
1
  import { assert } from "../../../../../../core/assert.js";
3
2
  import LineBuilder from "../../../../../../core/codegen/LineBuilder.js";
3
+ import { FunctionModuleReference } from "./FunctionModuleReference.js";
4
+ import { FunctionSignature } from "./FunctionSignature.js";
4
5
 
5
6
  export class FunctionModule {
6
7
  constructor() {
@@ -39,13 +40,20 @@ export class FunctionModule {
39
40
  *
40
41
  * @param {string} id
41
42
  * @param {FunctionSignature} signature
42
- * @param {FunctionModuleReference} [dependencies]
43
+ * @param {FunctionModuleReference[]} [dependencies]
43
44
  * @param {ParticleAttributeSpecification[]} [read_variables]
44
45
  * @param {LineBuilder} code_lines
45
46
  * @returns {FunctionModule}
46
47
  */
47
- static from({ id, signature, dependencies = [], read_variables = [], code_lines }) {
48
- assert.typeOf(id, 'string', 'id');
48
+ static from({
49
+ id,
50
+ signature,
51
+ dependencies = [],
52
+ read_variables = [],
53
+ code_lines
54
+ }) {
55
+
56
+ assert.isString(id, 'id');
49
57
 
50
58
  const r = new FunctionModule();
51
59
 
@@ -89,7 +97,7 @@ export class FunctionModule {
89
97
  */
90
98
  addDependency(id, signature) {
91
99
 
92
- assert.typeOf(id, 'string', 'id');
100
+ assert.isString(id, 'id');
93
101
  assert.defined(signature, 'signature');
94
102
  assert.equal(signature.isFunctionSignature, true, 'signature.isFunctionSignature !== true');
95
103
 
@@ -25,7 +25,7 @@ export class FunctionModuleReference {
25
25
  */
26
26
  static from(id, signature) {
27
27
  assert.defined(id, 'id');
28
- assert.typeOf(id, 'string', 'id');
28
+ assert.isString(id, 'id');
29
29
 
30
30
  assert.defined(signature, 'signature');
31
31
  assert.equal(signature.isFunctionSignature, true, 'signature.isFunctionSignature !== true');
@@ -196,7 +196,7 @@ export class FunctionModuleRegistry {
196
196
  const dependency_module = this.getModuleByReference(dependency);
197
197
 
198
198
  if (dependency_module === undefined) {
199
- throw new Error(`Dependency not found, dependent=${reference}, dependency=${dependency}`);
199
+ throw new Error(`Dependency not found, dependent=${reference}, dependency=${dependency}`);
200
200
  }
201
201
 
202
202
  if (!ordered.includes(dependency_module)) {
@@ -254,7 +254,7 @@ export class FunctionModuleRegistry {
254
254
  * @returns {FunctionModule|undefined}
255
255
  */
256
256
  getModule(id) {
257
- assert.typeOf(id, 'string', 'id');
257
+ assert.isString(id, 'id');
258
258
 
259
259
  return this.modules[id];
260
260
  }
@@ -1,5 +1,5 @@
1
- import { ParticleDataTypes } from "../nodes/ParticleDataTypes.js";
2
1
  import { assert } from "../../../../../core/assert.js";
2
+ import { ParticleDataTypes } from "../nodes/ParticleDataTypes.js";
3
3
 
4
4
  export class ParticleAttributeSpecification {
5
5
  constructor() {
@@ -47,7 +47,7 @@ export class ParticleAttributeSpecification {
47
47
  static from(name, type) {
48
48
 
49
49
  assert.enum(type, ParticleDataTypes, 'type');
50
- assert.typeOf(name, 'string', 'name');
50
+ assert.isString(name, 'name');
51
51
 
52
52
 
53
53
  const r = new ParticleAttributeSpecification();
@@ -53,9 +53,9 @@ export class HarmonicDiffusionGrid {
53
53
  */
54
54
  assign(x, y, value) {
55
55
 
56
- assert.typeOf(x, 'number', 'value');
57
- assert.typeOf(y, 'number', 'value');
58
- assert.typeOf(value, 'number', 'value');
56
+ assert.isNumber(x, 'x');
57
+ assert.isNumber(y, 'y');
58
+ assert.isNumber(value, 'value');
59
59
 
60
60
  assert.ok(x >= 0, `x(=${x}) is less than 0`);
61
61
  assert.ok(x < this.width, `x(=${x}) >= width(=${this.width})`);
@@ -63,8 +63,8 @@ export class HarmonicDiffusionGrid {
63
63
  assert.ok(y >= 0, `y(=${y}) is less than 0`);
64
64
  assert.ok(y < this.height, `y(=${y}) >= height(=${this.height})`);
65
65
 
66
- assert.ok(Number.isFinite(value), `values must be finite, instead was '${value}'`);
67
- assert.notOk(Number.isNaN(value), `value is NaN`);
66
+ assert.isFiniteNumber(value, 'values');
67
+ assert.notNaN(value, 'value');
68
68
 
69
69
  //compute index
70
70
  const index = y * this.width + x;
@@ -1,9 +1,11 @@
1
1
  /**
2
2
  * Naive flood implementation of a distance field computation algorithm
3
- * @author Alex Goldring Dec 2018
4
3
  * @param {Sampler2D} source
5
4
  * @param {Sampler2D} destination
6
5
  * @param {number} emptyValue
6
+ *
7
+ * @author Alex Goldring
8
+ * @copyright Company Named Limited (c) 2025
7
9
  */
8
10
  export function computeSignedDistanceField_NaiveFlood(source: Sampler2D, destination: Sampler2D, emptyValue: number): void;
9
11
  //# sourceMappingURL=computeSignedDistanceField_NaiveFlood.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"computeSignedDistanceField_NaiveFlood.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/graphics/texture/sampler/distance/computeSignedDistanceField_NaiveFlood.js"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,8DAJW,SAAS,eACT,SAAS,cACT,MAAM,QA6HhB"}
1
+ {"version":3,"file":"computeSignedDistanceField_NaiveFlood.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/graphics/texture/sampler/distance/computeSignedDistanceField_NaiveFlood.js"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,8DAPW,SAAS,eACT,SAAS,cACT,MAAM,QAgIhB"}
@@ -3,10 +3,12 @@ import { BitSet } from "../../../../../core/binary/BitSet.js";
3
3
 
4
4
  /**
5
5
  * Naive flood implementation of a distance field computation algorithm
6
- * @author Alex Goldring Dec 2018
7
6
  * @param {Sampler2D} source
8
7
  * @param {Sampler2D} destination
9
8
  * @param {number} emptyValue
9
+ *
10
+ * @author Alex Goldring
11
+ * @copyright Company Named Limited (c) 2025
10
12
  */
11
13
  export function computeSignedDistanceField_NaiveFlood(
12
14
  source,
@@ -14,7 +16,7 @@ export function computeSignedDistanceField_NaiveFlood(
14
16
  emptyValue
15
17
  ) {
16
18
  assert.equal(source.itemSize, 1, `unsupported source.itemSize, expected 1, got '${source.itemSize}'`);
17
- assert.typeOf(emptyValue, 'number', 'emptyValue');
19
+ assert.isNumber(emptyValue, 'emptyValue');
18
20
 
19
21
  let i, j;
20
22
 
@@ -13,7 +13,7 @@ export function sampler2d_combine(input0, input1, result, operation) {
13
13
  assert.notEqual(input1, undefined, "input1 is undefined");
14
14
  assert.notEqual(result, undefined, "result is undefined");
15
15
 
16
- assert.typeOf(operation, "function", "operation");
16
+ assert.isFiniteNumber(operation, "operation");
17
17
 
18
18
  assert.equal(input0.width, input1.width, `input0.width(=${input0.width}) is not equal to input1.width(=${input1.width})`);
19
19
  assert.equal(input0.height, input1.height, `input0.height(=${input0.height}) is not equal to input1.height(=${input1.height})`);
@@ -1,8 +1,3 @@
1
- /**
2
- * @author arodic / https://github.com/arodic
3
- * @author Alex Goldring - Adapted to ES6 module
4
- */
5
-
6
1
  import {
7
2
  BoxBufferGeometry,
8
3
  BufferGeometry,
@@ -28,6 +23,10 @@ import {
28
23
  Vector3
29
24
  } from 'three';
30
25
 
26
+ /**
27
+ * @author arodic / https://github.com/arodic
28
+ * @author Alex Goldring - Adapted to ES6 module
29
+ */
31
30
  const TransformControls = function (camera, domElement) {
32
31
 
33
32
  Object3D.call(this);
@@ -1 +1 @@
1
- {"version":3,"file":"InputDeviceSwitch.d.ts","sourceRoot":"","sources":["../../../../../src/engine/input/devices/InputDeviceSwitch.js"],"names":[],"mappings":"AAEA;;GAEG;AACH;IAEI;;;;OAIG;IACH,eAFU,MAAQ,CAEC;IAEnB;;;;OAIG;IACH,aAFU,MAAQ,CAED;IAEjB;;;OAGG;IACH,SAFU,OAAO,CAEF;IAEf;;;OAGG;IACH,aAFa,OAAO,CAInB;IAED;;;;OAIG;IACH,cAOC;IAED;;;;OAIG;IACH,gBAOC;CACJ;mBA9DkB,uCAAuC"}
1
+ {"version":3,"file":"InputDeviceSwitch.d.ts","sourceRoot":"","sources":["../../../../../src/engine/input/devices/InputDeviceSwitch.js"],"names":[],"mappings":"AAEA;;GAEG;AACH;IAEI;;;;OAIG;IACH,eAFU,MAAQ,CAEC;IAEnB;;;;OAIG;IACH,aAFU,MAAQ,CAED;IAEjB;;;;OAIG;IACH,SAFU,OAAO,CAEF;IAEf;;;OAGG;IACH,aAFa,OAAO,CAInB;IAED;;;;OAIG;IACH,cAOC;IAED;;;;OAIG;IACH,gBAOC;CACJ;mBA/DkB,uCAAuC"}
@@ -21,6 +21,7 @@ export class InputDeviceSwitch {
21
21
 
22
22
  /**
23
23
  * is button currently being pressed?
24
+ * Do not modify directly
24
25
  * @type {boolean}
25
26
  */
26
27
  is_down = false
@@ -54,7 +54,7 @@ export class WeightedRandomBehavior extends Behavior {
54
54
  assert.defined(e, 'element');
55
55
  assert.notNull(e, 'element');
56
56
 
57
- assert.typeOf(e, 'object', 'element');
57
+ assert.isObject(e, 'element');
58
58
 
59
59
  assert.equal(e.isWeightedElement, true, 'element.isWeightedElement !== true');
60
60
  assert.equal(e.data.isBehavior, true, 'element.data.isWeightedElement !== true');
@@ -1,5 +1,5 @@
1
- import DataType from "../../../core/parser/simple/DataType.js";
2
1
  import { assert } from "../../../core/assert.js";
2
+ import DataType from "../../../core/parser/simple/DataType.js";
3
3
 
4
4
  export class AbstractBlackboard {
5
5
 
@@ -48,7 +48,7 @@ export class AbstractBlackboard {
48
48
  * @returns {ObservedBoolean}
49
49
  */
50
50
  acquireBoolean(name, initialValue = false) {
51
- assert.typeOf(initialValue, 'boolean', 'initialValue');
51
+ assert.isBoolean(initialValue, 'initialValue');
52
52
 
53
53
  return this.acquire(name, DataType.Boolean, initialValue);
54
54
  }
@@ -86,7 +86,7 @@ export class AbstractBlackboard {
86
86
  * @returns {ObservedString}
87
87
  */
88
88
  acquireString(name, initialValue = '') {
89
- assert.typeOf(initialValue, 'string', 'initialValue');
89
+ assert.isString(initialValue, 'initialValue');
90
90
 
91
91
  return this.acquire(name, DataType.String, initialValue);
92
92
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Blackboard.d.ts","sourceRoot":"","sources":["../../../../../src/engine/intelligence/blackboard/Blackboard.js"],"names":[],"mappings":"AAQA;IAoPI;;;;OAIG;IACH,sBAHW,GAAG,GACF,UAAU,CAMrB;IAzPG;QACI;;;WAGG;eADO,MAAM;MAGnB;IAED;;;OAGG;IACH,UAAc;IAEd;;OAEG;IACH,cAAwC;IAG5C,+BAEC;IAED;;;OAGG;IACH,qBAEC;IAyBD;;;;OAIG;IACH,iCAFW,GAAC,QAcX;IAED;;;;OAIG;IACH,6BAFW,MAAM,sBAWhB;IAED;;;;;;OAMG;IACH,QANa,CAAC,QACH,MAAM,QACN,QAAQ,iBACR,MAAM,GAAC,OAAO,GACZ,CAAC,CAiCb;IAED;;;OAGG;IACH,cAFW,MAAM,QAWhB;IAED;;OAEG;IACH,cAEC;IAED;;;;OAIG;IACH,YAFW,UAAU,QAyCpB;IAED;;;OAGG;IACH,SAFa,UAAU,CAQtB;IAGD,aAQC;IAED,0BAiBC;CAYJ;;;;mCAlQkC,yBAAyB;mBAFzC,uCAAuC"}
1
+ {"version":3,"file":"Blackboard.d.ts","sourceRoot":"","sources":["../../../../../src/engine/intelligence/blackboard/Blackboard.js"],"names":[],"mappings":"AAQA;IAoPI;;;;OAIG;IACH,sBAHW,GAAG,GACF,UAAU,CAMrB;IAzPG;QACI;;;WAGG;eADO,MAAM;MAGnB;IAED;;;OAGG;IACH,UAAc;IAEd;;OAEG;IACH,cAAwC;IAG5C,+BAEC;IAED;;;OAGG;IACH,qBAEC;IAyBD;;;;OAIG;IACH,iCAFW,GAAC,QAcX;IAED;;;;OAIG;IACH,6BAFW,MAAM,sBAWhB;IAED;;;;;;OAMG;IACH,QANa,CAAC,QACH,MAAM,QACN,QAAQ,iBACR,MAAM,GAAC,OAAO,GACZ,CAAC,CAiCb;IAED;;;OAGG;IACH,cAFW,MAAM,QAWhB;IAED;;OAEG;IACH,cAEC;IAED;;;;OAIG;IACH,YAFW,UAAU,QAyCpB;IAED;;;OAGG;IACH,SAFa,UAAU,CAQtB;IAGD,aAQC;IAED,0BAiBC;CAYJ;;;;mCAnQkC,yBAAyB;mBAFzC,uCAAuC"}
@@ -1,8 +1,8 @@
1
- import DataType from "../../../core/parser/simple/DataType.js";
2
1
  import { assert } from "../../../core/assert.js";
3
2
  import Signal from "../../../core/events/signal/Signal.js";
4
- import { BlackboardValue } from "./BlackboardValue.js";
3
+ import DataType from "../../../core/parser/simple/DataType.js";
5
4
  import { AbstractBlackboard } from "./AbstractBlackboard.js";
5
+ import { BlackboardValue } from "./BlackboardValue.js";
6
6
  import { make_blackboard_proxy } from "./make_blackboard_proxy.js";
7
7
 
8
8
 
@@ -71,7 +71,7 @@ export class Blackboard extends AbstractBlackboard {
71
71
  * @param {*} [thisArg]
72
72
  */
73
73
  traverse(visitor, thisArg) {
74
- assert.typeOf(visitor, 'function', 'visitor');
74
+ assert.isFunction(visitor, 'visitor');
75
75
 
76
76
  for (let name in this.data) {
77
77
  if (!this.data.hasOwnProperty(name)) {
@@ -145,7 +145,7 @@ export class Blackboard extends AbstractBlackboard {
145
145
  * @param {string} name
146
146
  */
147
147
  release(name) {
148
- assert.typeOf(name, 'string', 'name');
148
+ assert.isString(name, 'name');
149
149
  assert.ok(this.data.hasOwnProperty(name), `Attempting to release a value '${name}' that doesn't exist`);
150
150
 
151
151
  const datum = this.data[name];
@@ -1 +1 @@
1
- {"version":3,"file":"MonteCarlo.d.ts","sourceRoot":"","sources":["../../../../../src/engine/intelligence/mcts/MonteCarlo.js"],"names":[],"mappings":"AAqDA;;GAEG;AACH,kCAFa,CAAC;IAQN;;;OAGG;IACH,WAFU,CAAC,CAEU;IACrB;;;OAGG;IACH,MAFU,sBAAU,IAAI,CAER;IAEhB;;;OAGG;IACH,mBAFU,CAAS,IAAK,EAAL,KAAK,KAAC,CAAC,CAEG;IAE7B;;;OAGG;IACH,qBAFU,CAAS,IAAK,EAAL,KAAK,KAAC,CAAC,CAEK;IAE/B;;;OAGG;IACH,qBAFU,MAAM,CAEe;IAE/B;;;OAGG;IACH,iBAA6B;IAGjC;;;;;;OAMG;IACH,yFANW,CAAC,QA2BX;IANG,gBAA4B;IAC5B,eAA0B;IAO9B;;;;;OAKG;IACH,+CAHW,CAAC,uBAsEX;IAED;;;OAGG;IACH,WAFa,CAAC,CA+Cb;CACJ;0BAlPoC,gBAAgB"}
1
+ {"version":3,"file":"MonteCarlo.d.ts","sourceRoot":"","sources":["../../../../../src/engine/intelligence/mcts/MonteCarlo.js"],"names":[],"mappings":"AAsCA;;GAEG;AACH,kCAFa,CAAC;IAIV;;;OAGG;IACH,WAFU,CAAC,CAEM;IAEjB;;;OAGG;IACH,MAFU,sBAAU,IAAI,CAEZ;IAEZ;;;OAGG;IACH,mBAFU,CAAS,IAAK,EAAL,KAAK,KAAC,CAAC,CAED;IAEzB;;;OAGG;IACH,qBAFU,CAAS,IAAK,EAAL,KAAK,KAAC,CAAC,CAEC;IAE3B;;;OAGG;IACH,qBAFU,MAAM,CAEW;IAE3B;;;OAGG;IACH,iBAAyB;IAEzB;;;;;;OAMG;IACH,yFANW,CAAC,QA2BX;IANG,gBAA4B;IAC5B,eAA0B;IAO9B;;;;;OAKG;IACH,+CAHW,CAAC,uBAsEX;IAED;;;OAGG;IACH,WAFa,CAAC,CA+Cb;CACJ;0BArOoC,gBAAgB"}
@@ -1,9 +1,3 @@
1
- /*
2
- * Inspired by wikipedia article on Monte Carlo tree search: https://en.m.wikipedia.org/wiki/Monte_Carlo_tree_search
3
- * @author Alex Goldring 2018/06/18
4
- */
5
-
6
-
7
1
  import { assert } from "../../../core/assert.js";
8
2
  import { returnZero } from "../../../core/function/returnZero.js";
9
3
  import { mix } from "../../../core/math/mix.js";
@@ -11,15 +5,6 @@ import { seededRandom } from "../../../core/math/random/seededRandom.js";
11
5
  import { MoveEdge } from "./MoveEdge.js";
12
6
  import { StateNode, StateType } from "./StateNode.js";
13
7
 
14
- /**
15
- * @template S
16
- * @param {StateNode} node
17
- * @param {S} state
18
- */
19
- function recordArbitratedPlayout(node, state) {
20
- node.addPlayouts(1, 0, 0);
21
- }
22
-
23
8
  /**
24
9
  * From: A Survey of Monte Carlo Tree Search Methods
25
10
  * The value Cp = 1/√2 was shown by Kocsis and Szepesvari [120] to satisfy the Hoeffding ineqality with rewards in the range [0, 1]
@@ -55,46 +40,42 @@ function computeNodeSelectionScore(parent, child) {
55
40
  * @template S
56
41
  */
57
42
  export class MonteCarloTreeSearch {
43
+
58
44
  /**
59
45
  *
60
- * @constructor
46
+ * @type {S}
61
47
  */
62
- constructor() {
63
- /**
64
- *
65
- * @type {S}
66
- */
67
- this.rootState = null;
68
- /**
69
- *
70
- * @type {StateNode|null}
71
- */
72
- this.root = null;
73
-
74
- /**
75
- *
76
- * @type {function(state:S, source:StateNode):MoveEdge[]}
77
- */
78
- this.computeValidMoves = null;
79
-
80
- /**
81
- *
82
- * @type {function(state:S):StateType}
83
- */
84
- this.computeTerminalFlag = null;
85
-
86
- /**
87
- * Depth to which plays will be explored
88
- * @type {number}
89
- */
90
- this.maxExplorationDepth = 1000;
91
-
92
- /**
93
- *
94
- * @type {Function}
95
- */
96
- this.random = seededRandom(0);
97
- }
48
+ rootState = null;
49
+
50
+ /**
51
+ *
52
+ * @type {StateNode|null}
53
+ */
54
+ root = null;
55
+
56
+ /**
57
+ *
58
+ * @type {function(state:S, source:StateNode):MoveEdge[]}
59
+ */
60
+ computeValidMoves = null;
61
+
62
+ /**
63
+ *
64
+ * @type {function(state:S):StateType}
65
+ */
66
+ computeTerminalFlag = null;
67
+
68
+ /**
69
+ * Depth to which plays will be explored
70
+ * @type {number}
71
+ */
72
+ maxExplorationDepth = 1000;
73
+
74
+ /**
75
+ *
76
+ * @type {Function}
77
+ */
78
+ random = seededRandom(0);
98
79
 
99
80
  /**
100
81
  * @param {S} rootState
@@ -112,9 +93,9 @@ export class MonteCarloTreeSearch {
112
93
  heuristic = returnZero
113
94
  }
114
95
  ) {
115
- assert.typeOf(computeValidMoves, 'function', `computeValidMoves`);
116
- assert.typeOf(computeTerminalFlag, 'function', `computeTerminalFlag`);
117
- assert.typeOf(cloneState, 'function', `cloneState`);
96
+ assert.isFunction(computeValidMoves, `computeValidMoves`);
97
+ assert.isFunction(computeTerminalFlag, `computeTerminalFlag`);
98
+ assert.isFunction(cloneState, `cloneState`);
118
99
 
119
100
  this.computeValidMoves = computeValidMoves;
120
101
  this.computeTerminalFlag = computeTerminalFlag;
@@ -11,10 +11,10 @@ export class Resource {
11
11
  * @param {T} type
12
12
  */
13
13
  constructor(amount, type) {
14
- assert.typeOf(amount, 'number', 'amount');
14
+ assert.isNumber(amount, 'amount');
15
15
 
16
- assert.notEqual(type, undefined, 'type is undefined');
17
- assert.notEqual(type, null, 'type is null');
16
+ assert.defined(type, 'type');
17
+ assert.notNull(type, 'type');
18
18
 
19
19
  /**
20
20
  *
@@ -23,7 +23,7 @@ export class StorageBackedSet {
23
23
  * @type {Promise}
24
24
  */
25
25
  lastPromise = Promise.resolve();
26
-
26
+
27
27
 
28
28
  /**
29
29
  *
@@ -32,7 +32,7 @@ export class StorageBackedSet {
32
32
  */
33
33
  initialize({ key, storage }) {
34
34
  assert.defined(storage, 'storage');
35
- assert.typeOf(key, 'string', 'key');
35
+ assert.isString(key, 'key');
36
36
 
37
37
  this.key = key;
38
38
  this.storage = storage;
@@ -22,7 +22,7 @@ export class SerializedScene extends MirScene {
22
22
  */
23
23
  constructor({ name, path }: string);
24
24
  path: any;
25
- setup(options: any, engine: any, success: any, failure: any): import("../../core/process/task/Task.js").default;
25
+ setup(options: any, engine: any, success: any, failure: any): import("../../core/process/task/Task.js").Task;
26
26
  }
27
27
  import { MirScene } from "../../../../model/game/scenes/MirScene.js";
28
28
  //# sourceMappingURL=SerializedScene.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SerializedScene.d.ts","sourceRoot":"","sources":["../../../../src/engine/scene/SerializedScene.js"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,0CALW,MAAM,OACN,sBAAsB,UACtB,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CASzB;AAED;;;;;;GAMG;AACH,qDALW,MAAM,OACN,sBAAsB,UACtB,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAyBzB;AAED;IACI;;;;OAIG;IACH,4BAHW,MAAM,EAOhB;IADG,UAAgB;IAIpB,gHAcC;CACJ;yBApFwB,2CAA2C"}
1
+ {"version":3,"file":"SerializedScene.d.ts","sourceRoot":"","sources":["../../../../src/engine/scene/SerializedScene.js"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,0CALW,MAAM,OACN,sBAAsB,UACtB,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CASzB;AAED;;;;;;GAMG;AACH,qDALW,MAAM,OACN,sBAAsB,UACtB,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAyBzB;AAED;IACI;;;;OAIG;IACH,4BAHW,MAAM,EAOhB;IADG,UAAgB;IAIpB,6GAcC;CACJ;yBApFwB,2CAA2C"}
@@ -68,8 +68,8 @@ export class SerializedScene extends MirScene {
68
68
 
69
69
 
70
70
  setup(options, engine, success, failure) {
71
- assert.typeOf(success, 'function', 'success');
72
- assert.typeOf(failure, 'function', 'failure');
71
+ assert.isFunction(success, 'success');
72
+ assert.isFunction(failure, 'failure');
73
73
 
74
74
  this.__engine = engine;
75
75
 
@@ -1 +1 @@
1
- {"version":3,"file":"SoundEngine.d.ts","sourceRoot":"","sources":["../../../../src/engine/sound/SoundEngine.js"],"names":[],"mappings":";AAAA;;;GAGG;AAGH;IAkBwB,sBAWd;IAUF,sBAA2B;IAiB/B;;;OAGG;IACH,kBAFY,MAAM,CAIjB;IAED;;;;OAIG;IACH,iBAFa,OAAO,CAAC,IAAI,CAAC,CAMzB;IAED;;;OAGG;IACH,SAFa,OAAO,CAAC,GAAG,CAAC,CAWxB;CACJ"}
1
+ {"version":3,"file":"SoundEngine.d.ts","sourceRoot":"","sources":["../../../../src/engine/sound/SoundEngine.js"],"names":[],"mappings":";AAAA;;;;GAIG;AACH;IAkBwB,sBAWd;IAUF,sBAA2B;IAiB/B;;;OAGG;IACH,kBAFY,MAAM,CAIjB;IAED;;;;OAIG;IACH,iBAFa,OAAO,CAAC,IAAI,CAAC,CAMzB;IAED;;;OAGG;IACH,SAFa,OAAO,CAAC,GAAG,CAAC,CAWxB;CACJ"}
@@ -1,9 +1,8 @@
1
1
  /**
2
+ *
2
3
  * @author Alex Goldring
3
- * @copyright Alex Goldring 11/6/2014
4
+ * @copyright Company Named Limited (c) 2025
4
5
  */
5
-
6
-
7
6
  class SoundEngine {
8
7
  /**
9
8
  *
@@ -163,7 +163,7 @@ export class SoundTrack {
163
163
  suspend() {
164
164
  const nodes = this.#nodes;
165
165
 
166
- if(nodes.source !== null) {
166
+ if (nodes.source !== null) {
167
167
 
168
168
  nodes.source.stop();
169
169
  nodes.source.disconnect();
@@ -445,7 +445,7 @@ export class SoundTrack {
445
445
  synchronized = false
446
446
  }
447
447
  ) {
448
- assert.typeOf(url, 'string', 'url');
448
+ assert.isString(url, 'url');
449
449
 
450
450
  this.url = url;
451
451