@dcl/protocol 1.0.0-33676972450.commit-882d4ee → 1.0.0-33861349213.commit-76445a6
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/out-js/decentraland/common/texture.gen.d.ts +0 -18
- package/out-js/decentraland/common/texture.gen.js +4 -104
- package/out-js/decentraland/common/texture.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +4 -125
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +6 -408
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +0 -2
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +2 -19
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +0 -2
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +2 -14
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_nametag.gen.d.ts +58 -0
- package/out-js/decentraland/sdk/components/avatar_nametag.gen.js +117 -0
- package/out-js/decentraland/sdk/components/avatar_nametag.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +0 -2
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +1 -19
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +0 -2
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +2 -14
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +0 -3
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -18
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +0 -19
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +3 -90
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/material.gen.d.ts +0 -20
- package/out-js/decentraland/sdk/components/material.gen.js +2 -86
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +0 -18
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +4 -90
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +3 -19
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +4 -90
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +16 -11
- package/out-js/decentraland/sdk/components/pointer_events.gen.js +14 -1
- package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast.gen.d.ts +0 -13
- package/out-js/decentraland/sdk/components/raycast.gen.js +2 -64
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +0 -4
- package/out-js/decentraland/sdk/components/ui_input.gen.js +1 -27
- package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +0 -33
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +3 -176
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
- package/out-ts/decentraland/common/texture.gen.ts +4 -119
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +6 -445
- package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +1 -20
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +1 -16
- package/out-ts/decentraland/sdk/components/avatar_nametag.gen.ts +162 -0
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +1 -23
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +1 -16
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -18
- package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -108
- package/out-ts/decentraland/sdk/components/material.gen.ts +1 -102
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +0 -99
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +3 -100
- package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +33 -12
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +1 -73
- package/out-ts/decentraland/sdk/components/ui_input.gen.ts +1 -37
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +0 -193
- package/package.json +2 -2
- package/proto/decentraland/common/texture.proto +1 -8
- package/proto/decentraland/kernel/apis/restricted_actions.proto +1 -45
- package/proto/decentraland/pulse/pulse_client.proto +27 -8
- package/proto/decentraland/sdk/components/avatar_equipped_data.proto +1 -2
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +0 -1
- package/proto/decentraland/sdk/components/avatar_nametag.proto +33 -0
- package/proto/decentraland/sdk/components/avatar_shape.proto +0 -1
- package/proto/decentraland/sdk/components/camera_mode_area.proto +0 -1
- package/proto/decentraland/sdk/components/common/input_action.proto +0 -3
- package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
- package/proto/decentraland/sdk/components/material.proto +1 -13
- package/proto/decentraland/sdk/components/mesh_collider.proto +0 -7
- package/proto/decentraland/sdk/components/mesh_renderer.proto +3 -8
- package/proto/decentraland/sdk/components/pointer_events.proto +15 -11
- package/proto/decentraland/sdk/components/primary_pointer_info.proto +0 -5
- package/proto/decentraland/sdk/components/raycast.proto +0 -13
- package/proto/decentraland/sdk/components/ui_input.proto +0 -2
- package/proto/decentraland/sdk/components/ui_transform.proto +0 -20
- package/public/sdk-components.proto +1 -10
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +0 -51
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +0 -177
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +0 -71
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js +0 -303
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +0 -79
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +0 -357
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/camera_layer.gen.d.ts +0 -46
- package/out-js/decentraland/sdk/components/camera_layer.gen.js +0 -162
- package/out-js/decentraland/sdk/components/camera_layer.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/camera_layers.gen.d.ts +0 -30
- package/out-js/decentraland/sdk/components/camera_layers.gen.js +0 -80
- package/out-js/decentraland/sdk/components/camera_layers.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/global_light.gen.d.ts +0 -50
- package/out-js/decentraland/sdk/components/global_light.gen.js +0 -103
- package/out-js/decentraland/sdk/components/global_light.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +0 -66
- package/out-js/decentraland/sdk/components/gltf_node.gen.js +0 -69
- package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +0 -43
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +0 -122
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/input_modifier.gen.d.ts +0 -52
- package/out-js/decentraland/sdk/components/input_modifier.gen.js +0 -233
- package/out-js/decentraland/sdk/components/input_modifier.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/texture_camera.gen.d.ts +0 -86
- package/out-js/decentraland/sdk/components/texture_camera.gen.js +0 -296
- package/out-js/decentraland/sdk/components/texture_camera.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/ui_canvas.gen.d.ts +0 -35
- package/out-js/decentraland/sdk/components/ui_canvas.gen.js +0 -98
- package/out-js/decentraland/sdk/components/ui_canvas.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/ui_scroll_result.gen.d.ts +0 -31
- package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js +0 -71
- package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js.map +0 -1
- package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +0 -237
- package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +0 -372
- package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +0 -432
- package/out-ts/decentraland/sdk/components/camera_layer.gen.ts +0 -202
- package/out-ts/decentraland/sdk/components/camera_layers.gen.ts +0 -92
- package/out-ts/decentraland/sdk/components/global_light.gen.ts +0 -138
- package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +0 -116
- package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
- package/out-ts/decentraland/sdk/components/input_modifier.gen.ts +0 -265
- package/out-ts/decentraland/sdk/components/texture_camera.gen.ts +0 -362
- package/out-ts/decentraland/sdk/components/ui_canvas.gen.ts +0 -115
- package/out-ts/decentraland/sdk/components/ui_scroll_result.gen.ts +0 -83
- package/proto/decentraland/sdk/components/avatar_movement.proto +0 -62
- package/proto/decentraland/sdk/components/avatar_movement_info.proto +0 -36
- package/proto/decentraland/sdk/components/camera_layer.proto +0 -30
- package/proto/decentraland/sdk/components/camera_layers.proto +0 -11
- package/proto/decentraland/sdk/components/global_light.proto +0 -22
- package/proto/decentraland/sdk/components/gltf_node.proto +0 -42
- package/proto/decentraland/sdk/components/gltf_node_state.proto +0 -20
- package/proto/decentraland/sdk/components/texture_camera.proto +0 -46
- package/proto/decentraland/sdk/components/ui_canvas.proto +0 -16
- package/proto/decentraland/sdk/components/ui_scroll_result.proto +0 -12
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
import { Color4 } from "../../common/colors.gen";
|
|
3
|
-
export declare const protobufPackage = "decentraland.sdk.components";
|
|
4
|
-
/** The UiCanvas component can be attached to a ui root entity to specify properties of the ui texture. */
|
|
5
|
-
export interface PBUiCanvas {
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
/** default = (0.0, 0.0, 0.0, 0.0) / transparent */
|
|
9
|
-
color?: Color4 | undefined;
|
|
10
|
-
}
|
|
11
|
-
export declare namespace PBUiCanvas {
|
|
12
|
-
function encode(message: PBUiCanvas, writer?: _m0.Writer): _m0.Writer;
|
|
13
|
-
function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiCanvas;
|
|
14
|
-
function fromJSON(object: any): PBUiCanvas;
|
|
15
|
-
function toJSON(message: PBUiCanvas): unknown;
|
|
16
|
-
function create<I extends Exact<DeepPartial<PBUiCanvas>, I>>(base?: I): PBUiCanvas;
|
|
17
|
-
function fromPartial<I extends Exact<DeepPartial<PBUiCanvas>, I>>(object: I): PBUiCanvas;
|
|
18
|
-
}
|
|
19
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
20
|
-
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 {
|
|
21
|
-
$case: string;
|
|
22
|
-
} ? {
|
|
23
|
-
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
24
|
-
} & {
|
|
25
|
-
$case: T["$case"];
|
|
26
|
-
} : T extends {} ? {
|
|
27
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
28
|
-
} : Partial<T>;
|
|
29
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
30
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
31
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
32
|
-
} & {
|
|
33
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
34
|
-
};
|
|
35
|
-
export {};
|
|
@@ -1,98 +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.PBUiCanvas = exports.protobufPackage = void 0;
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
-
const colors_gen_1 = require("../../common/colors.gen");
|
|
10
|
-
exports.protobufPackage = "decentraland.sdk.components";
|
|
11
|
-
function createBasePBUiCanvas() {
|
|
12
|
-
return { width: 0, height: 0, color: undefined };
|
|
13
|
-
}
|
|
14
|
-
var PBUiCanvas;
|
|
15
|
-
(function (PBUiCanvas) {
|
|
16
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
17
|
-
if (message.width !== 0) {
|
|
18
|
-
writer.uint32(8).uint32(message.width);
|
|
19
|
-
}
|
|
20
|
-
if (message.height !== 0) {
|
|
21
|
-
writer.uint32(16).uint32(message.height);
|
|
22
|
-
}
|
|
23
|
-
if (message.color !== undefined) {
|
|
24
|
-
colors_gen_1.Color4.encode(message.color, writer.uint32(26).fork()).ldelim();
|
|
25
|
-
}
|
|
26
|
-
return writer;
|
|
27
|
-
}
|
|
28
|
-
PBUiCanvas.encode = encode;
|
|
29
|
-
function decode(input, length) {
|
|
30
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
31
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
32
|
-
const message = createBasePBUiCanvas();
|
|
33
|
-
while (reader.pos < end) {
|
|
34
|
-
const tag = reader.uint32();
|
|
35
|
-
switch (tag >>> 3) {
|
|
36
|
-
case 1:
|
|
37
|
-
if (tag !== 8) {
|
|
38
|
-
break;
|
|
39
|
-
}
|
|
40
|
-
message.width = reader.uint32();
|
|
41
|
-
continue;
|
|
42
|
-
case 2:
|
|
43
|
-
if (tag !== 16) {
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
message.height = reader.uint32();
|
|
47
|
-
continue;
|
|
48
|
-
case 3:
|
|
49
|
-
if (tag !== 26) {
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
message.color = colors_gen_1.Color4.decode(reader, reader.uint32());
|
|
53
|
-
continue;
|
|
54
|
-
}
|
|
55
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
reader.skipType(tag & 7);
|
|
59
|
-
}
|
|
60
|
-
return message;
|
|
61
|
-
}
|
|
62
|
-
PBUiCanvas.decode = decode;
|
|
63
|
-
function fromJSON(object) {
|
|
64
|
-
return {
|
|
65
|
-
width: isSet(object.width) ? Number(object.width) : 0,
|
|
66
|
-
height: isSet(object.height) ? Number(object.height) : 0,
|
|
67
|
-
color: isSet(object.color) ? colors_gen_1.Color4.fromJSON(object.color) : undefined,
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
PBUiCanvas.fromJSON = fromJSON;
|
|
71
|
-
function toJSON(message) {
|
|
72
|
-
const obj = {};
|
|
73
|
-
message.width !== undefined && (obj.width = Math.round(message.width));
|
|
74
|
-
message.height !== undefined && (obj.height = Math.round(message.height));
|
|
75
|
-
message.color !== undefined && (obj.color = message.color ? colors_gen_1.Color4.toJSON(message.color) : undefined);
|
|
76
|
-
return obj;
|
|
77
|
-
}
|
|
78
|
-
PBUiCanvas.toJSON = toJSON;
|
|
79
|
-
function create(base) {
|
|
80
|
-
return PBUiCanvas.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
81
|
-
}
|
|
82
|
-
PBUiCanvas.create = create;
|
|
83
|
-
function fromPartial(object) {
|
|
84
|
-
var _a, _b;
|
|
85
|
-
const message = createBasePBUiCanvas();
|
|
86
|
-
message.width = (_a = object.width) !== null && _a !== void 0 ? _a : 0;
|
|
87
|
-
message.height = (_b = object.height) !== null && _b !== void 0 ? _b : 0;
|
|
88
|
-
message.color = (object.color !== undefined && object.color !== null)
|
|
89
|
-
? colors_gen_1.Color4.fromPartial(object.color)
|
|
90
|
-
: undefined;
|
|
91
|
-
return message;
|
|
92
|
-
}
|
|
93
|
-
PBUiCanvas.fromPartial = fromPartial;
|
|
94
|
-
})(PBUiCanvas || (exports.PBUiCanvas = PBUiCanvas = {}));
|
|
95
|
-
function isSet(value) {
|
|
96
|
-
return value !== null && value !== undefined;
|
|
97
|
-
}
|
|
98
|
-
//# sourceMappingURL=ui_canvas.gen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui_canvas.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/ui_canvas.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AACrC,wDAAiD;AAEpC,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAU7D,SAAS,oBAAoB;IAC3B,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;AACnD,CAAC;AAED,IAAiB,UAAU,CAgF1B;AAhFD,WAAiB,UAAU;IACzB,SAAgB,MAAM,CAAC,OAAmB,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAClF,IAAI,OAAO,CAAC,KAAK,KAAK,CAAC,EAAE,CAAC;YACxB,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACzC,CAAC;QACD,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACzB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CA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C,KAAK,KAAK,SAAS,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,mBAAM,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QACtG,OAAO,GAAG,CAAC;IACb,CAAC;IANe,iBAAM,SAMrB,CAAA;IAED,SAAgB,MAAM,CAA8C,IAAQ;QAC1E,OAAO,UAAU,CAAC,WAAW,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC,CAAC;IAC5C,CAAC;IAFe,iBAAM,SAErB,CAAA;IAED,SAAgB,WAAW,CAA8C,MAAS;;QAChF,MAAM,OAAO,GAAG,oBAAoB,EAAE,CAAC;QACvC,OAAO,CAAC,KAAK,GAAG,MAAA,MAAM,CAAC,KAAK,mCAAI,CAAC,CAAC;QAClC,OAAO,CAAC,MAAM,GAAG,MAAA,MAAM,CAAC,MAAM,mCAAI,CAAC,CAAC;QACpC,OAAO,CAAC,KAAK,GAAG,CAAC,MAAM,CAAC,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,KAAK,IAAI,CAAC;YACnE,CAAC,CAAC,mBAAM,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC;YAClC,CAAC,CAAC,SAAS,CAAC;QACd,OAAO,OAAO,CAAC;IACjB,CAAC;IARe,sBAAW,cAQ1B,CAAA;AACH,CAAC,EAhFgB,UAAU,0BAAV,UAAU,QAgF1B;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
import { Vector2 } from "../../common/vectors.gen";
|
|
3
|
-
export declare const protobufPackage = "decentraland.sdk.components";
|
|
4
|
-
export interface PBUiScrollResult {
|
|
5
|
-
value: Vector2 | undefined;
|
|
6
|
-
}
|
|
7
|
-
export declare namespace PBUiScrollResult {
|
|
8
|
-
function encode(message: PBUiScrollResult, writer?: _m0.Writer): _m0.Writer;
|
|
9
|
-
function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiScrollResult;
|
|
10
|
-
function fromJSON(object: any): PBUiScrollResult;
|
|
11
|
-
function toJSON(message: PBUiScrollResult): unknown;
|
|
12
|
-
function create<I extends Exact<DeepPartial<PBUiScrollResult>, I>>(base?: I): PBUiScrollResult;
|
|
13
|
-
function fromPartial<I extends Exact<DeepPartial<PBUiScrollResult>, I>>(object: I): PBUiScrollResult;
|
|
14
|
-
}
|
|
15
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
16
|
-
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 {
|
|
17
|
-
$case: string;
|
|
18
|
-
} ? {
|
|
19
|
-
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
20
|
-
} & {
|
|
21
|
-
$case: T["$case"];
|
|
22
|
-
} : T extends {} ? {
|
|
23
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
24
|
-
} : Partial<T>;
|
|
25
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
26
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
27
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
28
|
-
} & {
|
|
29
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
30
|
-
};
|
|
31
|
-
export {};
|
|
@@ -1,71 +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.PBUiScrollResult = exports.protobufPackage = void 0;
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
-
const vectors_gen_1 = require("../../common/vectors.gen");
|
|
10
|
-
exports.protobufPackage = "decentraland.sdk.components";
|
|
11
|
-
function createBasePBUiScrollResult() {
|
|
12
|
-
return { value: undefined };
|
|
13
|
-
}
|
|
14
|
-
var PBUiScrollResult;
|
|
15
|
-
(function (PBUiScrollResult) {
|
|
16
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
17
|
-
if (message.value !== undefined) {
|
|
18
|
-
vectors_gen_1.Vector2.encode(message.value, writer.uint32(10).fork()).ldelim();
|
|
19
|
-
}
|
|
20
|
-
return writer;
|
|
21
|
-
}
|
|
22
|
-
PBUiScrollResult.encode = encode;
|
|
23
|
-
function decode(input, length) {
|
|
24
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
25
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
26
|
-
const message = createBasePBUiScrollResult();
|
|
27
|
-
while (reader.pos < end) {
|
|
28
|
-
const tag = reader.uint32();
|
|
29
|
-
switch (tag >>> 3) {
|
|
30
|
-
case 1:
|
|
31
|
-
if (tag !== 10) {
|
|
32
|
-
break;
|
|
33
|
-
}
|
|
34
|
-
message.value = vectors_gen_1.Vector2.decode(reader, reader.uint32());
|
|
35
|
-
continue;
|
|
36
|
-
}
|
|
37
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
38
|
-
break;
|
|
39
|
-
}
|
|
40
|
-
reader.skipType(tag & 7);
|
|
41
|
-
}
|
|
42
|
-
return message;
|
|
43
|
-
}
|
|
44
|
-
PBUiScrollResult.decode = decode;
|
|
45
|
-
function fromJSON(object) {
|
|
46
|
-
return { value: isSet(object.value) ? vectors_gen_1.Vector2.fromJSON(object.value) : undefined };
|
|
47
|
-
}
|
|
48
|
-
PBUiScrollResult.fromJSON = fromJSON;
|
|
49
|
-
function toJSON(message) {
|
|
50
|
-
const obj = {};
|
|
51
|
-
message.value !== undefined && (obj.value = message.value ? vectors_gen_1.Vector2.toJSON(message.value) : undefined);
|
|
52
|
-
return obj;
|
|
53
|
-
}
|
|
54
|
-
PBUiScrollResult.toJSON = toJSON;
|
|
55
|
-
function create(base) {
|
|
56
|
-
return PBUiScrollResult.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
57
|
-
}
|
|
58
|
-
PBUiScrollResult.create = create;
|
|
59
|
-
function fromPartial(object) {
|
|
60
|
-
const message = createBasePBUiScrollResult();
|
|
61
|
-
message.value = (object.value !== undefined && object.value !== null)
|
|
62
|
-
? vectors_gen_1.Vector2.fromPartial(object.value)
|
|
63
|
-
: undefined;
|
|
64
|
-
return message;
|
|
65
|
-
}
|
|
66
|
-
PBUiScrollResult.fromPartial = fromPartial;
|
|
67
|
-
})(PBUiScrollResult || (exports.PBUiScrollResult = PBUiScrollResult = {}));
|
|
68
|
-
function isSet(value) {
|
|
69
|
-
return value !== null && value !== undefined;
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=ui_scroll_result.gen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui_scroll_result.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/ui_scroll_result.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AACrC,0DAAmD;AAEtC,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAM7D,SAAS,0BAA0B;IACjC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;AAC9B,CAAC;AAED,IAAiB,gBAAgB,CAoDhC;AApDD,WAAiB,gBAAgB;IAC/B,SAAgB,MAAM,CAAC,OAAyB,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QACxF,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YAChC,qBAAO,CAAC,MAAM,CA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
|
-
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?:
|
|
33
|
-
| number
|
|
34
|
-
| undefined;
|
|
35
|
-
/** Height of the double jump (in meters) */
|
|
36
|
-
doubleJumpHeight?:
|
|
37
|
-
| number
|
|
38
|
-
| undefined;
|
|
39
|
-
/** Maximum speed when gliding (in meters per second) */
|
|
40
|
-
glidingSpeed?:
|
|
41
|
-
| number
|
|
42
|
-
| undefined;
|
|
43
|
-
/** Maximum falling speed when gliding (in meters per second) */
|
|
44
|
-
glidingFallingSpeed?: number | undefined;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function createBasePBAvatarLocomotionSettings(): PBAvatarLocomotionSettings {
|
|
48
|
-
return {
|
|
49
|
-
walkSpeed: undefined,
|
|
50
|
-
jogSpeed: undefined,
|
|
51
|
-
runSpeed: undefined,
|
|
52
|
-
jumpHeight: undefined,
|
|
53
|
-
runJumpHeight: undefined,
|
|
54
|
-
hardLandingCooldown: undefined,
|
|
55
|
-
doubleJumpHeight: undefined,
|
|
56
|
-
glidingSpeed: undefined,
|
|
57
|
-
glidingFallingSpeed: undefined,
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export namespace PBAvatarLocomotionSettings {
|
|
62
|
-
export function encode(message: PBAvatarLocomotionSettings, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
63
|
-
if (message.walkSpeed !== undefined) {
|
|
64
|
-
writer.uint32(13).float(message.walkSpeed);
|
|
65
|
-
}
|
|
66
|
-
if (message.jogSpeed !== undefined) {
|
|
67
|
-
writer.uint32(21).float(message.jogSpeed);
|
|
68
|
-
}
|
|
69
|
-
if (message.runSpeed !== undefined) {
|
|
70
|
-
writer.uint32(29).float(message.runSpeed);
|
|
71
|
-
}
|
|
72
|
-
if (message.jumpHeight !== undefined) {
|
|
73
|
-
writer.uint32(37).float(message.jumpHeight);
|
|
74
|
-
}
|
|
75
|
-
if (message.runJumpHeight !== undefined) {
|
|
76
|
-
writer.uint32(45).float(message.runJumpHeight);
|
|
77
|
-
}
|
|
78
|
-
if (message.hardLandingCooldown !== undefined) {
|
|
79
|
-
writer.uint32(53).float(message.hardLandingCooldown);
|
|
80
|
-
}
|
|
81
|
-
if (message.doubleJumpHeight !== undefined) {
|
|
82
|
-
writer.uint32(61).float(message.doubleJumpHeight);
|
|
83
|
-
}
|
|
84
|
-
if (message.glidingSpeed !== undefined) {
|
|
85
|
-
writer.uint32(69).float(message.glidingSpeed);
|
|
86
|
-
}
|
|
87
|
-
if (message.glidingFallingSpeed !== undefined) {
|
|
88
|
-
writer.uint32(77).float(message.glidingFallingSpeed);
|
|
89
|
-
}
|
|
90
|
-
return writer;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings {
|
|
94
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
95
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
96
|
-
const message = createBasePBAvatarLocomotionSettings();
|
|
97
|
-
while (reader.pos < end) {
|
|
98
|
-
const tag = reader.uint32();
|
|
99
|
-
switch (tag >>> 3) {
|
|
100
|
-
case 1:
|
|
101
|
-
if (tag !== 13) {
|
|
102
|
-
break;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
message.walkSpeed = reader.float();
|
|
106
|
-
continue;
|
|
107
|
-
case 2:
|
|
108
|
-
if (tag !== 21) {
|
|
109
|
-
break;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
message.jogSpeed = reader.float();
|
|
113
|
-
continue;
|
|
114
|
-
case 3:
|
|
115
|
-
if (tag !== 29) {
|
|
116
|
-
break;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
message.runSpeed = reader.float();
|
|
120
|
-
continue;
|
|
121
|
-
case 4:
|
|
122
|
-
if (tag !== 37) {
|
|
123
|
-
break;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
message.jumpHeight = reader.float();
|
|
127
|
-
continue;
|
|
128
|
-
case 5:
|
|
129
|
-
if (tag !== 45) {
|
|
130
|
-
break;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
message.runJumpHeight = reader.float();
|
|
134
|
-
continue;
|
|
135
|
-
case 6:
|
|
136
|
-
if (tag !== 53) {
|
|
137
|
-
break;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
message.hardLandingCooldown = reader.float();
|
|
141
|
-
continue;
|
|
142
|
-
case 7:
|
|
143
|
-
if (tag !== 61) {
|
|
144
|
-
break;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
message.doubleJumpHeight = reader.float();
|
|
148
|
-
continue;
|
|
149
|
-
case 8:
|
|
150
|
-
if (tag !== 69) {
|
|
151
|
-
break;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
message.glidingSpeed = reader.float();
|
|
155
|
-
continue;
|
|
156
|
-
case 9:
|
|
157
|
-
if (tag !== 77) {
|
|
158
|
-
break;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
message.glidingFallingSpeed = reader.float();
|
|
162
|
-
continue;
|
|
163
|
-
}
|
|
164
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
165
|
-
break;
|
|
166
|
-
}
|
|
167
|
-
reader.skipType(tag & 7);
|
|
168
|
-
}
|
|
169
|
-
return message;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
export function fromJSON(object: any): PBAvatarLocomotionSettings {
|
|
173
|
-
return {
|
|
174
|
-
walkSpeed: isSet(object.walkSpeed) ? Number(object.walkSpeed) : undefined,
|
|
175
|
-
jogSpeed: isSet(object.jogSpeed) ? Number(object.jogSpeed) : undefined,
|
|
176
|
-
runSpeed: isSet(object.runSpeed) ? Number(object.runSpeed) : undefined,
|
|
177
|
-
jumpHeight: isSet(object.jumpHeight) ? Number(object.jumpHeight) : undefined,
|
|
178
|
-
runJumpHeight: isSet(object.runJumpHeight) ? Number(object.runJumpHeight) : undefined,
|
|
179
|
-
hardLandingCooldown: isSet(object.hardLandingCooldown) ? Number(object.hardLandingCooldown) : undefined,
|
|
180
|
-
doubleJumpHeight: isSet(object.doubleJumpHeight) ? Number(object.doubleJumpHeight) : undefined,
|
|
181
|
-
glidingSpeed: isSet(object.glidingSpeed) ? Number(object.glidingSpeed) : undefined,
|
|
182
|
-
glidingFallingSpeed: isSet(object.glidingFallingSpeed) ? Number(object.glidingFallingSpeed) : undefined,
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export function toJSON(message: PBAvatarLocomotionSettings): unknown {
|
|
187
|
-
const obj: any = {};
|
|
188
|
-
message.walkSpeed !== undefined && (obj.walkSpeed = message.walkSpeed);
|
|
189
|
-
message.jogSpeed !== undefined && (obj.jogSpeed = message.jogSpeed);
|
|
190
|
-
message.runSpeed !== undefined && (obj.runSpeed = message.runSpeed);
|
|
191
|
-
message.jumpHeight !== undefined && (obj.jumpHeight = message.jumpHeight);
|
|
192
|
-
message.runJumpHeight !== undefined && (obj.runJumpHeight = message.runJumpHeight);
|
|
193
|
-
message.hardLandingCooldown !== undefined && (obj.hardLandingCooldown = message.hardLandingCooldown);
|
|
194
|
-
message.doubleJumpHeight !== undefined && (obj.doubleJumpHeight = message.doubleJumpHeight);
|
|
195
|
-
message.glidingSpeed !== undefined && (obj.glidingSpeed = message.glidingSpeed);
|
|
196
|
-
message.glidingFallingSpeed !== undefined && (obj.glidingFallingSpeed = message.glidingFallingSpeed);
|
|
197
|
-
return obj;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
export function create<I extends Exact<DeepPartial<PBAvatarLocomotionSettings>, I>>(
|
|
201
|
-
base?: I,
|
|
202
|
-
): PBAvatarLocomotionSettings {
|
|
203
|
-
return PBAvatarLocomotionSettings.fromPartial(base ?? {});
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export function fromPartial<I extends Exact<DeepPartial<PBAvatarLocomotionSettings>, I>>(
|
|
207
|
-
object: I,
|
|
208
|
-
): PBAvatarLocomotionSettings {
|
|
209
|
-
const message = createBasePBAvatarLocomotionSettings();
|
|
210
|
-
message.walkSpeed = object.walkSpeed ?? undefined;
|
|
211
|
-
message.jogSpeed = object.jogSpeed ?? undefined;
|
|
212
|
-
message.runSpeed = object.runSpeed ?? undefined;
|
|
213
|
-
message.jumpHeight = object.jumpHeight ?? undefined;
|
|
214
|
-
message.runJumpHeight = object.runJumpHeight ?? undefined;
|
|
215
|
-
message.hardLandingCooldown = object.hardLandingCooldown ?? undefined;
|
|
216
|
-
message.doubleJumpHeight = object.doubleJumpHeight ?? undefined;
|
|
217
|
-
message.glidingSpeed = object.glidingSpeed ?? undefined;
|
|
218
|
-
message.glidingFallingSpeed = object.glidingFallingSpeed ?? undefined;
|
|
219
|
-
return message;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
224
|
-
|
|
225
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
226
|
-
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
227
|
-
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
228
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
229
|
-
: Partial<T>;
|
|
230
|
-
|
|
231
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
232
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
233
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
234
|
-
|
|
235
|
-
function isSet(value: any): boolean {
|
|
236
|
-
return value !== null && value !== undefined;
|
|
237
|
-
}
|