@dcl/protocol 1.0.0-22309435573.commit-a48721e → 1.0.0-22483842997.commit-1c3d55b

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 (112) 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/kernel/comms/rfc4/comms.gen.d.ts +46 -0
  8. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +315 -12
  9. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
  10. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +0 -2
  11. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +2 -19
  12. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
  13. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +0 -41
  14. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +3 -241
  15. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
  16. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +0 -2
  17. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +1 -19
  18. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
  19. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +1 -35
  20. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +3 -172
  21. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
  22. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +9 -3
  23. package/out-js/decentraland/sdk/components/common/input_action.gen.js +44 -17
  24. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
  25. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +0 -19
  26. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +3 -90
  27. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
  28. package/out-js/decentraland/sdk/components/material.gen.d.ts +0 -20
  29. package/out-js/decentraland/sdk/components/material.gen.js +2 -86
  30. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  31. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +0 -18
  32. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +4 -90
  33. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  34. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +3 -19
  35. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +4 -90
  36. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  37. package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +5 -1
  38. package/out-js/decentraland/sdk/components/pointer_events.gen.js +31 -3
  39. package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -1
  40. package/out-js/decentraland/sdk/components/raycast.gen.d.ts +0 -13
  41. package/out-js/decentraland/sdk/components/raycast.gen.js +2 -64
  42. package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
  43. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +0 -4
  44. package/out-js/decentraland/sdk/components/ui_text.gen.js +1 -30
  45. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
  46. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +0 -33
  47. package/out-js/decentraland/sdk/components/ui_transform.gen.js +3 -176
  48. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  49. package/out-ts/decentraland/common/texture.gen.ts +4 -119
  50. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +0 -242
  51. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +375 -3
  52. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +1 -20
  53. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +1 -292
  54. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +1 -23
  55. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +2 -218
  56. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +43 -16
  57. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -108
  58. package/out-ts/decentraland/sdk/components/material.gen.ts +1 -102
  59. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +0 -99
  60. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +3 -100
  61. package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +44 -3
  62. package/out-ts/decentraland/sdk/components/raycast.gen.ts +1 -73
  63. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +1 -40
  64. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +0 -193
  65. package/package.json +4 -7
  66. package/proto/decentraland/common/texture.proto +1 -8
  67. package/proto/decentraland/kernel/apis/restricted_actions.proto +0 -22
  68. package/proto/decentraland/kernel/comms/rfc4/comms.proto +29 -0
  69. package/proto/decentraland/sdk/components/audio_analysis.proto +44 -0
  70. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +1 -2
  71. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +0 -21
  72. package/proto/decentraland/sdk/components/avatar_shape.proto +0 -1
  73. package/proto/decentraland/sdk/components/camera_mode_area.proto +3 -22
  74. package/proto/decentraland/sdk/components/common/input_action.proto +7 -3
  75. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
  76. package/proto/decentraland/sdk/components/light_source.proto +1 -1
  77. package/proto/decentraland/sdk/components/material.proto +1 -13
  78. package/proto/decentraland/sdk/components/mesh_collider.proto +0 -7
  79. package/proto/decentraland/sdk/components/mesh_renderer.proto +3 -8
  80. package/proto/decentraland/sdk/components/pointer_events.proto +2 -0
  81. package/proto/decentraland/sdk/components/primary_pointer_info.proto +0 -5
  82. package/proto/decentraland/sdk/components/raycast.proto +0 -13
  83. package/proto/decentraland/sdk/components/ui_text.proto +0 -3
  84. package/proto/decentraland/sdk/components/ui_transform.proto +0 -20
  85. package/proto/decentraland/sdk/components/virtual_camera.proto +2 -0
  86. package/public/sdk-components.proto +0 -4
  87. package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +0 -34
  88. package/out-js/decentraland/sdk/components/avatar_movement.gen.js +0 -101
  89. package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +0 -1
  90. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +0 -40
  91. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +0 -135
  92. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +0 -1
  93. package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +0 -66
  94. package/out-js/decentraland/sdk/components/gltf_node.gen.js +0 -69
  95. package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +0 -1
  96. package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +0 -43
  97. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +0 -122
  98. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +0 -1
  99. package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +0 -119
  100. package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +0 -163
  101. package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +0 -116
  102. package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
  103. package/proto/decentraland/sdk/components/avatar_movement.proto +0 -45
  104. package/proto/decentraland/sdk/components/avatar_movement_info.proto +0 -16
  105. package/proto/decentraland/sdk/components/camera_layer.proto +0 -30
  106. package/proto/decentraland/sdk/components/camera_layers.proto +0 -11
  107. package/proto/decentraland/sdk/components/global_light.proto +0 -22
  108. package/proto/decentraland/sdk/components/gltf_node.proto +0 -42
  109. package/proto/decentraland/sdk/components/gltf_node_state.proto +0 -20
  110. package/proto/decentraland/sdk/components/texture_camera.proto +0 -46
  111. package/proto/decentraland/sdk/components/ui_canvas.proto +0 -16
  112. package/proto/decentraland/sdk/components/ui_scroll_result.proto +0 -12
@@ -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
  }
@@ -45,12 +45,6 @@ message PBRaycast {
45
45
 
46
46
  // Collision mask, by default CL_POINTER | CL_PHYSICS
47
47
  optional uint32 collision_mask = 9;
48
-
49
- // shape to cast, default ray
50
- optional RaycastShape shape = 11;
51
-
52
- // include hits with entities from other scenes
53
- optional bool include_world = 12;
54
48
  }
55
49
 
56
50
  // RaycastQueryType indicates whether the ray should stop on the first collition, or continue.
@@ -62,10 +56,3 @@ enum RaycastQueryType {
62
56
  // Do not perform the raycast, only set the raycast result with empty hits
63
57
  RQT_NONE = 2;
64
58
  }
65
-
66
- enum RaycastShape {
67
- // cast a point, get collisions along a ray
68
- RS_RAY = 0;
69
- // cast the avatar collider shape, get collisions from sweeping the shape
70
- RS_AVATAR = 1;
71
- }
@@ -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
  }
@@ -10,7 +10,9 @@ option (common.ecs_component_id) = 1076;
10
10
  // an 'instant' transition (like using speed/time = 0)
11
11
  // * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
12
12
  // the holding entity transform).
13
+ // * The fov defines the Field of View of the virtual camera
13
14
  message PBVirtualCamera {
14
15
  optional common.CameraTransition default_transition = 1;
15
16
  optional uint32 look_at_entity = 2;
17
+ optional float fov = 3; // default: 60
16
18
  }
@@ -9,8 +9,6 @@ import public "decentraland/sdk/components/avatar_base.proto";
9
9
  import public "decentraland/sdk/components/avatar_emote_command.proto";
10
10
  import public "decentraland/sdk/components/avatar_equipped_data.proto";
11
11
  import public "decentraland/sdk/components/avatar_modifier_area.proto";
12
- import public "decentraland/sdk/components/avatar_movement.proto";
13
- import public "decentraland/sdk/components/avatar_movement_info.proto";
14
12
  import public "decentraland/sdk/components/avatar_shape.proto";
15
13
  import public "decentraland/sdk/components/billboard.proto";
16
14
  import public "decentraland/sdk/components/camera_mode_area.proto";
@@ -19,8 +17,6 @@ import public "decentraland/sdk/components/engine_info.proto";
19
17
  import public "decentraland/sdk/components/gltf_container.proto";
20
18
  import public "decentraland/sdk/components/gltf_node_modifiers.proto";
21
19
  import public "decentraland/sdk/components/gltf_container_loading_state.proto";
22
- import public "decentraland/sdk/components/gltf_node.proto";
23
- import public "decentraland/sdk/components/gltf_node_state.proto";
24
20
  import public "decentraland/sdk/components/material.proto";
25
21
  import public "decentraland/sdk/components/mesh_collider.proto";
26
22
  import public "decentraland/sdk/components/mesh_renderer.proto";
@@ -1,34 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- import { Vector3 } from "../../common/vectors.gen";
3
- export declare const protobufPackage = "decentraland.sdk.components";
4
- export interface PBAvatarMovement {
5
- velocity: Vector3 | undefined;
6
- /** 0-360, we don't allow pitch/roll */
7
- orientation: number;
8
- groundDirection?: Vector3 | undefined;
9
- }
10
- export declare namespace PBAvatarMovement {
11
- function encode(message: PBAvatarMovement, writer?: _m0.Writer): _m0.Writer;
12
- function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarMovement;
13
- function fromJSON(object: any): PBAvatarMovement;
14
- function toJSON(message: PBAvatarMovement): unknown;
15
- function create<I extends Exact<DeepPartial<PBAvatarMovement>, I>>(base?: I): PBAvatarMovement;
16
- function fromPartial<I extends Exact<DeepPartial<PBAvatarMovement>, I>>(object: I): PBAvatarMovement;
17
- }
18
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
19
- 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 {
20
- $case: string;
21
- } ? {
22
- [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
23
- } & {
24
- $case: T["$case"];
25
- } : T extends {} ? {
26
- [K in keyof T]?: DeepPartial<T[K]>;
27
- } : Partial<T>;
28
- type KeysOfUnion<T> = T extends T ? keyof T : never;
29
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
30
- [K in keyof P]: Exact<P[K], I[K]>;
31
- } & {
32
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
33
- };
34
- export {};
@@ -1,101 +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.PBAvatarMovement = exports.protobufPackage = void 0;
7
- /* eslint-disable */
8
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
- const vectors_gen_1 = require("../../common/vectors.gen");
10
- exports.protobufPackage = "decentraland.sdk.components";
11
- function createBasePBAvatarMovement() {
12
- return { velocity: undefined, orientation: 0, groundDirection: undefined };
13
- }
14
- var PBAvatarMovement;
15
- (function (PBAvatarMovement) {
16
- function encode(message, writer = minimal_1.default.Writer.create()) {
17
- if (message.velocity !== undefined) {
18
- vectors_gen_1.Vector3.encode(message.velocity, writer.uint32(10).fork()).ldelim();
19
- }
20
- if (message.orientation !== 0) {
21
- writer.uint32(21).float(message.orientation);
22
- }
23
- if (message.groundDirection !== undefined) {
24
- vectors_gen_1.Vector3.encode(message.groundDirection, writer.uint32(26).fork()).ldelim();
25
- }
26
- return writer;
27
- }
28
- PBAvatarMovement.encode = encode;
29
- function decode(input, length) {
30
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
31
- let end = length === undefined ? reader.len : reader.pos + length;
32
- const message = createBasePBAvatarMovement();
33
- while (reader.pos < end) {
34
- const tag = reader.uint32();
35
- switch (tag >>> 3) {
36
- case 1:
37
- if (tag !== 10) {
38
- break;
39
- }
40
- message.velocity = vectors_gen_1.Vector3.decode(reader, reader.uint32());
41
- continue;
42
- case 2:
43
- if (tag !== 21) {
44
- break;
45
- }
46
- message.orientation = reader.float();
47
- continue;
48
- case 3:
49
- if (tag !== 26) {
50
- break;
51
- }
52
- message.groundDirection = vectors_gen_1.Vector3.decode(reader, reader.uint32());
53
- continue;
54
- }
55
- if ((tag & 7) === 4 || tag === 0) {
56
- break;
57
- }
58
- reader.skipType(tag & 7);
59
- }
60
- return message;
61
- }
62
- PBAvatarMovement.decode = decode;
63
- function fromJSON(object) {
64
- return {
65
- velocity: isSet(object.velocity) ? vectors_gen_1.Vector3.fromJSON(object.velocity) : undefined,
66
- orientation: isSet(object.orientation) ? Number(object.orientation) : 0,
67
- groundDirection: isSet(object.groundDirection) ? vectors_gen_1.Vector3.fromJSON(object.groundDirection) : undefined,
68
- };
69
- }
70
- PBAvatarMovement.fromJSON = fromJSON;
71
- function toJSON(message) {
72
- const obj = {};
73
- message.velocity !== undefined && (obj.velocity = message.velocity ? vectors_gen_1.Vector3.toJSON(message.velocity) : undefined);
74
- message.orientation !== undefined && (obj.orientation = message.orientation);
75
- message.groundDirection !== undefined &&
76
- (obj.groundDirection = message.groundDirection ? vectors_gen_1.Vector3.toJSON(message.groundDirection) : undefined);
77
- return obj;
78
- }
79
- PBAvatarMovement.toJSON = toJSON;
80
- function create(base) {
81
- return PBAvatarMovement.fromPartial(base !== null && base !== void 0 ? base : {});
82
- }
83
- PBAvatarMovement.create = create;
84
- function fromPartial(object) {
85
- var _a;
86
- const message = createBasePBAvatarMovement();
87
- message.velocity = (object.velocity !== undefined && object.velocity !== null)
88
- ? vectors_gen_1.Vector3.fromPartial(object.velocity)
89
- : undefined;
90
- message.orientation = (_a = object.orientation) !== null && _a !== void 0 ? _a : 0;
91
- message.groundDirection = (object.groundDirection !== undefined && object.groundDirection !== null)
92
- ? vectors_gen_1.Vector3.fromPartial(object.groundDirection)
93
- : undefined;
94
- return message;
95
- }
96
- PBAvatarMovement.fromPartial = fromPartial;
97
- })(PBAvatarMovement || (exports.PBAvatarMovement = PBAvatarMovement = {}));
98
- function isSet(value) {
99
- return value !== null && value !== undefined;
100
- }
101
- //# sourceMappingURL=avatar_movement.gen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"avatar_movement.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/avatar_movement.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AACrC,0DAAmD;AAEtC,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAW7D,SAAS,0BAA0B;IACjC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC,EAAE,eAAe,EAAE,SAAS,EAAE,CAAC;AAC7E,CAAC;AAED,IAAiB,gBAAgB,CAmFhC;AAnFD,WAAiB,gBAAgB;IAC/B,SAAgB,MAAM,CAAC,OAAyB,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QACxF,IAAI,OAAO,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;YACnC,qBAAO,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;QACtE,CAAC;QACD,IAAI,OAAO,CAAC,WAAW,KAAK,CAAC,EAAE,CAAC;YAC9B,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAC/C,CAAC;QACD,IAAI,OAAO,CAAC,eAAe,KAAK,SAAS,EAAE,CAAC;YAC1C,qBAAO,CAAC,MAAM,CAAC,OAAO,CAAC,eAAe,EAAE,MAAM,CAAC,MAAM,C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land.sdk.components";
4
- export interface PBAvatarMovementInfo {
5
- /** the length of time the current step velocity will apply for */
6
- stepTime: number;
7
- /** the length of time the previous step velocity applied for */
8
- previousStepTime: number;
9
- /** the velocity requested for the previous frame */
10
- requestedVelocity: Vector3 | undefined;
11
- /** the resulting velocity taking collisions into account */
12
- actualVelocity: Vector3 | undefined;
13
- /** the velocity imparted by movement of the "ground" platform or pushing from other moving colliders */
14
- externalVelocity: Vector3 | undefined;
15
- }
16
- export declare namespace PBAvatarMovementInfo {
17
- function encode(message: PBAvatarMovementInfo, writer?: _m0.Writer): _m0.Writer;
18
- function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarMovementInfo;
19
- function fromJSON(object: any): PBAvatarMovementInfo;
20
- function toJSON(message: PBAvatarMovementInfo): unknown;
21
- function create<I extends Exact<DeepPartial<PBAvatarMovementInfo>, I>>(base?: I): PBAvatarMovementInfo;
22
- function fromPartial<I extends Exact<DeepPartial<PBAvatarMovementInfo>, I>>(object: I): PBAvatarMovementInfo;
23
- }
24
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
25
- 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 {
26
- $case: string;
27
- } ? {
28
- [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
29
- } & {
30
- $case: T["$case"];
31
- } : T extends {} ? {
32
- [K in keyof T]?: DeepPartial<T[K]>;
33
- } : Partial<T>;
34
- type KeysOfUnion<T> = T extends T ? keyof T : never;
35
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
36
- [K in keyof P]: Exact<P[K], I[K]>;
37
- } & {
38
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
39
- };
40
- export {};
@@ -1,135 +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.PBAvatarMovementInfo = exports.protobufPackage = void 0;
7
- /* eslint-disable */
8
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
- const vectors_gen_1 = require("../../common/vectors.gen");
10
- exports.protobufPackage = "decentraland.sdk.components";
11
- function createBasePBAvatarMovementInfo() {
12
- return {
13
- stepTime: 0,
14
- previousStepTime: 0,
15
- requestedVelocity: undefined,
16
- actualVelocity: undefined,
17
- externalVelocity: undefined,
18
- };
19
- }
20
- var PBAvatarMovementInfo;
21
- (function (PBAvatarMovementInfo) {
22
- function encode(message, writer = minimal_1.default.Writer.create()) {
23
- if (message.stepTime !== 0) {
24
- writer.uint32(13).float(message.stepTime);
25
- }
26
- if (message.previousStepTime !== 0) {
27
- writer.uint32(21).float(message.previousStepTime);
28
- }
29
- if (message.requestedVelocity !== undefined) {
30
- vectors_gen_1.Vector3.encode(message.requestedVelocity, writer.uint32(26).fork()).ldelim();
31
- }
32
- if (message.actualVelocity !== undefined) {
33
- vectors_gen_1.Vector3.encode(message.actualVelocity, writer.uint32(34).fork()).ldelim();
34
- }
35
- if (message.externalVelocity !== undefined) {
36
- vectors_gen_1.Vector3.encode(message.externalVelocity, writer.uint32(42).fork()).ldelim();
37
- }
38
- return writer;
39
- }
40
- PBAvatarMovementInfo.encode = encode;
41
- function decode(input, length) {
42
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
43
- let end = length === undefined ? reader.len : reader.pos + length;
44
- const message = createBasePBAvatarMovementInfo();
45
- while (reader.pos < end) {
46
- const tag = reader.uint32();
47
- switch (tag >>> 3) {
48
- case 1:
49
- if (tag !== 13) {
50
- break;
51
- }
52
- message.stepTime = reader.float();
53
- continue;
54
- case 2:
55
- if (tag !== 21) {
56
- break;
57
- }
58
- message.previousStepTime = reader.float();
59
- continue;
60
- case 3:
61
- if (tag !== 26) {
62
- break;
63
- }
64
- message.requestedVelocity = vectors_gen_1.Vector3.decode(reader, reader.uint32());
65
- continue;
66
- case 4:
67
- if (tag !== 34) {
68
- break;
69
- }
70
- message.actualVelocity = vectors_gen_1.Vector3.decode(reader, reader.uint32());
71
- continue;
72
- case 5:
73
- if (tag !== 42) {
74
- break;
75
- }
76
- message.externalVelocity = vectors_gen_1.Vector3.decode(reader, reader.uint32());
77
- continue;
78
- }
79
- if ((tag & 7) === 4 || tag === 0) {
80
- break;
81
- }
82
- reader.skipType(tag & 7);
83
- }
84
- return message;
85
- }
86
- PBAvatarMovementInfo.decode = decode;
87
- function fromJSON(object) {
88
- return {
89
- stepTime: isSet(object.stepTime) ? Number(object.stepTime) : 0,
90
- previousStepTime: isSet(object.previousStepTime) ? Number(object.previousStepTime) : 0,
91
- requestedVelocity: isSet(object.requestedVelocity) ? vectors_gen_1.Vector3.fromJSON(object.requestedVelocity) : undefined,
92
- actualVelocity: isSet(object.actualVelocity) ? vectors_gen_1.Vector3.fromJSON(object.actualVelocity) : undefined,
93
- externalVelocity: isSet(object.externalVelocity) ? vectors_gen_1.Vector3.fromJSON(object.externalVelocity) : undefined,
94
- };
95
- }
96
- PBAvatarMovementInfo.fromJSON = fromJSON;
97
- function toJSON(message) {
98
- const obj = {};
99
- message.stepTime !== undefined && (obj.stepTime = message.stepTime);
100
- message.previousStepTime !== undefined && (obj.previousStepTime = message.previousStepTime);
101
- message.requestedVelocity !== undefined &&
102
- (obj.requestedVelocity = message.requestedVelocity ? vectors_gen_1.Vector3.toJSON(message.requestedVelocity) : undefined);
103
- message.actualVelocity !== undefined &&
104
- (obj.actualVelocity = message.actualVelocity ? vectors_gen_1.Vector3.toJSON(message.actualVelocity) : undefined);
105
- message.externalVelocity !== undefined &&
106
- (obj.externalVelocity = message.externalVelocity ? vectors_gen_1.Vector3.toJSON(message.externalVelocity) : undefined);
107
- return obj;
108
- }
109
- PBAvatarMovementInfo.toJSON = toJSON;
110
- function create(base) {
111
- return PBAvatarMovementInfo.fromPartial(base !== null && base !== void 0 ? base : {});
112
- }
113
- PBAvatarMovementInfo.create = create;
114
- function fromPartial(object) {
115
- var _a, _b;
116
- const message = createBasePBAvatarMovementInfo();
117
- message.stepTime = (_a = object.stepTime) !== null && _a !== void 0 ? _a : 0;
118
- message.previousStepTime = (_b = object.previousStepTime) !== null && _b !== void 0 ? _b : 0;
119
- message.requestedVelocity = (object.requestedVelocity !== undefined && object.requestedVelocity !== null)
120
- ? vectors_gen_1.Vector3.fromPartial(object.requestedVelocity)
121
- : undefined;
122
- message.actualVelocity = (object.actualVelocity !== undefined && object.actualVelocity !== null)
123
- ? vectors_gen_1.Vector3.fromPartial(object.actualVelocity)
124
- : undefined;
125
- message.externalVelocity = (object.externalVelocity !== undefined && object.externalVelocity !== null)
126
- ? vectors_gen_1.Vector3.fromPartial(object.externalVelocity)
127
- : undefined;
128
- return message;
129
- }
130
- PBAvatarMovementInfo.fromPartial = fromPartial;
131
- })(PBAvatarMovementInfo || (exports.PBAvatarMovementInfo = PBAvatarMovementInfo = {}));
132
- function isSet(value) {
133
- return value !== null && value !== undefined;
134
- }
135
- //# sourceMappingURL=avatar_movement_info.gen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"avatar_movement_info.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AACrC,0DAAmD;AAEtC,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAmB7D,SAAS,8BAA8B;IACrC,OAAO;QACL,QAAQ,EAAE,CAAC;QACX,gBAAgB,EAAE,CAAC;QACnB,iBAAiB,EAAE,SAAS;QAC5B,cAAc,EAAE,SAAS;QACzB,gBAAgB,EAAE,SAAS;KAC5B,CAAC;AACJ,CAAC;AAED,IAAiB,oBAAoB,CAiHpC;AAjHD,WAAiB,oBAAoB;IACnC,SAAgB,MAAM,CAAC,OAA6B,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAC5F,IAAI,OAAO,CAAC,QAAQ,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iBAAiB,KAAK,SAAS,IAAI,MAAM,CAAC,iBAAiB,KAAK,IAAI,CAAC;YACvG,CAAC,CAAC,qBAAO,CAAC,WAAW,CAAC,MAAM,CAAC,iBAAiB,CAAC;YAC/C,CAAC,CAAC,SAAS,CAAC;QACd,OAAO,CAAC,cAAc,GAAG,CAAC,MAAM,CAAC,cAAc,KAAK,SAAS,IAAI,MAAM,CAAC,cAAc,KAAK,IAAI,CAAC;YAC9F,CAAC,CAAC,qBAAO,CAAC,WAAW,CAAC,MAAM,CAAC,cAAc,CAAC;YAC5C,CAAC,CAAC,SAAS,CAAC;QACd,OAAO,CAAC,gBAAgB,GAAG,CAAC,MAAM,CAAC,gBAAgB,KAAK,SAAS,IAAI,MAAM,CAAC,gBAAgB,KAAK,IAAI,CAAC;YACpG,CAAC,CAAC,qBAAO,CAAC,WAAW,CAAC,MAAM,CAAC,gBAAgB,CAAC;YAC9C,CAAC,CAAC,SAAS,CAAC;QACd,OAAO,OAAO,CAAC;IACjB,CAAC;IAde,gCAAW,cAc1B,CAAA;AACH,CAAC,EAjHgB,oBAAoB,oCAApB,oBAAoB,QAiHpC;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -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,KA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AC,IAAI,KAAK,SAAS,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QACxD,OAAO,GAAG,CAAC;IACb,CAAC;IAJe,iBAAM,SAIrB,CAAA;IAED,SAAgB,MAAM,CAA8C,IAAQ;QAC1E,OAAO,UAAU,CAAC,WAAW,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 {};