@dcl/ecs 7.25.1-30365680769.commit-9c1b99d → 7.25.1-30447792919.commit-c06a494

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 (43) hide show
  1. package/dist/components/generated/TouchScreenControls.gen.d.ts +1 -0
  2. package/dist/components/generated/TouchScreenControls.gen.js +25 -0
  3. package/dist/components/generated/UiInputBinding.gen.d.ts +1 -0
  4. package/dist/components/generated/UiInputBinding.gen.js +25 -0
  5. package/dist/components/generated/component-names.gen.js +2 -0
  6. package/dist/components/generated/global.gen.d.ts +4 -0
  7. package/dist/components/generated/global.gen.js +2 -0
  8. package/dist/components/generated/index.gen.d.ts +8 -0
  9. package/dist/components/generated/index.gen.js +10 -0
  10. package/dist/components/generated/pb/decentraland/sdk/components/avatar_emote_command.gen.d.ts +3 -2
  11. package/dist/components/generated/pb/decentraland/sdk/components/avatar_shape.gen.d.ts +8 -0
  12. package/dist/components/generated/pb/decentraland/sdk/components/avatar_shape.gen.js +9 -0
  13. package/dist/components/generated/pb/decentraland/sdk/components/touch_screen_controls.gen.d.ts +63 -0
  14. package/dist/components/generated/pb/decentraland/sdk/components/touch_screen_controls.gen.js +125 -0
  15. package/dist/components/generated/pb/decentraland/sdk/components/ui_input_binding.gen.d.ts +36 -0
  16. package/dist/components/generated/pb/decentraland/sdk/components/ui_input_binding.gen.js +50 -0
  17. package/dist/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.d.ts +3 -0
  18. package/dist/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.js +10 -1
  19. package/dist/components/generated/pb/google/protobuf/descriptor.gen.d.ts +640 -1
  20. package/dist/components/generated/pb/google/protobuf/descriptor.gen.js +260 -4
  21. package/dist/systems/triggerArea.js +1 -2
  22. package/dist-cjs/components/generated/TouchScreenControls.gen.d.ts +1 -0
  23. package/dist-cjs/components/generated/TouchScreenControls.gen.js +28 -0
  24. package/dist-cjs/components/generated/UiInputBinding.gen.d.ts +1 -0
  25. package/dist-cjs/components/generated/UiInputBinding.gen.js +28 -0
  26. package/dist-cjs/components/generated/component-names.gen.js +2 -0
  27. package/dist-cjs/components/generated/global.gen.d.ts +4 -0
  28. package/dist-cjs/components/generated/global.gen.js +4 -2
  29. package/dist-cjs/components/generated/index.gen.d.ts +8 -0
  30. package/dist-cjs/components/generated/index.gen.js +14 -2
  31. package/dist-cjs/components/generated/pb/decentraland/sdk/components/avatar_emote_command.gen.d.ts +3 -2
  32. package/dist-cjs/components/generated/pb/decentraland/sdk/components/avatar_shape.gen.d.ts +8 -0
  33. package/dist-cjs/components/generated/pb/decentraland/sdk/components/avatar_shape.gen.js +10 -1
  34. package/dist-cjs/components/generated/pb/decentraland/sdk/components/touch_screen_controls.gen.d.ts +63 -0
  35. package/dist-cjs/components/generated/pb/decentraland/sdk/components/touch_screen_controls.gen.js +131 -0
  36. package/dist-cjs/components/generated/pb/decentraland/sdk/components/ui_input_binding.gen.d.ts +36 -0
  37. package/dist-cjs/components/generated/pb/decentraland/sdk/components/ui_input_binding.gen.js +56 -0
  38. package/dist-cjs/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.d.ts +3 -0
  39. package/dist-cjs/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.js +10 -1
  40. package/dist-cjs/components/generated/pb/google/protobuf/descriptor.gen.d.ts +640 -1
  41. package/dist-cjs/components/generated/pb/google/protobuf/descriptor.gen.js +261 -5
  42. package/dist-cjs/systems/triggerArea.js +1 -2
  43. package/package.json +2 -2
@@ -0,0 +1,25 @@
1
+ import { PBTouchScreenControls } from './pb/decentraland/sdk/components/touch_screen_controls.gen';
2
+ /**
3
+ * @internal
4
+ */
5
+ export const TouchScreenControlsSchema = {
6
+ COMPONENT_ID: 1218,
7
+ serialize(value, builder) {
8
+ const writer = PBTouchScreenControls.encode(value);
9
+ const buffer = new Uint8Array(writer.finish(), 0, writer.len);
10
+ builder.writeBuffer(buffer, false);
11
+ },
12
+ deserialize(reader) {
13
+ return PBTouchScreenControls.decode(reader.buffer(), reader.remainingBytes());
14
+ },
15
+ create() {
16
+ // TODO: this is a hack.
17
+ return PBTouchScreenControls.decode(new Uint8Array());
18
+ },
19
+ jsonSchema: {
20
+ type: "object",
21
+ properties: {},
22
+ serializationType: "protocol-buffer",
23
+ protocolBuffer: "PBTouchScreenControls"
24
+ }
25
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,25 @@
1
+ import { PBUiInputBinding } from './pb/decentraland/sdk/components/ui_input_binding.gen';
2
+ /**
3
+ * @internal
4
+ */
5
+ export const UiInputBindingSchema = {
6
+ COMPONENT_ID: 1219,
7
+ serialize(value, builder) {
8
+ const writer = PBUiInputBinding.encode(value);
9
+ const buffer = new Uint8Array(writer.finish(), 0, writer.len);
10
+ builder.writeBuffer(buffer, false);
11
+ },
12
+ deserialize(reader) {
13
+ return PBUiInputBinding.decode(reader.buffer(), reader.remainingBytes());
14
+ },
15
+ create() {
16
+ // TODO: this is a hack.
17
+ return PBUiInputBinding.decode(new Uint8Array());
18
+ },
19
+ jsonSchema: {
20
+ type: "object",
21
+ properties: {},
22
+ serializationType: "protocol-buffer",
23
+ protocolBuffer: "PBUiInputBinding"
24
+ }
25
+ };
@@ -45,6 +45,7 @@ export const coreComponentMappings = {
45
45
  "core::RealmInfo": 1106,
46
46
  "core::SkyboxTime": 1210,
47
47
  "core::TextShape": 1030,
48
+ "core::TouchScreenControls": 1218,
48
49
  "core::TriggerArea": 1060,
49
50
  "core::TriggerAreaResult": 1061,
50
51
  "core::Tween": 1102,
@@ -55,6 +56,7 @@ export const coreComponentMappings = {
55
56
  "core::UiDropdown": 1094,
56
57
  "core::UiDropdownResult": 1096,
57
58
  "core::UiInput": 1093,
59
+ "core::UiInputBinding": 1219,
58
60
  "core::UiInputResult": 1095,
59
61
  "core::UiText": 1052,
60
62
  "core::UiTransform": 1050,
@@ -37,6 +37,7 @@ import { PBRaycastResult } from './pb/decentraland/sdk/components/raycast_result
37
37
  import { PBRealmInfo } from './pb/decentraland/sdk/components/realm_info.gen';
38
38
  import { PBSkyboxTime } from './pb/decentraland/sdk/components/skybox_time.gen';
39
39
  import { PBTextShape } from './pb/decentraland/sdk/components/text_shape.gen';
40
+ import { PBTouchScreenControls } from './pb/decentraland/sdk/components/touch_screen_controls.gen';
40
41
  import { PBTriggerArea } from './pb/decentraland/sdk/components/trigger_area.gen';
41
42
  import { PBTriggerAreaResult } from './pb/decentraland/sdk/components/trigger_area_result.gen';
42
43
  import { PBTweenSequence } from './pb/decentraland/sdk/components/tween_sequence.gen';
@@ -46,6 +47,7 @@ import { PBUiCanvasInformation } from './pb/decentraland/sdk/components/ui_canva
46
47
  import { PBUiDropdown } from './pb/decentraland/sdk/components/ui_dropdown.gen';
47
48
  import { PBUiDropdownResult } from './pb/decentraland/sdk/components/ui_dropdown_result.gen';
48
49
  import { PBUiInput } from './pb/decentraland/sdk/components/ui_input.gen';
50
+ import { PBUiInputBinding } from './pb/decentraland/sdk/components/ui_input_binding.gen';
49
51
  import { PBUiInputResult } from './pb/decentraland/sdk/components/ui_input_result.gen';
50
52
  import { PBUiText } from './pb/decentraland/sdk/components/ui_text.gen';
51
53
  import { PBUiTransform } from './pb/decentraland/sdk/components/ui_transform.gen';
@@ -90,6 +92,7 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
90
92
  /** @public */ export declare const RealmInfo: LastWriteWinElementSetComponentDefinition<PBRealmInfo>;
91
93
  /** @public */ export declare const SkyboxTime: LastWriteWinElementSetComponentDefinition<PBSkyboxTime>;
92
94
  /** @public */ export declare const TextShape: LastWriteWinElementSetComponentDefinition<PBTextShape>;
95
+ /** @public */ export declare const TouchScreenControls: LastWriteWinElementSetComponentDefinition<PBTouchScreenControls>;
93
96
  /** @public */ export declare const TriggerArea: LastWriteWinElementSetComponentDefinition<PBTriggerArea>;
94
97
  /** @public */ export declare const TriggerAreaResult: GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>;
95
98
  /** @public */ export declare const TweenSequence: LastWriteWinElementSetComponentDefinition<PBTweenSequence>;
@@ -99,6 +102,7 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
99
102
  /** @public */ export declare const UiDropdown: LastWriteWinElementSetComponentDefinition<PBUiDropdown>;
100
103
  /** @public */ export declare const UiDropdownResult: LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>;
101
104
  /** @public */ export declare const UiInput: LastWriteWinElementSetComponentDefinition<PBUiInput>;
105
+ /** @public */ export declare const UiInputBinding: LastWriteWinElementSetComponentDefinition<PBUiInputBinding>;
102
106
  /** @public */ export declare const UiInputResult: LastWriteWinElementSetComponentDefinition<PBUiInputResult>;
103
107
  /** @public */ export declare const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
104
108
  /** @public */ export declare const UiTransform: LastWriteWinElementSetComponentDefinition<PBUiTransform>;
@@ -38,6 +38,7 @@ export * from './index.gen';
38
38
  /** @public */ export const RealmInfo = /* @__PURE__ */ components.RealmInfo(engine);
39
39
  /** @public */ export const SkyboxTime = /* @__PURE__ */ components.SkyboxTime(engine);
40
40
  /** @public */ export const TextShape = /* @__PURE__ */ components.TextShape(engine);
41
+ /** @public */ export const TouchScreenControls = /* @__PURE__ */ components.TouchScreenControls(engine);
41
42
  /** @public */ export const TriggerArea = /* @__PURE__ */ components.TriggerArea(engine);
42
43
  /** @public */ export const TriggerAreaResult = /* @__PURE__ */ components.TriggerAreaResult(engine);
43
44
  /** @public */ export const TweenSequence = /* @__PURE__ */ components.TweenSequence(engine);
@@ -47,6 +48,7 @@ export * from './index.gen';
47
48
  /** @public */ export const UiDropdown = /* @__PURE__ */ components.UiDropdown(engine);
48
49
  /** @public */ export const UiDropdownResult = /* @__PURE__ */ components.UiDropdownResult(engine);
49
50
  /** @public */ export const UiInput = /* @__PURE__ */ components.UiInput(engine);
51
+ /** @public */ export const UiInputBinding = /* @__PURE__ */ components.UiInputBinding(engine);
50
52
  /** @public */ export const UiInputResult = /* @__PURE__ */ components.UiInputResult(engine);
51
53
  /** @public */ export const UiText = /* @__PURE__ */ components.UiText(engine);
52
54
  /** @public */ export const UiTransform = /* @__PURE__ */ components.UiTransform(engine);
@@ -41,6 +41,7 @@ import { PBRaycastResult } from './pb/decentraland/sdk/components/raycast_result
41
41
  import { PBRealmInfo } from './pb/decentraland/sdk/components/realm_info.gen';
42
42
  import { PBSkyboxTime } from './pb/decentraland/sdk/components/skybox_time.gen';
43
43
  import { PBTextShape } from './pb/decentraland/sdk/components/text_shape.gen';
44
+ import { PBTouchScreenControls } from './pb/decentraland/sdk/components/touch_screen_controls.gen';
44
45
  import { PBTriggerArea } from './pb/decentraland/sdk/components/trigger_area.gen';
45
46
  import { PBTriggerAreaResult } from './pb/decentraland/sdk/components/trigger_area_result.gen';
46
47
  import { PBTween } from './pb/decentraland/sdk/components/tween.gen';
@@ -51,6 +52,7 @@ import { PBUiCanvasInformation } from './pb/decentraland/sdk/components/ui_canva
51
52
  import { PBUiDropdown } from './pb/decentraland/sdk/components/ui_dropdown.gen';
52
53
  import { PBUiDropdownResult } from './pb/decentraland/sdk/components/ui_dropdown_result.gen';
53
54
  import { PBUiInput } from './pb/decentraland/sdk/components/ui_input.gen';
55
+ import { PBUiInputBinding } from './pb/decentraland/sdk/components/ui_input_binding.gen';
54
56
  import { PBUiInputResult } from './pb/decentraland/sdk/components/ui_input_result.gen';
55
57
  import { PBUiText } from './pb/decentraland/sdk/components/ui_text.gen';
56
58
  import { PBUiTransform } from './pb/decentraland/sdk/components/ui_transform.gen';
@@ -99,6 +101,7 @@ export * from './pb/decentraland/sdk/components/raycast_result.gen';
99
101
  export * from './pb/decentraland/sdk/components/realm_info.gen';
100
102
  export * from './pb/decentraland/sdk/components/skybox_time.gen';
101
103
  export * from './pb/decentraland/sdk/components/text_shape.gen';
104
+ export * from './pb/decentraland/sdk/components/touch_screen_controls.gen';
102
105
  export * from './pb/decentraland/sdk/components/trigger_area.gen';
103
106
  export * from './pb/decentraland/sdk/components/trigger_area_result.gen';
104
107
  export * from './pb/decentraland/sdk/components/tween.gen';
@@ -109,6 +112,7 @@ export * from './pb/decentraland/sdk/components/ui_canvas_information.gen';
109
112
  export * from './pb/decentraland/sdk/components/ui_dropdown.gen';
110
113
  export * from './pb/decentraland/sdk/components/ui_dropdown_result.gen';
111
114
  export * from './pb/decentraland/sdk/components/ui_input.gen';
115
+ export * from './pb/decentraland/sdk/components/ui_input_binding.gen';
112
116
  export * from './pb/decentraland/sdk/components/ui_input_result.gen';
113
117
  export * from './pb/decentraland/sdk/components/ui_text.gen';
114
118
  export * from './pb/decentraland/sdk/components/ui_transform.gen';
@@ -159,6 +163,7 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
159
163
  /** @public */ export declare const RealmInfo: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
160
164
  /** @public */ export declare const SkyboxTime: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkyboxTime>>;
161
165
  /** @public */ export declare const TextShape: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
166
+ /** @public */ export declare const TouchScreenControls: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTouchScreenControls>>;
162
167
  /** @public */ export declare const TriggerArea: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTriggerArea>>;
163
168
  /** @public */ export declare const TriggerAreaResult: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>>;
164
169
  /** @public */ export declare const Tween: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
@@ -169,6 +174,7 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
169
174
  /** @public */ export declare const UiDropdown: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdown>>;
170
175
  /** @public */ export declare const UiDropdownResult: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>>;
171
176
  /** @public */ export declare const UiInput: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInput>>;
177
+ /** @public */ export declare const UiInputBinding: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputBinding>>;
172
178
  /** @public */ export declare const UiInputResult: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputResult>>;
173
179
  /** @public */ export declare const UiText: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiText>>;
174
180
  /** @public */ export declare const UiTransform: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiTransform>>;
@@ -219,6 +225,7 @@ export declare const componentDefinitionByName: {
219
225
  "core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
220
226
  "core::SkyboxTime": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkyboxTime>>;
221
227
  "core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
228
+ "core::TouchScreenControls": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTouchScreenControls>>;
222
229
  "core::TriggerArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTriggerArea>>;
223
230
  "core::TriggerAreaResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>>;
224
231
  "core::Tween": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
@@ -229,6 +236,7 @@ export declare const componentDefinitionByName: {
229
236
  "core::UiDropdown": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdown>>;
230
237
  "core::UiDropdownResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>>;
231
238
  "core::UiInput": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInput>>;
239
+ "core::UiInputBinding": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputBinding>>;
232
240
  "core::UiInputResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputResult>>;
233
241
  "core::UiText": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiText>>;
234
242
  "core::UiTransform": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiTransform>>;
@@ -39,6 +39,7 @@ import { RaycastResultSchema } from './RaycastResult.gen';
39
39
  import { RealmInfoSchema } from './RealmInfo.gen';
40
40
  import { SkyboxTimeSchema } from './SkyboxTime.gen';
41
41
  import { TextShapeSchema } from './TextShape.gen';
42
+ import { TouchScreenControlsSchema } from './TouchScreenControls.gen';
42
43
  import { TriggerAreaSchema } from './TriggerArea.gen';
43
44
  import { TriggerAreaResultSchema } from './TriggerAreaResult.gen';
44
45
  import { TweenSchema } from './Tween.gen';
@@ -49,6 +50,7 @@ import { UiCanvasInformationSchema } from './UiCanvasInformation.gen';
49
50
  import { UiDropdownSchema } from './UiDropdown.gen';
50
51
  import { UiDropdownResultSchema } from './UiDropdownResult.gen';
51
52
  import { UiInputSchema } from './UiInput.gen';
53
+ import { UiInputBindingSchema } from './UiInputBinding.gen';
52
54
  import { UiInputResultSchema } from './UiInputResult.gen';
53
55
  import { UiTextSchema } from './UiText.gen';
54
56
  import { UiTransformSchema } from './UiTransform.gen';
@@ -97,6 +99,7 @@ export * from './pb/decentraland/sdk/components/raycast_result.gen';
97
99
  export * from './pb/decentraland/sdk/components/realm_info.gen';
98
100
  export * from './pb/decentraland/sdk/components/skybox_time.gen';
99
101
  export * from './pb/decentraland/sdk/components/text_shape.gen';
102
+ export * from './pb/decentraland/sdk/components/touch_screen_controls.gen';
100
103
  export * from './pb/decentraland/sdk/components/trigger_area.gen';
101
104
  export * from './pb/decentraland/sdk/components/trigger_area_result.gen';
102
105
  export * from './pb/decentraland/sdk/components/tween.gen';
@@ -107,6 +110,7 @@ export * from './pb/decentraland/sdk/components/ui_canvas_information.gen';
107
110
  export * from './pb/decentraland/sdk/components/ui_dropdown.gen';
108
111
  export * from './pb/decentraland/sdk/components/ui_dropdown_result.gen';
109
112
  export * from './pb/decentraland/sdk/components/ui_input.gen';
113
+ export * from './pb/decentraland/sdk/components/ui_input_binding.gen';
110
114
  export * from './pb/decentraland/sdk/components/ui_input_result.gen';
111
115
  export * from './pb/decentraland/sdk/components/ui_text.gen';
112
116
  export * from './pb/decentraland/sdk/components/ui_transform.gen';
@@ -204,6 +208,8 @@ export * from './pb/decentraland/sdk/components/visibility_component.gen';
204
208
  /* @__PURE__ */ engine.defineComponentFromSchema("core::SkyboxTime", SkyboxTimeSchema);
205
209
  /** @public */ export const TextShape = engine =>
206
210
  /* @__PURE__ */ engine.defineComponentFromSchema("core::TextShape", TextShapeSchema);
211
+ /** @public */ export const TouchScreenControls = engine =>
212
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::TouchScreenControls", TouchScreenControlsSchema);
207
213
  /** @public */ export const TriggerArea = engine =>
208
214
  /* @__PURE__ */ engine.defineComponentFromSchema("core::TriggerArea", TriggerAreaSchema);
209
215
  /** @public */ export const TriggerAreaResult = (engine) => /* @__PURE__ */ engine.defineValueSetComponentFromSchema("core::TriggerAreaResult", TriggerAreaResultSchema, {
@@ -226,6 +232,8 @@ export * from './pb/decentraland/sdk/components/visibility_component.gen';
226
232
  /* @__PURE__ */ engine.defineComponentFromSchema("core::UiDropdownResult", UiDropdownResultSchema);
227
233
  /** @public */ export const UiInput = engine =>
228
234
  /* @__PURE__ */ engine.defineComponentFromSchema("core::UiInput", UiInputSchema);
235
+ /** @public */ export const UiInputBinding = engine =>
236
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::UiInputBinding", UiInputBindingSchema);
229
237
  /** @public */ export const UiInputResult = engine =>
230
238
  /* @__PURE__ */ engine.defineComponentFromSchema("core::UiInputResult", UiInputResultSchema);
231
239
  /** @public */ export const UiText = engine =>
@@ -285,6 +293,7 @@ export const componentDefinitionByName = /* @__PURE__ */ {
285
293
  "core::RealmInfo": RealmInfo,
286
294
  "core::SkyboxTime": SkyboxTime,
287
295
  "core::TextShape": TextShape,
296
+ "core::TouchScreenControls": TouchScreenControls,
288
297
  "core::TriggerArea": TriggerArea,
289
298
  "core::TriggerAreaResult": TriggerAreaResult,
290
299
  "core::Tween": Tween,
@@ -295,6 +304,7 @@ export const componentDefinitionByName = /* @__PURE__ */ {
295
304
  "core::UiDropdown": UiDropdown,
296
305
  "core::UiDropdownResult": UiDropdownResult,
297
306
  "core::UiInput": UiInput,
307
+ "core::UiInputBinding": UiInputBinding,
298
308
  "core::UiInputResult": UiInputResult,
299
309
  "core::UiText": UiText,
300
310
  "core::UiTransform": UiTransform,
@@ -1,8 +1,9 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  import { AvatarMask } from "./common/avatar_mask.gen";
3
3
  /**
4
- * AvatarEmoteCommand is a grow only value set, used to signal the renderer about
5
- * avatar emotes playback.
4
+ * AvatarEmoteCommand is a grow only value set, written by the explorer to report
5
+ * avatar emote playback to the scene. It is appended to every player entity in the
6
+ * scene (the local player and remote avatars alike).
6
7
  */
7
8
  /**
8
9
  * @public
@@ -1,5 +1,13 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  import { Color3 } from "../../common/colors.gen";
3
+ /** Mask for which bones an animation applies to. */
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const enum AvatarEmoteMask {
8
+ AEM_FULL_BODY = 0,
9
+ AEM_UPPER_BODY = 1
10
+ }
3
11
  /**
4
12
  * The AvatarShape component contains the information required to draw and animate avatar, acting as
5
13
  * a simplified GLTF container for this specific case.
@@ -3,6 +3,15 @@ import Long from "long";
3
3
  import _m0 from "protobufjs/minimal";
4
4
  import { Color3 } from "../../common/colors.gen";
5
5
  const protobufPackageSarasa = "decentraland.sdk.components";
6
+ /** Mask for which bones an animation applies to. */
7
+ /**
8
+ * @public
9
+ */
10
+ export var AvatarEmoteMask;
11
+ (function (AvatarEmoteMask) {
12
+ AvatarEmoteMask[AvatarEmoteMask["AEM_FULL_BODY"] = 0] = "AEM_FULL_BODY";
13
+ AvatarEmoteMask[AvatarEmoteMask["AEM_UPPER_BODY"] = 1] = "AEM_UPPER_BODY";
14
+ })(AvatarEmoteMask || (AvatarEmoteMask = {}));
6
15
  function createBasePBAvatarShape() {
7
16
  return {
8
17
  id: "",
@@ -0,0 +1,63 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ import { TextureUnion } from "../../common/texture.gen";
3
+ import { InputAction } from "./common/input_action.gen";
4
+ /**
5
+ * The TouchScreenControls component lets a scene configure the native on-screen touch
6
+ * controls (the mobile joystick + gamepad). It must be set on the RootEntity.
7
+ *
8
+ * By default every on-screen button is shown; list a button in `touch_inputs` with
9
+ * `hide = true` to remove it (declutter). `main_action` picks which action the large
10
+ * central button triggers, and `hide_joystick` removes the native virtual joystick. It is
11
+ * a no-op on platforms without native on-screen controls (e.g. desktop).
12
+ *
13
+ * Accepted actions: only the on-screen gamepad actions map to a button — `IA_POINTER`,
14
+ * `IA_PRIMARY`, `IA_SECONDARY`, `IA_JUMP`, and `IA_ACTION_3`..`IA_ACTION_6`. Any other
15
+ * `InputAction` (movement actions, `IA_ANY`, `IA_MODIFIER`, or unknown/future values) is
16
+ * ignored: a `TouchInput` entry naming a non-button action has no effect, and a `main_action`
17
+ * that isn't a valid gamepad action falls back to the default central button (`IA_JUMP`).
18
+ */
19
+ /**
20
+ * @public
21
+ */
22
+ export interface PBTouchScreenControls {
23
+ touchInputs: PBTouchScreenControls_TouchInput[];
24
+ /**
25
+ * The large central button's action. Only the gamepad actions are valid:
26
+ * jump / pointer / primary (E) / secondary (F) / action_3..action_6 (1/2/3/4).
27
+ * When unset, the default central button (jump) is kept.
28
+ */
29
+ mainAction?: InputAction | undefined;
30
+ /** hide the native virtual joystick */
31
+ hideJoystick: boolean;
32
+ /** hide the on-screen crosshair / reticle */
33
+ hideCrosshair: boolean;
34
+ }
35
+ /** Per-button configuration. A button not listed here keeps its default (shown). */
36
+ /**
37
+ * @public
38
+ */
39
+ export interface PBTouchScreenControls_TouchInput {
40
+ /** which on-screen button this configures */
41
+ inputAction: InputAction;
42
+ /** hide this button (default: shown) */
43
+ hide: boolean;
44
+ /**
45
+ * Override the button glyph with this texture. For the jump button it replaces all
46
+ * of its dynamic states (jump / double-jump / glide).
47
+ */
48
+ icon?: TextureUnion | undefined;
49
+ }
50
+ /**
51
+ * @public
52
+ */
53
+ export declare namespace PBTouchScreenControls {
54
+ function encode(message: PBTouchScreenControls, writer?: _m0.Writer): _m0.Writer;
55
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBTouchScreenControls;
56
+ }
57
+ /**
58
+ * @public
59
+ */
60
+ export declare namespace PBTouchScreenControls_TouchInput {
61
+ function encode(message: PBTouchScreenControls_TouchInput, writer?: _m0.Writer): _m0.Writer;
62
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBTouchScreenControls_TouchInput;
63
+ }
@@ -0,0 +1,125 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+ import { TextureUnion } from "../../common/texture.gen";
4
+ const protobufPackageSarasa = "decentraland.sdk.components";
5
+ function createBasePBTouchScreenControls() {
6
+ return { touchInputs: [], mainAction: undefined, hideJoystick: false, hideCrosshair: false };
7
+ }
8
+ /**
9
+ * @public
10
+ */
11
+ export var PBTouchScreenControls;
12
+ (function (PBTouchScreenControls) {
13
+ function encode(message, writer = _m0.Writer.create()) {
14
+ for (const v of message.touchInputs) {
15
+ PBTouchScreenControls_TouchInput.encode(v, writer.uint32(10).fork()).ldelim();
16
+ }
17
+ if (message.mainAction !== undefined) {
18
+ writer.uint32(16).int32(message.mainAction);
19
+ }
20
+ if (message.hideJoystick === true) {
21
+ writer.uint32(24).bool(message.hideJoystick);
22
+ }
23
+ if (message.hideCrosshair === true) {
24
+ writer.uint32(32).bool(message.hideCrosshair);
25
+ }
26
+ return writer;
27
+ }
28
+ PBTouchScreenControls.encode = encode;
29
+ function decode(input, length) {
30
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
31
+ let end = length === undefined ? reader.len : reader.pos + length;
32
+ const message = createBasePBTouchScreenControls();
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.touchInputs.push(PBTouchScreenControls_TouchInput.decode(reader, reader.uint32()));
41
+ continue;
42
+ case 2:
43
+ if (tag !== 16) {
44
+ break;
45
+ }
46
+ message.mainAction = reader.int32();
47
+ continue;
48
+ case 3:
49
+ if (tag !== 24) {
50
+ break;
51
+ }
52
+ message.hideJoystick = reader.bool();
53
+ continue;
54
+ case 4:
55
+ if (tag !== 32) {
56
+ break;
57
+ }
58
+ message.hideCrosshair = reader.bool();
59
+ continue;
60
+ }
61
+ if ((tag & 7) === 4 || tag === 0) {
62
+ break;
63
+ }
64
+ reader.skipType(tag & 7);
65
+ }
66
+ return message;
67
+ }
68
+ PBTouchScreenControls.decode = decode;
69
+ })(PBTouchScreenControls || (PBTouchScreenControls = {}));
70
+ function createBasePBTouchScreenControls_TouchInput() {
71
+ return { inputAction: 0, hide: false, icon: undefined };
72
+ }
73
+ /**
74
+ * @public
75
+ */
76
+ export var PBTouchScreenControls_TouchInput;
77
+ (function (PBTouchScreenControls_TouchInput) {
78
+ function encode(message, writer = _m0.Writer.create()) {
79
+ if (message.inputAction !== 0) {
80
+ writer.uint32(8).int32(message.inputAction);
81
+ }
82
+ if (message.hide === true) {
83
+ writer.uint32(16).bool(message.hide);
84
+ }
85
+ if (message.icon !== undefined) {
86
+ TextureUnion.encode(message.icon, writer.uint32(26).fork()).ldelim();
87
+ }
88
+ return writer;
89
+ }
90
+ PBTouchScreenControls_TouchInput.encode = encode;
91
+ function decode(input, length) {
92
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
93
+ let end = length === undefined ? reader.len : reader.pos + length;
94
+ const message = createBasePBTouchScreenControls_TouchInput();
95
+ while (reader.pos < end) {
96
+ const tag = reader.uint32();
97
+ switch (tag >>> 3) {
98
+ case 1:
99
+ if (tag !== 8) {
100
+ break;
101
+ }
102
+ message.inputAction = reader.int32();
103
+ continue;
104
+ case 2:
105
+ if (tag !== 16) {
106
+ break;
107
+ }
108
+ message.hide = reader.bool();
109
+ continue;
110
+ case 3:
111
+ if (tag !== 26) {
112
+ break;
113
+ }
114
+ message.icon = TextureUnion.decode(reader, reader.uint32());
115
+ continue;
116
+ }
117
+ if ((tag & 7) === 4 || tag === 0) {
118
+ break;
119
+ }
120
+ reader.skipType(tag & 7);
121
+ }
122
+ return message;
123
+ }
124
+ PBTouchScreenControls_TouchInput.decode = decode;
125
+ })(PBTouchScreenControls_TouchInput || (PBTouchScreenControls_TouchInput = {}));
@@ -0,0 +1,36 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ import { InputAction } from "./common/input_action.gen";
3
+ /**
4
+ * The UiInputBinding component binds a UI entity to one or more InputActions. While the
5
+ * element is pressed (touch or pointer) the listed actions are held down, driving both
6
+ * the local player input and scene InputAction listeners, just like the native on-screen
7
+ * buttons. It is typically combined with PBTouchScreenControls to replace the native
8
+ * controls with a custom touch UI.
9
+ *
10
+ * Release semantics: the held actions are released as soon as the press that started them
11
+ * ends. A renderer MUST release all actions held by this binding when any of the following
12
+ * happens: the press/touch is lifted or cancelled, the pointer/touch leaves the element
13
+ * (loses press ownership), the actions list changes (the previous set is released before
14
+ * the new set is applied), the component is removed or its actions list becomes empty, the
15
+ * UI element is hidden, disabled or removed from the tree, or the scene unloads. In short,
16
+ * no action may remain held once the element is no longer both present and actively pressed.
17
+ *
18
+ * Multi-touch: the binding is a single held state, not reference-counted per pointer. The
19
+ * actions are held while the element is pressed and released when that press ends; a second
20
+ * simultaneous press on the same element does not stack, and does not extend the hold past
21
+ * the first release.
22
+ */
23
+ /**
24
+ * @public
25
+ */
26
+ export interface PBUiInputBinding {
27
+ /** the input actions fired while this element is pressed */
28
+ actions: InputAction[];
29
+ }
30
+ /**
31
+ * @public
32
+ */
33
+ export declare namespace PBUiInputBinding {
34
+ function encode(message: PBUiInputBinding, writer?: _m0.Writer): _m0.Writer;
35
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputBinding;
36
+ }
@@ -0,0 +1,50 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+ const protobufPackageSarasa = "decentraland.sdk.components";
4
+ function createBasePBUiInputBinding() {
5
+ return { actions: [] };
6
+ }
7
+ /**
8
+ * @public
9
+ */
10
+ export var PBUiInputBinding;
11
+ (function (PBUiInputBinding) {
12
+ function encode(message, writer = _m0.Writer.create()) {
13
+ writer.uint32(10).fork();
14
+ for (const v of message.actions) {
15
+ writer.int32(v);
16
+ }
17
+ writer.ldelim();
18
+ return writer;
19
+ }
20
+ PBUiInputBinding.encode = encode;
21
+ function decode(input, length) {
22
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
23
+ let end = length === undefined ? reader.len : reader.pos + length;
24
+ const message = createBasePBUiInputBinding();
25
+ while (reader.pos < end) {
26
+ const tag = reader.uint32();
27
+ switch (tag >>> 3) {
28
+ case 1:
29
+ if (tag === 8) {
30
+ message.actions.push(reader.int32());
31
+ continue;
32
+ }
33
+ if (tag === 10) {
34
+ const end2 = reader.uint32() + reader.pos;
35
+ while (reader.pos < end2) {
36
+ message.actions.push(reader.int32());
37
+ }
38
+ continue;
39
+ }
40
+ break;
41
+ }
42
+ if ((tag & 7) === 4 || tag === 0) {
43
+ break;
44
+ }
45
+ reader.skipType(tag & 7);
46
+ }
47
+ return message;
48
+ }
49
+ PBUiInputBinding.decode = decode;
50
+ })(PBUiInputBinding || (PBUiInputBinding = {}));
@@ -6,6 +6,7 @@ import { CameraTransition } from "./common/camera_transition.gen";
6
6
  * an 'instant' transition (like using speed/time = 0)
7
7
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
8
8
  * the holding entity transform).
9
+ * * The fov defines the Field of View of the virtual camera
9
10
  */
10
11
  /**
11
12
  * @public
@@ -13,6 +14,8 @@ import { CameraTransition } from "./common/camera_transition.gen";
13
14
  export interface PBVirtualCamera {
14
15
  defaultTransition?: CameraTransition | undefined;
15
16
  lookAtEntity?: number | undefined;
17
+ /** default: 60 */
18
+ fov?: number | undefined;
16
19
  }
17
20
  /**
18
21
  * @public
@@ -3,7 +3,7 @@ import _m0 from "protobufjs/minimal";
3
3
  import { CameraTransition } from "./common/camera_transition.gen";
4
4
  const protobufPackageSarasa = "decentraland.sdk.components";
5
5
  function createBasePBVirtualCamera() {
6
- return { defaultTransition: undefined, lookAtEntity: undefined };
6
+ return { defaultTransition: undefined, lookAtEntity: undefined, fov: undefined };
7
7
  }
8
8
  /**
9
9
  * @public
@@ -17,6 +17,9 @@ export var PBVirtualCamera;
17
17
  if (message.lookAtEntity !== undefined) {
18
18
  writer.uint32(16).uint32(message.lookAtEntity);
19
19
  }
20
+ if (message.fov !== undefined) {
21
+ writer.uint32(29).float(message.fov);
22
+ }
20
23
  return writer;
21
24
  }
22
25
  PBVirtualCamera.encode = encode;
@@ -39,6 +42,12 @@ export var PBVirtualCamera;
39
42
  }
40
43
  message.lookAtEntity = reader.uint32();
41
44
  continue;
45
+ case 3:
46
+ if (tag !== 29) {
47
+ break;
48
+ }
49
+ message.fov = reader.float();
50
+ continue;
42
51
  }
43
52
  if ((tag & 7) === 4 || tag === 0) {
44
53
  break;