@dcl/protocol 1.0.0-4419899496.commit-11d63ec → 1.0.0-4440731539.commit-a2174f5

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 (173) hide show
  1. package/out-js/decentraland/common/border_rect.gen.d.ts +54 -0
  2. package/out-js/decentraland/common/border_rect.gen.js +87 -0
  3. package/out-js/decentraland/common/border_rect.gen.js.map +1 -0
  4. package/out-js/decentraland/common/colors.gen.d.ts +82 -0
  5. package/out-js/decentraland/common/colors.gen.js +152 -0
  6. package/out-js/decentraland/common/colors.gen.js.map +1 -0
  7. package/out-js/decentraland/common/texture.gen.d.ts +319 -0
  8. package/out-js/decentraland/common/texture.gen.js +384 -0
  9. package/out-js/decentraland/common/texture.gen.js.map +1 -0
  10. package/out-js/decentraland/sdk/components/animator.gen.d.ts +184 -0
  11. package/out-js/decentraland/sdk/components/animator.gen.js +172 -0
  12. package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -0
  13. package/out-js/decentraland/sdk/components/audio_source.gen.d.ts +74 -0
  14. package/out-js/decentraland/sdk/components/audio_source.gen.js +96 -0
  15. package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -0
  16. package/out-js/decentraland/sdk/components/audio_stream.gen.d.ts +56 -0
  17. package/out-js/decentraland/sdk/components/audio_stream.gen.js +78 -0
  18. package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -0
  19. package/out-js/decentraland/sdk/components/avatar_attach.gen.d.ts +65 -0
  20. package/out-js/decentraland/sdk/components/avatar_attach.gen.js +115 -0
  21. package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -0
  22. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +100 -0
  23. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +137 -0
  24. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -0
  25. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +192 -0
  26. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +210 -0
  27. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -0
  28. package/out-js/decentraland/sdk/components/billboard.gen.d.ts +59 -0
  29. package/out-js/decentraland/sdk/components/billboard.gen.js +114 -0
  30. package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -0
  31. package/out-js/decentraland/sdk/components/camera_mode.gen.d.ts +44 -0
  32. package/out-js/decentraland/sdk/components/camera_mode.gen.js +59 -0
  33. package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -0
  34. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +84 -0
  35. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +71 -0
  36. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -0
  37. package/out-js/decentraland/sdk/components/common/camera_type.gen.d.ts +8 -0
  38. package/out-js/decentraland/sdk/components/common/camera_type.gen.js +39 -0
  39. package/out-js/decentraland/sdk/components/common/camera_type.gen.js.map +1 -0
  40. package/out-js/decentraland/sdk/components/common/id.gen.d.ts +1 -0
  41. package/out-js/decentraland/sdk/components/common/id.gen.js +6 -0
  42. package/out-js/decentraland/sdk/components/common/id.gen.js.map +1 -0
  43. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +20 -0
  44. package/out-js/decentraland/sdk/components/common/input_action.gen.js +111 -0
  45. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -0
  46. package/out-js/decentraland/sdk/components/common/texts.gen.d.ts +23 -0
  47. package/out-js/decentraland/sdk/components/common/texts.gen.js +120 -0
  48. package/out-js/decentraland/sdk/components/common/texts.gen.js.map +1 -0
  49. package/out-js/decentraland/sdk/components/gltf_container.gen.d.ts +45 -0
  50. package/out-js/decentraland/sdk/components/gltf_container.gen.js +58 -0
  51. package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -0
  52. package/out-js/decentraland/sdk/components/material.gen.d.ts +3452 -0
  53. package/out-js/decentraland/sdk/components/material.gen.js +437 -0
  54. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -0
  55. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +250 -0
  56. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +324 -0
  57. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -0
  58. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +284 -0
  59. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +320 -0
  60. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -0
  61. package/out-js/decentraland/sdk/components/nft_shape.gen.d.ts +114 -0
  62. package/out-js/decentraland/sdk/components/nft_shape.gen.js +242 -0
  63. package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -0
  64. package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +249 -0
  65. package/out-js/decentraland/sdk/components/pointer_events.gen.js +248 -0
  66. package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -0
  67. package/out-js/decentraland/sdk/components/pointer_events_result.gen.d.ts +241 -0
  68. package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +99 -0
  69. package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -0
  70. package/out-js/decentraland/sdk/components/pointer_lock.gen.d.ts +43 -0
  71. package/out-js/decentraland/sdk/components/pointer_lock.gen.js +58 -0
  72. package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -0
  73. package/out-js/decentraland/sdk/components/raycast.gen.d.ts +118 -0
  74. package/out-js/decentraland/sdk/components/raycast.gen.js +127 -0
  75. package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -0
  76. package/out-js/decentraland/sdk/components/raycast_result.gen.d.ts +536 -0
  77. package/out-js/decentraland/sdk/components/raycast_result.gen.js +243 -0
  78. package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -0
  79. package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +247 -0
  80. package/out-js/decentraland/sdk/components/text_shape.gen.js +274 -0
  81. package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -0
  82. package/out-js/decentraland/sdk/components/ui_background.gen.d.ts +369 -0
  83. package/out-js/decentraland/sdk/components/ui_background.gen.js +175 -0
  84. package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -0
  85. package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +115 -0
  86. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +152 -0
  87. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -0
  88. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.d.ts +38 -0
  89. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js +58 -0
  90. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -0
  91. package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +140 -0
  92. package/out-js/decentraland/sdk/components/ui_input.gen.js +140 -0
  93. package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -0
  94. package/out-js/decentraland/sdk/components/ui_input_result.gen.d.ts +38 -0
  95. package/out-js/decentraland/sdk/components/ui_input_result.gen.js +58 -0
  96. package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -0
  97. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +95 -0
  98. package/out-js/decentraland/sdk/components/ui_text.gen.js +101 -0
  99. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -0
  100. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +403 -0
  101. package/out-js/decentraland/sdk/components/ui_transform.gen.js +1000 -0
  102. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -0
  103. package/out-js/decentraland/sdk/components/video_player.gen.d.ts +69 -0
  104. package/out-js/decentraland/sdk/components/video_player.gen.js +112 -0
  105. package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -0
  106. package/out-js/decentraland/sdk/components/visibility_component.gen.d.ts +39 -0
  107. package/out-js/decentraland/sdk/components/visibility_component.gen.js +58 -0
  108. package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -0
  109. package/out-js/google/protobuf/descriptor.gen.d.ts +87384 -0
  110. package/out-js/google/protobuf/descriptor.gen.js +2645 -0
  111. package/out-js/google/protobuf/descriptor.gen.js.map +1 -0
  112. package/out-js/sdk-components.gen.d.ts +1 -0
  113. package/out-js/sdk-components.gen.js +6 -0
  114. package/out-js/sdk-components.gen.js.map +1 -0
  115. package/out-ts/decentraland/common/border_rect.gen.ts +108 -0
  116. package/out-ts/decentraland/common/colors.gen.ts +184 -0
  117. package/out-ts/decentraland/common/texture.gen.ts +454 -0
  118. package/out-ts/decentraland/sdk/components/animator.gen.ts +229 -0
  119. package/out-ts/decentraland/sdk/components/audio_source.gen.ts +141 -0
  120. package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +109 -0
  121. package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +147 -0
  122. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +172 -0
  123. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +288 -0
  124. package/out-ts/decentraland/sdk/components/billboard.gen.ts +140 -0
  125. package/out-ts/decentraland/sdk/components/camera_mode.gen.ts +81 -0
  126. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +106 -0
  127. package/out-ts/decentraland/sdk/components/common/camera_type.gen.ts +36 -0
  128. package/out-ts/decentraland/sdk/components/common/id.gen.ts +3 -0
  129. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +108 -0
  130. package/out-ts/decentraland/sdk/components/common/texts.gen.ts +117 -0
  131. package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +82 -0
  132. package/out-ts/decentraland/sdk/components/material.gen.ts +546 -0
  133. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +403 -0
  134. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +395 -0
  135. package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +275 -0
  136. package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +316 -0
  137. package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +124 -0
  138. package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +80 -0
  139. package/out-ts/decentraland/sdk/components/raycast.gen.ts +159 -0
  140. package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +315 -0
  141. package/out-ts/decentraland/sdk/components/text_shape.gen.ts +385 -0
  142. package/out-ts/decentraland/sdk/components/ui_background.gen.ts +199 -0
  143. package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +194 -0
  144. package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +75 -0
  145. package/out-ts/decentraland/sdk/components/ui_input.gen.ts +182 -0
  146. package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +75 -0
  147. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +140 -0
  148. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +1104 -0
  149. package/out-ts/decentraland/sdk/components/video_player.gen.ts +148 -0
  150. package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +76 -0
  151. package/out-ts/google/protobuf/descriptor.gen.ts +2961 -0
  152. package/out-ts/sdk-components.gen.ts +3 -0
  153. package/package.json +2 -2
  154. package/proto/decentraland/sdk/components/animator.proto +15 -8
  155. package/proto/decentraland/sdk/components/audio_source.proto +16 -6
  156. package/proto/decentraland/sdk/components/audio_stream.proto +6 -3
  157. package/proto/decentraland/sdk/components/avatar_attach.proto +14 -6
  158. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +20 -7
  159. package/proto/decentraland/sdk/components/avatar_shape.proto +34 -24
  160. package/proto/decentraland/sdk/components/billboard.proto +12 -5
  161. package/proto/decentraland/sdk/components/camera_mode.proto +3 -1
  162. package/proto/decentraland/sdk/components/camera_mode_area.proto +13 -2
  163. package/proto/decentraland/sdk/components/gltf_container.proto +5 -5
  164. package/proto/decentraland/sdk/components/mesh_collider.proto +22 -9
  165. package/proto/decentraland/sdk/components/mesh_renderer.proto +17 -4
  166. package/proto/decentraland/sdk/components/nft_shape.proto +15 -7
  167. package/proto/decentraland/sdk/components/pointer_events.proto +28 -14
  168. package/proto/decentraland/sdk/components/pointer_lock.proto +3 -1
  169. package/proto/decentraland/sdk/components/raycast.proto +10 -7
  170. package/proto/decentraland/sdk/components/raycast_result.proto +17 -12
  171. package/proto/decentraland/sdk/components/text_shape.proto +33 -24
  172. package/proto/decentraland/sdk/components/ui_text.proto +8 -5
  173. package/public/sdk-components.proto +33 -0
@@ -0,0 +1,172 @@
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.PBAnimationState = exports.PBAnimator = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
+ exports.protobufPackage = "decentraland.sdk.components";
10
+ function createBasePBAnimator() {
11
+ return { states: [] };
12
+ }
13
+ exports.PBAnimator = {
14
+ encode(message, writer = minimal_1.default.Writer.create()) {
15
+ for (const v of message.states) {
16
+ exports.PBAnimationState.encode(v, writer.uint32(10).fork()).ldelim();
17
+ }
18
+ return writer;
19
+ },
20
+ decode(input, length) {
21
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
22
+ let end = length === undefined ? reader.len : reader.pos + length;
23
+ const message = createBasePBAnimator();
24
+ while (reader.pos < end) {
25
+ const tag = reader.uint32();
26
+ switch (tag >>> 3) {
27
+ case 1:
28
+ message.states.push(exports.PBAnimationState.decode(reader, reader.uint32()));
29
+ break;
30
+ default:
31
+ reader.skipType(tag & 7);
32
+ break;
33
+ }
34
+ }
35
+ return message;
36
+ },
37
+ fromJSON(object) {
38
+ return { states: Array.isArray(object === null || object === void 0 ? void 0 : object.states) ? object.states.map((e) => exports.PBAnimationState.fromJSON(e)) : [] };
39
+ },
40
+ toJSON(message) {
41
+ const obj = {};
42
+ if (message.states) {
43
+ obj.states = message.states.map((e) => e ? exports.PBAnimationState.toJSON(e) : undefined);
44
+ }
45
+ else {
46
+ obj.states = [];
47
+ }
48
+ return obj;
49
+ },
50
+ create(base) {
51
+ return exports.PBAnimator.fromPartial(base !== null && base !== void 0 ? base : {});
52
+ },
53
+ fromPartial(object) {
54
+ var _a;
55
+ const message = createBasePBAnimator();
56
+ message.states = ((_a = object.states) === null || _a === void 0 ? void 0 : _a.map((e) => exports.PBAnimationState.fromPartial(e))) || [];
57
+ return message;
58
+ },
59
+ };
60
+ function createBasePBAnimationState() {
61
+ return {
62
+ name: "",
63
+ clip: "",
64
+ playing: undefined,
65
+ weight: undefined,
66
+ speed: undefined,
67
+ loop: undefined,
68
+ shouldReset: undefined,
69
+ };
70
+ }
71
+ exports.PBAnimationState = {
72
+ encode(message, writer = minimal_1.default.Writer.create()) {
73
+ if (message.name !== "") {
74
+ writer.uint32(10).string(message.name);
75
+ }
76
+ if (message.clip !== "") {
77
+ writer.uint32(18).string(message.clip);
78
+ }
79
+ if (message.playing !== undefined) {
80
+ writer.uint32(24).bool(message.playing);
81
+ }
82
+ if (message.weight !== undefined) {
83
+ writer.uint32(37).float(message.weight);
84
+ }
85
+ if (message.speed !== undefined) {
86
+ writer.uint32(45).float(message.speed);
87
+ }
88
+ if (message.loop !== undefined) {
89
+ writer.uint32(48).bool(message.loop);
90
+ }
91
+ if (message.shouldReset !== undefined) {
92
+ writer.uint32(56).bool(message.shouldReset);
93
+ }
94
+ return writer;
95
+ },
96
+ decode(input, length) {
97
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
98
+ let end = length === undefined ? reader.len : reader.pos + length;
99
+ const message = createBasePBAnimationState();
100
+ while (reader.pos < end) {
101
+ const tag = reader.uint32();
102
+ switch (tag >>> 3) {
103
+ case 1:
104
+ message.name = reader.string();
105
+ break;
106
+ case 2:
107
+ message.clip = reader.string();
108
+ break;
109
+ case 3:
110
+ message.playing = reader.bool();
111
+ break;
112
+ case 4:
113
+ message.weight = reader.float();
114
+ break;
115
+ case 5:
116
+ message.speed = reader.float();
117
+ break;
118
+ case 6:
119
+ message.loop = reader.bool();
120
+ break;
121
+ case 7:
122
+ message.shouldReset = reader.bool();
123
+ break;
124
+ default:
125
+ reader.skipType(tag & 7);
126
+ break;
127
+ }
128
+ }
129
+ return message;
130
+ },
131
+ fromJSON(object) {
132
+ return {
133
+ name: isSet(object.name) ? String(object.name) : "",
134
+ clip: isSet(object.clip) ? String(object.clip) : "",
135
+ playing: isSet(object.playing) ? Boolean(object.playing) : undefined,
136
+ weight: isSet(object.weight) ? Number(object.weight) : undefined,
137
+ speed: isSet(object.speed) ? Number(object.speed) : undefined,
138
+ loop: isSet(object.loop) ? Boolean(object.loop) : undefined,
139
+ shouldReset: isSet(object.shouldReset) ? Boolean(object.shouldReset) : undefined,
140
+ };
141
+ },
142
+ toJSON(message) {
143
+ const obj = {};
144
+ message.name !== undefined && (obj.name = message.name);
145
+ message.clip !== undefined && (obj.clip = message.clip);
146
+ message.playing !== undefined && (obj.playing = message.playing);
147
+ message.weight !== undefined && (obj.weight = message.weight);
148
+ message.speed !== undefined && (obj.speed = message.speed);
149
+ message.loop !== undefined && (obj.loop = message.loop);
150
+ message.shouldReset !== undefined && (obj.shouldReset = message.shouldReset);
151
+ return obj;
152
+ },
153
+ create(base) {
154
+ return exports.PBAnimationState.fromPartial(base !== null && base !== void 0 ? base : {});
155
+ },
156
+ fromPartial(object) {
157
+ var _a, _b, _c, _d, _e, _f, _g;
158
+ const message = createBasePBAnimationState();
159
+ message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
160
+ message.clip = (_b = object.clip) !== null && _b !== void 0 ? _b : "";
161
+ message.playing = (_c = object.playing) !== null && _c !== void 0 ? _c : undefined;
162
+ message.weight = (_d = object.weight) !== null && _d !== void 0 ? _d : undefined;
163
+ message.speed = (_e = object.speed) !== null && _e !== void 0 ? _e : undefined;
164
+ message.loop = (_f = object.loop) !== null && _f !== void 0 ? _f : undefined;
165
+ message.shouldReset = (_g = object.shouldReset) !== null && _g !== void 0 ? _g : undefined;
166
+ return message;
167
+ },
168
+ };
169
+ function isSet(value) {
170
+ return value !== null && value !== undefined;
171
+ }
172
+ //# sourceMappingURL=animator.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"animator.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/animator.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAyC7D,SAAS,oBAAoB;IAC3B,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;AACxB,CAAC;AAEY,QAAA,UAAU,GAAG;IACxB,MAAM,CAAC,OAAmB,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAClE,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,MAAM,EAAE;YAC9B,wBAAgB,CAAC,MAAM,CAAC,CAAE,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;SAChE;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,CAAC,KAA8B,EAAE,MAAe;QACpD,MAAM,MAAM,GAAG,KAAK,YAAY,iBAAG,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,iBAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC3E,IAAI,GAAG,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC;QAClE,MAAM,OAAO,GAAG,oBAAoB,EAAE,CAAC;QACvC,OAAO,MAAM,CAAC,GAAG,GAAG,GAAG,EAAE;YACvB,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;YAC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ACjC,OAAO,CAAC,IAAI,GAAG,MAAA,MAAM,CAAC,IAAI,mCAAI,EAAE,CAAC;QACjC,OAAO,CAAC,OAAO,GAAG,MAAA,MAAM,CAAC,OAAO,mCAAI,SAAS,CAAC;QAC9C,OAAO,CAAC,MAAM,GAAG,MAAA,MAAM,CAAC,MAAM,mCAAI,SAAS,CAAC;QAC5C,OAAO,CAAC,KAAK,GAAG,MAAA,MAAM,CAAC,KAAK,mCAAI,SAAS,CAAC;QAC1C,OAAO,CAAC,IAAI,GAAG,MAAA,MAAM,CAAC,IAAI,mCAAI,SAAS,CAAC;QACxC,OAAO,CAAC,WAAW,GAAG,MAAA,MAAM,CAAC,WAAW,mCAAI,SAAS,CAAC;QACtD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC;AAcF,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,74 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "decentraland.sdk.components";
3
+ /**
4
+ * The AudioSource component can play an audio clips bundled with the scene, controlling some
5
+ * of the behavior.
6
+ *
7
+ * In each AudioSource instance, the sound is spatially located at the associated entity’s position,
8
+ * given by its Transform.
9
+ *
10
+ * Note that the `audio_clip_url` is not actually a URL, but rather the path of a file bundled with
11
+ * the scene and declared in its manifest. The name was chosen because the URL use-case will
12
+ * eventually be supported.
13
+ */
14
+ export interface PBAudioSource {
15
+ /** whether the clip is currently playing. */
16
+ playing?: boolean | undefined;
17
+ /** the audio volume (default: 1.0). */
18
+ volume?: number | undefined;
19
+ /** whether the clip should restart when finished. */
20
+ loop?: boolean | undefined;
21
+ /** the audio pitch (default: 1.0). */
22
+ pitch?: number | undefined;
23
+ /** the clip path as given in the `files` array of the scene's manifest. */
24
+ audioClipUrl: string;
25
+ }
26
+ export declare const PBAudioSource: {
27
+ encode(message: PBAudioSource, writer?: _m0.Writer): _m0.Writer;
28
+ decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioSource;
29
+ fromJSON(object: any): PBAudioSource;
30
+ toJSON(message: PBAudioSource): unknown;
31
+ create<I extends {
32
+ playing?: boolean | undefined;
33
+ volume?: number | undefined;
34
+ loop?: boolean | undefined;
35
+ pitch?: number | undefined;
36
+ audioClipUrl?: string | undefined;
37
+ } & {
38
+ playing?: boolean | undefined;
39
+ volume?: number | undefined;
40
+ loop?: boolean | undefined;
41
+ pitch?: number | undefined;
42
+ audioClipUrl?: string | undefined;
43
+ } & { [K in Exclude<keyof I, keyof PBAudioSource>]: never; }>(base?: I | undefined): PBAudioSource;
44
+ fromPartial<I_1 extends {
45
+ playing?: boolean | undefined;
46
+ volume?: number | undefined;
47
+ loop?: boolean | undefined;
48
+ pitch?: number | undefined;
49
+ audioClipUrl?: string | undefined;
50
+ } & {
51
+ playing?: boolean | undefined;
52
+ volume?: number | undefined;
53
+ loop?: boolean | undefined;
54
+ pitch?: number | undefined;
55
+ audioClipUrl?: string | undefined;
56
+ } & { [K_1 in Exclude<keyof I_1, keyof PBAudioSource>]: never; }>(object: I_1): PBAudioSource;
57
+ };
58
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
59
+ 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 {
60
+ $case: string;
61
+ } ? {
62
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
63
+ } & {
64
+ $case: T["$case"];
65
+ } : T extends {} ? {
66
+ [K in keyof T]?: DeepPartial<T[K]>;
67
+ } : Partial<T>;
68
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
69
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
70
+ [K in keyof P]: Exact<P[K], I[K]>;
71
+ } & {
72
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
73
+ };
74
+ export {};
@@ -0,0 +1,96 @@
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.PBAudioSource = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
+ exports.protobufPackage = "decentraland.sdk.components";
10
+ function createBasePBAudioSource() {
11
+ return { playing: undefined, volume: undefined, loop: undefined, pitch: undefined, audioClipUrl: "" };
12
+ }
13
+ exports.PBAudioSource = {
14
+ encode(message, writer = minimal_1.default.Writer.create()) {
15
+ if (message.playing !== undefined) {
16
+ writer.uint32(8).bool(message.playing);
17
+ }
18
+ if (message.volume !== undefined) {
19
+ writer.uint32(21).float(message.volume);
20
+ }
21
+ if (message.loop !== undefined) {
22
+ writer.uint32(24).bool(message.loop);
23
+ }
24
+ if (message.pitch !== undefined) {
25
+ writer.uint32(37).float(message.pitch);
26
+ }
27
+ if (message.audioClipUrl !== "") {
28
+ writer.uint32(42).string(message.audioClipUrl);
29
+ }
30
+ return writer;
31
+ },
32
+ decode(input, length) {
33
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
34
+ let end = length === undefined ? reader.len : reader.pos + length;
35
+ const message = createBasePBAudioSource();
36
+ while (reader.pos < end) {
37
+ const tag = reader.uint32();
38
+ switch (tag >>> 3) {
39
+ case 1:
40
+ message.playing = reader.bool();
41
+ break;
42
+ case 2:
43
+ message.volume = reader.float();
44
+ break;
45
+ case 3:
46
+ message.loop = reader.bool();
47
+ break;
48
+ case 4:
49
+ message.pitch = reader.float();
50
+ break;
51
+ case 5:
52
+ message.audioClipUrl = reader.string();
53
+ break;
54
+ default:
55
+ reader.skipType(tag & 7);
56
+ break;
57
+ }
58
+ }
59
+ return message;
60
+ },
61
+ fromJSON(object) {
62
+ return {
63
+ playing: isSet(object.playing) ? Boolean(object.playing) : undefined,
64
+ volume: isSet(object.volume) ? Number(object.volume) : undefined,
65
+ loop: isSet(object.loop) ? Boolean(object.loop) : undefined,
66
+ pitch: isSet(object.pitch) ? Number(object.pitch) : undefined,
67
+ audioClipUrl: isSet(object.audioClipUrl) ? String(object.audioClipUrl) : "",
68
+ };
69
+ },
70
+ toJSON(message) {
71
+ const obj = {};
72
+ message.playing !== undefined && (obj.playing = message.playing);
73
+ message.volume !== undefined && (obj.volume = message.volume);
74
+ message.loop !== undefined && (obj.loop = message.loop);
75
+ message.pitch !== undefined && (obj.pitch = message.pitch);
76
+ message.audioClipUrl !== undefined && (obj.audioClipUrl = message.audioClipUrl);
77
+ return obj;
78
+ },
79
+ create(base) {
80
+ return exports.PBAudioSource.fromPartial(base !== null && base !== void 0 ? base : {});
81
+ },
82
+ fromPartial(object) {
83
+ var _a, _b, _c, _d, _e;
84
+ const message = createBasePBAudioSource();
85
+ message.playing = (_a = object.playing) !== null && _a !== void 0 ? _a : undefined;
86
+ message.volume = (_b = object.volume) !== null && _b !== void 0 ? _b : undefined;
87
+ message.loop = (_c = object.loop) !== null && _c !== void 0 ? _c : undefined;
88
+ message.pitch = (_d = object.pitch) !== null && _d !== void 0 ? _d : undefined;
89
+ message.audioClipUrl = (_e = object.audioClipUrl) !== null && _e !== void 0 ? _e : "";
90
+ return message;
91
+ },
92
+ };
93
+ function isSet(value) {
94
+ return value !== null && value !== undefined;
95
+ }
96
+ //# sourceMappingURL=audio_source.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audio_source.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/audio_source.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAkC7D,SAAS,uBAAuB;IAC9B,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,E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AA,MAAM,CAAC,IAAI,mCAAI,SAAS,CAAC;QACxC,OAAO,CAAC,KAAK,GAAG,MAAA,MAAM,CAAC,KAAK,mCAAI,SAAS,CAAC;QAC1C,OAAO,CAAC,YAAY,GAAG,MAAA,MAAM,CAAC,YAAY,mCAAI,EAAE,CAAC;QACjD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC;AAcF,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,56 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "decentraland.sdk.components";
3
+ /**
4
+ * The AudioStream component can play external audio clips given a URL, streaming it in real-time.
5
+ *
6
+ * Despite being attached to a particular entity, the sound is not affected by its position.
7
+ */
8
+ export interface PBAudioStream {
9
+ /** whether the clip is currently playing */
10
+ playing?: boolean | undefined;
11
+ /** the audio volume (default: 1.0) */
12
+ volume?: number | undefined;
13
+ /** the audio stream HTTP URL */
14
+ url: string;
15
+ }
16
+ export declare const PBAudioStream: {
17
+ encode(message: PBAudioStream, writer?: _m0.Writer): _m0.Writer;
18
+ decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioStream;
19
+ fromJSON(object: any): PBAudioStream;
20
+ toJSON(message: PBAudioStream): unknown;
21
+ create<I extends {
22
+ playing?: boolean | undefined;
23
+ volume?: number | undefined;
24
+ url?: string | undefined;
25
+ } & {
26
+ playing?: boolean | undefined;
27
+ volume?: number | undefined;
28
+ url?: string | undefined;
29
+ } & { [K in Exclude<keyof I, keyof PBAudioStream>]: never; }>(base?: I | undefined): PBAudioStream;
30
+ fromPartial<I_1 extends {
31
+ playing?: boolean | undefined;
32
+ volume?: number | undefined;
33
+ url?: string | undefined;
34
+ } & {
35
+ playing?: boolean | undefined;
36
+ volume?: number | undefined;
37
+ url?: string | undefined;
38
+ } & { [K_1 in Exclude<keyof I_1, keyof PBAudioStream>]: never; }>(object: I_1): PBAudioStream;
39
+ };
40
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
41
+ 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 {
42
+ $case: string;
43
+ } ? {
44
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
45
+ } & {
46
+ $case: T["$case"];
47
+ } : T extends {} ? {
48
+ [K in keyof T]?: DeepPartial<T[K]>;
49
+ } : Partial<T>;
50
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
51
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
52
+ [K in keyof P]: Exact<P[K], I[K]>;
53
+ } & {
54
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
55
+ };
56
+ export {};
@@ -0,0 +1,78 @@
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.PBAudioStream = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
+ exports.protobufPackage = "decentraland.sdk.components";
10
+ function createBasePBAudioStream() {
11
+ return { playing: undefined, volume: undefined, url: "" };
12
+ }
13
+ exports.PBAudioStream = {
14
+ encode(message, writer = minimal_1.default.Writer.create()) {
15
+ if (message.playing !== undefined) {
16
+ writer.uint32(8).bool(message.playing);
17
+ }
18
+ if (message.volume !== undefined) {
19
+ writer.uint32(21).float(message.volume);
20
+ }
21
+ if (message.url !== "") {
22
+ writer.uint32(26).string(message.url);
23
+ }
24
+ return writer;
25
+ },
26
+ decode(input, length) {
27
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
28
+ let end = length === undefined ? reader.len : reader.pos + length;
29
+ const message = createBasePBAudioStream();
30
+ while (reader.pos < end) {
31
+ const tag = reader.uint32();
32
+ switch (tag >>> 3) {
33
+ case 1:
34
+ message.playing = reader.bool();
35
+ break;
36
+ case 2:
37
+ message.volume = reader.float();
38
+ break;
39
+ case 3:
40
+ message.url = reader.string();
41
+ break;
42
+ default:
43
+ reader.skipType(tag & 7);
44
+ break;
45
+ }
46
+ }
47
+ return message;
48
+ },
49
+ fromJSON(object) {
50
+ return {
51
+ playing: isSet(object.playing) ? Boolean(object.playing) : undefined,
52
+ volume: isSet(object.volume) ? Number(object.volume) : undefined,
53
+ url: isSet(object.url) ? String(object.url) : "",
54
+ };
55
+ },
56
+ toJSON(message) {
57
+ const obj = {};
58
+ message.playing !== undefined && (obj.playing = message.playing);
59
+ message.volume !== undefined && (obj.volume = message.volume);
60
+ message.url !== undefined && (obj.url = message.url);
61
+ return obj;
62
+ },
63
+ create(base) {
64
+ return exports.PBAudioStream.fromPartial(base !== null && base !== void 0 ? base : {});
65
+ },
66
+ fromPartial(object) {
67
+ var _a, _b, _c;
68
+ const message = createBasePBAudioStream();
69
+ message.playing = (_a = object.playing) !== null && _a !== void 0 ? _a : undefined;
70
+ message.volume = (_b = object.volume) !== null && _b !== void 0 ? _b : undefined;
71
+ message.url = (_c = object.url) !== null && _c !== void 0 ? _c : "";
72
+ return message;
73
+ },
74
+ };
75
+ function isSet(value) {
76
+ return value !== null && value !== undefined;
77
+ }
78
+ //# sourceMappingURL=audio_stream.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audio_stream.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/audio_stream.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAoB7D,SAAS,uBAAuB;IAC9B,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC;AAC5D,CAAC;AAEY,QAAA,aAAa,GAAG;IAC3B,M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ACnE,MAAM,OAAO,GAAG,uBAAuB,EAAE,CAAC;QAC1C,OAAO,CAAC,OAAO,GAAG,MAAA,MAAM,CAAC,OAAO,mCAAI,SAAS,CAAC;QAC9C,OAAO,CAAC,MAAM,GAAG,MAAA,MAAM,CAAC,MAAM,mCAAI,SAAS,CAAC;QAC5C,OAAO,CAAC,GAAG,GAAG,MAAA,MAAM,CAAC,GAAG,mCAAI,EAAE,CAAC;QAC/B,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC;AAcF,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,65 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "decentraland.sdk.components";
3
+ /** AvatarAnchorPointType determines the part of the avatar's body that anchors the Entity. */
4
+ export declare enum AvatarAnchorPointType {
5
+ AAPT_POSITION = 0,
6
+ AAPT_NAME_TAG = 1,
7
+ AAPT_LEFT_HAND = 2,
8
+ AAPT_RIGHT_HAND = 3,
9
+ UNRECOGNIZED = -1
10
+ }
11
+ export declare function avatarAnchorPointTypeFromJSON(object: any): AvatarAnchorPointType;
12
+ export declare function avatarAnchorPointTypeToJSON(object: AvatarAnchorPointType): string;
13
+ /**
14
+ * The AvatarAttach component automatically repositions an Entity to maintain the same position and
15
+ * rotation relative to some part of an avatar, called the "anchor point". The Entity
16
+ * will follow this anchor as it moves.
17
+ *
18
+ * The Entity's own Transform is overridden by this component. To offset position and adjust scale,
19
+ * add a child to the anchored Entity and set a Transform on it instead.
20
+ *
21
+ * AvatarAnchorPointType indicates which part of the avatar the Entity must follow.
22
+ */
23
+ export interface PBAvatarAttach {
24
+ /** the user ID of the avatar (default: local user) */
25
+ avatarId?: string | undefined;
26
+ /** the anchor point. */
27
+ anchorPointId: AvatarAnchorPointType;
28
+ }
29
+ export declare const PBAvatarAttach: {
30
+ encode(message: PBAvatarAttach, writer?: _m0.Writer): _m0.Writer;
31
+ decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarAttach;
32
+ fromJSON(object: any): PBAvatarAttach;
33
+ toJSON(message: PBAvatarAttach): unknown;
34
+ create<I extends {
35
+ avatarId?: string | undefined;
36
+ anchorPointId?: AvatarAnchorPointType | undefined;
37
+ } & {
38
+ avatarId?: string | undefined;
39
+ anchorPointId?: AvatarAnchorPointType | undefined;
40
+ } & { [K in Exclude<keyof I, keyof PBAvatarAttach>]: never; }>(base?: I | undefined): PBAvatarAttach;
41
+ fromPartial<I_1 extends {
42
+ avatarId?: string | undefined;
43
+ anchorPointId?: AvatarAnchorPointType | undefined;
44
+ } & {
45
+ avatarId?: string | undefined;
46
+ anchorPointId?: AvatarAnchorPointType | undefined;
47
+ } & { [K_1 in Exclude<keyof I_1, keyof PBAvatarAttach>]: never; }>(object: I_1): PBAvatarAttach;
48
+ };
49
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
50
+ 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 {
51
+ $case: string;
52
+ } ? {
53
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
54
+ } & {
55
+ $case: T["$case"];
56
+ } : T extends {} ? {
57
+ [K in keyof T]?: DeepPartial<T[K]>;
58
+ } : Partial<T>;
59
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
60
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
61
+ [K in keyof P]: Exact<P[K], I[K]>;
62
+ } & {
63
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
64
+ };
65
+ export {};