@dcl/protocol 1.0.0-34875307214.commit-1ca8fa7 → 1.0.0-34906351243.commit-688d92c

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 (166) 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 +24 -115
  5. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +112 -392
  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 +9 -0
  8. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +40 -4
  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 -2
  14. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +2 -14
  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 +0 -2
  20. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +2 -14
  21. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
  22. package/out-js/decentraland/sdk/components/common/explorer_ui.gen.d.ts +3 -1
  23. package/out-js/decentraland/sdk/components/common/explorer_ui.gen.js +8 -1
  24. package/out-js/decentraland/sdk/components/common/explorer_ui.gen.js.map +1 -1
  25. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +0 -3
  26. package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -18
  27. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
  28. package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.d.ts +78 -0
  29. package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.js +308 -0
  30. package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.js.map +1 -0
  31. package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.d.ts +8 -3
  32. package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.js +16 -4
  33. package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.js.map +1 -1
  34. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +0 -19
  35. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +3 -90
  36. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
  37. package/out-js/decentraland/sdk/components/material.gen.d.ts +0 -20
  38. package/out-js/decentraland/sdk/components/material.gen.js +2 -86
  39. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  40. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +0 -18
  41. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +4 -90
  42. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  43. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +3 -19
  44. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +4 -90
  45. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  46. package/out-js/decentraland/sdk/components/raycast.gen.d.ts +0 -13
  47. package/out-js/decentraland/sdk/components/raycast.gen.js +2 -64
  48. package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
  49. package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +0 -2
  50. package/out-js/decentraland/sdk/components/text_shape.gen.js +1 -14
  51. package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -1
  52. package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +0 -2
  53. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +1 -14
  54. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -1
  55. package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +0 -6
  56. package/out-js/decentraland/sdk/components/ui_input.gen.js +1 -40
  57. package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
  58. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +0 -2
  59. package/out-js/decentraland/sdk/components/ui_text.gen.js +1 -14
  60. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
  61. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +0 -33
  62. package/out-js/decentraland/sdk/components/ui_transform.gen.js +3 -176
  63. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  64. package/out-ts/decentraland/common/texture.gen.ts +4 -119
  65. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +129 -418
  66. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +52 -2
  67. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +1 -20
  68. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +1 -16
  69. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +1 -23
  70. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +1 -16
  71. package/out-ts/decentraland/sdk/components/common/explorer_ui.gen.ts +8 -1
  72. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -18
  73. package/out-ts/decentraland/sdk/components/explorer_item_purchase_result.gen.ts +370 -0
  74. package/out-ts/decentraland/sdk/components/explorer_ui_events_result.gen.ts +22 -4
  75. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -108
  76. package/out-ts/decentraland/sdk/components/material.gen.ts +1 -102
  77. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +0 -99
  78. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +3 -100
  79. package/out-ts/decentraland/sdk/components/raycast.gen.ts +1 -73
  80. package/out-ts/decentraland/sdk/components/text_shape.gen.ts +1 -19
  81. package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +1 -19
  82. package/out-ts/decentraland/sdk/components/ui_input.gen.ts +1 -55
  83. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +1 -19
  84. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +0 -193
  85. package/package.json +2 -2
  86. package/proto/decentraland/common/texture.proto +1 -8
  87. package/proto/decentraland/kernel/apis/restricted_actions.proto +12 -44
  88. package/proto/decentraland/kernel/comms/rfc4/comms.proto +9 -0
  89. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +1 -2
  90. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +0 -1
  91. package/proto/decentraland/sdk/components/avatar_shape.proto +0 -1
  92. package/proto/decentraland/sdk/components/camera_mode_area.proto +0 -1
  93. package/proto/decentraland/sdk/components/common/explorer_ui.proto +2 -1
  94. package/proto/decentraland/sdk/components/common/input_action.proto +0 -3
  95. package/proto/decentraland/sdk/components/explorer_item_purchase_result.proto +24 -0
  96. package/proto/decentraland/sdk/components/explorer_ui_events_result.proto +5 -3
  97. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
  98. package/proto/decentraland/sdk/components/material.proto +1 -13
  99. package/proto/decentraland/sdk/components/mesh_collider.proto +0 -7
  100. package/proto/decentraland/sdk/components/mesh_renderer.proto +3 -8
  101. package/proto/decentraland/sdk/components/primary_pointer_info.proto +0 -5
  102. package/proto/decentraland/sdk/components/raycast.proto +0 -13
  103. package/proto/decentraland/sdk/components/text_shape.proto +0 -1
  104. package/proto/decentraland/sdk/components/ui_dropdown.proto +0 -1
  105. package/proto/decentraland/sdk/components/ui_input.proto +0 -3
  106. package/proto/decentraland/sdk/components/ui_text.proto +0 -1
  107. package/proto/decentraland/sdk/components/ui_transform.proto +0 -20
  108. package/public/sdk-components.proto +1 -10
  109. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +0 -51
  110. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +0 -177
  111. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js.map +0 -1
  112. package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +0 -71
  113. package/out-js/decentraland/sdk/components/avatar_movement.gen.js +0 -303
  114. package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +0 -1
  115. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +0 -79
  116. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +0 -357
  117. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +0 -1
  118. package/out-js/decentraland/sdk/components/camera_layer.gen.d.ts +0 -46
  119. package/out-js/decentraland/sdk/components/camera_layer.gen.js +0 -162
  120. package/out-js/decentraland/sdk/components/camera_layer.gen.js.map +0 -1
  121. package/out-js/decentraland/sdk/components/camera_layers.gen.d.ts +0 -30
  122. package/out-js/decentraland/sdk/components/camera_layers.gen.js +0 -80
  123. package/out-js/decentraland/sdk/components/camera_layers.gen.js.map +0 -1
  124. package/out-js/decentraland/sdk/components/global_light.gen.d.ts +0 -50
  125. package/out-js/decentraland/sdk/components/global_light.gen.js +0 -103
  126. package/out-js/decentraland/sdk/components/global_light.gen.js.map +0 -1
  127. package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +0 -66
  128. package/out-js/decentraland/sdk/components/gltf_node.gen.js +0 -69
  129. package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +0 -1
  130. package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +0 -43
  131. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +0 -122
  132. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +0 -1
  133. package/out-js/decentraland/sdk/components/input_modifier.gen.d.ts +0 -52
  134. package/out-js/decentraland/sdk/components/input_modifier.gen.js +0 -233
  135. package/out-js/decentraland/sdk/components/input_modifier.gen.js.map +0 -1
  136. package/out-js/decentraland/sdk/components/texture_camera.gen.d.ts +0 -86
  137. package/out-js/decentraland/sdk/components/texture_camera.gen.js +0 -296
  138. package/out-js/decentraland/sdk/components/texture_camera.gen.js.map +0 -1
  139. package/out-js/decentraland/sdk/components/ui_canvas.gen.d.ts +0 -35
  140. package/out-js/decentraland/sdk/components/ui_canvas.gen.js +0 -98
  141. package/out-js/decentraland/sdk/components/ui_canvas.gen.js.map +0 -1
  142. package/out-js/decentraland/sdk/components/ui_scroll_result.gen.d.ts +0 -31
  143. package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js +0 -71
  144. package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js.map +0 -1
  145. package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +0 -237
  146. package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +0 -372
  147. package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +0 -432
  148. package/out-ts/decentraland/sdk/components/camera_layer.gen.ts +0 -202
  149. package/out-ts/decentraland/sdk/components/camera_layers.gen.ts +0 -92
  150. package/out-ts/decentraland/sdk/components/global_light.gen.ts +0 -138
  151. package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +0 -116
  152. package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
  153. package/out-ts/decentraland/sdk/components/input_modifier.gen.ts +0 -265
  154. package/out-ts/decentraland/sdk/components/texture_camera.gen.ts +0 -362
  155. package/out-ts/decentraland/sdk/components/ui_canvas.gen.ts +0 -115
  156. package/out-ts/decentraland/sdk/components/ui_scroll_result.gen.ts +0 -83
  157. package/proto/decentraland/sdk/components/avatar_movement.proto +0 -62
  158. package/proto/decentraland/sdk/components/avatar_movement_info.proto +0 -36
  159. package/proto/decentraland/sdk/components/camera_layer.proto +0 -30
  160. package/proto/decentraland/sdk/components/camera_layers.proto +0 -11
  161. package/proto/decentraland/sdk/components/global_light.proto +0 -22
  162. package/proto/decentraland/sdk/components/gltf_node.proto +0 -42
  163. package/proto/decentraland/sdk/components/gltf_node_state.proto +0 -20
  164. package/proto/decentraland/sdk/components/texture_camera.proto +0 -46
  165. package/proto/decentraland/sdk/components/ui_canvas.proto +0 -16
  166. package/proto/decentraland/sdk/components/ui_scroll_result.proto +0 -12
@@ -1,303 +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.MovementAnimation = 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 {
13
- velocity: undefined,
14
- orientation: 0,
15
- groundDirection: undefined,
16
- walkSuccess: undefined,
17
- animation: undefined,
18
- tiltPitch: undefined,
19
- tiltRoll: undefined,
20
- };
21
- }
22
- var PBAvatarMovement;
23
- (function (PBAvatarMovement) {
24
- function encode(message, writer = minimal_1.default.Writer.create()) {
25
- if (message.velocity !== undefined) {
26
- vectors_gen_1.Vector3.encode(message.velocity, writer.uint32(10).fork()).ldelim();
27
- }
28
- if (message.orientation !== 0) {
29
- writer.uint32(21).float(message.orientation);
30
- }
31
- if (message.groundDirection !== undefined) {
32
- vectors_gen_1.Vector3.encode(message.groundDirection, writer.uint32(26).fork()).ldelim();
33
- }
34
- if (message.walkSuccess !== undefined) {
35
- writer.uint32(32).bool(message.walkSuccess);
36
- }
37
- if (message.animation !== undefined) {
38
- MovementAnimation.encode(message.animation, writer.uint32(42).fork()).ldelim();
39
- }
40
- if (message.tiltPitch !== undefined) {
41
- writer.uint32(53).float(message.tiltPitch);
42
- }
43
- if (message.tiltRoll !== undefined) {
44
- writer.uint32(61).float(message.tiltRoll);
45
- }
46
- return writer;
47
- }
48
- PBAvatarMovement.encode = encode;
49
- function decode(input, length) {
50
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
51
- let end = length === undefined ? reader.len : reader.pos + length;
52
- const message = createBasePBAvatarMovement();
53
- while (reader.pos < end) {
54
- const tag = reader.uint32();
55
- switch (tag >>> 3) {
56
- case 1:
57
- if (tag !== 10) {
58
- break;
59
- }
60
- message.velocity = vectors_gen_1.Vector3.decode(reader, reader.uint32());
61
- continue;
62
- case 2:
63
- if (tag !== 21) {
64
- break;
65
- }
66
- message.orientation = reader.float();
67
- continue;
68
- case 3:
69
- if (tag !== 26) {
70
- break;
71
- }
72
- message.groundDirection = vectors_gen_1.Vector3.decode(reader, reader.uint32());
73
- continue;
74
- case 4:
75
- if (tag !== 32) {
76
- break;
77
- }
78
- message.walkSuccess = reader.bool();
79
- continue;
80
- case 5:
81
- if (tag !== 42) {
82
- break;
83
- }
84
- message.animation = MovementAnimation.decode(reader, reader.uint32());
85
- continue;
86
- case 6:
87
- if (tag !== 53) {
88
- break;
89
- }
90
- message.tiltPitch = reader.float();
91
- continue;
92
- case 7:
93
- if (tag !== 61) {
94
- break;
95
- }
96
- message.tiltRoll = reader.float();
97
- continue;
98
- }
99
- if ((tag & 7) === 4 || tag === 0) {
100
- break;
101
- }
102
- reader.skipType(tag & 7);
103
- }
104
- return message;
105
- }
106
- PBAvatarMovement.decode = decode;
107
- function fromJSON(object) {
108
- return {
109
- velocity: isSet(object.velocity) ? vectors_gen_1.Vector3.fromJSON(object.velocity) : undefined,
110
- orientation: isSet(object.orientation) ? Number(object.orientation) : 0,
111
- groundDirection: isSet(object.groundDirection) ? vectors_gen_1.Vector3.fromJSON(object.groundDirection) : undefined,
112
- walkSuccess: isSet(object.walkSuccess) ? Boolean(object.walkSuccess) : undefined,
113
- animation: isSet(object.animation) ? MovementAnimation.fromJSON(object.animation) : undefined,
114
- tiltPitch: isSet(object.tiltPitch) ? Number(object.tiltPitch) : undefined,
115
- tiltRoll: isSet(object.tiltRoll) ? Number(object.tiltRoll) : undefined,
116
- };
117
- }
118
- PBAvatarMovement.fromJSON = fromJSON;
119
- function toJSON(message) {
120
- const obj = {};
121
- message.velocity !== undefined && (obj.velocity = message.velocity ? vectors_gen_1.Vector3.toJSON(message.velocity) : undefined);
122
- message.orientation !== undefined && (obj.orientation = message.orientation);
123
- message.groundDirection !== undefined &&
124
- (obj.groundDirection = message.groundDirection ? vectors_gen_1.Vector3.toJSON(message.groundDirection) : undefined);
125
- message.walkSuccess !== undefined && (obj.walkSuccess = message.walkSuccess);
126
- message.animation !== undefined &&
127
- (obj.animation = message.animation ? MovementAnimation.toJSON(message.animation) : undefined);
128
- message.tiltPitch !== undefined && (obj.tiltPitch = message.tiltPitch);
129
- message.tiltRoll !== undefined && (obj.tiltRoll = message.tiltRoll);
130
- return obj;
131
- }
132
- PBAvatarMovement.toJSON = toJSON;
133
- function create(base) {
134
- return PBAvatarMovement.fromPartial(base !== null && base !== void 0 ? base : {});
135
- }
136
- PBAvatarMovement.create = create;
137
- function fromPartial(object) {
138
- var _a, _b, _c, _d;
139
- const message = createBasePBAvatarMovement();
140
- message.velocity = (object.velocity !== undefined && object.velocity !== null)
141
- ? vectors_gen_1.Vector3.fromPartial(object.velocity)
142
- : undefined;
143
- message.orientation = (_a = object.orientation) !== null && _a !== void 0 ? _a : 0;
144
- message.groundDirection = (object.groundDirection !== undefined && object.groundDirection !== null)
145
- ? vectors_gen_1.Vector3.fromPartial(object.groundDirection)
146
- : undefined;
147
- message.walkSuccess = (_b = object.walkSuccess) !== null && _b !== void 0 ? _b : undefined;
148
- message.animation = (object.animation !== undefined && object.animation !== null)
149
- ? MovementAnimation.fromPartial(object.animation)
150
- : undefined;
151
- message.tiltPitch = (_c = object.tiltPitch) !== null && _c !== void 0 ? _c : undefined;
152
- message.tiltRoll = (_d = object.tiltRoll) !== null && _d !== void 0 ? _d : undefined;
153
- return message;
154
- }
155
- PBAvatarMovement.fromPartial = fromPartial;
156
- })(PBAvatarMovement || (exports.PBAvatarMovement = PBAvatarMovement = {}));
157
- function createBaseMovementAnimation() {
158
- return {
159
- src: "",
160
- loop: false,
161
- speed: 0,
162
- idle: false,
163
- transitionSeconds: undefined,
164
- playbackTime: undefined,
165
- sounds: [],
166
- };
167
- }
168
- var MovementAnimation;
169
- (function (MovementAnimation) {
170
- function encode(message, writer = minimal_1.default.Writer.create()) {
171
- if (message.src !== "") {
172
- writer.uint32(10).string(message.src);
173
- }
174
- if (message.loop === true) {
175
- writer.uint32(16).bool(message.loop);
176
- }
177
- if (message.speed !== 0) {
178
- writer.uint32(29).float(message.speed);
179
- }
180
- if (message.idle === true) {
181
- writer.uint32(32).bool(message.idle);
182
- }
183
- if (message.transitionSeconds !== undefined) {
184
- writer.uint32(45).float(message.transitionSeconds);
185
- }
186
- if (message.playbackTime !== undefined) {
187
- writer.uint32(53).float(message.playbackTime);
188
- }
189
- for (const v of message.sounds) {
190
- writer.uint32(58).string(v);
191
- }
192
- return writer;
193
- }
194
- MovementAnimation.encode = encode;
195
- function decode(input, length) {
196
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
197
- let end = length === undefined ? reader.len : reader.pos + length;
198
- const message = createBaseMovementAnimation();
199
- while (reader.pos < end) {
200
- const tag = reader.uint32();
201
- switch (tag >>> 3) {
202
- case 1:
203
- if (tag !== 10) {
204
- break;
205
- }
206
- message.src = reader.string();
207
- continue;
208
- case 2:
209
- if (tag !== 16) {
210
- break;
211
- }
212
- message.loop = reader.bool();
213
- continue;
214
- case 3:
215
- if (tag !== 29) {
216
- break;
217
- }
218
- message.speed = reader.float();
219
- continue;
220
- case 4:
221
- if (tag !== 32) {
222
- break;
223
- }
224
- message.idle = reader.bool();
225
- continue;
226
- case 5:
227
- if (tag !== 45) {
228
- break;
229
- }
230
- message.transitionSeconds = reader.float();
231
- continue;
232
- case 6:
233
- if (tag !== 53) {
234
- break;
235
- }
236
- message.playbackTime = reader.float();
237
- continue;
238
- case 7:
239
- if (tag !== 58) {
240
- break;
241
- }
242
- message.sounds.push(reader.string());
243
- continue;
244
- }
245
- if ((tag & 7) === 4 || tag === 0) {
246
- break;
247
- }
248
- reader.skipType(tag & 7);
249
- }
250
- return message;
251
- }
252
- MovementAnimation.decode = decode;
253
- function fromJSON(object) {
254
- return {
255
- src: isSet(object.src) ? String(object.src) : "",
256
- loop: isSet(object.loop) ? Boolean(object.loop) : false,
257
- speed: isSet(object.speed) ? Number(object.speed) : 0,
258
- idle: isSet(object.idle) ? Boolean(object.idle) : false,
259
- transitionSeconds: isSet(object.transitionSeconds) ? Number(object.transitionSeconds) : undefined,
260
- playbackTime: isSet(object.playbackTime) ? Number(object.playbackTime) : undefined,
261
- sounds: Array.isArray(object === null || object === void 0 ? void 0 : object.sounds) ? object.sounds.map((e) => String(e)) : [],
262
- };
263
- }
264
- MovementAnimation.fromJSON = fromJSON;
265
- function toJSON(message) {
266
- const obj = {};
267
- message.src !== undefined && (obj.src = message.src);
268
- message.loop !== undefined && (obj.loop = message.loop);
269
- message.speed !== undefined && (obj.speed = message.speed);
270
- message.idle !== undefined && (obj.idle = message.idle);
271
- message.transitionSeconds !== undefined && (obj.transitionSeconds = message.transitionSeconds);
272
- message.playbackTime !== undefined && (obj.playbackTime = message.playbackTime);
273
- if (message.sounds) {
274
- obj.sounds = message.sounds.map((e) => e);
275
- }
276
- else {
277
- obj.sounds = [];
278
- }
279
- return obj;
280
- }
281
- MovementAnimation.toJSON = toJSON;
282
- function create(base) {
283
- return MovementAnimation.fromPartial(base !== null && base !== void 0 ? base : {});
284
- }
285
- MovementAnimation.create = create;
286
- function fromPartial(object) {
287
- var _a, _b, _c, _d, _e, _f, _g;
288
- const message = createBaseMovementAnimation();
289
- message.src = (_a = object.src) !== null && _a !== void 0 ? _a : "";
290
- message.loop = (_b = object.loop) !== null && _b !== void 0 ? _b : false;
291
- message.speed = (_c = object.speed) !== null && _c !== void 0 ? _c : 0;
292
- message.idle = (_d = object.idle) !== null && _d !== void 0 ? _d : false;
293
- message.transitionSeconds = (_e = object.transitionSeconds) !== null && _e !== void 0 ? _e : undefined;
294
- message.playbackTime = (_f = object.playbackTime) !== null && _f !== void 0 ? _f : undefined;
295
- message.sounds = ((_g = object.sounds) === null || _g === void 0 ? void 0 : _g.map((e) => e)) || [];
296
- return message;
297
- }
298
- MovementAnimation.fromPartial = fromPartial;
299
- })(MovementAnimation || (exports.MovementAnimation = MovementAnimation = {}));
300
- function isSet(value) {
301
- return value !== null && value !== undefined;
302
- }
303
- //# 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;AAqD7D,SAAS,0BAA0B;IACjC,OAAO;QACL,QAAQ,EAAE,SAAS;QACnB,WAAW,EAAE,CAAC;QACd,eAAe,EAAE,SAAS;QAC1B,WAAW,EAAE,SAAS;QACtB,SAAS,EAAE,SAAS;QACpB,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,SAAS;KACpB,CAAC;AACJ,CAAC;AAED,IAAiB,gBAAgB,CA0IhC;AA1ID,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,C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CAAA;IAED,SAAgB,WAAW,CAAqD,MAAS;;QACvF,MAAM,OAAO,GAAG,2BAA2B,EAAE,CAAC;QAC9C,OAAO,CAAC,GAAG,GAAG,MAAA,MAAM,CAAC,GAAG,mCAAI,EAAE,CAAC;QAC/B,OAAO,CAAC,IAAI,GAAG,MAAA,MAAM,CAAC,IAAI,mCAAI,KAAK,CAAC;QACpC,OAAO,CAAC,KAAK,GAAG,MAAA,MAAM,CAAC,KAAK,mCAAI,CAAC,CAAC;QAClC,OAAO,CAAC,IAAI,GAAG,MAAA,MAAM,CAAC,IAAI,mCAAI,KAAK,CAAC;QACpC,OAAO,CAAC,iBAAiB,GAAG,MAAA,MAAM,CAAC,iBAAiB,mCAAI,SAAS,CAAC;QAClE,OAAO,CAAC,YAAY,GAAG,MAAA,MAAM,CAAC,YAAY,mCAAI,SAAS,CAAC;QACxD,OAAO,CAAC,MAAM,GAAG,CAAA,MAAA,MAAM,CAAC,MAAM,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAI,EAAE,CAAC;QACpD,OAAO,OAAO,CAAC;IACjB,CAAC;IAVe,6BAAW,cAU1B,CAAA;AACH,CAAC,EAtIgB,iBAAiB,iCAAjB,iBAAiB,QAsIjC;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -1,79 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- import { Vector3 } from "../../common/vectors.gen";
3
- import { PBAvatarLocomotionSettings } from "./avatar_locomotion_settings.gen";
4
- import { PBInputModifier } from "./input_modifier.gen";
5
- export declare const protobufPackage = "decentraland.sdk.components";
6
- export interface PBAvatarMovementInfo {
7
- /** the length of time the current step velocity will apply for */
8
- stepTime: number;
9
- /** the length of time the previous step velocity applied for */
10
- previousStepTime: number;
11
- /** the velocity requested for the previous frame */
12
- requestedVelocity: Vector3 | undefined;
13
- /** the resulting velocity taking collisions into account */
14
- actualVelocity: Vector3 | undefined;
15
- /** the velocity imparted by movement of the "ground" platform or pushing from other moving colliders */
16
- externalVelocity: Vector3 | undefined;
17
- activeAvatarLocomotionSettings: PBAvatarLocomotionSettings | undefined;
18
- activeInputModifier: PBInputModifier | undefined;
19
- /** if set, the movement scene should walk the player to this scene-relative position */
20
- walkTarget?: Vector3 | undefined;
21
- /** stop distance for walk_target; considered reached when within this distance */
22
- walkThreshold?: number | undefined;
23
- /** current state of a scene-driven movement animation. Absent when the engine is using its velocity-based fallback. `playback_time` freezes while a triggerSceneEmote is overriding the animation. */
24
- activeAnimationState?: AvatarAnimationState | undefined;
25
- }
26
- /**
27
- * Mirror of the scene-driven movement animation currently playing, reported by the engine.
28
- * Readable by any scene (not just the controller) so niche effects (e.g. dust cloud on landing) can react.
29
- * Active emotes are not represented here — scenes already have their own way to read them.
30
- */
31
- export interface AvatarAnimationState {
32
- /** same scene-relative path the controlling scene supplied */
33
- src: string;
34
- /** mirrors the request */
35
- loop: boolean;
36
- /** mirrors the request */
37
- speed: number;
38
- /** mirrors the request */
39
- idle: boolean;
40
- /** seconds into the clip; wraps on loop; frozen while an emote override is playing */
41
- playbackTime: number;
42
- /** total clip length in seconds */
43
- duration: number;
44
- /** how many times the clip has completed since it started */
45
- loopCount: number;
46
- }
47
- export declare namespace PBAvatarMovementInfo {
48
- function encode(message: PBAvatarMovementInfo, writer?: _m0.Writer): _m0.Writer;
49
- function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarMovementInfo;
50
- function fromJSON(object: any): PBAvatarMovementInfo;
51
- function toJSON(message: PBAvatarMovementInfo): unknown;
52
- function create<I extends Exact<DeepPartial<PBAvatarMovementInfo>, I>>(base?: I): PBAvatarMovementInfo;
53
- function fromPartial<I extends Exact<DeepPartial<PBAvatarMovementInfo>, I>>(object: I): PBAvatarMovementInfo;
54
- }
55
- export declare namespace AvatarAnimationState {
56
- function encode(message: AvatarAnimationState, writer?: _m0.Writer): _m0.Writer;
57
- function decode(input: _m0.Reader | Uint8Array, length?: number): AvatarAnimationState;
58
- function fromJSON(object: any): AvatarAnimationState;
59
- function toJSON(message: AvatarAnimationState): unknown;
60
- function create<I extends Exact<DeepPartial<AvatarAnimationState>, I>>(base?: I): AvatarAnimationState;
61
- function fromPartial<I extends Exact<DeepPartial<AvatarAnimationState>, I>>(object: I): AvatarAnimationState;
62
- }
63
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
64
- 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 {
65
- $case: string;
66
- } ? {
67
- [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
68
- } & {
69
- $case: T["$case"];
70
- } : T extends {} ? {
71
- [K in keyof T]?: DeepPartial<T[K]>;
72
- } : Partial<T>;
73
- type KeysOfUnion<T> = T extends T ? keyof T : never;
74
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
75
- [K in keyof P]: Exact<P[K], I[K]>;
76
- } & {
77
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
78
- };
79
- export {};