@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.
- package/dist/entityHost.js +1 -1
- package/package.json +13 -13
- package/src/entityHost.ts +1 -1
- package/src/host.ts +0 -1
package/dist/entityHost.js
CHANGED
|
@@ -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
|
+
"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.
|
|
31
|
+
"driftscript": "1.14.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@driftengine/ai": "4.7.
|
|
35
|
-
"@driftengine/animation": "4.7.
|
|
36
|
-
"@driftengine/audio": "4.7.
|
|
37
|
-
"@driftengine/chemistry": "4.7.
|
|
38
|
-
"@driftengine/core": "4.7.
|
|
39
|
-
"@driftengine/editor": "4.7.
|
|
40
|
-
"@driftengine/entities": "4.7.
|
|
41
|
-
"@driftengine/network": "4.7.
|
|
42
|
-
"@driftengine/terrain": "4.7.
|
|
43
|
-
"@driftengine/ui2d": "4.7.
|
|
44
|
-
"@driftengine/xr": "4.7.
|
|
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
|
}
|