@dcl/ecs 7.6.7 → 7.6.8-12260048919.commit-4123b99
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.
|
@@ -183,12 +183,12 @@ export function crdtSceneSystem(engine, onProcessEntityComponentChange) {
|
|
|
183
183
|
...message,
|
|
184
184
|
messageBuffer: buffer.buffer().subarray(offset, buffer.currentWriteOffset())
|
|
185
185
|
});
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
186
|
+
}
|
|
187
|
+
if (onProcessEntityComponentChange) {
|
|
188
|
+
const rawValue = message.type === CrdtMessageType.PUT_COMPONENT || message.type === CrdtMessageType.APPEND_VALUE
|
|
189
|
+
? component.get(message.entityId)
|
|
190
|
+
: undefined;
|
|
191
|
+
onProcessEntityComponentChange(message.entityId, message.type, component, rawValue);
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
}
|
|
@@ -209,12 +209,12 @@ function crdtSceneSystem(engine, onProcessEntityComponentChange) {
|
|
|
209
209
|
...message,
|
|
210
210
|
messageBuffer: buffer.buffer().subarray(offset, buffer.currentWriteOffset())
|
|
211
211
|
});
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
212
|
+
}
|
|
213
|
+
if (onProcessEntityComponentChange) {
|
|
214
|
+
const rawValue = message.type === types_1.CrdtMessageType.PUT_COMPONENT || message.type === types_1.CrdtMessageType.APPEND_VALUE
|
|
215
|
+
? component.get(message.entityId)
|
|
216
|
+
: undefined;
|
|
217
|
+
onProcessEntityComponentChange(message.entityId, message.type, component, rawValue);
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/ecs",
|
|
3
3
|
"description": "Decentraland ECS",
|
|
4
|
-
"version": "7.6.
|
|
4
|
+
"version": "7.6.8-12260048919.commit-4123b99",
|
|
5
5
|
"author": "DCL",
|
|
6
6
|
"bugs": "https://github.com/decentraland/ecs/issues",
|
|
7
7
|
"files": [
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
},
|
|
34
34
|
"types": "./dist/index.d.ts",
|
|
35
35
|
"typings": "./dist/index.d.ts",
|
|
36
|
-
"commit": "
|
|
36
|
+
"commit": "4123b99ea50b207270b479c572210a344efa74ea"
|
|
37
37
|
}
|