@dcl/protocol 1.0.0-29287211316.commit-e44c721 → 1.0.0-29501656680.commit-6a4362a
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.
- package/README.md +0 -217
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +0 -21
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +4 -124
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +0 -8
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +1 -35
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/touch_screen_controls.gen.d.ts +77 -0
- package/out-js/decentraland/sdk/components/touch_screen_controls.gen.js +201 -0
- package/out-js/decentraland/sdk/components/touch_screen_controls.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input_binding.gen.d.ts +52 -0
- package/out-js/decentraland/sdk/components/ui_input_binding.gen.js +81 -0
- package/out-js/decentraland/sdk/components/ui_input_binding.gen.js.map +1 -0
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +2 -166
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +0 -34
- package/out-ts/decentraland/sdk/components/touch_screen_controls.gen.ts +265 -0
- package/out-ts/decentraland/sdk/components/ui_input_binding.gen.ts +114 -0
- package/package.json +6 -9
- package/proto/buf.yaml +47 -0
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +0 -11
- package/proto/decentraland/sdk/components/avatar_shape.proto +0 -5
- package/proto/decentraland/sdk/components/light_source.proto +1 -1
- package/proto/decentraland/sdk/components/touch_screen_controls.proto +38 -0
- package/proto/decentraland/sdk/components/ui_input_binding.proto +27 -0
- package/proto/decentraland/sdk/components/virtual_camera.proto +0 -2
- package/proto/google/LICENSE +27 -0
- package/proto/google/README.md +1 -0
- package/proto/google/api/annotations.json +83 -0
- package/proto/google/api/annotations.proto +11 -0
- package/proto/google/api/http.json +86 -0
- package/proto/google/api/http.proto +31 -0
- package/proto/google/protobuf/api.json +118 -0
- package/proto/google/protobuf/api.proto +34 -0
- package/proto/google/protobuf/descriptor.json +739 -0
- package/proto/google/protobuf/descriptor.proto +286 -0
- package/proto/google/protobuf/source_context.json +20 -0
- package/proto/google/protobuf/source_context.proto +7 -0
- package/proto/google/protobuf/type.json +202 -0
- package/proto/google/protobuf/type.proto +89 -0
- package/public/sdk-components.proto +2 -0
- package/proto/decentraland/common/options.proto +0 -51
- package/proto/decentraland/common/quantization_example.proto +0 -164
- package/proto/decentraland/pulse/pulse_client.proto +0 -79
- package/proto/decentraland/pulse/pulse_server.proto +0 -144
- package/proto/decentraland/pulse/pulse_shared.proto +0 -57
- package/protoc-gen-bitwise/generator_csharp.js +0 -248
- package/protoc-gen-bitwise/options.js +0 -139
- package/protoc-gen-bitwise/plugin.js +0 -87
- package/protoc-gen-bitwise/runtime/cs/Quantize.cs +0 -70
- package/protoc-gen-bitwise/wire.js +0 -239
|
@@ -0,0 +1,201 @@
|
|
|
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.PBTouchScreenControls_TouchInput = exports.PBTouchScreenControls = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
+
const texture_gen_1 = require("../../common/texture.gen");
|
|
10
|
+
const input_action_gen_1 = require("./common/input_action.gen");
|
|
11
|
+
exports.protobufPackage = "decentraland.sdk.components";
|
|
12
|
+
function createBasePBTouchScreenControls() {
|
|
13
|
+
return { touchInputs: [], mainAction: undefined, hideJoystick: false, hideCrosshair: false };
|
|
14
|
+
}
|
|
15
|
+
var PBTouchScreenControls;
|
|
16
|
+
(function (PBTouchScreenControls) {
|
|
17
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
18
|
+
for (const v of message.touchInputs) {
|
|
19
|
+
PBTouchScreenControls_TouchInput.encode(v, writer.uint32(10).fork()).ldelim();
|
|
20
|
+
}
|
|
21
|
+
if (message.mainAction !== undefined) {
|
|
22
|
+
writer.uint32(16).int32(message.mainAction);
|
|
23
|
+
}
|
|
24
|
+
if (message.hideJoystick === true) {
|
|
25
|
+
writer.uint32(24).bool(message.hideJoystick);
|
|
26
|
+
}
|
|
27
|
+
if (message.hideCrosshair === true) {
|
|
28
|
+
writer.uint32(32).bool(message.hideCrosshair);
|
|
29
|
+
}
|
|
30
|
+
return writer;
|
|
31
|
+
}
|
|
32
|
+
PBTouchScreenControls.encode = encode;
|
|
33
|
+
function decode(input, length) {
|
|
34
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
35
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36
|
+
const message = createBasePBTouchScreenControls();
|
|
37
|
+
while (reader.pos < end) {
|
|
38
|
+
const tag = reader.uint32();
|
|
39
|
+
switch (tag >>> 3) {
|
|
40
|
+
case 1:
|
|
41
|
+
if (tag !== 10) {
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
message.touchInputs.push(PBTouchScreenControls_TouchInput.decode(reader, reader.uint32()));
|
|
45
|
+
continue;
|
|
46
|
+
case 2:
|
|
47
|
+
if (tag !== 16) {
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
message.mainAction = reader.int32();
|
|
51
|
+
continue;
|
|
52
|
+
case 3:
|
|
53
|
+
if (tag !== 24) {
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
message.hideJoystick = reader.bool();
|
|
57
|
+
continue;
|
|
58
|
+
case 4:
|
|
59
|
+
if (tag !== 32) {
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
message.hideCrosshair = reader.bool();
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
reader.skipType(tag & 7);
|
|
69
|
+
}
|
|
70
|
+
return message;
|
|
71
|
+
}
|
|
72
|
+
PBTouchScreenControls.decode = decode;
|
|
73
|
+
function fromJSON(object) {
|
|
74
|
+
return {
|
|
75
|
+
touchInputs: Array.isArray(object === null || object === void 0 ? void 0 : object.touchInputs)
|
|
76
|
+
? object.touchInputs.map((e) => PBTouchScreenControls_TouchInput.fromJSON(e))
|
|
77
|
+
: [],
|
|
78
|
+
mainAction: isSet(object.mainAction) ? (0, input_action_gen_1.inputActionFromJSON)(object.mainAction) : undefined,
|
|
79
|
+
hideJoystick: isSet(object.hideJoystick) ? Boolean(object.hideJoystick) : false,
|
|
80
|
+
hideCrosshair: isSet(object.hideCrosshair) ? Boolean(object.hideCrosshair) : false,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
PBTouchScreenControls.fromJSON = fromJSON;
|
|
84
|
+
function toJSON(message) {
|
|
85
|
+
const obj = {};
|
|
86
|
+
if (message.touchInputs) {
|
|
87
|
+
obj.touchInputs = message.touchInputs.map((e) => e ? PBTouchScreenControls_TouchInput.toJSON(e) : undefined);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
obj.touchInputs = [];
|
|
91
|
+
}
|
|
92
|
+
message.mainAction !== undefined &&
|
|
93
|
+
(obj.mainAction = message.mainAction !== undefined ? (0, input_action_gen_1.inputActionToJSON)(message.mainAction) : undefined);
|
|
94
|
+
message.hideJoystick !== undefined && (obj.hideJoystick = message.hideJoystick);
|
|
95
|
+
message.hideCrosshair !== undefined && (obj.hideCrosshair = message.hideCrosshair);
|
|
96
|
+
return obj;
|
|
97
|
+
}
|
|
98
|
+
PBTouchScreenControls.toJSON = toJSON;
|
|
99
|
+
function create(base) {
|
|
100
|
+
return PBTouchScreenControls.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
101
|
+
}
|
|
102
|
+
PBTouchScreenControls.create = create;
|
|
103
|
+
function fromPartial(object) {
|
|
104
|
+
var _a, _b, _c, _d;
|
|
105
|
+
const message = createBasePBTouchScreenControls();
|
|
106
|
+
message.touchInputs = ((_a = object.touchInputs) === null || _a === void 0 ? void 0 : _a.map((e) => PBTouchScreenControls_TouchInput.fromPartial(e))) || [];
|
|
107
|
+
message.mainAction = (_b = object.mainAction) !== null && _b !== void 0 ? _b : undefined;
|
|
108
|
+
message.hideJoystick = (_c = object.hideJoystick) !== null && _c !== void 0 ? _c : false;
|
|
109
|
+
message.hideCrosshair = (_d = object.hideCrosshair) !== null && _d !== void 0 ? _d : false;
|
|
110
|
+
return message;
|
|
111
|
+
}
|
|
112
|
+
PBTouchScreenControls.fromPartial = fromPartial;
|
|
113
|
+
})(PBTouchScreenControls || (exports.PBTouchScreenControls = PBTouchScreenControls = {}));
|
|
114
|
+
function createBasePBTouchScreenControls_TouchInput() {
|
|
115
|
+
return { inputAction: 0, hide: false, icon: undefined };
|
|
116
|
+
}
|
|
117
|
+
var PBTouchScreenControls_TouchInput;
|
|
118
|
+
(function (PBTouchScreenControls_TouchInput) {
|
|
119
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
120
|
+
if (message.inputAction !== 0) {
|
|
121
|
+
writer.uint32(8).int32(message.inputAction);
|
|
122
|
+
}
|
|
123
|
+
if (message.hide === true) {
|
|
124
|
+
writer.uint32(16).bool(message.hide);
|
|
125
|
+
}
|
|
126
|
+
if (message.icon !== undefined) {
|
|
127
|
+
texture_gen_1.TextureUnion.encode(message.icon, writer.uint32(26).fork()).ldelim();
|
|
128
|
+
}
|
|
129
|
+
return writer;
|
|
130
|
+
}
|
|
131
|
+
PBTouchScreenControls_TouchInput.encode = encode;
|
|
132
|
+
function decode(input, length) {
|
|
133
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
134
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
135
|
+
const message = createBasePBTouchScreenControls_TouchInput();
|
|
136
|
+
while (reader.pos < end) {
|
|
137
|
+
const tag = reader.uint32();
|
|
138
|
+
switch (tag >>> 3) {
|
|
139
|
+
case 1:
|
|
140
|
+
if (tag !== 8) {
|
|
141
|
+
break;
|
|
142
|
+
}
|
|
143
|
+
message.inputAction = reader.int32();
|
|
144
|
+
continue;
|
|
145
|
+
case 2:
|
|
146
|
+
if (tag !== 16) {
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
message.hide = reader.bool();
|
|
150
|
+
continue;
|
|
151
|
+
case 3:
|
|
152
|
+
if (tag !== 26) {
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
message.icon = texture_gen_1.TextureUnion.decode(reader, reader.uint32());
|
|
156
|
+
continue;
|
|
157
|
+
}
|
|
158
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
reader.skipType(tag & 7);
|
|
162
|
+
}
|
|
163
|
+
return message;
|
|
164
|
+
}
|
|
165
|
+
PBTouchScreenControls_TouchInput.decode = decode;
|
|
166
|
+
function fromJSON(object) {
|
|
167
|
+
return {
|
|
168
|
+
inputAction: isSet(object.inputAction) ? (0, input_action_gen_1.inputActionFromJSON)(object.inputAction) : 0,
|
|
169
|
+
hide: isSet(object.hide) ? Boolean(object.hide) : false,
|
|
170
|
+
icon: isSet(object.icon) ? texture_gen_1.TextureUnion.fromJSON(object.icon) : undefined,
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
PBTouchScreenControls_TouchInput.fromJSON = fromJSON;
|
|
174
|
+
function toJSON(message) {
|
|
175
|
+
const obj = {};
|
|
176
|
+
message.inputAction !== undefined && (obj.inputAction = (0, input_action_gen_1.inputActionToJSON)(message.inputAction));
|
|
177
|
+
message.hide !== undefined && (obj.hide = message.hide);
|
|
178
|
+
message.icon !== undefined && (obj.icon = message.icon ? texture_gen_1.TextureUnion.toJSON(message.icon) : undefined);
|
|
179
|
+
return obj;
|
|
180
|
+
}
|
|
181
|
+
PBTouchScreenControls_TouchInput.toJSON = toJSON;
|
|
182
|
+
function create(base) {
|
|
183
|
+
return PBTouchScreenControls_TouchInput.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
184
|
+
}
|
|
185
|
+
PBTouchScreenControls_TouchInput.create = create;
|
|
186
|
+
function fromPartial(object) {
|
|
187
|
+
var _a, _b;
|
|
188
|
+
const message = createBasePBTouchScreenControls_TouchInput();
|
|
189
|
+
message.inputAction = (_a = object.inputAction) !== null && _a !== void 0 ? _a : 0;
|
|
190
|
+
message.hide = (_b = object.hide) !== null && _b !== void 0 ? _b : false;
|
|
191
|
+
message.icon = (object.icon !== undefined && object.icon !== null)
|
|
192
|
+
? texture_gen_1.TextureUnion.fromPartial(object.icon)
|
|
193
|
+
: undefined;
|
|
194
|
+
return message;
|
|
195
|
+
}
|
|
196
|
+
PBTouchScreenControls_TouchInput.fromPartial = fromPartial;
|
|
197
|
+
})(PBTouchScreenControls_TouchInput || (exports.PBTouchScreenControls_TouchInput = PBTouchScreenControls_TouchInput = {}));
|
|
198
|
+
function isSet(value) {
|
|
199
|
+
return value !== null && value !== undefined;
|
|
200
|
+
}
|
|
201
|
+
//# sourceMappingURL=touch_screen_controls.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"touch_screen_controls.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/touch_screen_controls.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AACrC,0DAAwD;AACxD,gEAAgG;AAEnF,QAAA,eAAe,GAAG,6BAA6B,CAAC;AA8C7D,SAAS,+BAA+B;IACtC,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC;AAC/F,CAAC;AAED,IAAiB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cD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { InputAction } from "./common/input_action.gen";
|
|
3
|
+
export declare const protobufPackage = "decentraland.sdk.components";
|
|
4
|
+
/**
|
|
5
|
+
* The UiInputBinding component binds a UI entity to one or more InputActions. While the
|
|
6
|
+
* element is pressed (touch or pointer) the listed actions are held down, driving both
|
|
7
|
+
* the local player input and scene InputAction listeners, just like the native on-screen
|
|
8
|
+
* buttons. It is typically combined with PBTouchScreenControls to replace the native
|
|
9
|
+
* controls with a custom touch UI.
|
|
10
|
+
*
|
|
11
|
+
* Release semantics: the held actions are released as soon as the press that started them
|
|
12
|
+
* ends. A renderer MUST release all actions held by this binding when any of the following
|
|
13
|
+
* happens: the press/touch is lifted or cancelled, the pointer/touch leaves the element
|
|
14
|
+
* (loses press ownership), the actions list changes (the previous set is released before
|
|
15
|
+
* the new set is applied), the component is removed or its actions list becomes empty, the
|
|
16
|
+
* UI element is hidden, disabled or removed from the tree, or the scene unloads. In short,
|
|
17
|
+
* no action may remain held once the element is no longer both present and actively pressed.
|
|
18
|
+
*
|
|
19
|
+
* Multi-touch: the binding is a single held state, not reference-counted per pointer. The
|
|
20
|
+
* actions are held while the element is pressed and released when that press ends; a second
|
|
21
|
+
* simultaneous press on the same element does not stack, and does not extend the hold past
|
|
22
|
+
* the first release.
|
|
23
|
+
*/
|
|
24
|
+
export interface PBUiInputBinding {
|
|
25
|
+
/** the input actions fired while this element is pressed */
|
|
26
|
+
actions: InputAction[];
|
|
27
|
+
}
|
|
28
|
+
export declare namespace PBUiInputBinding {
|
|
29
|
+
function encode(message: PBUiInputBinding, writer?: _m0.Writer): _m0.Writer;
|
|
30
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputBinding;
|
|
31
|
+
function fromJSON(object: any): PBUiInputBinding;
|
|
32
|
+
function toJSON(message: PBUiInputBinding): unknown;
|
|
33
|
+
function create<I extends Exact<DeepPartial<PBUiInputBinding>, I>>(base?: I): PBUiInputBinding;
|
|
34
|
+
function fromPartial<I extends Exact<DeepPartial<PBUiInputBinding>, I>>(object: I): PBUiInputBinding;
|
|
35
|
+
}
|
|
36
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
37
|
+
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 {
|
|
38
|
+
$case: string;
|
|
39
|
+
} ? {
|
|
40
|
+
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
41
|
+
} & {
|
|
42
|
+
$case: T["$case"];
|
|
43
|
+
} : T extends {} ? {
|
|
44
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
45
|
+
} : Partial<T>;
|
|
46
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
47
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
48
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
49
|
+
} & {
|
|
50
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
51
|
+
};
|
|
52
|
+
export {};
|
|
@@ -0,0 +1,81 @@
|
|
|
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.PBUiInputBinding = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
+
const input_action_gen_1 = require("./common/input_action.gen");
|
|
10
|
+
exports.protobufPackage = "decentraland.sdk.components";
|
|
11
|
+
function createBasePBUiInputBinding() {
|
|
12
|
+
return { actions: [] };
|
|
13
|
+
}
|
|
14
|
+
var PBUiInputBinding;
|
|
15
|
+
(function (PBUiInputBinding) {
|
|
16
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
17
|
+
writer.uint32(10).fork();
|
|
18
|
+
for (const v of message.actions) {
|
|
19
|
+
writer.int32(v);
|
|
20
|
+
}
|
|
21
|
+
writer.ldelim();
|
|
22
|
+
return writer;
|
|
23
|
+
}
|
|
24
|
+
PBUiInputBinding.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 = createBasePBUiInputBinding();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
if (tag === 8) {
|
|
34
|
+
message.actions.push(reader.int32());
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
if (tag === 10) {
|
|
38
|
+
const end2 = reader.uint32() + reader.pos;
|
|
39
|
+
while (reader.pos < end2) {
|
|
40
|
+
message.actions.push(reader.int32());
|
|
41
|
+
}
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
reader.skipType(tag & 7);
|
|
50
|
+
}
|
|
51
|
+
return message;
|
|
52
|
+
}
|
|
53
|
+
PBUiInputBinding.decode = decode;
|
|
54
|
+
function fromJSON(object) {
|
|
55
|
+
return { actions: Array.isArray(object === null || object === void 0 ? void 0 : object.actions) ? object.actions.map((e) => (0, input_action_gen_1.inputActionFromJSON)(e)) : [] };
|
|
56
|
+
}
|
|
57
|
+
PBUiInputBinding.fromJSON = fromJSON;
|
|
58
|
+
function toJSON(message) {
|
|
59
|
+
const obj = {};
|
|
60
|
+
if (message.actions) {
|
|
61
|
+
obj.actions = message.actions.map((e) => (0, input_action_gen_1.inputActionToJSON)(e));
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
obj.actions = [];
|
|
65
|
+
}
|
|
66
|
+
return obj;
|
|
67
|
+
}
|
|
68
|
+
PBUiInputBinding.toJSON = toJSON;
|
|
69
|
+
function create(base) {
|
|
70
|
+
return PBUiInputBinding.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
71
|
+
}
|
|
72
|
+
PBUiInputBinding.create = create;
|
|
73
|
+
function fromPartial(object) {
|
|
74
|
+
var _a;
|
|
75
|
+
const message = createBasePBUiInputBinding();
|
|
76
|
+
message.actions = ((_a = object.actions) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
77
|
+
return message;
|
|
78
|
+
}
|
|
79
|
+
PBUiInputBinding.fromPartial = fromPartial;
|
|
80
|
+
})(PBUiInputBinding || (exports.PBUiInputBinding = PBUiInputBinding = {}));
|
|
81
|
+
//# sourceMappingURL=ui_input_binding.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui_input_binding.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/ui_input_binding.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AACrC,gEAAgG;AAEnF,QAAA,eAAe,GAAG,6BAA6B,CAAC;AA2B7D,SAAS,0BAA0B;IACjC,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AACzB,CAAC;AAED,IAAiB,gBAAgB,CAkEhC;AAlED,WAAiB,gBAAgB;IAC/B,SAAgB,MAAM,CAAC,OAAyB,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QACxF,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QACzB,KAAK,MAAM,C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AAA,MAAM,CAAC,OAAO,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAI,EAAE,CAAC;QACtD,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,4BAAW,cAI1B,CAAA;AACH,CAAC,EAlEgB,gBAAgB,gCAAhB,gBAAgB,QAkEhC"}
|
|
@@ -137,36 +137,6 @@ export interface PlayerEmote {
|
|
|
137
137
|
incrementalId: number;
|
|
138
138
|
urn: string;
|
|
139
139
|
timestamp: number;
|
|
140
|
-
/** true means the emote has been stopped in the sender's client */
|
|
141
|
-
isStopping?:
|
|
142
|
-
| boolean
|
|
143
|
-
| undefined;
|
|
144
|
-
/** true when it is not the first time the looping animation plays */
|
|
145
|
-
isRepeating?:
|
|
146
|
-
| boolean
|
|
147
|
-
| undefined;
|
|
148
|
-
/** identifies an interaction univocaly, established when the start animation is triggered */
|
|
149
|
-
interactionId?:
|
|
150
|
-
| number
|
|
151
|
-
| undefined;
|
|
152
|
-
/** -1 means it does not use an outcome animation */
|
|
153
|
-
socialEmoteOutcome?:
|
|
154
|
-
| number
|
|
155
|
-
| undefined;
|
|
156
|
-
/** to a social emote started by other user */
|
|
157
|
-
isReacting?:
|
|
158
|
-
| boolean
|
|
159
|
-
| undefined;
|
|
160
|
-
/** wallet address of the user that initiated social emote */
|
|
161
|
-
socialEmoteInitiator?:
|
|
162
|
-
| string
|
|
163
|
-
| undefined;
|
|
164
|
-
/** wallet address of the user whose avatar is the target of a directed emote */
|
|
165
|
-
targetAvatar?:
|
|
166
|
-
| string
|
|
167
|
-
| undefined;
|
|
168
|
-
/** mask for which bones an animation applies to. */
|
|
169
|
-
mask?: number | undefined;
|
|
170
140
|
}
|
|
171
141
|
|
|
172
142
|
export interface SceneEmote {
|
|
@@ -191,11 +161,6 @@ export interface ProfileResponse {
|
|
|
191
161
|
export interface Chat {
|
|
192
162
|
message: string;
|
|
193
163
|
timestamp: number;
|
|
194
|
-
/**
|
|
195
|
-
* Extension: optional forwarded_from to identify the original sender when
|
|
196
|
-
* messages are forwarded through an SFU
|
|
197
|
-
*/
|
|
198
|
-
forwardedFrom?: string | undefined;
|
|
199
164
|
}
|
|
200
165
|
|
|
201
166
|
export interface Scene {
|
|
@@ -1322,19 +1287,7 @@ export namespace MovementCompressed {
|
|
|
1322
1287
|
}
|
|
1323
1288
|
|
|
1324
1289
|
function createBasePlayerEmote(): PlayerEmote {
|
|
1325
|
-
return {
|
|
1326
|
-
incrementalId: 0,
|
|
1327
|
-
urn: "",
|
|
1328
|
-
timestamp: 0,
|
|
1329
|
-
isStopping: undefined,
|
|
1330
|
-
isRepeating: undefined,
|
|
1331
|
-
interactionId: undefined,
|
|
1332
|
-
socialEmoteOutcome: undefined,
|
|
1333
|
-
isReacting: undefined,
|
|
1334
|
-
socialEmoteInitiator: undefined,
|
|
1335
|
-
targetAvatar: undefined,
|
|
1336
|
-
mask: undefined,
|
|
1337
|
-
};
|
|
1290
|
+
return { incrementalId: 0, urn: "", timestamp: 0 };
|
|
1338
1291
|
}
|
|
1339
1292
|
|
|
1340
1293
|
export namespace PlayerEmote {
|
|
@@ -1348,30 +1301,6 @@ export namespace PlayerEmote {
|
|
|
1348
1301
|
if (message.timestamp !== 0) {
|
|
1349
1302
|
writer.uint32(29).float(message.timestamp);
|
|
1350
1303
|
}
|
|
1351
|
-
if (message.isStopping !== undefined) {
|
|
1352
|
-
writer.uint32(32).bool(message.isStopping);
|
|
1353
|
-
}
|
|
1354
|
-
if (message.isRepeating !== undefined) {
|
|
1355
|
-
writer.uint32(40).bool(message.isRepeating);
|
|
1356
|
-
}
|
|
1357
|
-
if (message.interactionId !== undefined) {
|
|
1358
|
-
writer.uint32(48).int32(message.interactionId);
|
|
1359
|
-
}
|
|
1360
|
-
if (message.socialEmoteOutcome !== undefined) {
|
|
1361
|
-
writer.uint32(56).int32(message.socialEmoteOutcome);
|
|
1362
|
-
}
|
|
1363
|
-
if (message.isReacting !== undefined) {
|
|
1364
|
-
writer.uint32(64).bool(message.isReacting);
|
|
1365
|
-
}
|
|
1366
|
-
if (message.socialEmoteInitiator !== undefined) {
|
|
1367
|
-
writer.uint32(74).string(message.socialEmoteInitiator);
|
|
1368
|
-
}
|
|
1369
|
-
if (message.targetAvatar !== undefined) {
|
|
1370
|
-
writer.uint32(82).string(message.targetAvatar);
|
|
1371
|
-
}
|
|
1372
|
-
if (message.mask !== undefined) {
|
|
1373
|
-
writer.uint32(88).uint32(message.mask);
|
|
1374
|
-
}
|
|
1375
1304
|
return writer;
|
|
1376
1305
|
}
|
|
1377
1306
|
|
|
@@ -1403,62 +1332,6 @@ export namespace PlayerEmote {
|
|
|
1403
1332
|
|
|
1404
1333
|
message.timestamp = reader.float();
|
|
1405
1334
|
continue;
|
|
1406
|
-
case 4:
|
|
1407
|
-
if (tag !== 32) {
|
|
1408
|
-
break;
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
|
-
message.isStopping = reader.bool();
|
|
1412
|
-
continue;
|
|
1413
|
-
case 5:
|
|
1414
|
-
if (tag !== 40) {
|
|
1415
|
-
break;
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
message.isRepeating = reader.bool();
|
|
1419
|
-
continue;
|
|
1420
|
-
case 6:
|
|
1421
|
-
if (tag !== 48) {
|
|
1422
|
-
break;
|
|
1423
|
-
}
|
|
1424
|
-
|
|
1425
|
-
message.interactionId = reader.int32();
|
|
1426
|
-
continue;
|
|
1427
|
-
case 7:
|
|
1428
|
-
if (tag !== 56) {
|
|
1429
|
-
break;
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
|
-
message.socialEmoteOutcome = reader.int32();
|
|
1433
|
-
continue;
|
|
1434
|
-
case 8:
|
|
1435
|
-
if (tag !== 64) {
|
|
1436
|
-
break;
|
|
1437
|
-
}
|
|
1438
|
-
|
|
1439
|
-
message.isReacting = reader.bool();
|
|
1440
|
-
continue;
|
|
1441
|
-
case 9:
|
|
1442
|
-
if (tag !== 74) {
|
|
1443
|
-
break;
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
|
-
message.socialEmoteInitiator = reader.string();
|
|
1447
|
-
continue;
|
|
1448
|
-
case 10:
|
|
1449
|
-
if (tag !== 82) {
|
|
1450
|
-
break;
|
|
1451
|
-
}
|
|
1452
|
-
|
|
1453
|
-
message.targetAvatar = reader.string();
|
|
1454
|
-
continue;
|
|
1455
|
-
case 11:
|
|
1456
|
-
if (tag !== 88) {
|
|
1457
|
-
break;
|
|
1458
|
-
}
|
|
1459
|
-
|
|
1460
|
-
message.mask = reader.uint32();
|
|
1461
|
-
continue;
|
|
1462
1335
|
}
|
|
1463
1336
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1464
1337
|
break;
|
|
@@ -1473,14 +1346,6 @@ export namespace PlayerEmote {
|
|
|
1473
1346
|
incrementalId: isSet(object.incrementalId) ? Number(object.incrementalId) : 0,
|
|
1474
1347
|
urn: isSet(object.urn) ? String(object.urn) : "",
|
|
1475
1348
|
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1476
|
-
isStopping: isSet(object.isStopping) ? Boolean(object.isStopping) : undefined,
|
|
1477
|
-
isRepeating: isSet(object.isRepeating) ? Boolean(object.isRepeating) : undefined,
|
|
1478
|
-
interactionId: isSet(object.interactionId) ? Number(object.interactionId) : undefined,
|
|
1479
|
-
socialEmoteOutcome: isSet(object.socialEmoteOutcome) ? Number(object.socialEmoteOutcome) : undefined,
|
|
1480
|
-
isReacting: isSet(object.isReacting) ? Boolean(object.isReacting) : undefined,
|
|
1481
|
-
socialEmoteInitiator: isSet(object.socialEmoteInitiator) ? String(object.socialEmoteInitiator) : undefined,
|
|
1482
|
-
targetAvatar: isSet(object.targetAvatar) ? String(object.targetAvatar) : undefined,
|
|
1483
|
-
mask: isSet(object.mask) ? Number(object.mask) : undefined,
|
|
1484
1349
|
};
|
|
1485
1350
|
}
|
|
1486
1351
|
|
|
@@ -1489,14 +1354,6 @@ export namespace PlayerEmote {
|
|
|
1489
1354
|
message.incrementalId !== undefined && (obj.incrementalId = Math.round(message.incrementalId));
|
|
1490
1355
|
message.urn !== undefined && (obj.urn = message.urn);
|
|
1491
1356
|
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1492
|
-
message.isStopping !== undefined && (obj.isStopping = message.isStopping);
|
|
1493
|
-
message.isRepeating !== undefined && (obj.isRepeating = message.isRepeating);
|
|
1494
|
-
message.interactionId !== undefined && (obj.interactionId = Math.round(message.interactionId));
|
|
1495
|
-
message.socialEmoteOutcome !== undefined && (obj.socialEmoteOutcome = Math.round(message.socialEmoteOutcome));
|
|
1496
|
-
message.isReacting !== undefined && (obj.isReacting = message.isReacting);
|
|
1497
|
-
message.socialEmoteInitiator !== undefined && (obj.socialEmoteInitiator = message.socialEmoteInitiator);
|
|
1498
|
-
message.targetAvatar !== undefined && (obj.targetAvatar = message.targetAvatar);
|
|
1499
|
-
message.mask !== undefined && (obj.mask = Math.round(message.mask));
|
|
1500
1357
|
return obj;
|
|
1501
1358
|
}
|
|
1502
1359
|
|
|
@@ -1509,14 +1366,6 @@ export namespace PlayerEmote {
|
|
|
1509
1366
|
message.incrementalId = object.incrementalId ?? 0;
|
|
1510
1367
|
message.urn = object.urn ?? "";
|
|
1511
1368
|
message.timestamp = object.timestamp ?? 0;
|
|
1512
|
-
message.isStopping = object.isStopping ?? undefined;
|
|
1513
|
-
message.isRepeating = object.isRepeating ?? undefined;
|
|
1514
|
-
message.interactionId = object.interactionId ?? undefined;
|
|
1515
|
-
message.socialEmoteOutcome = object.socialEmoteOutcome ?? undefined;
|
|
1516
|
-
message.isReacting = object.isReacting ?? undefined;
|
|
1517
|
-
message.socialEmoteInitiator = object.socialEmoteInitiator ?? undefined;
|
|
1518
|
-
message.targetAvatar = object.targetAvatar ?? undefined;
|
|
1519
|
-
message.mask = object.mask ?? undefined;
|
|
1520
1369
|
return message;
|
|
1521
1370
|
}
|
|
1522
1371
|
}
|
|
@@ -1793,7 +1642,7 @@ export namespace ProfileResponse {
|
|
|
1793
1642
|
}
|
|
1794
1643
|
|
|
1795
1644
|
function createBaseChat(): Chat {
|
|
1796
|
-
return { message: "", timestamp: 0
|
|
1645
|
+
return { message: "", timestamp: 0 };
|
|
1797
1646
|
}
|
|
1798
1647
|
|
|
1799
1648
|
export namespace Chat {
|
|
@@ -1804,9 +1653,6 @@ export namespace Chat {
|
|
|
1804
1653
|
if (message.timestamp !== 0) {
|
|
1805
1654
|
writer.uint32(17).double(message.timestamp);
|
|
1806
1655
|
}
|
|
1807
|
-
if (message.forwardedFrom !== undefined) {
|
|
1808
|
-
writer.uint32(26).string(message.forwardedFrom);
|
|
1809
|
-
}
|
|
1810
1656
|
return writer;
|
|
1811
1657
|
}
|
|
1812
1658
|
|
|
@@ -1831,13 +1677,6 @@ export namespace Chat {
|
|
|
1831
1677
|
|
|
1832
1678
|
message.timestamp = reader.double();
|
|
1833
1679
|
continue;
|
|
1834
|
-
case 3:
|
|
1835
|
-
if (tag !== 26) {
|
|
1836
|
-
break;
|
|
1837
|
-
}
|
|
1838
|
-
|
|
1839
|
-
message.forwardedFrom = reader.string();
|
|
1840
|
-
continue;
|
|
1841
1680
|
}
|
|
1842
1681
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1843
1682
|
break;
|
|
@@ -1851,7 +1690,6 @@ export namespace Chat {
|
|
|
1851
1690
|
return {
|
|
1852
1691
|
message: isSet(object.message) ? String(object.message) : "",
|
|
1853
1692
|
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1854
|
-
forwardedFrom: isSet(object.forwardedFrom) ? String(object.forwardedFrom) : undefined,
|
|
1855
1693
|
};
|
|
1856
1694
|
}
|
|
1857
1695
|
|
|
@@ -1859,7 +1697,6 @@ export namespace Chat {
|
|
|
1859
1697
|
const obj: any = {};
|
|
1860
1698
|
message.message !== undefined && (obj.message = message.message);
|
|
1861
1699
|
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1862
|
-
message.forwardedFrom !== undefined && (obj.forwardedFrom = message.forwardedFrom);
|
|
1863
1700
|
return obj;
|
|
1864
1701
|
}
|
|
1865
1702
|
|
|
@@ -1871,7 +1708,6 @@ export namespace Chat {
|
|
|
1871
1708
|
const message = createBaseChat();
|
|
1872
1709
|
message.message = object.message ?? "";
|
|
1873
1710
|
message.timestamp = object.timestamp ?? 0;
|
|
1874
|
-
message.forwardedFrom = object.forwardedFrom ?? undefined;
|
|
1875
1711
|
return message;
|
|
1876
1712
|
}
|
|
1877
1713
|
}
|
|
@@ -5,40 +5,6 @@ import { Color3 } from "../../common/colors.gen";
|
|
|
5
5
|
|
|
6
6
|
export const protobufPackage = "decentraland.sdk.components";
|
|
7
7
|
|
|
8
|
-
/** Mask for which bones an animation applies to. */
|
|
9
|
-
export enum AvatarEmoteMask {
|
|
10
|
-
AEM_FULL_BODY = 0,
|
|
11
|
-
AEM_UPPER_BODY = 1,
|
|
12
|
-
UNRECOGNIZED = -1,
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function avatarEmoteMaskFromJSON(object: any): AvatarEmoteMask {
|
|
16
|
-
switch (object) {
|
|
17
|
-
case 0:
|
|
18
|
-
case "AEM_FULL_BODY":
|
|
19
|
-
return AvatarEmoteMask.AEM_FULL_BODY;
|
|
20
|
-
case 1:
|
|
21
|
-
case "AEM_UPPER_BODY":
|
|
22
|
-
return AvatarEmoteMask.AEM_UPPER_BODY;
|
|
23
|
-
case -1:
|
|
24
|
-
case "UNRECOGNIZED":
|
|
25
|
-
default:
|
|
26
|
-
return AvatarEmoteMask.UNRECOGNIZED;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export function avatarEmoteMaskToJSON(object: AvatarEmoteMask): string {
|
|
31
|
-
switch (object) {
|
|
32
|
-
case AvatarEmoteMask.AEM_FULL_BODY:
|
|
33
|
-
return "AEM_FULL_BODY";
|
|
34
|
-
case AvatarEmoteMask.AEM_UPPER_BODY:
|
|
35
|
-
return "AEM_UPPER_BODY";
|
|
36
|
-
case AvatarEmoteMask.UNRECOGNIZED:
|
|
37
|
-
default:
|
|
38
|
-
return "UNRECOGNIZED";
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
8
|
/**
|
|
43
9
|
* The AvatarShape component contains the information required to draw and animate avatar, acting as
|
|
44
10
|
* a simplified GLTF container for this specific case.
|