@dcl/protocol 1.0.0-4427886959.commit-6b9dcb5 → 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.
- package/out-js/decentraland/common/border_rect.gen.d.ts +54 -0
- package/out-js/decentraland/common/border_rect.gen.js +87 -0
- package/out-js/decentraland/common/border_rect.gen.js.map +1 -0
- package/out-js/decentraland/common/colors.gen.d.ts +82 -0
- package/out-js/decentraland/common/colors.gen.js +152 -0
- package/out-js/decentraland/common/colors.gen.js.map +1 -0
- package/out-js/decentraland/common/texture.gen.d.ts +319 -0
- package/out-js/decentraland/common/texture.gen.js +384 -0
- package/out-js/decentraland/common/texture.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/animator.gen.d.ts +184 -0
- package/out-js/decentraland/sdk/components/animator.gen.js +172 -0
- package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/audio_source.gen.d.ts +74 -0
- package/out-js/decentraland/sdk/components/audio_source.gen.js +96 -0
- package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/audio_stream.gen.d.ts +56 -0
- package/out-js/decentraland/sdk/components/audio_stream.gen.js +78 -0
- package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_attach.gen.d.ts +65 -0
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js +115 -0
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +100 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +137 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +192 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +210 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/billboard.gen.d.ts +59 -0
- package/out-js/decentraland/sdk/components/billboard.gen.js +114 -0
- package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/camera_mode.gen.d.ts +44 -0
- package/out-js/decentraland/sdk/components/camera_mode.gen.js +59 -0
- package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +84 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +71 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/camera_type.gen.d.ts +8 -0
- package/out-js/decentraland/sdk/components/common/camera_type.gen.js +39 -0
- package/out-js/decentraland/sdk/components/common/camera_type.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/id.gen.d.ts +1 -0
- package/out-js/decentraland/sdk/components/common/id.gen.js +6 -0
- package/out-js/decentraland/sdk/components/common/id.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +20 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +111 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/texts.gen.d.ts +23 -0
- package/out-js/decentraland/sdk/components/common/texts.gen.js +120 -0
- package/out-js/decentraland/sdk/components/common/texts.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.d.ts +45 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.js +58 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/material.gen.d.ts +3452 -0
- package/out-js/decentraland/sdk/components/material.gen.js +437 -0
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +250 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +324 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +284 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +320 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.d.ts +114 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.js +242 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +249 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.js +248 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.d.ts +241 -0
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +99 -0
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_lock.gen.d.ts +43 -0
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js +58 -0
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/raycast.gen.d.ts +118 -0
- package/out-js/decentraland/sdk/components/raycast.gen.js +127 -0
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/raycast_result.gen.d.ts +536 -0
- package/out-js/decentraland/sdk/components/raycast_result.gen.js +243 -0
- package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +247 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.js +274 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_background.gen.d.ts +369 -0
- package/out-js/decentraland/sdk/components/ui_background.gen.js +175 -0
- package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +115 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +152 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.d.ts +38 -0
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js +58 -0
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +140 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.js +140 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.d.ts +38 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js +58 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +95 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.js +101 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +403 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +1000 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/video_player.gen.d.ts +69 -0
- package/out-js/decentraland/sdk/components/video_player.gen.js +112 -0
- package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.d.ts +39 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.js +58 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -0
- package/out-js/google/protobuf/descriptor.gen.d.ts +87384 -0
- package/out-js/google/protobuf/descriptor.gen.js +2645 -0
- package/out-js/google/protobuf/descriptor.gen.js.map +1 -0
- package/out-js/sdk-components.gen.d.ts +1 -0
- package/out-js/sdk-components.gen.js +6 -0
- package/out-js/sdk-components.gen.js.map +1 -0
- package/out-ts/decentraland/common/border_rect.gen.ts +108 -0
- package/out-ts/decentraland/common/colors.gen.ts +184 -0
- package/out-ts/decentraland/common/texture.gen.ts +454 -0
- package/out-ts/decentraland/sdk/components/animator.gen.ts +229 -0
- package/out-ts/decentraland/sdk/components/audio_source.gen.ts +141 -0
- package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +109 -0
- package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +147 -0
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +172 -0
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +288 -0
- package/out-ts/decentraland/sdk/components/billboard.gen.ts +140 -0
- package/out-ts/decentraland/sdk/components/camera_mode.gen.ts +81 -0
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +106 -0
- package/out-ts/decentraland/sdk/components/common/camera_type.gen.ts +36 -0
- package/out-ts/decentraland/sdk/components/common/id.gen.ts +3 -0
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +108 -0
- package/out-ts/decentraland/sdk/components/common/texts.gen.ts +117 -0
- package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +82 -0
- package/out-ts/decentraland/sdk/components/material.gen.ts +546 -0
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +403 -0
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +395 -0
- package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +275 -0
- package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +316 -0
- package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +124 -0
- package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +80 -0
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +159 -0
- package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +315 -0
- package/out-ts/decentraland/sdk/components/text_shape.gen.ts +385 -0
- package/out-ts/decentraland/sdk/components/ui_background.gen.ts +199 -0
- package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +194 -0
- package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +75 -0
- package/out-ts/decentraland/sdk/components/ui_input.gen.ts +182 -0
- package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +75 -0
- package/out-ts/decentraland/sdk/components/ui_text.gen.ts +140 -0
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +1104 -0
- package/out-ts/decentraland/sdk/components/video_player.gen.ts +148 -0
- package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +76 -0
- package/out-ts/google/protobuf/descriptor.gen.ts +2961 -0
- package/out-ts/sdk-components.gen.ts +3 -0
- package/package.json +2 -2
- package/public/sdk-components.proto +33 -0
|
@@ -0,0 +1,58 @@
|
|
|
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.PBPointerLock = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
+
exports.protobufPackage = "decentraland.sdk.components";
|
|
10
|
+
function createBasePBPointerLock() {
|
|
11
|
+
return { isPointerLocked: false };
|
|
12
|
+
}
|
|
13
|
+
exports.PBPointerLock = {
|
|
14
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
15
|
+
if (message.isPointerLocked === true) {
|
|
16
|
+
writer.uint32(8).bool(message.isPointerLocked);
|
|
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 = createBasePBPointerLock();
|
|
24
|
+
while (reader.pos < end) {
|
|
25
|
+
const tag = reader.uint32();
|
|
26
|
+
switch (tag >>> 3) {
|
|
27
|
+
case 1:
|
|
28
|
+
message.isPointerLocked = reader.bool();
|
|
29
|
+
break;
|
|
30
|
+
default:
|
|
31
|
+
reader.skipType(tag & 7);
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return message;
|
|
36
|
+
},
|
|
37
|
+
fromJSON(object) {
|
|
38
|
+
return { isPointerLocked: isSet(object.isPointerLocked) ? Boolean(object.isPointerLocked) : false };
|
|
39
|
+
},
|
|
40
|
+
toJSON(message) {
|
|
41
|
+
const obj = {};
|
|
42
|
+
message.isPointerLocked !== undefined && (obj.isPointerLocked = message.isPointerLocked);
|
|
43
|
+
return obj;
|
|
44
|
+
},
|
|
45
|
+
create(base) {
|
|
46
|
+
return exports.PBPointerLock.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
47
|
+
},
|
|
48
|
+
fromPartial(object) {
|
|
49
|
+
var _a;
|
|
50
|
+
const message = createBasePBPointerLock();
|
|
51
|
+
message.isPointerLocked = (_a = object.isPointerLocked) !== null && _a !== void 0 ? _a : false;
|
|
52
|
+
return message;
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
function isSet(value) {
|
|
56
|
+
return value !== null && value !== undefined;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=pointer_lock.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pointer_lock.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/pointer_lock.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAW7D,SAAS,uBAAuB;IAC9B,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC;AACpC,CAAC;AAEY,QAAA,aAAa,GAAG;IAC3B,MAAM,CAAC,OAAsB,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QACrE,IAAI,OAAO,CAAC,eAAe,K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,OAAO,GAAG,CAAC;IACb,CAAC;IAED,MAAM,CAAiD,IAAQ;QAC7D,OAAO,qBAAa,CAAC,WAAW,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC,CAAC;IAC/C,CAAC;IAED,WAAW,CAAiD,MAAS;;QACnE,MAAM,OAAO,GAAG,uBAAuB,EAAE,CAAC;QAC1C,OAAO,CAAC,eAAe,GAAG,MAAA,MAAM,CAAC,eAAe,mCAAI,KAAK,CAAC;QAC1D,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,118 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { Vector3 } from "../../common/vectors.gen";
|
|
3
|
+
export declare const protobufPackage = "decentraland.sdk.components";
|
|
4
|
+
/** RaycastQueryType indicates whether the ray should stop on the first collition, or continue. */
|
|
5
|
+
export declare enum RaycastQueryType {
|
|
6
|
+
RQT_HIT_FIRST = 0,
|
|
7
|
+
RQT_QUERY_ALL = 1,
|
|
8
|
+
UNRECOGNIZED = -1
|
|
9
|
+
}
|
|
10
|
+
export declare function raycastQueryTypeFromJSON(object: any): RaycastQueryType;
|
|
11
|
+
export declare function raycastQueryTypeToJSON(object: RaycastQueryType): string;
|
|
12
|
+
/**
|
|
13
|
+
* The Raycast component allows scenes to request raycasting from the game engine. The results will
|
|
14
|
+
* be available in a RaycastResult component set later on the same Entity.
|
|
15
|
+
*/
|
|
16
|
+
export interface PBRaycast {
|
|
17
|
+
/** the starting point of the ray in 3D space */
|
|
18
|
+
origin: Vector3 | undefined;
|
|
19
|
+
/** the direction of the ray in 3D space */
|
|
20
|
+
direction: Vector3 | undefined;
|
|
21
|
+
/** the maximum length of the ray */
|
|
22
|
+
maxDistance: number;
|
|
23
|
+
/** the RaycastQueryType behavior (see above) */
|
|
24
|
+
queryType: RaycastQueryType;
|
|
25
|
+
}
|
|
26
|
+
export declare const PBRaycast: {
|
|
27
|
+
encode(message: PBRaycast, writer?: _m0.Writer): _m0.Writer;
|
|
28
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBRaycast;
|
|
29
|
+
fromJSON(object: any): PBRaycast;
|
|
30
|
+
toJSON(message: PBRaycast): unknown;
|
|
31
|
+
create<I extends {
|
|
32
|
+
origin?: {
|
|
33
|
+
x?: number | undefined;
|
|
34
|
+
y?: number | undefined;
|
|
35
|
+
z?: number | undefined;
|
|
36
|
+
} | undefined;
|
|
37
|
+
direction?: {
|
|
38
|
+
x?: number | undefined;
|
|
39
|
+
y?: number | undefined;
|
|
40
|
+
z?: number | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
maxDistance?: number | undefined;
|
|
43
|
+
queryType?: RaycastQueryType | undefined;
|
|
44
|
+
} & {
|
|
45
|
+
origin?: ({
|
|
46
|
+
x?: number | undefined;
|
|
47
|
+
y?: number | undefined;
|
|
48
|
+
z?: number | undefined;
|
|
49
|
+
} & {
|
|
50
|
+
x?: number | undefined;
|
|
51
|
+
y?: number | undefined;
|
|
52
|
+
z?: number | undefined;
|
|
53
|
+
} & { [K in Exclude<keyof I["origin"], keyof Vector3>]: never; }) | undefined;
|
|
54
|
+
direction?: ({
|
|
55
|
+
x?: number | undefined;
|
|
56
|
+
y?: number | undefined;
|
|
57
|
+
z?: number | undefined;
|
|
58
|
+
} & {
|
|
59
|
+
x?: number | undefined;
|
|
60
|
+
y?: number | undefined;
|
|
61
|
+
z?: number | undefined;
|
|
62
|
+
} & { [K_1 in Exclude<keyof I["direction"], keyof Vector3>]: never; }) | undefined;
|
|
63
|
+
maxDistance?: number | undefined;
|
|
64
|
+
queryType?: RaycastQueryType | undefined;
|
|
65
|
+
} & { [K_2 in Exclude<keyof I, keyof PBRaycast>]: never; }>(base?: I | undefined): PBRaycast;
|
|
66
|
+
fromPartial<I_1 extends {
|
|
67
|
+
origin?: {
|
|
68
|
+
x?: number | undefined;
|
|
69
|
+
y?: number | undefined;
|
|
70
|
+
z?: number | undefined;
|
|
71
|
+
} | undefined;
|
|
72
|
+
direction?: {
|
|
73
|
+
x?: number | undefined;
|
|
74
|
+
y?: number | undefined;
|
|
75
|
+
z?: number | undefined;
|
|
76
|
+
} | undefined;
|
|
77
|
+
maxDistance?: number | undefined;
|
|
78
|
+
queryType?: RaycastQueryType | undefined;
|
|
79
|
+
} & {
|
|
80
|
+
origin?: ({
|
|
81
|
+
x?: number | undefined;
|
|
82
|
+
y?: number | undefined;
|
|
83
|
+
z?: number | undefined;
|
|
84
|
+
} & {
|
|
85
|
+
x?: number | undefined;
|
|
86
|
+
y?: number | undefined;
|
|
87
|
+
z?: number | undefined;
|
|
88
|
+
} & { [K_3 in Exclude<keyof I_1["origin"], keyof Vector3>]: never; }) | undefined;
|
|
89
|
+
direction?: ({
|
|
90
|
+
x?: number | undefined;
|
|
91
|
+
y?: number | undefined;
|
|
92
|
+
z?: number | undefined;
|
|
93
|
+
} & {
|
|
94
|
+
x?: number | undefined;
|
|
95
|
+
y?: number | undefined;
|
|
96
|
+
z?: number | undefined;
|
|
97
|
+
} & { [K_4 in Exclude<keyof I_1["direction"], keyof Vector3>]: never; }) | undefined;
|
|
98
|
+
maxDistance?: number | undefined;
|
|
99
|
+
queryType?: RaycastQueryType | undefined;
|
|
100
|
+
} & { [K_5 in Exclude<keyof I_1, keyof PBRaycast>]: never; }>(object: I_1): PBRaycast;
|
|
101
|
+
};
|
|
102
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
103
|
+
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 {
|
|
104
|
+
$case: string;
|
|
105
|
+
} ? {
|
|
106
|
+
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
107
|
+
} & {
|
|
108
|
+
$case: T["$case"];
|
|
109
|
+
} : T extends {} ? {
|
|
110
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
111
|
+
} : Partial<T>;
|
|
112
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
113
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
114
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
115
|
+
} & {
|
|
116
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
117
|
+
};
|
|
118
|
+
export {};
|
|
@@ -0,0 +1,127 @@
|
|
|
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.PBRaycast = exports.raycastQueryTypeToJSON = exports.raycastQueryTypeFromJSON = exports.RaycastQueryType = 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
|
+
/** RaycastQueryType indicates whether the ray should stop on the first collition, or continue. */
|
|
12
|
+
var RaycastQueryType;
|
|
13
|
+
(function (RaycastQueryType) {
|
|
14
|
+
RaycastQueryType[RaycastQueryType["RQT_HIT_FIRST"] = 0] = "RQT_HIT_FIRST";
|
|
15
|
+
RaycastQueryType[RaycastQueryType["RQT_QUERY_ALL"] = 1] = "RQT_QUERY_ALL";
|
|
16
|
+
RaycastQueryType[RaycastQueryType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
17
|
+
})(RaycastQueryType = exports.RaycastQueryType || (exports.RaycastQueryType = {}));
|
|
18
|
+
function raycastQueryTypeFromJSON(object) {
|
|
19
|
+
switch (object) {
|
|
20
|
+
case 0:
|
|
21
|
+
case "RQT_HIT_FIRST":
|
|
22
|
+
return RaycastQueryType.RQT_HIT_FIRST;
|
|
23
|
+
case 1:
|
|
24
|
+
case "RQT_QUERY_ALL":
|
|
25
|
+
return RaycastQueryType.RQT_QUERY_ALL;
|
|
26
|
+
case -1:
|
|
27
|
+
case "UNRECOGNIZED":
|
|
28
|
+
default:
|
|
29
|
+
return RaycastQueryType.UNRECOGNIZED;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.raycastQueryTypeFromJSON = raycastQueryTypeFromJSON;
|
|
33
|
+
function raycastQueryTypeToJSON(object) {
|
|
34
|
+
switch (object) {
|
|
35
|
+
case RaycastQueryType.RQT_HIT_FIRST:
|
|
36
|
+
return "RQT_HIT_FIRST";
|
|
37
|
+
case RaycastQueryType.RQT_QUERY_ALL:
|
|
38
|
+
return "RQT_QUERY_ALL";
|
|
39
|
+
case RaycastQueryType.UNRECOGNIZED:
|
|
40
|
+
default:
|
|
41
|
+
return "UNRECOGNIZED";
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.raycastQueryTypeToJSON = raycastQueryTypeToJSON;
|
|
45
|
+
function createBasePBRaycast() {
|
|
46
|
+
return { origin: undefined, direction: undefined, maxDistance: 0, queryType: 0 };
|
|
47
|
+
}
|
|
48
|
+
exports.PBRaycast = {
|
|
49
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
50
|
+
if (message.origin !== undefined) {
|
|
51
|
+
vectors_gen_1.Vector3.encode(message.origin, writer.uint32(18).fork()).ldelim();
|
|
52
|
+
}
|
|
53
|
+
if (message.direction !== undefined) {
|
|
54
|
+
vectors_gen_1.Vector3.encode(message.direction, writer.uint32(26).fork()).ldelim();
|
|
55
|
+
}
|
|
56
|
+
if (message.maxDistance !== 0) {
|
|
57
|
+
writer.uint32(37).float(message.maxDistance);
|
|
58
|
+
}
|
|
59
|
+
if (message.queryType !== 0) {
|
|
60
|
+
writer.uint32(40).int32(message.queryType);
|
|
61
|
+
}
|
|
62
|
+
return writer;
|
|
63
|
+
},
|
|
64
|
+
decode(input, length) {
|
|
65
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
66
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
67
|
+
const message = createBasePBRaycast();
|
|
68
|
+
while (reader.pos < end) {
|
|
69
|
+
const tag = reader.uint32();
|
|
70
|
+
switch (tag >>> 3) {
|
|
71
|
+
case 2:
|
|
72
|
+
message.origin = vectors_gen_1.Vector3.decode(reader, reader.uint32());
|
|
73
|
+
break;
|
|
74
|
+
case 3:
|
|
75
|
+
message.direction = vectors_gen_1.Vector3.decode(reader, reader.uint32());
|
|
76
|
+
break;
|
|
77
|
+
case 4:
|
|
78
|
+
message.maxDistance = reader.float();
|
|
79
|
+
break;
|
|
80
|
+
case 5:
|
|
81
|
+
message.queryType = reader.int32();
|
|
82
|
+
break;
|
|
83
|
+
default:
|
|
84
|
+
reader.skipType(tag & 7);
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return message;
|
|
89
|
+
},
|
|
90
|
+
fromJSON(object) {
|
|
91
|
+
return {
|
|
92
|
+
origin: isSet(object.origin) ? vectors_gen_1.Vector3.fromJSON(object.origin) : undefined,
|
|
93
|
+
direction: isSet(object.direction) ? vectors_gen_1.Vector3.fromJSON(object.direction) : undefined,
|
|
94
|
+
maxDistance: isSet(object.maxDistance) ? Number(object.maxDistance) : 0,
|
|
95
|
+
queryType: isSet(object.queryType) ? raycastQueryTypeFromJSON(object.queryType) : 0,
|
|
96
|
+
};
|
|
97
|
+
},
|
|
98
|
+
toJSON(message) {
|
|
99
|
+
const obj = {};
|
|
100
|
+
message.origin !== undefined && (obj.origin = message.origin ? vectors_gen_1.Vector3.toJSON(message.origin) : undefined);
|
|
101
|
+
message.direction !== undefined &&
|
|
102
|
+
(obj.direction = message.direction ? vectors_gen_1.Vector3.toJSON(message.direction) : undefined);
|
|
103
|
+
message.maxDistance !== undefined && (obj.maxDistance = message.maxDistance);
|
|
104
|
+
message.queryType !== undefined && (obj.queryType = raycastQueryTypeToJSON(message.queryType));
|
|
105
|
+
return obj;
|
|
106
|
+
},
|
|
107
|
+
create(base) {
|
|
108
|
+
return exports.PBRaycast.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
109
|
+
},
|
|
110
|
+
fromPartial(object) {
|
|
111
|
+
var _a, _b;
|
|
112
|
+
const message = createBasePBRaycast();
|
|
113
|
+
message.origin = (object.origin !== undefined && object.origin !== null)
|
|
114
|
+
? vectors_gen_1.Vector3.fromPartial(object.origin)
|
|
115
|
+
: undefined;
|
|
116
|
+
message.direction = (object.direction !== undefined && object.direction !== null)
|
|
117
|
+
? vectors_gen_1.Vector3.fromPartial(object.direction)
|
|
118
|
+
: undefined;
|
|
119
|
+
message.maxDistance = (_a = object.maxDistance) !== null && _a !== void 0 ? _a : 0;
|
|
120
|
+
message.queryType = (_b = object.queryType) !== null && _b !== void 0 ? _b : 0;
|
|
121
|
+
return message;
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
function isSet(value) {
|
|
125
|
+
return value !== null && value !== undefined;
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=raycast.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raycast.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/raycast.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AACrC,0DAAmD;AAEtC,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAE7D,kGAAkG;AAClG,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,yEAAiB,CAAA;IACjB,yEAAiB,CAAA;IACjB,wEAAiB,CAAA;AACnB,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AAED,SAAgB,wBAAwB,CAAC,MAAW;IAClD,QAAQ,MAAM,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