@dcl/protocol 1.0.0-21653299440.commit-5d27bf3 → 1.0.0-21671196520.commit-ca94ea2

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.
Files changed (90) hide show
  1. package/out-js/decentraland/common/texture.gen.d.ts +0 -18
  2. package/out-js/decentraland/common/texture.gen.js +4 -104
  3. package/out-js/decentraland/common/texture.gen.js.map +1 -1
  4. package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +0 -70
  5. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +1 -228
  6. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
  7. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +0 -2
  8. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +2 -19
  9. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
  10. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +0 -41
  11. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +3 -241
  12. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
  13. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +0 -2
  14. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +1 -19
  15. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
  16. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +1 -35
  17. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +3 -172
  18. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
  19. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +0 -3
  20. package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -18
  21. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
  22. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +0 -19
  23. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +3 -90
  24. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
  25. package/out-js/decentraland/sdk/components/material.gen.d.ts +0 -20
  26. package/out-js/decentraland/sdk/components/material.gen.js +2 -86
  27. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  28. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +0 -18
  29. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +4 -90
  30. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  31. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +3 -19
  32. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +4 -90
  33. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  34. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +0 -4
  35. package/out-js/decentraland/sdk/components/ui_text.gen.js +1 -30
  36. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
  37. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +0 -33
  38. package/out-js/decentraland/sdk/components/ui_transform.gen.js +3 -176
  39. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  40. package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +3 -0
  41. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +40 -2
  42. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
  43. package/out-ts/decentraland/common/texture.gen.ts +4 -119
  44. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +0 -242
  45. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +1 -20
  46. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +1 -292
  47. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +1 -23
  48. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +2 -218
  49. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -18
  50. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -108
  51. package/out-ts/decentraland/sdk/components/material.gen.ts +1 -102
  52. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +0 -99
  53. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +3 -100
  54. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +1 -40
  55. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +0 -193
  56. package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +44 -2
  57. package/package.json +3 -6
  58. package/proto/decentraland/common/texture.proto +1 -8
  59. package/proto/decentraland/kernel/apis/restricted_actions.proto +0 -22
  60. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +1 -2
  61. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +0 -21
  62. package/proto/decentraland/sdk/components/avatar_shape.proto +0 -1
  63. package/proto/decentraland/sdk/components/camera_mode_area.proto +3 -22
  64. package/proto/decentraland/sdk/components/common/input_action.proto +0 -3
  65. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
  66. package/proto/decentraland/sdk/components/material.proto +1 -13
  67. package/proto/decentraland/sdk/components/mesh_collider.proto +0 -7
  68. package/proto/decentraland/sdk/components/mesh_renderer.proto +3 -8
  69. package/proto/decentraland/sdk/components/primary_pointer_info.proto +0 -5
  70. package/proto/decentraland/sdk/components/ui_text.proto +0 -3
  71. package/proto/decentraland/sdk/components/ui_transform.proto +0 -20
  72. package/proto/decentraland/social_service/v2/social_service_v2.proto +3 -0
  73. package/public/sdk-components.proto +0 -2
  74. package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +0 -66
  75. package/out-js/decentraland/sdk/components/gltf_node.gen.js +0 -69
  76. package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +0 -1
  77. package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +0 -43
  78. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +0 -122
  79. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +0 -1
  80. package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +0 -116
  81. package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
  82. package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +0 -18
  83. package/proto/decentraland/sdk/components/camera_layer.proto +0 -30
  84. package/proto/decentraland/sdk/components/camera_layers.proto +0 -11
  85. package/proto/decentraland/sdk/components/global_light.proto +0 -22
  86. package/proto/decentraland/sdk/components/gltf_node.proto +0 -42
  87. package/proto/decentraland/sdk/components/gltf_node_state.proto +0 -20
  88. package/proto/decentraland/sdk/components/texture_camera.proto +0 -46
  89. package/proto/decentraland/sdk/components/ui_canvas.proto +0 -16
  90. package/proto/decentraland/sdk/components/ui_scroll_result.proto +0 -12
@@ -54,16 +54,4 @@ message PBMaterial {
54
54
  UnlitMaterial unlit = 1;
55
55
  PbrMaterial pbr = 2;
56
56
  }
57
-
58
- message GltfMaterial {
59
- string gltf_src = 1;
60
- string name = 2;
61
- }
62
-
63
- // A gltf material that may provide additional features not supported by the PbMaterial fields.
64
- // If both gltf and material fields are provided, the gltf will be used only for extended features not
65
- // supported by the PbMaterial.
66
- // If this is provided and the `material` field is not provided, the renderer will update the material
67
- // field with data that reflects the gltf material once it is loaded.
68
- optional GltfMaterial gltf = 3;
69
- }
57
+ }
@@ -30,12 +30,6 @@ message PBMeshCollider {
30
30
  // SphereMesh is a sphere shape that contains the Entity.
31
31
  message SphereMesh {}
32
32
 
33
- // A collider constructed from a Gltf Mesh.
34
- message GltfMesh {
35
- string gltf_src = 1; // the GLTF file path as listed in the scene's manifest.
36
- string name = 2; // the name of the mesh asset
37
- }
38
-
39
33
  optional uint32 collision_mask = 1; // enabled ColliderLayers (default CL_POINTER | CL_PHYSICS)
40
34
 
41
35
  oneof mesh {
@@ -43,7 +37,6 @@ message PBMeshCollider {
43
37
  SphereMesh sphere = 3;
44
38
  CylinderMesh cylinder = 4;
45
39
  PlaneMesh plane = 5;
46
- GltfMesh gltf = 6;
47
40
  }
48
41
  }
49
42
 
@@ -5,11 +5,13 @@ import "decentraland/sdk/components/common/id.proto";
5
5
  option (common.ecs_component_id) = 1018;
6
6
 
7
7
  // The MeshRenderer component renders a basic geometric shape for an Entity. It can be a cube, a
8
- // plane, a sphere, a cylinder, or a Gltf mesh.
8
+ // plane, a sphere or a cylinder.
9
9
  //
10
10
  // The cube and plane variants can include a UV texture mapping, so specific areas of a material
11
11
  // texture are rendered on different faces of the shape. They are serialized as a sequence of 2D
12
12
  // `float` coordinates, one for each corner of each side of each face.
13
+ //
14
+ // More complex shapes require the use of a `GltfContainer` component.
13
15
  message PBMeshRenderer {
14
16
 
15
17
  // BoxMesh renders a prism shape.
@@ -32,17 +34,10 @@ message PBMeshRenderer {
32
34
  message SphereMesh {
33
35
  }
34
36
 
35
- // A mesh from a Gltf.
36
- message GltfMesh {
37
- string gltf_src = 1; // the GLTF file path as listed in the scene's manifest.
38
- string name = 2; // the name of the mesh asset
39
- }
40
-
41
37
  oneof mesh {
42
38
  BoxMesh box = 1;
43
39
  SphereMesh sphere = 2;
44
40
  CylinderMesh cylinder = 3;
45
41
  PlaneMesh plane = 4;
46
- GltfMesh gltf = 5;
47
42
  }
48
43
  }
@@ -28,8 +28,6 @@ message PBPrimaryPointerInfo {
28
28
  optional PointerType pointer_type = 1; // The type of input device being used
29
29
  optional decentraland.common.Vector2 screen_coordinates = 2; // Current position in screen space (pixels)
30
30
  optional decentraland.common.Vector2 screen_delta = 3; // Movement since last frame (pixels)
31
- // ray direction that can be used with the primary camera origin for
32
- // raycasting from the cursor into the world
33
31
  optional decentraland.common.Vector3 world_ray_direction = 4; // Direction vector for 3D ray casting
34
32
  }
35
33
 
@@ -38,7 +36,4 @@ message PBPrimaryPointerInfo {
38
36
  enum PointerType {
39
37
  POT_NONE = 0; // No pointer input
40
38
  POT_MOUSE = 1; // Traditional mouse input
41
- POT_PAD = 2;
42
- POT_TOUCH = 3;
43
- POT_WAND = 4;
44
39
  }
@@ -23,7 +23,4 @@ message PBUiText {
23
23
  optional common.Font font = 4; // font for the text (default: sans-serif)
24
24
  optional int32 font_size = 5; // size of the text (default: 10)
25
25
  optional TextWrap text_wrap = 6; // wrap text when the border is reached (default: TW_WRAP)
26
-
27
- optional float outline_width = 7; // width of the outline (default: 0)
28
- optional decentraland.common.Color4 outline_color = 8; // RGBA color of the outline (default: opaque black)
29
26
  }
@@ -4,7 +4,6 @@ package decentraland.sdk.components;
4
4
 
5
5
  import "decentraland/sdk/components/common/id.proto";
6
6
  import "decentraland/common/colors.proto";
7
- import "decentraland/common/vectors.proto";
8
7
 
9
8
  option (common.ecs_component_id) = 1050;
10
9
 
@@ -81,20 +80,6 @@ enum PointerFilterMode {
81
80
  PFM_BLOCK = 1;
82
81
  }
83
82
 
84
- enum ShowScrollBar {
85
- SSB_BOTH = 0;
86
- SSB_ONLY_VERTICAL = 1;
87
- SSB_ONLY_HORIZONTAL = 2;
88
- SSB_HIDDEN = 3;
89
- }
90
-
91
- message ScrollPositionValue {
92
- oneof value {
93
- decentraland.common.Vector2 position = 1;
94
- string reference = 2;
95
- }
96
- }
97
-
98
83
  message PBUiTransform {
99
84
  int32 parent = 1;
100
85
  int32 right_of = 2;
@@ -189,10 +174,5 @@ message PBUiTransform {
189
174
  optional decentraland.common.Color4 border_right_color = 72;
190
175
 
191
176
  optional float opacity = 73; // default: 1
192
-
193
- optional string element_id = 74; // reference for scroll_position. default empty
194
- optional ScrollPositionValue scroll_position = 75; // default position=(0,0)
195
- optional ShowScrollBar scroll_visible = 76; // default ShowScrollBar.SSB_BOTH
196
-
197
177
  optional int32 z_index = 77; // default: 0 — controls render stacking order. Higher values appear in front of lower values.
198
178
  }
@@ -2,6 +2,7 @@ syntax = "proto3";
2
2
  package decentraland.social_service.v2;
3
3
 
4
4
  import "google/protobuf/empty.proto";
5
+ import "decentraland/common/colors.proto";
5
6
  import "decentraland/social_service/errors.proto";
6
7
 
7
8
  // Types
@@ -12,6 +13,7 @@ message FriendProfile {
12
13
  string name = 2;
13
14
  bool has_claimed_name = 3;
14
15
  string profile_picture_url = 4;
16
+ optional decentraland.common.Color3 name_color = 5;
15
17
  }
16
18
 
17
19
  message BlockedUserProfile {
@@ -20,6 +22,7 @@ message BlockedUserProfile {
20
22
  bool has_claimed_name = 3;
21
23
  string profile_picture_url = 4;
22
24
  optional int64 blocked_at = 5;
25
+ optional decentraland.common.Color3 name_color = 6;
23
26
  }
24
27
 
25
28
  message Pagination {
@@ -17,8 +17,6 @@ import public "decentraland/sdk/components/engine_info.proto";
17
17
  import public "decentraland/sdk/components/gltf_container.proto";
18
18
  import public "decentraland/sdk/components/gltf_node_modifiers.proto";
19
19
  import public "decentraland/sdk/components/gltf_container_loading_state.proto";
20
- import public "decentraland/sdk/components/gltf_node.proto";
21
- import public "decentraland/sdk/components/gltf_node_state.proto";
22
20
  import public "decentraland/sdk/components/material.proto";
23
21
  import public "decentraland/sdk/components/mesh_collider.proto";
24
22
  import public "decentraland/sdk/components/mesh_renderer.proto";
@@ -1,66 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "decentraland.sdk.components";
3
- /**
4
- * a GltfNode links a scene entity with a node from within a gltf, allowing the scene to inspect it or modify it.
5
- * This component must be added to a direct child of an entity with a PBGltfContainer component, or
6
- * to a direct child of another entity with a GltfNode component, and the referenced gltf node must be a descendent of the gltf node
7
- * in the parent.
8
- * The name must match the path of one of the nodes within the Gltf. These are available on the GltfContainerLoadingState component.
9
- *
10
- * The renderer will attach a PBGltfNodeState to the entity describing the state. Once the state is `GNS_READY`,
11
- * - the `Transform` will be updated to match the position of the node within the gltf (relative to the gltf root, or the parent node),
12
- * - a `MeshRenderer` with a GltfMesh mesh type will be added (if the gltf node has a mesh).
13
- * - a `MeshCollider` with a GltfMesh mesh type will be added (if the gltf node has a collider).
14
- * - a `Material` component including a GltfMaterial reference will be added (if the gltf node has a material).
15
- *
16
- * After creation, if an animation moves the node, the `Transform` will be updated.
17
- *
18
- * From the scene, you can modify various components to alter the gltf node:
19
- * - modifying the `Transform` position/rotation/scale will move the node. The position is interpreted relative to the gltf root (or parent node),
20
- * regardless of any intermediate gltf node hierarchy.
21
- * If an animation is playing, the animation takes priority and the scene entity's position will be updated to match the animation.
22
- * - `Visibility` can be added to hide or show the node and it's children in the gltf hierarchy.
23
- * - `MeshRenderer` can be added/modified/removed to create/modify/remove a mesh on the node.
24
- * - `MeshCollider` can be added/modified/removed to create/modify/remove a collider on the node.
25
- * - `Material` can be added or modified to change the material properties. If the gltf node has a material, the original material will be
26
- * used as a base, and any gltf features (e.g. occlusion maps) from the gtlf spec that the renderer supports but that are not exposed in the
27
- * PBMaterial will be maintained.
28
- *
29
- * The scene can add additional entities as children to the gltf node, but structural modifications of the gltf are not possible:
30
- * - changing the scene hierarchy will not change the gltf node hierarchy. Moving the entity out of the gltf will sever the link and
31
- * change the state to `GNS_FAILED`.
32
- * - deleting the scene entity will not delete the gltf node.
33
- *
34
- * Removing the GltfNode will revert any changes to the original gltf. If the GltfNode component is removed and the mesh/collider/material
35
- * are not removed, this will result in a duplication of these components as the previously-linked entity will retain it's components and
36
- * the gltf node will also be displayed.
37
- */
38
- export interface PBGltfNode {
39
- /** the path of the target node in the Gltf. */
40
- path: string;
41
- }
42
- export declare namespace PBGltfNode {
43
- function encode(message: PBGltfNode, writer?: _m0.Writer): _m0.Writer;
44
- function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNode;
45
- function fromJSON(object: any): PBGltfNode;
46
- function toJSON(message: PBGltfNode): unknown;
47
- function create<I extends Exact<DeepPartial<PBGltfNode>, I>>(base?: I): PBGltfNode;
48
- function fromPartial<I extends Exact<DeepPartial<PBGltfNode>, I>>(object: I): PBGltfNode;
49
- }
50
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
51
- export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
52
- $case: string;
53
- } ? {
54
- [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
55
- } & {
56
- $case: T["$case"];
57
- } : T extends {} ? {
58
- [K in keyof T]?: DeepPartial<T[K]>;
59
- } : Partial<T>;
60
- type KeysOfUnion<T> = T extends T ? keyof T : never;
61
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
62
- [K in keyof P]: Exact<P[K], I[K]>;
63
- } & {
64
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
65
- };
66
- export {};
@@ -1,69 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PBGltfNode = exports.protobufPackage = void 0;
7
- /* eslint-disable */
8
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
- exports.protobufPackage = "decentraland.sdk.components";
10
- function createBasePBGltfNode() {
11
- return { path: "" };
12
- }
13
- var PBGltfNode;
14
- (function (PBGltfNode) {
15
- function encode(message, writer = minimal_1.default.Writer.create()) {
16
- if (message.path !== "") {
17
- writer.uint32(10).string(message.path);
18
- }
19
- return writer;
20
- }
21
- PBGltfNode.encode = encode;
22
- function decode(input, length) {
23
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
24
- let end = length === undefined ? reader.len : reader.pos + length;
25
- const message = createBasePBGltfNode();
26
- while (reader.pos < end) {
27
- const tag = reader.uint32();
28
- switch (tag >>> 3) {
29
- case 1:
30
- if (tag !== 10) {
31
- break;
32
- }
33
- message.path = reader.string();
34
- continue;
35
- }
36
- if ((tag & 7) === 4 || tag === 0) {
37
- break;
38
- }
39
- reader.skipType(tag & 7);
40
- }
41
- return message;
42
- }
43
- PBGltfNode.decode = decode;
44
- function fromJSON(object) {
45
- return { path: isSet(object.path) ? String(object.path) : "" };
46
- }
47
- PBGltfNode.fromJSON = fromJSON;
48
- function toJSON(message) {
49
- const obj = {};
50
- message.path !== undefined && (obj.path = message.path);
51
- return obj;
52
- }
53
- PBGltfNode.toJSON = toJSON;
54
- function create(base) {
55
- return PBGltfNode.fromPartial(base !== null && base !== void 0 ? base : {});
56
- }
57
- PBGltfNode.create = create;
58
- function fromPartial(object) {
59
- var _a;
60
- const message = createBasePBGltfNode();
61
- message.path = (_a = object.path) !== null && _a !== void 0 ? _a : "";
62
- return message;
63
- }
64
- PBGltfNode.fromPartial = fromPartial;
65
- })(PBGltfNode || (exports.PBGltfNode = PBGltfNode = {}));
66
- function isSet(value) {
67
- return value !== null && value !== undefined;
68
- }
69
- //# sourceMappingURL=gltf_node.gen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gltf_node.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/gltf_node.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,6BAA6B,CAAC;AA0C7D,SAAS,oBAAoB;IAC3B,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;AACtB,CAAC;AAED,IAAiB,UAAU,CAkD1B;AAlDD,WAAiB,UAAU;IACzB,SAAgB,MAAM,CAAC,OAAmB,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAClF,IAAI,OAAO,CAAC,IAAI,KAAK,EAAE,EAAE,CAAC;YACxB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACzC,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IALe,iBAAM,SAKrB,CAAA;IAED,SAAgB,MAAM,CAAC,KAA8B,EAAE,MAAe;QACpE,MAAM,MAAM,GAAG,KAAK,YAAY,iBAAG,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,iBAAG,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC9E,IAAI,GAAG,GAAG,MAAM,KAAK,SA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AW,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC,CAAC;IAC5C,CAAC;IAFe,iBAAM,SAErB,CAAA;IAED,SAAgB,WAAW,CAA8C,MAAS;;QAChF,MAAM,OAAO,GAAG,oBAAoB,EAAE,CAAC;QACvC,OAAO,CAAC,IAAI,GAAG,MAAA,MAAM,CAAC,IAAI,mCAAI,EAAE,CAAC;QACjC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,sBAAW,cAI1B,CAAA;AACH,CAAC,EAlDgB,UAAU,0BAAV,UAAU,QAkD1B;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -1,43 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "decentraland.sdk.components";
3
- export declare enum GltfNodeStateValue {
4
- GNSV_PENDING = 0,
5
- GNSV_FAILED = 1,
6
- GNSV_READY = 2,
7
- UNRECOGNIZED = -1
8
- }
9
- export declare function gltfNodeStateValueFromJSON(object: any): GltfNodeStateValue;
10
- export declare function gltfNodeStateValueToJSON(object: GltfNodeStateValue): string;
11
- /**
12
- * The state of a linked gltf node.
13
- * If the state is GNSV_FAILED, the renderer may describe the failure in the error string.
14
- */
15
- export interface PBGltfNodeState {
16
- state: GltfNodeStateValue;
17
- error?: string | undefined;
18
- }
19
- export declare namespace PBGltfNodeState {
20
- function encode(message: PBGltfNodeState, writer?: _m0.Writer): _m0.Writer;
21
- function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNodeState;
22
- function fromJSON(object: any): PBGltfNodeState;
23
- function toJSON(message: PBGltfNodeState): unknown;
24
- function create<I extends Exact<DeepPartial<PBGltfNodeState>, I>>(base?: I): PBGltfNodeState;
25
- function fromPartial<I extends Exact<DeepPartial<PBGltfNodeState>, I>>(object: I): PBGltfNodeState;
26
- }
27
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
28
- export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
29
- $case: string;
30
- } ? {
31
- [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
32
- } & {
33
- $case: T["$case"];
34
- } : T extends {} ? {
35
- [K in keyof T]?: DeepPartial<T[K]>;
36
- } : Partial<T>;
37
- type KeysOfUnion<T> = T extends T ? keyof T : never;
38
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
39
- [K in keyof P]: Exact<P[K], I[K]>;
40
- } & {
41
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
42
- };
43
- export {};
@@ -1,122 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PBGltfNodeState = exports.GltfNodeStateValue = exports.protobufPackage = void 0;
7
- exports.gltfNodeStateValueFromJSON = gltfNodeStateValueFromJSON;
8
- exports.gltfNodeStateValueToJSON = gltfNodeStateValueToJSON;
9
- /* eslint-disable */
10
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
11
- exports.protobufPackage = "decentraland.sdk.components";
12
- var GltfNodeStateValue;
13
- (function (GltfNodeStateValue) {
14
- GltfNodeStateValue[GltfNodeStateValue["GNSV_PENDING"] = 0] = "GNSV_PENDING";
15
- GltfNodeStateValue[GltfNodeStateValue["GNSV_FAILED"] = 1] = "GNSV_FAILED";
16
- GltfNodeStateValue[GltfNodeStateValue["GNSV_READY"] = 2] = "GNSV_READY";
17
- GltfNodeStateValue[GltfNodeStateValue["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
18
- })(GltfNodeStateValue || (exports.GltfNodeStateValue = GltfNodeStateValue = {}));
19
- function gltfNodeStateValueFromJSON(object) {
20
- switch (object) {
21
- case 0:
22
- case "GNSV_PENDING":
23
- return GltfNodeStateValue.GNSV_PENDING;
24
- case 1:
25
- case "GNSV_FAILED":
26
- return GltfNodeStateValue.GNSV_FAILED;
27
- case 2:
28
- case "GNSV_READY":
29
- return GltfNodeStateValue.GNSV_READY;
30
- case -1:
31
- case "UNRECOGNIZED":
32
- default:
33
- return GltfNodeStateValue.UNRECOGNIZED;
34
- }
35
- }
36
- function gltfNodeStateValueToJSON(object) {
37
- switch (object) {
38
- case GltfNodeStateValue.GNSV_PENDING:
39
- return "GNSV_PENDING";
40
- case GltfNodeStateValue.GNSV_FAILED:
41
- return "GNSV_FAILED";
42
- case GltfNodeStateValue.GNSV_READY:
43
- return "GNSV_READY";
44
- case GltfNodeStateValue.UNRECOGNIZED:
45
- default:
46
- return "UNRECOGNIZED";
47
- }
48
- }
49
- function createBasePBGltfNodeState() {
50
- return { state: 0, error: undefined };
51
- }
52
- var PBGltfNodeState;
53
- (function (PBGltfNodeState) {
54
- function encode(message, writer = minimal_1.default.Writer.create()) {
55
- if (message.state !== 0) {
56
- writer.uint32(8).int32(message.state);
57
- }
58
- if (message.error !== undefined) {
59
- writer.uint32(18).string(message.error);
60
- }
61
- return writer;
62
- }
63
- PBGltfNodeState.encode = encode;
64
- function decode(input, length) {
65
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
66
- let end = length === undefined ? reader.len : reader.pos + length;
67
- const message = createBasePBGltfNodeState();
68
- while (reader.pos < end) {
69
- const tag = reader.uint32();
70
- switch (tag >>> 3) {
71
- case 1:
72
- if (tag !== 8) {
73
- break;
74
- }
75
- message.state = reader.int32();
76
- continue;
77
- case 2:
78
- if (tag !== 18) {
79
- break;
80
- }
81
- message.error = reader.string();
82
- continue;
83
- }
84
- if ((tag & 7) === 4 || tag === 0) {
85
- break;
86
- }
87
- reader.skipType(tag & 7);
88
- }
89
- return message;
90
- }
91
- PBGltfNodeState.decode = decode;
92
- function fromJSON(object) {
93
- return {
94
- state: isSet(object.state) ? gltfNodeStateValueFromJSON(object.state) : 0,
95
- error: isSet(object.error) ? String(object.error) : undefined,
96
- };
97
- }
98
- PBGltfNodeState.fromJSON = fromJSON;
99
- function toJSON(message) {
100
- const obj = {};
101
- message.state !== undefined && (obj.state = gltfNodeStateValueToJSON(message.state));
102
- message.error !== undefined && (obj.error = message.error);
103
- return obj;
104
- }
105
- PBGltfNodeState.toJSON = toJSON;
106
- function create(base) {
107
- return PBGltfNodeState.fromPartial(base !== null && base !== void 0 ? base : {});
108
- }
109
- PBGltfNodeState.create = create;
110
- function fromPartial(object) {
111
- var _a, _b;
112
- const message = createBasePBGltfNodeState();
113
- message.state = (_a = object.state) !== null && _a !== void 0 ? _a : 0;
114
- message.error = (_b = object.error) !== null && _b !== void 0 ? _b : undefined;
115
- return message;
116
- }
117
- PBGltfNodeState.fromPartial = fromPartial;
118
- })(PBGltfNodeState || (exports.PBGltfNodeState = PBGltfNodeState = {}));
119
- function isSet(value) {
120
- return value !== null && value !== undefined;
121
- }
122
- //# sourceMappingURL=gltf_node_state.gen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gltf_node_state.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/gltf_node_state.gen.ts"],"names":[],"mappings":";;;;;;AAYA,gEAgBC;AAED,4DAYC;AA1CD,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAE7D,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,2EAAgB,CAAA;IAChB,yEAAe,CAAA;IACf,uEAAc,CAAA;IACd,4EAAiB,CAAA;AACnB,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AAED,SAAgB,0BAA0B,CAAC,MAAW;IACpD,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,CAAC,CAAC;QACP,KAAK,cAAc;YACjB,OAAO,kBAAkB,CAAC,YAAY,CAAC;QACzC,KAAK,CAAC,CAAC;QACP,KAAK,aAAa;YAChB,OAAO,kBAAkB,CAAC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,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;SAC9D,CAAC;IACJ,CAAC;IALe,wBAAQ,WAKvB,CAAA;IAED,SAAgB,MAAM,CAAC,OAAwB;QAC7C,MAAM,GAAG,GAAQ,EAAE,CAAC;QACpB,OAAO,CAAC,KAAK,KAAK,SAAS,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,wBAAwB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;QACrF,OAAO,CAAC,KAAK,KAAK,SAAS,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;QAC3D,OAAO,GAAG,CAAC;IACb,CAAC;IALe,sBAAM,SAKrB,CAAA;IAED,SAAgB,MAAM,CAAmD,IAAQ;QAC/E,OAAO,eAAe,CAAC,WAAW,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC,CAAC;IACjD,CAAC;IAFe,sBAAM,SAErB,CAAA;IAED,SAAgB,WAAW,CAAmD,MAAS;;QACrF,MAAM,OAAO,GAAG,yBAAyB,EAAE,CAAC;QAC5C,OAAO,CAAC,KAAK,GAAG,MAAA,MAAM,CAAC,KAAK,mCAAI,CAAC,CAAC;QAClC,OAAO,CAAC,KAAK,GAAG,MAAA,MAAM,CAAC,KAAK,mCAAI,SAAS,CAAC;QAC1C,OAAO,OAAO,CAAC;IACjB,CAAC;IALe,2BAAW,cAK1B,CAAA;AACH,CAAC,EAjEgB,eAAe,+BAAf,eAAe,QAiE/B;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -1,116 +0,0 @@
1
- /* eslint-disable */
2
- import _m0 from "protobufjs/minimal";
3
-
4
- export const protobufPackage = "decentraland.sdk.components";
5
-
6
- /**
7
- * a GltfNode links a scene entity with a node from within a gltf, allowing the scene to inspect it or modify it.
8
- * This component must be added to a direct child of an entity with a PBGltfContainer component, or
9
- * to a direct child of another entity with a GltfNode component, and the referenced gltf node must be a descendent of the gltf node
10
- * in the parent.
11
- * The name must match the path of one of the nodes within the Gltf. These are available on the GltfContainerLoadingState component.
12
- *
13
- * The renderer will attach a PBGltfNodeState to the entity describing the state. Once the state is `GNS_READY`,
14
- * - the `Transform` will be updated to match the position of the node within the gltf (relative to the gltf root, or the parent node),
15
- * - a `MeshRenderer` with a GltfMesh mesh type will be added (if the gltf node has a mesh).
16
- * - a `MeshCollider` with a GltfMesh mesh type will be added (if the gltf node has a collider).
17
- * - a `Material` component including a GltfMaterial reference will be added (if the gltf node has a material).
18
- *
19
- * After creation, if an animation moves the node, the `Transform` will be updated.
20
- *
21
- * From the scene, you can modify various components to alter the gltf node:
22
- * - modifying the `Transform` position/rotation/scale will move the node. The position is interpreted relative to the gltf root (or parent node),
23
- * regardless of any intermediate gltf node hierarchy.
24
- * If an animation is playing, the animation takes priority and the scene entity's position will be updated to match the animation.
25
- * - `Visibility` can be added to hide or show the node and it's children in the gltf hierarchy.
26
- * - `MeshRenderer` can be added/modified/removed to create/modify/remove a mesh on the node.
27
- * - `MeshCollider` can be added/modified/removed to create/modify/remove a collider on the node.
28
- * - `Material` can be added or modified to change the material properties. If the gltf node has a material, the original material will be
29
- * used as a base, and any gltf features (e.g. occlusion maps) from the gtlf spec that the renderer supports but that are not exposed in the
30
- * PBMaterial will be maintained.
31
- *
32
- * The scene can add additional entities as children to the gltf node, but structural modifications of the gltf are not possible:
33
- * - changing the scene hierarchy will not change the gltf node hierarchy. Moving the entity out of the gltf will sever the link and
34
- * change the state to `GNS_FAILED`.
35
- * - deleting the scene entity will not delete the gltf node.
36
- *
37
- * Removing the GltfNode will revert any changes to the original gltf. If the GltfNode component is removed and the mesh/collider/material
38
- * are not removed, this will result in a duplication of these components as the previously-linked entity will retain it's components and
39
- * the gltf node will also be displayed.
40
- */
41
- export interface PBGltfNode {
42
- /** the path of the target node in the Gltf. */
43
- path: string;
44
- }
45
-
46
- function createBasePBGltfNode(): PBGltfNode {
47
- return { path: "" };
48
- }
49
-
50
- export namespace PBGltfNode {
51
- export function encode(message: PBGltfNode, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
52
- if (message.path !== "") {
53
- writer.uint32(10).string(message.path);
54
- }
55
- return writer;
56
- }
57
-
58
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNode {
59
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
60
- let end = length === undefined ? reader.len : reader.pos + length;
61
- const message = createBasePBGltfNode();
62
- while (reader.pos < end) {
63
- const tag = reader.uint32();
64
- switch (tag >>> 3) {
65
- case 1:
66
- if (tag !== 10) {
67
- break;
68
- }
69
-
70
- message.path = reader.string();
71
- continue;
72
- }
73
- if ((tag & 7) === 4 || tag === 0) {
74
- break;
75
- }
76
- reader.skipType(tag & 7);
77
- }
78
- return message;
79
- }
80
-
81
- export function fromJSON(object: any): PBGltfNode {
82
- return { path: isSet(object.path) ? String(object.path) : "" };
83
- }
84
-
85
- export function toJSON(message: PBGltfNode): unknown {
86
- const obj: any = {};
87
- message.path !== undefined && (obj.path = message.path);
88
- return obj;
89
- }
90
-
91
- export function create<I extends Exact<DeepPartial<PBGltfNode>, I>>(base?: I): PBGltfNode {
92
- return PBGltfNode.fromPartial(base ?? {});
93
- }
94
-
95
- export function fromPartial<I extends Exact<DeepPartial<PBGltfNode>, I>>(object: I): PBGltfNode {
96
- const message = createBasePBGltfNode();
97
- message.path = object.path ?? "";
98
- return message;
99
- }
100
- }
101
-
102
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
103
-
104
- export type DeepPartial<T> = T extends Builtin ? T
105
- : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
106
- : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
107
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
108
- : Partial<T>;
109
-
110
- type KeysOfUnion<T> = T extends T ? keyof T : never;
111
- export type Exact<P, I extends P> = P extends Builtin ? P
112
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
113
-
114
- function isSet(value: any): boolean {
115
- return value !== null && value !== undefined;
116
- }