@dcl/protocol 1.0.0-22578238676.commit-38e6cb5 → 1.0.0-22584214067.commit-276e5b7

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 (132) 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 +58 -0
  8. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +393 -19
  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/tween.gen.d.ts +36 -0
  44. package/out-js/decentraland/sdk/components/tween.gen.js +302 -6
  45. package/out-js/decentraland/sdk/components/tween.gen.js.map +1 -1
  46. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +0 -4
  47. package/out-js/decentraland/sdk/components/ui_text.gen.js +1 -30
  48. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
  49. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +0 -33
  50. package/out-js/decentraland/sdk/components/ui_transform.gen.js +3 -176
  51. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  52. package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +0 -3
  53. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +2 -40
  54. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
  55. package/out-ts/decentraland/common/texture.gen.ts +4 -119
  56. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +0 -242
  57. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +451 -3
  58. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +1 -20
  59. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +1 -292
  60. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +1 -23
  61. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +2 -218
  62. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +43 -16
  63. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -108
  64. package/out-ts/decentraland/sdk/components/material.gen.ts +1 -102
  65. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +0 -99
  66. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +3 -100
  67. package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +44 -3
  68. package/out-ts/decentraland/sdk/components/raycast.gen.ts +1 -73
  69. package/out-ts/decentraland/sdk/components/tween.gen.ts +333 -0
  70. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +1 -40
  71. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +0 -193
  72. package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +2 -44
  73. package/package.json +4 -7
  74. package/proto/decentraland/common/texture.proto +1 -8
  75. package/proto/decentraland/kernel/apis/restricted_actions.proto +0 -22
  76. package/proto/decentraland/kernel/comms/rfc4/comms.proto +38 -1
  77. package/proto/decentraland/sdk/components/audio_analysis.proto +44 -0
  78. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +1 -2
  79. package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +3 -0
  80. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +0 -21
  81. package/proto/decentraland/sdk/components/avatar_shape.proto +0 -1
  82. package/proto/decentraland/sdk/components/camera_mode_area.proto +3 -22
  83. package/proto/decentraland/sdk/components/common/input_action.proto +7 -3
  84. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
  85. package/proto/decentraland/sdk/components/input_modifier.proto +2 -0
  86. package/proto/decentraland/sdk/components/light_source.proto +1 -1
  87. package/proto/decentraland/sdk/components/material.proto +1 -13
  88. package/proto/decentraland/sdk/components/mesh_collider.proto +0 -7
  89. package/proto/decentraland/sdk/components/mesh_renderer.proto +3 -8
  90. package/proto/decentraland/sdk/components/pointer_events.proto +2 -0
  91. package/proto/decentraland/sdk/components/primary_pointer_info.proto +0 -5
  92. package/proto/decentraland/sdk/components/raycast.proto +0 -13
  93. package/proto/decentraland/sdk/components/tween.proto +18 -0
  94. package/proto/decentraland/sdk/components/ui_text.proto +0 -3
  95. package/proto/decentraland/sdk/components/ui_transform.proto +0 -20
  96. package/proto/decentraland/sdk/components/virtual_camera.proto +2 -0
  97. package/proto/decentraland/social_service/v2/social_service_v2.proto +0 -3
  98. package/public/sdk-components.proto +0 -4
  99. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +0 -45
  100. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +0 -138
  101. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js.map +0 -1
  102. package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +0 -34
  103. package/out-js/decentraland/sdk/components/avatar_movement.gen.js +0 -101
  104. package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +0 -1
  105. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +0 -44
  106. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +0 -178
  107. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +0 -1
  108. package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +0 -66
  109. package/out-js/decentraland/sdk/components/gltf_node.gen.js +0 -69
  110. package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +0 -1
  111. package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +0 -43
  112. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +0 -122
  113. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +0 -1
  114. package/out-js/decentraland/sdk/components/input_modifier.gen.d.ts +0 -50
  115. package/out-js/decentraland/sdk/components/input_modifier.gen.js +0 -207
  116. package/out-js/decentraland/sdk/components/input_modifier.gen.js.map +0 -1
  117. package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +0 -183
  118. package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +0 -119
  119. package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +0 -210
  120. package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +0 -116
  121. package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
  122. package/out-ts/decentraland/sdk/components/input_modifier.gen.ts +0 -235
  123. package/proto/decentraland/sdk/components/avatar_movement.proto +0 -45
  124. package/proto/decentraland/sdk/components/avatar_movement_info.proto +0 -20
  125. package/proto/decentraland/sdk/components/camera_layer.proto +0 -30
  126. package/proto/decentraland/sdk/components/camera_layers.proto +0 -11
  127. package/proto/decentraland/sdk/components/global_light.proto +0 -22
  128. package/proto/decentraland/sdk/components/gltf_node.proto +0 -42
  129. package/proto/decentraland/sdk/components/gltf_node_state.proto +0 -20
  130. package/proto/decentraland/sdk/components/texture_camera.proto +0 -46
  131. package/proto/decentraland/sdk/components/ui_canvas.proto +0 -16
  132. package/proto/decentraland/sdk/components/ui_scroll_result.proto +0 -12
@@ -1 +0,0 @@
1
- {"version":3,"file":"gltf_node_state.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/gltf_node_state.gen.ts"],"names":[],"mappings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OAAO,CAAC,KAAK,GAAG,MAAA,MAAM,CAAC,KAAK,mCAAI,CAAC,CAAC;QAClC,OAAO,CAAC,KAAK,GAAG,MAAA,MAAM,CAAC,KAAK,mCAAI,SAAS,CAAC;QAC1C,OAAO,OAAO,CAAC;IACjB,CAAC;IALe,2BAAW,cAK1B,CAAA;AACH,CAAC,EAjEgB,eAAe,+BAAf,eAAe,QAiE/B;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -1,50 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "decentraland.sdk.components";
3
- export interface PBInputModifier {
4
- mode?: {
5
- $case: "standard";
6
- standard: PBInputModifier_StandardInput;
7
- } | undefined;
8
- }
9
- /** when a boolean = false (default) the message is ignored and doesn't consume bandwidth */
10
- export interface PBInputModifier_StandardInput {
11
- disableAll?: boolean | undefined;
12
- disableWalk?: boolean | undefined;
13
- disableJog?: boolean | undefined;
14
- disableRun?: boolean | undefined;
15
- disableJump?: boolean | undefined;
16
- disableEmote?: boolean | undefined;
17
- }
18
- export declare namespace PBInputModifier {
19
- function encode(message: PBInputModifier, writer?: _m0.Writer): _m0.Writer;
20
- function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier;
21
- function fromJSON(object: any): PBInputModifier;
22
- function toJSON(message: PBInputModifier): unknown;
23
- function create<I extends Exact<DeepPartial<PBInputModifier>, I>>(base?: I): PBInputModifier;
24
- function fromPartial<I extends Exact<DeepPartial<PBInputModifier>, I>>(object: I): PBInputModifier;
25
- }
26
- export declare namespace PBInputModifier_StandardInput {
27
- function encode(message: PBInputModifier_StandardInput, writer?: _m0.Writer): _m0.Writer;
28
- function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
29
- function fromJSON(object: any): PBInputModifier_StandardInput;
30
- function toJSON(message: PBInputModifier_StandardInput): unknown;
31
- function create<I extends Exact<DeepPartial<PBInputModifier_StandardInput>, I>>(base?: I): PBInputModifier_StandardInput;
32
- function fromPartial<I extends Exact<DeepPartial<PBInputModifier_StandardInput>, I>>(object: I): PBInputModifier_StandardInput;
33
- }
34
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
35
- 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 {
36
- $case: string;
37
- } ? {
38
- [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
39
- } & {
40
- $case: T["$case"];
41
- } : T extends {} ? {
42
- [K in keyof T]?: DeepPartial<T[K]>;
43
- } : Partial<T>;
44
- type KeysOfUnion<T> = T extends T ? keyof T : never;
45
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
46
- [K in keyof P]: Exact<P[K], I[K]>;
47
- } & {
48
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
49
- };
50
- export {};
@@ -1,207 +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.PBInputModifier_StandardInput = exports.PBInputModifier = exports.protobufPackage = void 0;
7
- /* eslint-disable */
8
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
- exports.protobufPackage = "decentraland.sdk.components";
10
- function createBasePBInputModifier() {
11
- return { mode: undefined };
12
- }
13
- var PBInputModifier;
14
- (function (PBInputModifier) {
15
- function encode(message, writer = minimal_1.default.Writer.create()) {
16
- var _a;
17
- switch ((_a = message.mode) === null || _a === void 0 ? void 0 : _a.$case) {
18
- case "standard":
19
- PBInputModifier_StandardInput.encode(message.mode.standard, writer.uint32(10).fork()).ldelim();
20
- break;
21
- }
22
- return writer;
23
- }
24
- PBInputModifier.encode = encode;
25
- function decode(input, length) {
26
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
27
- let end = length === undefined ? reader.len : reader.pos + length;
28
- const message = createBasePBInputModifier();
29
- while (reader.pos < end) {
30
- const tag = reader.uint32();
31
- switch (tag >>> 3) {
32
- case 1:
33
- if (tag !== 10) {
34
- break;
35
- }
36
- message.mode = { $case: "standard", standard: PBInputModifier_StandardInput.decode(reader, reader.uint32()) };
37
- continue;
38
- }
39
- if ((tag & 7) === 4 || tag === 0) {
40
- break;
41
- }
42
- reader.skipType(tag & 7);
43
- }
44
- return message;
45
- }
46
- PBInputModifier.decode = decode;
47
- function fromJSON(object) {
48
- return {
49
- mode: isSet(object.standard)
50
- ? { $case: "standard", standard: PBInputModifier_StandardInput.fromJSON(object.standard) }
51
- : undefined,
52
- };
53
- }
54
- PBInputModifier.fromJSON = fromJSON;
55
- function toJSON(message) {
56
- var _a, _b, _c;
57
- const obj = {};
58
- ((_a = message.mode) === null || _a === void 0 ? void 0 : _a.$case) === "standard" &&
59
- (obj.standard = ((_b = message.mode) === null || _b === void 0 ? void 0 : _b.standard)
60
- ? PBInputModifier_StandardInput.toJSON((_c = message.mode) === null || _c === void 0 ? void 0 : _c.standard)
61
- : undefined);
62
- return obj;
63
- }
64
- PBInputModifier.toJSON = toJSON;
65
- function create(base) {
66
- return PBInputModifier.fromPartial(base !== null && base !== void 0 ? base : {});
67
- }
68
- PBInputModifier.create = create;
69
- function fromPartial(object) {
70
- var _a, _b, _c;
71
- const message = createBasePBInputModifier();
72
- if (((_a = object.mode) === null || _a === void 0 ? void 0 : _a.$case) === "standard" && ((_b = object.mode) === null || _b === void 0 ? void 0 : _b.standard) !== undefined && ((_c = object.mode) === null || _c === void 0 ? void 0 : _c.standard) !== null) {
73
- message.mode = { $case: "standard", standard: PBInputModifier_StandardInput.fromPartial(object.mode.standard) };
74
- }
75
- return message;
76
- }
77
- PBInputModifier.fromPartial = fromPartial;
78
- })(PBInputModifier || (exports.PBInputModifier = PBInputModifier = {}));
79
- function createBasePBInputModifier_StandardInput() {
80
- return {
81
- disableAll: undefined,
82
- disableWalk: undefined,
83
- disableJog: undefined,
84
- disableRun: undefined,
85
- disableJump: undefined,
86
- disableEmote: undefined,
87
- };
88
- }
89
- var PBInputModifier_StandardInput;
90
- (function (PBInputModifier_StandardInput) {
91
- function encode(message, writer = minimal_1.default.Writer.create()) {
92
- if (message.disableAll !== undefined) {
93
- writer.uint32(8).bool(message.disableAll);
94
- }
95
- if (message.disableWalk !== undefined) {
96
- writer.uint32(16).bool(message.disableWalk);
97
- }
98
- if (message.disableJog !== undefined) {
99
- writer.uint32(24).bool(message.disableJog);
100
- }
101
- if (message.disableRun !== undefined) {
102
- writer.uint32(32).bool(message.disableRun);
103
- }
104
- if (message.disableJump !== undefined) {
105
- writer.uint32(40).bool(message.disableJump);
106
- }
107
- if (message.disableEmote !== undefined) {
108
- writer.uint32(48).bool(message.disableEmote);
109
- }
110
- return writer;
111
- }
112
- PBInputModifier_StandardInput.encode = encode;
113
- function decode(input, length) {
114
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
115
- let end = length === undefined ? reader.len : reader.pos + length;
116
- const message = createBasePBInputModifier_StandardInput();
117
- while (reader.pos < end) {
118
- const tag = reader.uint32();
119
- switch (tag >>> 3) {
120
- case 1:
121
- if (tag !== 8) {
122
- break;
123
- }
124
- message.disableAll = reader.bool();
125
- continue;
126
- case 2:
127
- if (tag !== 16) {
128
- break;
129
- }
130
- message.disableWalk = reader.bool();
131
- continue;
132
- case 3:
133
- if (tag !== 24) {
134
- break;
135
- }
136
- message.disableJog = reader.bool();
137
- continue;
138
- case 4:
139
- if (tag !== 32) {
140
- break;
141
- }
142
- message.disableRun = reader.bool();
143
- continue;
144
- case 5:
145
- if (tag !== 40) {
146
- break;
147
- }
148
- message.disableJump = reader.bool();
149
- continue;
150
- case 6:
151
- if (tag !== 48) {
152
- break;
153
- }
154
- message.disableEmote = reader.bool();
155
- continue;
156
- }
157
- if ((tag & 7) === 4 || tag === 0) {
158
- break;
159
- }
160
- reader.skipType(tag & 7);
161
- }
162
- return message;
163
- }
164
- PBInputModifier_StandardInput.decode = decode;
165
- function fromJSON(object) {
166
- return {
167
- disableAll: isSet(object.disableAll) ? Boolean(object.disableAll) : undefined,
168
- disableWalk: isSet(object.disableWalk) ? Boolean(object.disableWalk) : undefined,
169
- disableJog: isSet(object.disableJog) ? Boolean(object.disableJog) : undefined,
170
- disableRun: isSet(object.disableRun) ? Boolean(object.disableRun) : undefined,
171
- disableJump: isSet(object.disableJump) ? Boolean(object.disableJump) : undefined,
172
- disableEmote: isSet(object.disableEmote) ? Boolean(object.disableEmote) : undefined,
173
- };
174
- }
175
- PBInputModifier_StandardInput.fromJSON = fromJSON;
176
- function toJSON(message) {
177
- const obj = {};
178
- message.disableAll !== undefined && (obj.disableAll = message.disableAll);
179
- message.disableWalk !== undefined && (obj.disableWalk = message.disableWalk);
180
- message.disableJog !== undefined && (obj.disableJog = message.disableJog);
181
- message.disableRun !== undefined && (obj.disableRun = message.disableRun);
182
- message.disableJump !== undefined && (obj.disableJump = message.disableJump);
183
- message.disableEmote !== undefined && (obj.disableEmote = message.disableEmote);
184
- return obj;
185
- }
186
- PBInputModifier_StandardInput.toJSON = toJSON;
187
- function create(base) {
188
- return PBInputModifier_StandardInput.fromPartial(base !== null && base !== void 0 ? base : {});
189
- }
190
- PBInputModifier_StandardInput.create = create;
191
- function fromPartial(object) {
192
- var _a, _b, _c, _d, _e, _f;
193
- const message = createBasePBInputModifier_StandardInput();
194
- message.disableAll = (_a = object.disableAll) !== null && _a !== void 0 ? _a : undefined;
195
- message.disableWalk = (_b = object.disableWalk) !== null && _b !== void 0 ? _b : undefined;
196
- message.disableJog = (_c = object.disableJog) !== null && _c !== void 0 ? _c : undefined;
197
- message.disableRun = (_d = object.disableRun) !== null && _d !== void 0 ? _d : undefined;
198
- message.disableJump = (_e = object.disableJump) !== null && _e !== void 0 ? _e : undefined;
199
- message.disableEmote = (_f = object.disableEmote) !== null && _f !== void 0 ? _f : undefined;
200
- return message;
201
- }
202
- PBInputModifier_StandardInput.fromPartial = fromPartial;
203
- })(PBInputModifier_StandardInput || (exports.PBInputModifier_StandardInput = PBInputModifier_StandardInput = {}));
204
- function isSet(value) {
205
- return value !== null && value !== undefined;
206
- }
207
- //# sourceMappingURL=input_modifier.gen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input_modifier.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/input_modifier.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAgB7D,SAAS,yBAAyB;IAChC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;AAC7B,CAAC;AAED,IAAiB,eAAe,CA6D/B;AA7DD,WAAiB,eAAe;IAC9B,SAAgB,MAAM,CAAC,OAAwB,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;;QACvF,QAAQ,MAAA,OAAO,CAAC,IAAI,0CAAE,KAAK,EAAE,CAAC;YAC5B,KAAK,UAAU;gBACb,6BAA6B,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;gBAC/F,MAAM;QACV,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAPe,sBAAM,SAOrB,CAAA;IAED,SAAgB,MAAM,CAAC,KAA8B,EAAE,MAAe;QACpE,MAAM,MAAM,GAAG,KAAK,YAAY,iBAAG,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,iBAAG,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC9E,IAAI,GAAG,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,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S,CAAC;QACpD,OAAO,CAAC,WAAW,GAAG,MAAA,MAAM,CAAC,WAAW,mCAAI,SAAS,CAAC;QACtD,OAAO,CAAC,YAAY,GAAG,MAAA,MAAM,CAAC,YAAY,mCAAI,SAAS,CAAC;QACxD,OAAO,OAAO,CAAC;IACjB,CAAC;IAXe,yCAAW,cAW1B,CAAA;AACH,CAAC,EAzHgB,6BAA6B,6CAA7B,6BAA6B,QAyH7C;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -1,183 +0,0 @@
1
- /* eslint-disable */
2
- import _m0 from "protobufjs/minimal";
3
-
4
- export const protobufPackage = "decentraland.sdk.components";
5
-
6
- /**
7
- * The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
8
- * as the avatar movement speed, jump height etc.
9
- */
10
- export interface PBAvatarLocomotionSettings {
11
- /** Maximum speed when walking (in meters per second) */
12
- walkSpeed?:
13
- | number
14
- | undefined;
15
- /** Maximum speed when jogging (in meters per second) */
16
- jogSpeed?:
17
- | number
18
- | undefined;
19
- /** Maximum speed when running (in meters per second) */
20
- runSpeed?:
21
- | number
22
- | undefined;
23
- /** Height of a regular jump (in meters) */
24
- jumpHeight?:
25
- | number
26
- | undefined;
27
- /** Height of a jump while running (in meters) */
28
- runJumpHeight?:
29
- | number
30
- | undefined;
31
- /** Cooldown time after a hard landing before the avatar can move again (in seconds) */
32
- hardLandingCooldown?: number | undefined;
33
- }
34
-
35
- function createBasePBAvatarLocomotionSettings(): PBAvatarLocomotionSettings {
36
- return {
37
- walkSpeed: undefined,
38
- jogSpeed: undefined,
39
- runSpeed: undefined,
40
- jumpHeight: undefined,
41
- runJumpHeight: undefined,
42
- hardLandingCooldown: undefined,
43
- };
44
- }
45
-
46
- export namespace PBAvatarLocomotionSettings {
47
- export function encode(message: PBAvatarLocomotionSettings, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
48
- if (message.walkSpeed !== undefined) {
49
- writer.uint32(13).float(message.walkSpeed);
50
- }
51
- if (message.jogSpeed !== undefined) {
52
- writer.uint32(21).float(message.jogSpeed);
53
- }
54
- if (message.runSpeed !== undefined) {
55
- writer.uint32(29).float(message.runSpeed);
56
- }
57
- if (message.jumpHeight !== undefined) {
58
- writer.uint32(37).float(message.jumpHeight);
59
- }
60
- if (message.runJumpHeight !== undefined) {
61
- writer.uint32(45).float(message.runJumpHeight);
62
- }
63
- if (message.hardLandingCooldown !== undefined) {
64
- writer.uint32(53).float(message.hardLandingCooldown);
65
- }
66
- return writer;
67
- }
68
-
69
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings {
70
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
71
- let end = length === undefined ? reader.len : reader.pos + length;
72
- const message = createBasePBAvatarLocomotionSettings();
73
- while (reader.pos < end) {
74
- const tag = reader.uint32();
75
- switch (tag >>> 3) {
76
- case 1:
77
- if (tag !== 13) {
78
- break;
79
- }
80
-
81
- message.walkSpeed = reader.float();
82
- continue;
83
- case 2:
84
- if (tag !== 21) {
85
- break;
86
- }
87
-
88
- message.jogSpeed = reader.float();
89
- continue;
90
- case 3:
91
- if (tag !== 29) {
92
- break;
93
- }
94
-
95
- message.runSpeed = reader.float();
96
- continue;
97
- case 4:
98
- if (tag !== 37) {
99
- break;
100
- }
101
-
102
- message.jumpHeight = reader.float();
103
- continue;
104
- case 5:
105
- if (tag !== 45) {
106
- break;
107
- }
108
-
109
- message.runJumpHeight = reader.float();
110
- continue;
111
- case 6:
112
- if (tag !== 53) {
113
- break;
114
- }
115
-
116
- message.hardLandingCooldown = reader.float();
117
- continue;
118
- }
119
- if ((tag & 7) === 4 || tag === 0) {
120
- break;
121
- }
122
- reader.skipType(tag & 7);
123
- }
124
- return message;
125
- }
126
-
127
- export function fromJSON(object: any): PBAvatarLocomotionSettings {
128
- return {
129
- walkSpeed: isSet(object.walkSpeed) ? Number(object.walkSpeed) : undefined,
130
- jogSpeed: isSet(object.jogSpeed) ? Number(object.jogSpeed) : undefined,
131
- runSpeed: isSet(object.runSpeed) ? Number(object.runSpeed) : undefined,
132
- jumpHeight: isSet(object.jumpHeight) ? Number(object.jumpHeight) : undefined,
133
- runJumpHeight: isSet(object.runJumpHeight) ? Number(object.runJumpHeight) : undefined,
134
- hardLandingCooldown: isSet(object.hardLandingCooldown) ? Number(object.hardLandingCooldown) : undefined,
135
- };
136
- }
137
-
138
- export function toJSON(message: PBAvatarLocomotionSettings): unknown {
139
- const obj: any = {};
140
- message.walkSpeed !== undefined && (obj.walkSpeed = message.walkSpeed);
141
- message.jogSpeed !== undefined && (obj.jogSpeed = message.jogSpeed);
142
- message.runSpeed !== undefined && (obj.runSpeed = message.runSpeed);
143
- message.jumpHeight !== undefined && (obj.jumpHeight = message.jumpHeight);
144
- message.runJumpHeight !== undefined && (obj.runJumpHeight = message.runJumpHeight);
145
- message.hardLandingCooldown !== undefined && (obj.hardLandingCooldown = message.hardLandingCooldown);
146
- return obj;
147
- }
148
-
149
- export function create<I extends Exact<DeepPartial<PBAvatarLocomotionSettings>, I>>(
150
- base?: I,
151
- ): PBAvatarLocomotionSettings {
152
- return PBAvatarLocomotionSettings.fromPartial(base ?? {});
153
- }
154
-
155
- export function fromPartial<I extends Exact<DeepPartial<PBAvatarLocomotionSettings>, I>>(
156
- object: I,
157
- ): PBAvatarLocomotionSettings {
158
- const message = createBasePBAvatarLocomotionSettings();
159
- message.walkSpeed = object.walkSpeed ?? undefined;
160
- message.jogSpeed = object.jogSpeed ?? undefined;
161
- message.runSpeed = object.runSpeed ?? undefined;
162
- message.jumpHeight = object.jumpHeight ?? undefined;
163
- message.runJumpHeight = object.runJumpHeight ?? undefined;
164
- message.hardLandingCooldown = object.hardLandingCooldown ?? undefined;
165
- return message;
166
- }
167
- }
168
-
169
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
170
-
171
- export type DeepPartial<T> = T extends Builtin ? T
172
- : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
173
- : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
174
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
175
- : Partial<T>;
176
-
177
- type KeysOfUnion<T> = T extends T ? keyof T : never;
178
- export type Exact<P, I extends P> = P extends Builtin ? P
179
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
180
-
181
- function isSet(value: any): boolean {
182
- return value !== null && value !== undefined;
183
- }
@@ -1,119 +0,0 @@
1
- /* eslint-disable */
2
- import _m0 from "protobufjs/minimal";
3
- import { Vector3 } from "../../common/vectors.gen";
4
-
5
- export const protobufPackage = "decentraland.sdk.components";
6
-
7
- export interface PBAvatarMovement {
8
- velocity:
9
- | Vector3
10
- | undefined;
11
- /** 0-360, we don't allow pitch/roll */
12
- orientation: number;
13
- groundDirection?: Vector3 | undefined;
14
- }
15
-
16
- function createBasePBAvatarMovement(): PBAvatarMovement {
17
- return { velocity: undefined, orientation: 0, groundDirection: undefined };
18
- }
19
-
20
- export namespace PBAvatarMovement {
21
- export function encode(message: PBAvatarMovement, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
22
- if (message.velocity !== undefined) {
23
- Vector3.encode(message.velocity, writer.uint32(10).fork()).ldelim();
24
- }
25
- if (message.orientation !== 0) {
26
- writer.uint32(21).float(message.orientation);
27
- }
28
- if (message.groundDirection !== undefined) {
29
- Vector3.encode(message.groundDirection, writer.uint32(26).fork()).ldelim();
30
- }
31
- return writer;
32
- }
33
-
34
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarMovement {
35
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
36
- let end = length === undefined ? reader.len : reader.pos + length;
37
- const message = createBasePBAvatarMovement();
38
- while (reader.pos < end) {
39
- const tag = reader.uint32();
40
- switch (tag >>> 3) {
41
- case 1:
42
- if (tag !== 10) {
43
- break;
44
- }
45
-
46
- message.velocity = Vector3.decode(reader, reader.uint32());
47
- continue;
48
- case 2:
49
- if (tag !== 21) {
50
- break;
51
- }
52
-
53
- message.orientation = reader.float();
54
- continue;
55
- case 3:
56
- if (tag !== 26) {
57
- break;
58
- }
59
-
60
- message.groundDirection = Vector3.decode(reader, reader.uint32());
61
- continue;
62
- }
63
- if ((tag & 7) === 4 || tag === 0) {
64
- break;
65
- }
66
- reader.skipType(tag & 7);
67
- }
68
- return message;
69
- }
70
-
71
- export function fromJSON(object: any): PBAvatarMovement {
72
- return {
73
- velocity: isSet(object.velocity) ? Vector3.fromJSON(object.velocity) : undefined,
74
- orientation: isSet(object.orientation) ? Number(object.orientation) : 0,
75
- groundDirection: isSet(object.groundDirection) ? Vector3.fromJSON(object.groundDirection) : undefined,
76
- };
77
- }
78
-
79
- export function toJSON(message: PBAvatarMovement): unknown {
80
- const obj: any = {};
81
- message.velocity !== undefined && (obj.velocity = message.velocity ? Vector3.toJSON(message.velocity) : undefined);
82
- message.orientation !== undefined && (obj.orientation = message.orientation);
83
- message.groundDirection !== undefined &&
84
- (obj.groundDirection = message.groundDirection ? Vector3.toJSON(message.groundDirection) : undefined);
85
- return obj;
86
- }
87
-
88
- export function create<I extends Exact<DeepPartial<PBAvatarMovement>, I>>(base?: I): PBAvatarMovement {
89
- return PBAvatarMovement.fromPartial(base ?? {});
90
- }
91
-
92
- export function fromPartial<I extends Exact<DeepPartial<PBAvatarMovement>, I>>(object: I): PBAvatarMovement {
93
- const message = createBasePBAvatarMovement();
94
- message.velocity = (object.velocity !== undefined && object.velocity !== null)
95
- ? Vector3.fromPartial(object.velocity)
96
- : undefined;
97
- message.orientation = object.orientation ?? 0;
98
- message.groundDirection = (object.groundDirection !== undefined && object.groundDirection !== null)
99
- ? Vector3.fromPartial(object.groundDirection)
100
- : undefined;
101
- return message;
102
- }
103
- }
104
-
105
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
106
-
107
- export type DeepPartial<T> = T extends Builtin ? T
108
- : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
109
- : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
110
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
111
- : Partial<T>;
112
-
113
- type KeysOfUnion<T> = T extends T ? keyof T : never;
114
- export type Exact<P, I extends P> = P extends Builtin ? P
115
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
116
-
117
- function isSet(value: any): boolean {
118
- return value !== null && value !== undefined;
119
- }