@dcl/ecs 7.25.1-31605440953.commit-08dff78 → 7.25.1-31629995314.commit-fc8cfc6
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/ExplorerUiEventsResult.gen.d.ts +1 -0
- package/dist/components/generated/ExplorerUiEventsResult.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 +7 -0
- package/dist/components/generated/pb/decentraland/sdk/components/avatar_emote_command.gen.d.ts +24 -0
- package/dist/components/generated/pb/decentraland/sdk/components/avatar_emote_command.gen.js +30 -1
- package/dist/components/generated/pb/decentraland/sdk/components/common/explorer_ui.gen.d.ts +16 -0
- package/dist/components/generated/pb/decentraland/sdk/components/common/explorer_ui.gen.js +19 -0
- package/dist/components/generated/pb/decentraland/sdk/components/explorer_ui_events_result.gen.d.ts +56 -0
- package/dist/components/generated/pb/decentraland/sdk/components/explorer_ui_events_result.gen.js +134 -0
- package/dist/components/generated/pb/google/protobuf/descriptor.gen.d.ts +640 -1
- package/dist/components/generated/pb/google/protobuf/descriptor.gen.js +260 -4
- package/dist/components/generated/types.gen.d.ts +1 -0
- package/dist/components/generated/types.gen.js +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/runtime/initialization/index.d.ts +7 -0
- package/dist/runtime/initialization/index.js +6 -0
- package/dist/systems/audioEvents.d.ts +19 -0
- package/dist/systems/audioEvents.js +61 -0
- package/dist-cjs/components/generated/ExplorerUiEventsResult.gen.d.ts +1 -0
- package/dist-cjs/components/generated/ExplorerUiEventsResult.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 +3 -2
- package/dist-cjs/components/generated/index.gen.d.ts +4 -0
- package/dist-cjs/components/generated/index.gen.js +10 -2
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/avatar_emote_command.gen.d.ts +24 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/avatar_emote_command.gen.js +31 -2
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/common/explorer_ui.gen.d.ts +16 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/common/explorer_ui.gen.js +22 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/explorer_ui_events_result.gen.d.ts +56 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/explorer_ui_events_result.gen.js +140 -0
- package/dist-cjs/components/generated/pb/google/protobuf/descriptor.gen.d.ts +640 -1
- package/dist-cjs/components/generated/pb/google/protobuf/descriptor.gen.js +261 -5
- package/dist-cjs/components/generated/types.gen.d.ts +1 -0
- package/dist-cjs/components/generated/types.gen.js +2 -0
- package/dist-cjs/index.d.ts +1 -0
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/runtime/initialization/index.d.ts +7 -0
- package/dist-cjs/runtime/initialization/index.js +7 -1
- package/dist-cjs/systems/audioEvents.d.ts +19 -0
- package/dist-cjs/systems/audioEvents.js +88 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PBExplorerUiEventsResult } from './pb/decentraland/sdk/components/explorer_ui_events_result.gen';
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export const ExplorerUiEventsResultSchema = {
|
|
6
|
+
COMPONENT_ID: 1220,
|
|
7
|
+
serialize(value, builder) {
|
|
8
|
+
const writer = PBExplorerUiEventsResult.encode(value);
|
|
9
|
+
const buffer = new Uint8Array(writer.finish(), 0, writer.len);
|
|
10
|
+
builder.writeBuffer(buffer, false);
|
|
11
|
+
},
|
|
12
|
+
deserialize(reader) {
|
|
13
|
+
return PBExplorerUiEventsResult.decode(reader.buffer(), reader.remainingBytes());
|
|
14
|
+
},
|
|
15
|
+
create() {
|
|
16
|
+
// TODO: this is a hack.
|
|
17
|
+
return PBExplorerUiEventsResult.decode(new Uint8Array());
|
|
18
|
+
},
|
|
19
|
+
jsonSchema: {
|
|
20
|
+
type: "object",
|
|
21
|
+
properties: {},
|
|
22
|
+
serializationType: "protocol-buffer",
|
|
23
|
+
protocolBuffer: "PBExplorerUiEventsResult"
|
|
24
|
+
}
|
|
25
|
+
};
|
|
@@ -21,6 +21,7 @@ export const coreComponentMappings = {
|
|
|
21
21
|
"core::CameraMode": 1072,
|
|
22
22
|
"core::CameraModeArea": 1071,
|
|
23
23
|
"core::EngineInfo": 1048,
|
|
24
|
+
"core::ExplorerUiEventsResult": 1220,
|
|
24
25
|
"core::GltfContainer": 1041,
|
|
25
26
|
"core::GltfContainerLoadingState": 1049,
|
|
26
27
|
"core::GltfNodeModifiers": 1099,
|
|
@@ -17,6 +17,7 @@ import { PBBillboard } from './pb/decentraland/sdk/components/billboard.gen';
|
|
|
17
17
|
import { PBCameraMode } from './pb/decentraland/sdk/components/camera_mode.gen';
|
|
18
18
|
import { PBCameraModeArea } from './pb/decentraland/sdk/components/camera_mode_area.gen';
|
|
19
19
|
import { PBEngineInfo } from './pb/decentraland/sdk/components/engine_info.gen';
|
|
20
|
+
import { PBExplorerUiEventsResult } from './pb/decentraland/sdk/components/explorer_ui_events_result.gen';
|
|
20
21
|
import { PBGltfContainer } from './pb/decentraland/sdk/components/gltf_container.gen';
|
|
21
22
|
import { PBGltfContainerLoadingState } from './pb/decentraland/sdk/components/gltf_container_loading_state.gen';
|
|
22
23
|
import { PBGltfNodeModifiers } from './pb/decentraland/sdk/components/gltf_node_modifiers.gen';
|
|
@@ -72,6 +73,7 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
|
|
|
72
73
|
/** @public */ export declare const CameraMode: LastWriteWinElementSetComponentDefinition<PBCameraMode>;
|
|
73
74
|
/** @public */ export declare const CameraModeArea: LastWriteWinElementSetComponentDefinition<PBCameraModeArea>;
|
|
74
75
|
/** @public */ export declare const EngineInfo: LastWriteWinElementSetComponentDefinition<PBEngineInfo>;
|
|
76
|
+
/** @public */ export declare const ExplorerUiEventsResult: GrowOnlyValueSetComponentDefinition<PBExplorerUiEventsResult>;
|
|
75
77
|
/** @public */ export declare const GltfContainer: LastWriteWinElementSetComponentDefinition<PBGltfContainer>;
|
|
76
78
|
/** @public */ export declare const GltfContainerLoadingState: LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>;
|
|
77
79
|
/** @public */ export declare const GltfNodeModifiers: LastWriteWinElementSetComponentDefinition<PBGltfNodeModifiers>;
|
|
@@ -18,6 +18,7 @@ export * from './index.gen';
|
|
|
18
18
|
/** @public */ export const CameraMode = /* @__PURE__ */ components.CameraMode(engine);
|
|
19
19
|
/** @public */ export const CameraModeArea = /* @__PURE__ */ components.CameraModeArea(engine);
|
|
20
20
|
/** @public */ export const EngineInfo = /* @__PURE__ */ components.EngineInfo(engine);
|
|
21
|
+
/** @public */ export const ExplorerUiEventsResult = /* @__PURE__ */ components.ExplorerUiEventsResult(engine);
|
|
21
22
|
/** @public */ export const GltfContainer = /* @__PURE__ */ components.GltfContainer(engine);
|
|
22
23
|
/** @public */ export const GltfContainerLoadingState = /* @__PURE__ */ components.GltfContainerLoadingState(engine);
|
|
23
24
|
/** @public */ export const GltfNodeModifiers = /* @__PURE__ */ components.GltfNodeModifiers(engine);
|
|
@@ -18,6 +18,7 @@ import { PBBillboard } from './pb/decentraland/sdk/components/billboard.gen';
|
|
|
18
18
|
import { PBCameraMode } from './pb/decentraland/sdk/components/camera_mode.gen';
|
|
19
19
|
import { PBCameraModeArea } from './pb/decentraland/sdk/components/camera_mode_area.gen';
|
|
20
20
|
import { PBEngineInfo } from './pb/decentraland/sdk/components/engine_info.gen';
|
|
21
|
+
import { PBExplorerUiEventsResult } from './pb/decentraland/sdk/components/explorer_ui_events_result.gen';
|
|
21
22
|
import { PBGltfContainer } from './pb/decentraland/sdk/components/gltf_container.gen';
|
|
22
23
|
import { PBGltfContainerLoadingState } from './pb/decentraland/sdk/components/gltf_container_loading_state.gen';
|
|
23
24
|
import { PBGltfNodeModifiers } from './pb/decentraland/sdk/components/gltf_node_modifiers.gen';
|
|
@@ -78,6 +79,7 @@ export * from './pb/decentraland/sdk/components/billboard.gen';
|
|
|
78
79
|
export * from './pb/decentraland/sdk/components/camera_mode.gen';
|
|
79
80
|
export * from './pb/decentraland/sdk/components/camera_mode_area.gen';
|
|
80
81
|
export * from './pb/decentraland/sdk/components/engine_info.gen';
|
|
82
|
+
export * from './pb/decentraland/sdk/components/explorer_ui_events_result.gen';
|
|
81
83
|
export * from './pb/decentraland/sdk/components/gltf_container.gen';
|
|
82
84
|
export * from './pb/decentraland/sdk/components/gltf_container_loading_state.gen';
|
|
83
85
|
export * from './pb/decentraland/sdk/components/gltf_node_modifiers.gen';
|
|
@@ -140,6 +142,7 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
|
|
|
140
142
|
/** @public */ export declare const CameraMode: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
|
|
141
143
|
/** @public */ export declare const CameraModeArea: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraModeArea>>;
|
|
142
144
|
/** @public */ export declare const EngineInfo: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
|
|
145
|
+
/** @public */ export declare const ExplorerUiEventsResult: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBExplorerUiEventsResult>>;
|
|
143
146
|
/** @public */ export declare const GltfContainer: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
|
|
144
147
|
/** @public */ export declare const GltfContainerLoadingState: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
|
|
145
148
|
/** @public */ export declare const GltfNodeModifiers: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNodeModifiers>>;
|
|
@@ -202,6 +205,7 @@ export declare const componentDefinitionByName: {
|
|
|
202
205
|
"core::CameraMode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
|
|
203
206
|
"core::CameraModeArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraModeArea>>;
|
|
204
207
|
"core::EngineInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
|
|
208
|
+
"core::ExplorerUiEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBExplorerUiEventsResult>>;
|
|
205
209
|
"core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
|
|
206
210
|
"core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
|
|
207
211
|
"core::GltfNodeModifiers": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNodeModifiers>>;
|
|
@@ -16,6 +16,7 @@ import { BillboardSchema } from './Billboard.gen';
|
|
|
16
16
|
import { CameraModeSchema } from './CameraMode.gen';
|
|
17
17
|
import { CameraModeAreaSchema } from './CameraModeArea.gen';
|
|
18
18
|
import { EngineInfoSchema } from './EngineInfo.gen';
|
|
19
|
+
import { ExplorerUiEventsResultSchema } from './ExplorerUiEventsResult.gen';
|
|
19
20
|
import { GltfContainerSchema } from './GltfContainer.gen';
|
|
20
21
|
import { GltfContainerLoadingStateSchema } from './GltfContainerLoadingState.gen';
|
|
21
22
|
import { GltfNodeModifiersSchema } from './GltfNodeModifiers.gen';
|
|
@@ -76,6 +77,7 @@ export * from './pb/decentraland/sdk/components/billboard.gen';
|
|
|
76
77
|
export * from './pb/decentraland/sdk/components/camera_mode.gen';
|
|
77
78
|
export * from './pb/decentraland/sdk/components/camera_mode_area.gen';
|
|
78
79
|
export * from './pb/decentraland/sdk/components/engine_info.gen';
|
|
80
|
+
export * from './pb/decentraland/sdk/components/explorer_ui_events_result.gen';
|
|
79
81
|
export * from './pb/decentraland/sdk/components/gltf_container.gen';
|
|
80
82
|
export * from './pb/decentraland/sdk/components/gltf_container_loading_state.gen';
|
|
81
83
|
export * from './pb/decentraland/sdk/components/gltf_node_modifiers.gen';
|
|
@@ -160,6 +162,10 @@ export * from './pb/decentraland/sdk/components/visibility_component.gen';
|
|
|
160
162
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::CameraModeArea", CameraModeAreaSchema);
|
|
161
163
|
/** @public */ export const EngineInfo = engine =>
|
|
162
164
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::EngineInfo", EngineInfoSchema);
|
|
165
|
+
/** @public */ export const ExplorerUiEventsResult = (engine) => /* @__PURE__ */ engine.defineValueSetComponentFromSchema("core::ExplorerUiEventsResult", ExplorerUiEventsResultSchema, {
|
|
166
|
+
timestampFunction: (t) => t.timestamp,
|
|
167
|
+
maxElements: 100
|
|
168
|
+
});
|
|
163
169
|
/** @public */ export const GltfContainer = engine =>
|
|
164
170
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::GltfContainer", GltfContainerSchema);
|
|
165
171
|
/** @public */ export const GltfContainerLoadingState = engine =>
|
|
@@ -270,6 +276,7 @@ export const componentDefinitionByName = /* @__PURE__ */ {
|
|
|
270
276
|
"core::CameraMode": CameraMode,
|
|
271
277
|
"core::CameraModeArea": CameraModeArea,
|
|
272
278
|
"core::EngineInfo": EngineInfo,
|
|
279
|
+
"core::ExplorerUiEventsResult": ExplorerUiEventsResult,
|
|
273
280
|
"core::GltfContainer": GltfContainer,
|
|
274
281
|
"core::GltfContainerLoadingState": GltfContainerLoadingState,
|
|
275
282
|
"core::GltfNodeModifiers": GltfNodeModifiers,
|
package/dist/components/generated/pb/decentraland/sdk/components/avatar_emote_command.gen.d.ts
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
import { AvatarMask } from "./common/avatar_mask.gen";
|
|
3
|
+
/** EmoteState describes the lifecycle state of an emote playback. */
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const enum EmoteState {
|
|
8
|
+
/**
|
|
9
|
+
* ES_STARTED - ES_STARTED indicates the emote started playing.
|
|
10
|
+
* This is the zero value and is used for backward compatibility — entries
|
|
11
|
+
* written by older explorers (field absent) read as "started".
|
|
12
|
+
*/
|
|
13
|
+
ES_STARTED = 0,
|
|
14
|
+
/** ES_FINISHED - ES_FINISHED indicates a non-looping emote completed naturally. */
|
|
15
|
+
ES_FINISHED = 1,
|
|
16
|
+
/**
|
|
17
|
+
* ES_INTERRUPTED - ES_INTERRUPTED indicates playback was cancelled (movement, teleport,
|
|
18
|
+
* another emote superseding it, explicit stop, or scene change).
|
|
19
|
+
*/
|
|
20
|
+
ES_INTERRUPTED = 2
|
|
21
|
+
}
|
|
3
22
|
/**
|
|
4
23
|
* AvatarEmoteCommand is a grow only value set, written by the explorer to report
|
|
5
24
|
* avatar emote playback to the scene. It is appended to every player entity in the
|
|
@@ -14,6 +33,11 @@ export interface PBAvatarEmoteCommand {
|
|
|
14
33
|
/** monotonic counter */
|
|
15
34
|
timestamp: number;
|
|
16
35
|
mask?: AvatarMask | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* state describes the lifecycle event for this emote entry.
|
|
38
|
+
* When absent (older explorers), defaults to ES_STARTED.
|
|
39
|
+
*/
|
|
40
|
+
state?: EmoteState | undefined;
|
|
17
41
|
}
|
|
18
42
|
/**
|
|
19
43
|
* @public
|
package/dist/components/generated/pb/decentraland/sdk/components/avatar_emote_command.gen.js
CHANGED
|
@@ -1,8 +1,28 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
4
|
+
/** EmoteState describes the lifecycle state of an emote playback. */
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export var EmoteState;
|
|
9
|
+
(function (EmoteState) {
|
|
10
|
+
/**
|
|
11
|
+
* ES_STARTED - ES_STARTED indicates the emote started playing.
|
|
12
|
+
* This is the zero value and is used for backward compatibility — entries
|
|
13
|
+
* written by older explorers (field absent) read as "started".
|
|
14
|
+
*/
|
|
15
|
+
EmoteState[EmoteState["ES_STARTED"] = 0] = "ES_STARTED";
|
|
16
|
+
/** ES_FINISHED - ES_FINISHED indicates a non-looping emote completed naturally. */
|
|
17
|
+
EmoteState[EmoteState["ES_FINISHED"] = 1] = "ES_FINISHED";
|
|
18
|
+
/**
|
|
19
|
+
* ES_INTERRUPTED - ES_INTERRUPTED indicates playback was cancelled (movement, teleport,
|
|
20
|
+
* another emote superseding it, explicit stop, or scene change).
|
|
21
|
+
*/
|
|
22
|
+
EmoteState[EmoteState["ES_INTERRUPTED"] = 2] = "ES_INTERRUPTED";
|
|
23
|
+
})(EmoteState || (EmoteState = {}));
|
|
4
24
|
function createBasePBAvatarEmoteCommand() {
|
|
5
|
-
return { emoteUrn: "", loop: false, timestamp: 0, mask: undefined };
|
|
25
|
+
return { emoteUrn: "", loop: false, timestamp: 0, mask: undefined, state: undefined };
|
|
6
26
|
}
|
|
7
27
|
/**
|
|
8
28
|
* @public
|
|
@@ -22,6 +42,9 @@ export var PBAvatarEmoteCommand;
|
|
|
22
42
|
if (message.mask !== undefined) {
|
|
23
43
|
writer.uint32(32).int32(message.mask);
|
|
24
44
|
}
|
|
45
|
+
if (message.state !== undefined) {
|
|
46
|
+
writer.uint32(40).int32(message.state);
|
|
47
|
+
}
|
|
25
48
|
return writer;
|
|
26
49
|
}
|
|
27
50
|
PBAvatarEmoteCommand.encode = encode;
|
|
@@ -56,6 +79,12 @@ export var PBAvatarEmoteCommand;
|
|
|
56
79
|
}
|
|
57
80
|
message.mask = reader.int32();
|
|
58
81
|
continue;
|
|
82
|
+
case 5:
|
|
83
|
+
if (tag !== 40) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
message.state = reader.int32();
|
|
87
|
+
continue;
|
|
59
88
|
}
|
|
60
89
|
if ((tag & 7) === 4 || tag === 0) {
|
|
61
90
|
break;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Identifies which fullscreen explorer panel OpenExplorerUi targets.
|
|
3
|
+
* EU_SETTINGS holds 0 so an unset `ui` field defaults to the least-intrusive panel.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare const enum ExplorerUi {
|
|
9
|
+
EU_SETTINGS = 0,
|
|
10
|
+
EU_MAP = 1,
|
|
11
|
+
EU_BACKPACK = 2,
|
|
12
|
+
EU_CAMERA_REEL = 3,
|
|
13
|
+
EU_COMMUNITIES = 4,
|
|
14
|
+
EU_PLACES = 5,
|
|
15
|
+
EU_EVENTS = 6
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
const protobufPackageSarasa = "decentraland.sdk.components.common";
|
|
3
|
+
/**
|
|
4
|
+
* Identifies which fullscreen explorer panel OpenExplorerUi targets.
|
|
5
|
+
* EU_SETTINGS holds 0 so an unset `ui` field defaults to the least-intrusive panel.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export var ExplorerUi;
|
|
11
|
+
(function (ExplorerUi) {
|
|
12
|
+
ExplorerUi[ExplorerUi["EU_SETTINGS"] = 0] = "EU_SETTINGS";
|
|
13
|
+
ExplorerUi[ExplorerUi["EU_MAP"] = 1] = "EU_MAP";
|
|
14
|
+
ExplorerUi[ExplorerUi["EU_BACKPACK"] = 2] = "EU_BACKPACK";
|
|
15
|
+
ExplorerUi[ExplorerUi["EU_CAMERA_REEL"] = 3] = "EU_CAMERA_REEL";
|
|
16
|
+
ExplorerUi[ExplorerUi["EU_COMMUNITIES"] = 4] = "EU_COMMUNITIES";
|
|
17
|
+
ExplorerUi[ExplorerUi["EU_PLACES"] = 5] = "EU_PLACES";
|
|
18
|
+
ExplorerUi[ExplorerUi["EU_EVENTS"] = 6] = "EU_EVENTS";
|
|
19
|
+
})(ExplorerUi || (ExplorerUi = {}));
|
package/dist/components/generated/pb/decentraland/sdk/components/explorer_ui_events_result.gen.d.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { ExplorerUi } from "./common/explorer_ui.gen";
|
|
3
|
+
/**
|
|
4
|
+
* PBExplorerUiEventsResult transports the lifecycle events of fullscreen explorer panels — a panel was
|
|
5
|
+
* opened, a panel was closed. It is a grow only value set appended to the scene root entity, so every
|
|
6
|
+
* event of a tick is delivered and none overwrites another.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export interface PBExplorerUiEventsResult {
|
|
12
|
+
/** The panel that the event refers to */
|
|
13
|
+
ui: ExplorerUi;
|
|
14
|
+
/** The scene tick when the event occurred */
|
|
15
|
+
timestamp: number;
|
|
16
|
+
event?: {
|
|
17
|
+
$case: "opened";
|
|
18
|
+
opened: PBExplorerUiEventsResult_UiOpened;
|
|
19
|
+
} | {
|
|
20
|
+
$case: "closed";
|
|
21
|
+
closed: PBExplorerUiEventsResult_UiClosed;
|
|
22
|
+
} | undefined;
|
|
23
|
+
}
|
|
24
|
+
/** Emitted when a fullscreen explorer panel is opened. */
|
|
25
|
+
/**
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
export interface PBExplorerUiEventsResult_UiOpened {
|
|
29
|
+
}
|
|
30
|
+
/** Emitted when a fullscreen explorer panel is closed. */
|
|
31
|
+
/**
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
export interface PBExplorerUiEventsResult_UiClosed {
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export declare namespace PBExplorerUiEventsResult {
|
|
40
|
+
function encode(message: PBExplorerUiEventsResult, writer?: _m0.Writer): _m0.Writer;
|
|
41
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBExplorerUiEventsResult;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
export declare namespace PBExplorerUiEventsResult_UiOpened {
|
|
47
|
+
function encode(_: PBExplorerUiEventsResult_UiOpened, writer?: _m0.Writer): _m0.Writer;
|
|
48
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBExplorerUiEventsResult_UiOpened;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
53
|
+
export declare namespace PBExplorerUiEventsResult_UiClosed {
|
|
54
|
+
function encode(_: PBExplorerUiEventsResult_UiClosed, writer?: _m0.Writer): _m0.Writer;
|
|
55
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBExplorerUiEventsResult_UiClosed;
|
|
56
|
+
}
|
package/dist/components/generated/pb/decentraland/sdk/components/explorer_ui_events_result.gen.js
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
4
|
+
function createBasePBExplorerUiEventsResult() {
|
|
5
|
+
return { ui: 0, timestamp: 0, event: undefined };
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export var PBExplorerUiEventsResult;
|
|
11
|
+
(function (PBExplorerUiEventsResult) {
|
|
12
|
+
function encode(message, writer = _m0.Writer.create()) {
|
|
13
|
+
if (message.ui !== 0) {
|
|
14
|
+
writer.uint32(8).int32(message.ui);
|
|
15
|
+
}
|
|
16
|
+
if (message.timestamp !== 0) {
|
|
17
|
+
writer.uint32(16).uint32(message.timestamp);
|
|
18
|
+
}
|
|
19
|
+
switch (message.event?.$case) {
|
|
20
|
+
case "opened":
|
|
21
|
+
PBExplorerUiEventsResult_UiOpened.encode(message.event.opened, writer.uint32(82).fork()).ldelim();
|
|
22
|
+
break;
|
|
23
|
+
case "closed":
|
|
24
|
+
PBExplorerUiEventsResult_UiClosed.encode(message.event.closed, writer.uint32(90).fork()).ldelim();
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
return writer;
|
|
28
|
+
}
|
|
29
|
+
PBExplorerUiEventsResult.encode = encode;
|
|
30
|
+
function decode(input, length) {
|
|
31
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
32
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
33
|
+
const message = createBasePBExplorerUiEventsResult();
|
|
34
|
+
while (reader.pos < end) {
|
|
35
|
+
const tag = reader.uint32();
|
|
36
|
+
switch (tag >>> 3) {
|
|
37
|
+
case 1:
|
|
38
|
+
if (tag !== 8) {
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
message.ui = reader.int32();
|
|
42
|
+
continue;
|
|
43
|
+
case 2:
|
|
44
|
+
if (tag !== 16) {
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
message.timestamp = reader.uint32();
|
|
48
|
+
continue;
|
|
49
|
+
case 10:
|
|
50
|
+
if (tag !== 82) {
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
message.event = {
|
|
54
|
+
$case: "opened",
|
|
55
|
+
opened: PBExplorerUiEventsResult_UiOpened.decode(reader, reader.uint32()),
|
|
56
|
+
};
|
|
57
|
+
continue;
|
|
58
|
+
case 11:
|
|
59
|
+
if (tag !== 90) {
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
message.event = {
|
|
63
|
+
$case: "closed",
|
|
64
|
+
closed: PBExplorerUiEventsResult_UiClosed.decode(reader, reader.uint32()),
|
|
65
|
+
};
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
reader.skipType(tag & 7);
|
|
72
|
+
}
|
|
73
|
+
return message;
|
|
74
|
+
}
|
|
75
|
+
PBExplorerUiEventsResult.decode = decode;
|
|
76
|
+
})(PBExplorerUiEventsResult || (PBExplorerUiEventsResult = {}));
|
|
77
|
+
function createBasePBExplorerUiEventsResult_UiOpened() {
|
|
78
|
+
return {};
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
export var PBExplorerUiEventsResult_UiOpened;
|
|
84
|
+
(function (PBExplorerUiEventsResult_UiOpened) {
|
|
85
|
+
function encode(_, writer = _m0.Writer.create()) {
|
|
86
|
+
return writer;
|
|
87
|
+
}
|
|
88
|
+
PBExplorerUiEventsResult_UiOpened.encode = encode;
|
|
89
|
+
function decode(input, length) {
|
|
90
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
91
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
92
|
+
const message = createBasePBExplorerUiEventsResult_UiOpened();
|
|
93
|
+
while (reader.pos < end) {
|
|
94
|
+
const tag = reader.uint32();
|
|
95
|
+
switch (tag >>> 3) {
|
|
96
|
+
}
|
|
97
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
reader.skipType(tag & 7);
|
|
101
|
+
}
|
|
102
|
+
return message;
|
|
103
|
+
}
|
|
104
|
+
PBExplorerUiEventsResult_UiOpened.decode = decode;
|
|
105
|
+
})(PBExplorerUiEventsResult_UiOpened || (PBExplorerUiEventsResult_UiOpened = {}));
|
|
106
|
+
function createBasePBExplorerUiEventsResult_UiClosed() {
|
|
107
|
+
return {};
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
export var PBExplorerUiEventsResult_UiClosed;
|
|
113
|
+
(function (PBExplorerUiEventsResult_UiClosed) {
|
|
114
|
+
function encode(_, writer = _m0.Writer.create()) {
|
|
115
|
+
return writer;
|
|
116
|
+
}
|
|
117
|
+
PBExplorerUiEventsResult_UiClosed.encode = encode;
|
|
118
|
+
function decode(input, length) {
|
|
119
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
120
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
121
|
+
const message = createBasePBExplorerUiEventsResult_UiClosed();
|
|
122
|
+
while (reader.pos < end) {
|
|
123
|
+
const tag = reader.uint32();
|
|
124
|
+
switch (tag >>> 3) {
|
|
125
|
+
}
|
|
126
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
reader.skipType(tag & 7);
|
|
130
|
+
}
|
|
131
|
+
return message;
|
|
132
|
+
}
|
|
133
|
+
PBExplorerUiEventsResult_UiClosed.decode = decode;
|
|
134
|
+
})(PBExplorerUiEventsResult_UiClosed || (PBExplorerUiEventsResult_UiClosed = {}));
|