@dcl/ecs 7.8.9-15283822925.commit-b281f0c → 7.8.10-15453890617.commit-9dc90d3
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/dist/components/generated/PrimaryPointerInfo.gen.d.ts +1 -0
- package/dist/components/generated/PrimaryPointerInfo.gen.js +25 -0
- package/dist/components/generated/component-names.gen.js +1 -0
- package/dist/components/generated/global.gen.d.ts +2 -0
- package/dist/components/generated/global.gen.js +1 -0
- package/dist/components/generated/index.gen.d.ts +4 -0
- package/dist/components/generated/index.gen.js +5 -0
- package/dist/components/generated/pb/decentraland/sdk/components/primary_pointer_info.gen.d.ts +55 -0
- package/dist/components/generated/pb/decentraland/sdk/components/primary_pointer_info.gen.js +83 -0
- package/dist/components/generated/pb/decentraland/sdk/components/realm_info.gen.d.ts +7 -0
- package/dist-cjs/components/generated/PrimaryPointerInfo.gen.d.ts +1 -0
- package/dist-cjs/components/generated/PrimaryPointerInfo.gen.js +28 -0
- package/dist-cjs/components/generated/component-names.gen.js +1 -0
- package/dist-cjs/components/generated/global.gen.d.ts +2 -0
- package/dist-cjs/components/generated/global.gen.js +2 -1
- package/dist-cjs/components/generated/index.gen.d.ts +4 -0
- package/dist-cjs/components/generated/index.gen.js +7 -1
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/primary_pointer_info.gen.d.ts +55 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/primary_pointer_info.gen.js +89 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/realm_info.gen.d.ts +7 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PBPrimaryPointerInfo } from './pb/decentraland/sdk/components/primary_pointer_info.gen';
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export const PrimaryPointerInfoSchema = {
|
|
6
|
+
COMPONENT_ID: 1209,
|
|
7
|
+
serialize(value, builder) {
|
|
8
|
+
const writer = PBPrimaryPointerInfo.encode(value);
|
|
9
|
+
const buffer = new Uint8Array(writer.finish(), 0, writer.len);
|
|
10
|
+
builder.writeBuffer(buffer, false);
|
|
11
|
+
},
|
|
12
|
+
deserialize(reader) {
|
|
13
|
+
return PBPrimaryPointerInfo.decode(reader.buffer(), reader.remainingBytes());
|
|
14
|
+
},
|
|
15
|
+
create() {
|
|
16
|
+
// TODO: this is a hack.
|
|
17
|
+
return PBPrimaryPointerInfo.decode(new Uint8Array());
|
|
18
|
+
},
|
|
19
|
+
jsonSchema: {
|
|
20
|
+
type: "object",
|
|
21
|
+
properties: {},
|
|
22
|
+
serializationType: "protocol-buffer",
|
|
23
|
+
protocolBuffer: "PBPrimaryPointerInfo"
|
|
24
|
+
}
|
|
25
|
+
};
|
|
@@ -22,6 +22,7 @@ import { PBPlayerIdentityData } from './pb/decentraland/sdk/components/player_id
|
|
|
22
22
|
import { PBPointerEvents } from './pb/decentraland/sdk/components/pointer_events.gen';
|
|
23
23
|
import { PBPointerEventsResult } from './pb/decentraland/sdk/components/pointer_events_result.gen';
|
|
24
24
|
import { PBPointerLock } from './pb/decentraland/sdk/components/pointer_lock.gen';
|
|
25
|
+
import { PBPrimaryPointerInfo } from './pb/decentraland/sdk/components/primary_pointer_info.gen';
|
|
25
26
|
import { PBRaycast } from './pb/decentraland/sdk/components/raycast.gen';
|
|
26
27
|
import { PBRaycastResult } from './pb/decentraland/sdk/components/raycast_result.gen';
|
|
27
28
|
import { PBRealmInfo } from './pb/decentraland/sdk/components/realm_info.gen';
|
|
@@ -62,6 +63,7 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
|
|
|
62
63
|
/** @public */ export declare const PointerEvents: LastWriteWinElementSetComponentDefinition<PBPointerEvents>;
|
|
63
64
|
/** @public */ export declare const PointerEventsResult: GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>;
|
|
64
65
|
/** @public */ export declare const PointerLock: LastWriteWinElementSetComponentDefinition<PBPointerLock>;
|
|
66
|
+
/** @public */ export declare const PrimaryPointerInfo: LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>;
|
|
65
67
|
/** @public */ export declare const Raycast: LastWriteWinElementSetComponentDefinition<PBRaycast>;
|
|
66
68
|
/** @public */ export declare const RaycastResult: LastWriteWinElementSetComponentDefinition<PBRaycastResult>;
|
|
67
69
|
/** @public */ export declare const RealmInfo: LastWriteWinElementSetComponentDefinition<PBRealmInfo>;
|
|
@@ -23,6 +23,7 @@ export * from './index.gen';
|
|
|
23
23
|
/** @public */ export const PointerEvents = /* @__PURE__ */ components.PointerEvents(engine);
|
|
24
24
|
/** @public */ export const PointerEventsResult = /* @__PURE__ */ components.PointerEventsResult(engine);
|
|
25
25
|
/** @public */ export const PointerLock = /* @__PURE__ */ components.PointerLock(engine);
|
|
26
|
+
/** @public */ export const PrimaryPointerInfo = /* @__PURE__ */ components.PrimaryPointerInfo(engine);
|
|
26
27
|
/** @public */ export const Raycast = /* @__PURE__ */ components.Raycast(engine);
|
|
27
28
|
/** @public */ export const RaycastResult = /* @__PURE__ */ components.RaycastResult(engine);
|
|
28
29
|
/** @public */ export const RealmInfo = /* @__PURE__ */ components.RealmInfo(engine);
|
|
@@ -26,6 +26,7 @@ import { PBPlayerIdentityData } from './pb/decentraland/sdk/components/player_id
|
|
|
26
26
|
import { PBPointerEvents } from './pb/decentraland/sdk/components/pointer_events.gen';
|
|
27
27
|
import { PBPointerEventsResult } from './pb/decentraland/sdk/components/pointer_events_result.gen';
|
|
28
28
|
import { PBPointerLock } from './pb/decentraland/sdk/components/pointer_lock.gen';
|
|
29
|
+
import { PBPrimaryPointerInfo } from './pb/decentraland/sdk/components/primary_pointer_info.gen';
|
|
29
30
|
import { PBRaycast } from './pb/decentraland/sdk/components/raycast.gen';
|
|
30
31
|
import { PBRaycastResult } from './pb/decentraland/sdk/components/raycast_result.gen';
|
|
31
32
|
import { PBRealmInfo } from './pb/decentraland/sdk/components/realm_info.gen';
|
|
@@ -71,6 +72,7 @@ export * from './pb/decentraland/sdk/components/player_identity_data.gen';
|
|
|
71
72
|
export * from './pb/decentraland/sdk/components/pointer_events.gen';
|
|
72
73
|
export * from './pb/decentraland/sdk/components/pointer_events_result.gen';
|
|
73
74
|
export * from './pb/decentraland/sdk/components/pointer_lock.gen';
|
|
75
|
+
export * from './pb/decentraland/sdk/components/primary_pointer_info.gen';
|
|
74
76
|
export * from './pb/decentraland/sdk/components/raycast.gen';
|
|
75
77
|
export * from './pb/decentraland/sdk/components/raycast_result.gen';
|
|
76
78
|
export * from './pb/decentraland/sdk/components/realm_info.gen';
|
|
@@ -118,6 +120,7 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
|
|
|
118
120
|
/** @public */ export declare const PointerEvents: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
|
|
119
121
|
/** @public */ export declare const PointerEventsResult: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
|
|
120
122
|
/** @public */ export declare const PointerLock: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerLock>>;
|
|
123
|
+
/** @public */ export declare const PrimaryPointerInfo: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>>;
|
|
121
124
|
/** @public */ export declare const Raycast: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
|
|
122
125
|
/** @public */ export declare const RaycastResult: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
|
123
126
|
/** @public */ export declare const RealmInfo: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
|
@@ -165,6 +168,7 @@ export declare const componentDefinitionByName: {
|
|
|
165
168
|
"core::PointerEvents": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
|
|
166
169
|
"core::PointerEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
|
|
167
170
|
"core::PointerLock": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerLock>>;
|
|
171
|
+
"core::PrimaryPointerInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>>;
|
|
168
172
|
"core::Raycast": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
|
|
169
173
|
"core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
|
170
174
|
"core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
|
@@ -24,6 +24,7 @@ import { PlayerIdentityDataSchema } from './PlayerIdentityData.gen';
|
|
|
24
24
|
import { PointerEventsSchema } from './PointerEvents.gen';
|
|
25
25
|
import { PointerEventsResultSchema } from './PointerEventsResult.gen';
|
|
26
26
|
import { PointerLockSchema } from './PointerLock.gen';
|
|
27
|
+
import { PrimaryPointerInfoSchema } from './PrimaryPointerInfo.gen';
|
|
27
28
|
import { RaycastSchema } from './Raycast.gen';
|
|
28
29
|
import { RaycastResultSchema } from './RaycastResult.gen';
|
|
29
30
|
import { RealmInfoSchema } from './RealmInfo.gen';
|
|
@@ -69,6 +70,7 @@ export * from './pb/decentraland/sdk/components/player_identity_data.gen';
|
|
|
69
70
|
export * from './pb/decentraland/sdk/components/pointer_events.gen';
|
|
70
71
|
export * from './pb/decentraland/sdk/components/pointer_events_result.gen';
|
|
71
72
|
export * from './pb/decentraland/sdk/components/pointer_lock.gen';
|
|
73
|
+
export * from './pb/decentraland/sdk/components/primary_pointer_info.gen';
|
|
72
74
|
export * from './pb/decentraland/sdk/components/raycast.gen';
|
|
73
75
|
export * from './pb/decentraland/sdk/components/raycast_result.gen';
|
|
74
76
|
export * from './pb/decentraland/sdk/components/realm_info.gen';
|
|
@@ -146,6 +148,8 @@ export * from './pb/decentraland/sdk/components/visibility_component.gen';
|
|
|
146
148
|
});
|
|
147
149
|
/** @public */ export const PointerLock = engine =>
|
|
148
150
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::PointerLock", PointerLockSchema);
|
|
151
|
+
/** @public */ export const PrimaryPointerInfo = engine =>
|
|
152
|
+
/* @__PURE__ */ engine.defineComponentFromSchema("core::PrimaryPointerInfo", PrimaryPointerInfoSchema);
|
|
149
153
|
/** @public */ export const Raycast = engine =>
|
|
150
154
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::Raycast", RaycastSchema);
|
|
151
155
|
/** @public */ export const RaycastResult = engine =>
|
|
@@ -214,6 +218,7 @@ export const componentDefinitionByName = /* @__PURE__ */ {
|
|
|
214
218
|
"core::PointerEvents": PointerEvents,
|
|
215
219
|
"core::PointerEventsResult": PointerEventsResult,
|
|
216
220
|
"core::PointerLock": PointerLock,
|
|
221
|
+
"core::PrimaryPointerInfo": PrimaryPointerInfo,
|
|
217
222
|
"core::Raycast": Raycast,
|
|
218
223
|
"core::RaycastResult": RaycastResult,
|
|
219
224
|
"core::RealmInfo": RealmInfo,
|
package/dist/components/generated/pb/decentraland/sdk/components/primary_pointer_info.gen.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { Vector2, Vector3 } from "../../common/vectors.gen";
|
|
3
|
+
/**
|
|
4
|
+
* PointerType enumerates the different input devices that can be used for pointer interactions.
|
|
5
|
+
* Each type has specific characteristics and use cases in the virtual world.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export declare const enum PointerType {
|
|
11
|
+
/** POT_NONE - No pointer input */
|
|
12
|
+
POT_NONE = 0,
|
|
13
|
+
/** POT_MOUSE - Traditional mouse input */
|
|
14
|
+
POT_MOUSE = 1
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The PBPrimaryPointerInfo component provides information about the current state of the primary
|
|
18
|
+
* pointer input device (mouse, touch, gamepad, or VR controller). It tracks the pointer's position,
|
|
19
|
+
* movement, and interaction capabilities in both 2D screen space and 3D world space.
|
|
20
|
+
*
|
|
21
|
+
* This component is essential for:
|
|
22
|
+
* - Tracking cursor/pointer position and movement
|
|
23
|
+
* - Converting 2D screen coordinates to 3D world space interactions
|
|
24
|
+
* - Supporting multiple input methods (mouse, touch, gamepad, VR)
|
|
25
|
+
* - Enabling ray-based interactions for 3D object selection
|
|
26
|
+
*
|
|
27
|
+
* The component can be used to:
|
|
28
|
+
* - Implement drag-and-drop functionality
|
|
29
|
+
* - Handle touch interactions on mobile devices
|
|
30
|
+
* - Support gamepad navigation
|
|
31
|
+
* - Enable VR controller interactions
|
|
32
|
+
* - Convert screen coordinates to world space rays for 3D interactions
|
|
33
|
+
*
|
|
34
|
+
* Note: Touch, Pad, and Wand support, as well as dragging, will be added later.
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export interface PBPrimaryPointerInfo {
|
|
40
|
+
/** The type of input device being used */
|
|
41
|
+
pointerType?: PointerType | undefined;
|
|
42
|
+
/** Current position in screen space (pixels) */
|
|
43
|
+
screenCoordinates?: Vector2 | undefined;
|
|
44
|
+
/** Movement since last frame (pixels) */
|
|
45
|
+
screenDelta?: Vector2 | undefined;
|
|
46
|
+
/** Direction vector for 3D ray casting */
|
|
47
|
+
worldRayDirection?: Vector3 | undefined;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
export declare namespace PBPrimaryPointerInfo {
|
|
53
|
+
function encode(message: PBPrimaryPointerInfo, writer?: _m0.Writer): _m0.Writer;
|
|
54
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBPrimaryPointerInfo;
|
|
55
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Vector2, Vector3 } from "../../common/vectors.gen";
|
|
4
|
+
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
5
|
+
/**
|
|
6
|
+
* PointerType enumerates the different input devices that can be used for pointer interactions.
|
|
7
|
+
* Each type has specific characteristics and use cases in the virtual world.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export var PointerType;
|
|
13
|
+
(function (PointerType) {
|
|
14
|
+
/** POT_NONE - No pointer input */
|
|
15
|
+
PointerType[PointerType["POT_NONE"] = 0] = "POT_NONE";
|
|
16
|
+
/** POT_MOUSE - Traditional mouse input */
|
|
17
|
+
PointerType[PointerType["POT_MOUSE"] = 1] = "POT_MOUSE";
|
|
18
|
+
})(PointerType || (PointerType = {}));
|
|
19
|
+
function createBasePBPrimaryPointerInfo() {
|
|
20
|
+
return { pointerType: undefined, screenCoordinates: undefined, screenDelta: undefined, worldRayDirection: undefined };
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export var PBPrimaryPointerInfo;
|
|
26
|
+
(function (PBPrimaryPointerInfo) {
|
|
27
|
+
function encode(message, writer = _m0.Writer.create()) {
|
|
28
|
+
if (message.pointerType !== undefined) {
|
|
29
|
+
writer.uint32(8).int32(message.pointerType);
|
|
30
|
+
}
|
|
31
|
+
if (message.screenCoordinates !== undefined) {
|
|
32
|
+
Vector2.encode(message.screenCoordinates, writer.uint32(18).fork()).ldelim();
|
|
33
|
+
}
|
|
34
|
+
if (message.screenDelta !== undefined) {
|
|
35
|
+
Vector2.encode(message.screenDelta, writer.uint32(26).fork()).ldelim();
|
|
36
|
+
}
|
|
37
|
+
if (message.worldRayDirection !== undefined) {
|
|
38
|
+
Vector3.encode(message.worldRayDirection, writer.uint32(34).fork()).ldelim();
|
|
39
|
+
}
|
|
40
|
+
return writer;
|
|
41
|
+
}
|
|
42
|
+
PBPrimaryPointerInfo.encode = encode;
|
|
43
|
+
function decode(input, length) {
|
|
44
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
45
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
46
|
+
const message = createBasePBPrimaryPointerInfo();
|
|
47
|
+
while (reader.pos < end) {
|
|
48
|
+
const tag = reader.uint32();
|
|
49
|
+
switch (tag >>> 3) {
|
|
50
|
+
case 1:
|
|
51
|
+
if (tag !== 8) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.pointerType = reader.int32();
|
|
55
|
+
continue;
|
|
56
|
+
case 2:
|
|
57
|
+
if (tag !== 18) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
message.screenCoordinates = Vector2.decode(reader, reader.uint32());
|
|
61
|
+
continue;
|
|
62
|
+
case 3:
|
|
63
|
+
if (tag !== 26) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.screenDelta = Vector2.decode(reader, reader.uint32());
|
|
67
|
+
continue;
|
|
68
|
+
case 4:
|
|
69
|
+
if (tag !== 34) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
message.worldRayDirection = Vector3.decode(reader, reader.uint32());
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
reader.skipType(tag & 7);
|
|
79
|
+
}
|
|
80
|
+
return message;
|
|
81
|
+
}
|
|
82
|
+
PBPrimaryPointerInfo.decode = decode;
|
|
83
|
+
})(PBPrimaryPointerInfo || (PBPrimaryPointerInfo = {}));
|
|
@@ -3,12 +3,19 @@ import _m0 from "protobufjs/minimal";
|
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
5
|
export interface PBRealmInfo {
|
|
6
|
+
/** the domain of the realm server */
|
|
6
7
|
baseUrl: string;
|
|
8
|
+
/** the name of the realm server (more info https://adr.decentraland.org/adr/ADR-110) */
|
|
7
9
|
realmName: string;
|
|
10
|
+
/** the network id (1=Ethereum, more info https://chainlist.org/) */
|
|
8
11
|
networkId: number;
|
|
12
|
+
/** comms adapter (more info https://adr.decentraland.org/adr/ADR-180) */
|
|
9
13
|
commsAdapter: string;
|
|
14
|
+
/** true if the scene is running as a local preview, instead of published in Decentraland. */
|
|
10
15
|
isPreview: boolean;
|
|
16
|
+
/** the room session id. */
|
|
11
17
|
room?: string | undefined;
|
|
18
|
+
/** true if the user is connected to the scene room. */
|
|
12
19
|
isConnectedSceneRoom?: boolean | undefined;
|
|
13
20
|
}
|
|
14
21
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrimaryPointerInfoSchema = void 0;
|
|
4
|
+
const primary_pointer_info_gen_1 = require("./pb/decentraland/sdk/components/primary_pointer_info.gen");
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
exports.PrimaryPointerInfoSchema = {
|
|
9
|
+
COMPONENT_ID: 1209,
|
|
10
|
+
serialize(value, builder) {
|
|
11
|
+
const writer = primary_pointer_info_gen_1.PBPrimaryPointerInfo.encode(value);
|
|
12
|
+
const buffer = new Uint8Array(writer.finish(), 0, writer.len);
|
|
13
|
+
builder.writeBuffer(buffer, false);
|
|
14
|
+
},
|
|
15
|
+
deserialize(reader) {
|
|
16
|
+
return primary_pointer_info_gen_1.PBPrimaryPointerInfo.decode(reader.buffer(), reader.remainingBytes());
|
|
17
|
+
},
|
|
18
|
+
create() {
|
|
19
|
+
// TODO: this is a hack.
|
|
20
|
+
return primary_pointer_info_gen_1.PBPrimaryPointerInfo.decode(new Uint8Array());
|
|
21
|
+
},
|
|
22
|
+
jsonSchema: {
|
|
23
|
+
type: "object",
|
|
24
|
+
properties: {},
|
|
25
|
+
serializationType: "protocol-buffer",
|
|
26
|
+
protocolBuffer: "PBPrimaryPointerInfo"
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -22,6 +22,7 @@ import { PBPlayerIdentityData } from './pb/decentraland/sdk/components/player_id
|
|
|
22
22
|
import { PBPointerEvents } from './pb/decentraland/sdk/components/pointer_events.gen';
|
|
23
23
|
import { PBPointerEventsResult } from './pb/decentraland/sdk/components/pointer_events_result.gen';
|
|
24
24
|
import { PBPointerLock } from './pb/decentraland/sdk/components/pointer_lock.gen';
|
|
25
|
+
import { PBPrimaryPointerInfo } from './pb/decentraland/sdk/components/primary_pointer_info.gen';
|
|
25
26
|
import { PBRaycast } from './pb/decentraland/sdk/components/raycast.gen';
|
|
26
27
|
import { PBRaycastResult } from './pb/decentraland/sdk/components/raycast_result.gen';
|
|
27
28
|
import { PBRealmInfo } from './pb/decentraland/sdk/components/realm_info.gen';
|
|
@@ -62,6 +63,7 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
|
|
|
62
63
|
/** @public */ export declare const PointerEvents: LastWriteWinElementSetComponentDefinition<PBPointerEvents>;
|
|
63
64
|
/** @public */ export declare const PointerEventsResult: GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>;
|
|
64
65
|
/** @public */ export declare const PointerLock: LastWriteWinElementSetComponentDefinition<PBPointerLock>;
|
|
66
|
+
/** @public */ export declare const PrimaryPointerInfo: LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>;
|
|
65
67
|
/** @public */ export declare const Raycast: LastWriteWinElementSetComponentDefinition<PBRaycast>;
|
|
66
68
|
/** @public */ export declare const RaycastResult: LastWriteWinElementSetComponentDefinition<PBRaycastResult>;
|
|
67
69
|
/** @public */ export declare const RealmInfo: LastWriteWinElementSetComponentDefinition<PBRealmInfo>;
|
|
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = exports.UiText = exports.UiInputResult = exports.UiInput = exports.UiDropdownResult = exports.UiDropdown = exports.UiCanvasInformation = exports.UiBackground = exports.TweenState = exports.TweenSequence = exports.TextShape = exports.RealmInfo = exports.RaycastResult = exports.Raycast = exports.PointerLock = exports.PointerEventsResult = exports.PointerEvents = exports.PlayerIdentityData = exports.NftShape = exports.MainCamera = exports.InputModifier = exports.GltfContainerLoadingState = exports.GltfContainer = exports.EngineInfo = exports.CameraModeArea = exports.CameraMode = exports.Billboard = exports.AvatarShape = exports.AvatarModifierArea = exports.AvatarEquippedData = exports.AvatarEmoteCommand = exports.AvatarBase = exports.AvatarAttach = exports.AudioStream = exports.AudioSource = exports.AudioEvent = void 0;
|
|
29
|
+
exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = exports.UiText = exports.UiInputResult = exports.UiInput = exports.UiDropdownResult = exports.UiDropdown = exports.UiCanvasInformation = exports.UiBackground = exports.TweenState = exports.TweenSequence = exports.TextShape = exports.RealmInfo = exports.RaycastResult = exports.Raycast = exports.PrimaryPointerInfo = exports.PointerLock = exports.PointerEventsResult = exports.PointerEvents = exports.PlayerIdentityData = exports.NftShape = exports.MainCamera = exports.InputModifier = exports.GltfContainerLoadingState = exports.GltfContainer = exports.EngineInfo = exports.CameraModeArea = exports.CameraMode = exports.Billboard = exports.AvatarShape = exports.AvatarModifierArea = exports.AvatarEquippedData = exports.AvatarEmoteCommand = exports.AvatarBase = exports.AvatarAttach = exports.AudioStream = exports.AudioSource = exports.AudioEvent = void 0;
|
|
30
30
|
const initialization_1 = require("../../runtime/initialization");
|
|
31
31
|
const components = __importStar(require("./index.gen"));
|
|
32
32
|
__exportStar(require("./index.gen"), exports);
|
|
@@ -52,6 +52,7 @@ __exportStar(require("./index.gen"), exports);
|
|
|
52
52
|
/** @public */ exports.PointerEvents = components.PointerEvents(initialization_1.engine);
|
|
53
53
|
/** @public */ exports.PointerEventsResult = components.PointerEventsResult(initialization_1.engine);
|
|
54
54
|
/** @public */ exports.PointerLock = components.PointerLock(initialization_1.engine);
|
|
55
|
+
/** @public */ exports.PrimaryPointerInfo = components.PrimaryPointerInfo(initialization_1.engine);
|
|
55
56
|
/** @public */ exports.Raycast = components.Raycast(initialization_1.engine);
|
|
56
57
|
/** @public */ exports.RaycastResult = components.RaycastResult(initialization_1.engine);
|
|
57
58
|
/** @public */ exports.RealmInfo = components.RealmInfo(initialization_1.engine);
|
|
@@ -26,6 +26,7 @@ import { PBPlayerIdentityData } from './pb/decentraland/sdk/components/player_id
|
|
|
26
26
|
import { PBPointerEvents } from './pb/decentraland/sdk/components/pointer_events.gen';
|
|
27
27
|
import { PBPointerEventsResult } from './pb/decentraland/sdk/components/pointer_events_result.gen';
|
|
28
28
|
import { PBPointerLock } from './pb/decentraland/sdk/components/pointer_lock.gen';
|
|
29
|
+
import { PBPrimaryPointerInfo } from './pb/decentraland/sdk/components/primary_pointer_info.gen';
|
|
29
30
|
import { PBRaycast } from './pb/decentraland/sdk/components/raycast.gen';
|
|
30
31
|
import { PBRaycastResult } from './pb/decentraland/sdk/components/raycast_result.gen';
|
|
31
32
|
import { PBRealmInfo } from './pb/decentraland/sdk/components/realm_info.gen';
|
|
@@ -71,6 +72,7 @@ export * from './pb/decentraland/sdk/components/player_identity_data.gen';
|
|
|
71
72
|
export * from './pb/decentraland/sdk/components/pointer_events.gen';
|
|
72
73
|
export * from './pb/decentraland/sdk/components/pointer_events_result.gen';
|
|
73
74
|
export * from './pb/decentraland/sdk/components/pointer_lock.gen';
|
|
75
|
+
export * from './pb/decentraland/sdk/components/primary_pointer_info.gen';
|
|
74
76
|
export * from './pb/decentraland/sdk/components/raycast.gen';
|
|
75
77
|
export * from './pb/decentraland/sdk/components/raycast_result.gen';
|
|
76
78
|
export * from './pb/decentraland/sdk/components/realm_info.gen';
|
|
@@ -118,6 +120,7 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
|
|
|
118
120
|
/** @public */ export declare const PointerEvents: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
|
|
119
121
|
/** @public */ export declare const PointerEventsResult: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
|
|
120
122
|
/** @public */ export declare const PointerLock: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerLock>>;
|
|
123
|
+
/** @public */ export declare const PrimaryPointerInfo: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>>;
|
|
121
124
|
/** @public */ export declare const Raycast: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
|
|
122
125
|
/** @public */ export declare const RaycastResult: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
|
123
126
|
/** @public */ export declare const RealmInfo: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
|
@@ -165,6 +168,7 @@ export declare const componentDefinitionByName: {
|
|
|
165
168
|
"core::PointerEvents": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
|
|
166
169
|
"core::PointerEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
|
|
167
170
|
"core::PointerLock": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerLock>>;
|
|
171
|
+
"core::PrimaryPointerInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>>;
|
|
168
172
|
"core::Raycast": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
|
|
169
173
|
"core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
|
170
174
|
"core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.componentDefinitionByName = exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = exports.UiText = exports.UiInputResult = exports.UiInput = exports.UiDropdownResult = exports.UiDropdown = exports.UiCanvasInformation = exports.UiBackground = exports.TweenState = exports.TweenSequence = exports.Tween = exports.TextShape = exports.RealmInfo = exports.RaycastResult = exports.Raycast = exports.PointerLock = exports.PointerEventsResult = exports.PointerEvents = exports.PlayerIdentityData = exports.NftShape = exports.MeshRenderer = exports.MeshCollider = exports.Material = exports.MainCamera = exports.InputModifier = exports.GltfContainerLoadingState = exports.GltfContainer = exports.EngineInfo = exports.CameraModeArea = exports.CameraMode = exports.Billboard = exports.AvatarShape = exports.AvatarModifierArea = exports.AvatarEquippedData = exports.AvatarEmoteCommand = exports.AvatarBase = exports.AvatarAttach = exports.AudioStream = exports.AudioSource = exports.AudioEvent = exports.Animator = void 0;
|
|
17
|
+
exports.componentDefinitionByName = exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = exports.UiText = exports.UiInputResult = exports.UiInput = exports.UiDropdownResult = exports.UiDropdown = exports.UiCanvasInformation = exports.UiBackground = exports.TweenState = exports.TweenSequence = exports.Tween = exports.TextShape = exports.RealmInfo = exports.RaycastResult = exports.Raycast = exports.PrimaryPointerInfo = exports.PointerLock = exports.PointerEventsResult = exports.PointerEvents = exports.PlayerIdentityData = exports.NftShape = exports.MeshRenderer = exports.MeshCollider = exports.Material = exports.MainCamera = exports.InputModifier = exports.GltfContainerLoadingState = exports.GltfContainer = exports.EngineInfo = exports.CameraModeArea = exports.CameraMode = exports.Billboard = exports.AvatarShape = exports.AvatarModifierArea = exports.AvatarEquippedData = exports.AvatarEmoteCommand = exports.AvatarBase = exports.AvatarAttach = exports.AudioStream = exports.AudioSource = exports.AudioEvent = exports.Animator = void 0;
|
|
18
18
|
const Animator_gen_1 = require("./Animator.gen");
|
|
19
19
|
const AudioEvent_gen_1 = require("./AudioEvent.gen");
|
|
20
20
|
const AudioSource_gen_1 = require("./AudioSource.gen");
|
|
@@ -41,6 +41,7 @@ const PlayerIdentityData_gen_1 = require("./PlayerIdentityData.gen");
|
|
|
41
41
|
const PointerEvents_gen_1 = require("./PointerEvents.gen");
|
|
42
42
|
const PointerEventsResult_gen_1 = require("./PointerEventsResult.gen");
|
|
43
43
|
const PointerLock_gen_1 = require("./PointerLock.gen");
|
|
44
|
+
const PrimaryPointerInfo_gen_1 = require("./PrimaryPointerInfo.gen");
|
|
44
45
|
const Raycast_gen_1 = require("./Raycast.gen");
|
|
45
46
|
const RaycastResult_gen_1 = require("./RaycastResult.gen");
|
|
46
47
|
const RealmInfo_gen_1 = require("./RealmInfo.gen");
|
|
@@ -86,6 +87,7 @@ __exportStar(require("./pb/decentraland/sdk/components/player_identity_data.gen"
|
|
|
86
87
|
__exportStar(require("./pb/decentraland/sdk/components/pointer_events.gen"), exports);
|
|
87
88
|
__exportStar(require("./pb/decentraland/sdk/components/pointer_events_result.gen"), exports);
|
|
88
89
|
__exportStar(require("./pb/decentraland/sdk/components/pointer_lock.gen"), exports);
|
|
90
|
+
__exportStar(require("./pb/decentraland/sdk/components/primary_pointer_info.gen"), exports);
|
|
89
91
|
__exportStar(require("./pb/decentraland/sdk/components/raycast.gen"), exports);
|
|
90
92
|
__exportStar(require("./pb/decentraland/sdk/components/raycast_result.gen"), exports);
|
|
91
93
|
__exportStar(require("./pb/decentraland/sdk/components/realm_info.gen"), exports);
|
|
@@ -189,6 +191,9 @@ exports.PointerEventsResult = PointerEventsResult;
|
|
|
189
191
|
/** @public */ const PointerLock = engine =>
|
|
190
192
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::PointerLock", PointerLock_gen_1.PointerLockSchema);
|
|
191
193
|
exports.PointerLock = PointerLock;
|
|
194
|
+
/** @public */ const PrimaryPointerInfo = engine =>
|
|
195
|
+
/* @__PURE__ */ engine.defineComponentFromSchema("core::PrimaryPointerInfo", PrimaryPointerInfo_gen_1.PrimaryPointerInfoSchema);
|
|
196
|
+
exports.PrimaryPointerInfo = PrimaryPointerInfo;
|
|
192
197
|
/** @public */ const Raycast = engine =>
|
|
193
198
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::Raycast", Raycast_gen_1.RaycastSchema);
|
|
194
199
|
exports.Raycast = Raycast;
|
|
@@ -276,6 +281,7 @@ exports.componentDefinitionByName = {
|
|
|
276
281
|
"core::PointerEvents": exports.PointerEvents,
|
|
277
282
|
"core::PointerEventsResult": exports.PointerEventsResult,
|
|
278
283
|
"core::PointerLock": exports.PointerLock,
|
|
284
|
+
"core::PrimaryPointerInfo": exports.PrimaryPointerInfo,
|
|
279
285
|
"core::Raycast": exports.Raycast,
|
|
280
286
|
"core::RaycastResult": exports.RaycastResult,
|
|
281
287
|
"core::RealmInfo": exports.RealmInfo,
|
package/dist-cjs/components/generated/pb/decentraland/sdk/components/primary_pointer_info.gen.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { Vector2, Vector3 } from "../../common/vectors.gen";
|
|
3
|
+
/**
|
|
4
|
+
* PointerType enumerates the different input devices that can be used for pointer interactions.
|
|
5
|
+
* Each type has specific characteristics and use cases in the virtual world.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export declare const enum PointerType {
|
|
11
|
+
/** POT_NONE - No pointer input */
|
|
12
|
+
POT_NONE = 0,
|
|
13
|
+
/** POT_MOUSE - Traditional mouse input */
|
|
14
|
+
POT_MOUSE = 1
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The PBPrimaryPointerInfo component provides information about the current state of the primary
|
|
18
|
+
* pointer input device (mouse, touch, gamepad, or VR controller). It tracks the pointer's position,
|
|
19
|
+
* movement, and interaction capabilities in both 2D screen space and 3D world space.
|
|
20
|
+
*
|
|
21
|
+
* This component is essential for:
|
|
22
|
+
* - Tracking cursor/pointer position and movement
|
|
23
|
+
* - Converting 2D screen coordinates to 3D world space interactions
|
|
24
|
+
* - Supporting multiple input methods (mouse, touch, gamepad, VR)
|
|
25
|
+
* - Enabling ray-based interactions for 3D object selection
|
|
26
|
+
*
|
|
27
|
+
* The component can be used to:
|
|
28
|
+
* - Implement drag-and-drop functionality
|
|
29
|
+
* - Handle touch interactions on mobile devices
|
|
30
|
+
* - Support gamepad navigation
|
|
31
|
+
* - Enable VR controller interactions
|
|
32
|
+
* - Convert screen coordinates to world space rays for 3D interactions
|
|
33
|
+
*
|
|
34
|
+
* Note: Touch, Pad, and Wand support, as well as dragging, will be added later.
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export interface PBPrimaryPointerInfo {
|
|
40
|
+
/** The type of input device being used */
|
|
41
|
+
pointerType?: PointerType | undefined;
|
|
42
|
+
/** Current position in screen space (pixels) */
|
|
43
|
+
screenCoordinates?: Vector2 | undefined;
|
|
44
|
+
/** Movement since last frame (pixels) */
|
|
45
|
+
screenDelta?: Vector2 | undefined;
|
|
46
|
+
/** Direction vector for 3D ray casting */
|
|
47
|
+
worldRayDirection?: Vector3 | undefined;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
export declare namespace PBPrimaryPointerInfo {
|
|
53
|
+
function encode(message: PBPrimaryPointerInfo, writer?: _m0.Writer): _m0.Writer;
|
|
54
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBPrimaryPointerInfo;
|
|
55
|
+
}
|
package/dist-cjs/components/generated/pb/decentraland/sdk/components/primary_pointer_info.gen.js
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
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.PBPrimaryPointerInfo = exports.PointerType = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
+
const vectors_gen_1 = require("../../common/vectors.gen");
|
|
10
|
+
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
11
|
+
/**
|
|
12
|
+
* PointerType enumerates the different input devices that can be used for pointer interactions.
|
|
13
|
+
* Each type has specific characteristics and use cases in the virtual world.
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
var PointerType;
|
|
19
|
+
(function (PointerType) {
|
|
20
|
+
/** POT_NONE - No pointer input */
|
|
21
|
+
PointerType[PointerType["POT_NONE"] = 0] = "POT_NONE";
|
|
22
|
+
/** POT_MOUSE - Traditional mouse input */
|
|
23
|
+
PointerType[PointerType["POT_MOUSE"] = 1] = "POT_MOUSE";
|
|
24
|
+
})(PointerType = exports.PointerType || (exports.PointerType = {}));
|
|
25
|
+
function createBasePBPrimaryPointerInfo() {
|
|
26
|
+
return { pointerType: undefined, screenCoordinates: undefined, screenDelta: undefined, worldRayDirection: undefined };
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
var PBPrimaryPointerInfo;
|
|
32
|
+
(function (PBPrimaryPointerInfo) {
|
|
33
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
34
|
+
if (message.pointerType !== undefined) {
|
|
35
|
+
writer.uint32(8).int32(message.pointerType);
|
|
36
|
+
}
|
|
37
|
+
if (message.screenCoordinates !== undefined) {
|
|
38
|
+
vectors_gen_1.Vector2.encode(message.screenCoordinates, writer.uint32(18).fork()).ldelim();
|
|
39
|
+
}
|
|
40
|
+
if (message.screenDelta !== undefined) {
|
|
41
|
+
vectors_gen_1.Vector2.encode(message.screenDelta, writer.uint32(26).fork()).ldelim();
|
|
42
|
+
}
|
|
43
|
+
if (message.worldRayDirection !== undefined) {
|
|
44
|
+
vectors_gen_1.Vector3.encode(message.worldRayDirection, writer.uint32(34).fork()).ldelim();
|
|
45
|
+
}
|
|
46
|
+
return writer;
|
|
47
|
+
}
|
|
48
|
+
PBPrimaryPointerInfo.encode = encode;
|
|
49
|
+
function decode(input, length) {
|
|
50
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
51
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
52
|
+
const message = createBasePBPrimaryPointerInfo();
|
|
53
|
+
while (reader.pos < end) {
|
|
54
|
+
const tag = reader.uint32();
|
|
55
|
+
switch (tag >>> 3) {
|
|
56
|
+
case 1:
|
|
57
|
+
if (tag !== 8) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
message.pointerType = reader.int32();
|
|
61
|
+
continue;
|
|
62
|
+
case 2:
|
|
63
|
+
if (tag !== 18) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.screenCoordinates = vectors_gen_1.Vector2.decode(reader, reader.uint32());
|
|
67
|
+
continue;
|
|
68
|
+
case 3:
|
|
69
|
+
if (tag !== 26) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
message.screenDelta = vectors_gen_1.Vector2.decode(reader, reader.uint32());
|
|
73
|
+
continue;
|
|
74
|
+
case 4:
|
|
75
|
+
if (tag !== 34) {
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
message.worldRayDirection = vectors_gen_1.Vector3.decode(reader, reader.uint32());
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
reader.skipType(tag & 7);
|
|
85
|
+
}
|
|
86
|
+
return message;
|
|
87
|
+
}
|
|
88
|
+
PBPrimaryPointerInfo.decode = decode;
|
|
89
|
+
})(PBPrimaryPointerInfo = exports.PBPrimaryPointerInfo || (exports.PBPrimaryPointerInfo = {}));
|
|
@@ -3,12 +3,19 @@ import _m0 from "protobufjs/minimal";
|
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
5
|
export interface PBRealmInfo {
|
|
6
|
+
/** the domain of the realm server */
|
|
6
7
|
baseUrl: string;
|
|
8
|
+
/** the name of the realm server (more info https://adr.decentraland.org/adr/ADR-110) */
|
|
7
9
|
realmName: string;
|
|
10
|
+
/** the network id (1=Ethereum, more info https://chainlist.org/) */
|
|
8
11
|
networkId: number;
|
|
12
|
+
/** comms adapter (more info https://adr.decentraland.org/adr/ADR-180) */
|
|
9
13
|
commsAdapter: string;
|
|
14
|
+
/** true if the scene is running as a local preview, instead of published in Decentraland. */
|
|
10
15
|
isPreview: boolean;
|
|
16
|
+
/** the room session id. */
|
|
11
17
|
room?: string | undefined;
|
|
18
|
+
/** true if the user is connected to the scene room. */
|
|
12
19
|
isConnectedSceneRoom?: boolean | undefined;
|
|
13
20
|
}
|
|
14
21
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/ecs",
|
|
3
3
|
"description": "Decentraland ECS",
|
|
4
|
-
"version": "7.8.
|
|
4
|
+
"version": "7.8.10-15453890617.commit-9dc90d3",
|
|
5
5
|
"author": "DCL",
|
|
6
6
|
"bugs": "https://github.com/decentraland/ecs/issues",
|
|
7
7
|
"files": [
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
},
|
|
34
34
|
"types": "./dist/index.d.ts",
|
|
35
35
|
"typings": "./dist/index.d.ts",
|
|
36
|
-
"commit": "
|
|
36
|
+
"commit": "9dc90d36557df03682c958b70d7edcc81c1ba711"
|
|
37
37
|
}
|