@driftengine/script 4.7.3 → 4.7.4

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.
@@ -95,7 +95,7 @@ export function registerEntityModule(module, registry, resources = new Map()) {
95
95
  const existing = registry.get(declared.name);
96
96
  /* A module reloaded keeps the store it already made: replacing the type would orphan every
97
97
  entity holding one, which is a world that silently loses its components on an edit. */
98
- const type = existing ?? defineComponent(declared.schema);
98
+ const type = existing ?? defineComponent(declared.schema, declared.defaults);
99
99
  registry.set(declared.name, type);
100
100
  components.push(type);
101
101
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@driftengine/script",
3
- "version": "4.7.3",
3
+ "version": "4.7.4",
4
4
  "description": "The drift/* capability bindings: what this engine provides to DriftScript, and the only place the two are coupled",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -28,20 +28,20 @@
28
28
  ],
29
29
  "sideEffects": false,
30
30
  "dependencies": {
31
- "driftscript": "1.13.1"
31
+ "driftscript": "1.14.0"
32
32
  },
33
33
  "peerDependencies": {
34
- "@driftengine/ai": "4.7.3",
35
- "@driftengine/animation": "4.7.3",
36
- "@driftengine/audio": "4.7.3",
37
- "@driftengine/chemistry": "4.7.3",
38
- "@driftengine/core": "4.7.3",
39
- "@driftengine/editor": "4.7.3",
40
- "@driftengine/entities": "4.7.3",
41
- "@driftengine/network": "4.7.3",
42
- "@driftengine/terrain": "4.7.3",
43
- "@driftengine/ui2d": "4.7.3",
44
- "@driftengine/xr": "4.7.3"
34
+ "@driftengine/ai": "4.7.4",
35
+ "@driftengine/animation": "4.7.4",
36
+ "@driftengine/audio": "4.7.4",
37
+ "@driftengine/chemistry": "4.7.4",
38
+ "@driftengine/core": "4.7.4",
39
+ "@driftengine/editor": "4.7.4",
40
+ "@driftengine/entities": "4.7.4",
41
+ "@driftengine/network": "4.7.4",
42
+ "@driftengine/terrain": "4.7.4",
43
+ "@driftengine/ui2d": "4.7.4",
44
+ "@driftengine/xr": "4.7.4"
45
45
  },
46
46
  "author": "Drift Technologies",
47
47
  "repository": {
package/src/entityHost.ts CHANGED
@@ -136,7 +136,7 @@ export function registerEntityModule(
136
136
  const existing = registry.get(declared.name);
137
137
  /* A module reloaded keeps the store it already made: replacing the type would orphan every
138
138
  entity holding one, which is a world that silently loses its components on an edit. */
139
- const type = existing ?? defineComponent(declared.schema);
139
+ const type = existing ?? defineComponent(declared.schema, declared.defaults);
140
140
  registry.set(declared.name, type);
141
141
  components.push(type);
142
142
  }
package/src/host.ts CHANGED
@@ -99,7 +99,6 @@ import {
99
99
  AI_MODULE,
100
100
  AI_TYPES,
101
101
  aiImplementation,
102
- type AgentRegistry,
103
102
  type AiServices,
104
103
  } from './bindings/ai.ts';
105
104
  import {