@dcl/ecs 7.15.2 → 7.15.3-20441958958.commit-0dc5702

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.
@@ -5,6 +5,14 @@ import _m0 from "protobufjs/minimal";
5
5
  export interface PBVisibilityComponent {
6
6
  /** default=true */
7
7
  visible?: boolean | undefined;
8
+ /**
9
+ * Propagation follows certain rules:
10
+ * - Any own visibility component takes priority
11
+ * - If no own visibility component, visibility is determined by visibility of the nearest parent with propagate = true
12
+ * - If no own component and no parent with propagate = true, visibility is "visible"
13
+ * - Visibility is always updated, whenever hierarchy, parent component or own component changes
14
+ */
15
+ propagateToChildren?: boolean | undefined;
8
16
  }
9
17
  /**
10
18
  * @public
@@ -2,7 +2,7 @@
2
2
  import _m0 from "protobufjs/minimal";
3
3
  const protobufPackageSarasa = "decentraland.sdk.components";
4
4
  function createBasePBVisibilityComponent() {
5
- return { visible: undefined };
5
+ return { visible: undefined, propagateToChildren: undefined };
6
6
  }
7
7
  /**
8
8
  * @public
@@ -13,6 +13,9 @@ export var PBVisibilityComponent;
13
13
  if (message.visible !== undefined) {
14
14
  writer.uint32(8).bool(message.visible);
15
15
  }
16
+ if (message.propagateToChildren !== undefined) {
17
+ writer.uint32(16).bool(message.propagateToChildren);
18
+ }
16
19
  return writer;
17
20
  }
18
21
  PBVisibilityComponent.encode = encode;
@@ -29,6 +32,12 @@ export var PBVisibilityComponent;
29
32
  }
30
33
  message.visible = reader.bool();
31
34
  continue;
35
+ case 2:
36
+ if (tag !== 16) {
37
+ break;
38
+ }
39
+ message.propagateToChildren = reader.bool();
40
+ continue;
32
41
  }
33
42
  if ((tag & 7) === 4 || tag === 0) {
34
43
  break;
@@ -5,6 +5,14 @@ import _m0 from "protobufjs/minimal";
5
5
  export interface PBVisibilityComponent {
6
6
  /** default=true */
7
7
  visible?: boolean | undefined;
8
+ /**
9
+ * Propagation follows certain rules:
10
+ * - Any own visibility component takes priority
11
+ * - If no own visibility component, visibility is determined by visibility of the nearest parent with propagate = true
12
+ * - If no own component and no parent with propagate = true, visibility is "visible"
13
+ * - Visibility is always updated, whenever hierarchy, parent component or own component changes
14
+ */
15
+ propagateToChildren?: boolean | undefined;
8
16
  }
9
17
  /**
10
18
  * @public
@@ -8,7 +8,7 @@ exports.PBVisibilityComponent = void 0;
8
8
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
9
  const protobufPackageSarasa = "decentraland.sdk.components";
10
10
  function createBasePBVisibilityComponent() {
11
- return { visible: undefined };
11
+ return { visible: undefined, propagateToChildren: undefined };
12
12
  }
13
13
  /**
14
14
  * @public
@@ -19,6 +19,9 @@ var PBVisibilityComponent;
19
19
  if (message.visible !== undefined) {
20
20
  writer.uint32(8).bool(message.visible);
21
21
  }
22
+ if (message.propagateToChildren !== undefined) {
23
+ writer.uint32(16).bool(message.propagateToChildren);
24
+ }
22
25
  return writer;
23
26
  }
24
27
  PBVisibilityComponent.encode = encode;
@@ -35,6 +38,12 @@ var PBVisibilityComponent;
35
38
  }
36
39
  message.visible = reader.bool();
37
40
  continue;
41
+ case 2:
42
+ if (tag !== 16) {
43
+ break;
44
+ }
45
+ message.propagateToChildren = reader.bool();
46
+ continue;
38
47
  }
39
48
  if ((tag & 7) === 4 || tag === 0) {
40
49
  break;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcl/ecs",
3
3
  "description": "Decentraland ECS",
4
- "version": "7.15.2",
4
+ "version": "7.15.3-20441958958.commit-0dc5702",
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": "68db59f6f87e1f95c44b8b03df026723c6dbd00c"
36
+ "commit": "0dc5702141977ea429c7ab8615dc3ca67632111c"
37
37
  }