@dcl/ecs 7.27.1-33751406308.commit-24d6624 → 7.27.1-33752500148.commit-5ae3ef7
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.
|
@@ -7,8 +7,11 @@ export var DeleteEntityNetwork;
|
|
|
7
7
|
(function (DeleteEntityNetwork) {
|
|
8
8
|
DeleteEntityNetwork.MESSAGE_HEADER_LENGTH = 8;
|
|
9
9
|
function write(entity, networkId, buf) {
|
|
10
|
-
// Write CrdtMessage header
|
|
11
|
-
|
|
10
|
+
// Write CrdtMessage header. The body is the entity and the network id, so
|
|
11
|
+
// it is MESSAGE_HEADER_LENGTH long: declaring 4 described a message four
|
|
12
|
+
// bytes shorter than the one being written, and anything that skips by the
|
|
13
|
+
// declared length landed in the middle of it.
|
|
14
|
+
buf.writeUint32(CRDT_MESSAGE_HEADER_LENGTH + DeleteEntityNetwork.MESSAGE_HEADER_LENGTH);
|
|
12
15
|
buf.writeUint32(CrdtMessageType.DELETE_ENTITY_NETWORK);
|
|
13
16
|
// body
|
|
14
17
|
buf.writeUint32(entity);
|
|
@@ -10,8 +10,11 @@ var DeleteEntityNetwork;
|
|
|
10
10
|
(function (DeleteEntityNetwork) {
|
|
11
11
|
DeleteEntityNetwork.MESSAGE_HEADER_LENGTH = 8;
|
|
12
12
|
function write(entity, networkId, buf) {
|
|
13
|
-
// Write CrdtMessage header
|
|
14
|
-
|
|
13
|
+
// Write CrdtMessage header. The body is the entity and the network id, so
|
|
14
|
+
// it is MESSAGE_HEADER_LENGTH long: declaring 4 described a message four
|
|
15
|
+
// bytes shorter than the one being written, and anything that skips by the
|
|
16
|
+
// declared length landed in the middle of it.
|
|
17
|
+
buf.writeUint32(types_1.CRDT_MESSAGE_HEADER_LENGTH + DeleteEntityNetwork.MESSAGE_HEADER_LENGTH);
|
|
15
18
|
buf.writeUint32(types_1.CrdtMessageType.DELETE_ENTITY_NETWORK);
|
|
16
19
|
// body
|
|
17
20
|
buf.writeUint32(entity);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/ecs",
|
|
3
3
|
"description": "Decentraland ECS",
|
|
4
|
-
"version": "7.27.1-
|
|
4
|
+
"version": "7.27.1-33752500148.commit-5ae3ef7",
|
|
5
5
|
"author": "DCL",
|
|
6
6
|
"bugs": "https://github.com/decentraland/ecs/issues",
|
|
7
7
|
"files": [
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"dependencies": {},
|
|
35
35
|
"types": "./dist/index.d.ts",
|
|
36
36
|
"typings": "./dist/index.d.ts",
|
|
37
|
-
"commit": "
|
|
37
|
+
"commit": "5ae3ef7c921887bc7c78d88284f22fc91b1be4d4"
|
|
38
38
|
}
|