@dcl/ecs 7.25.1-31608505224.commit-f858f90 → 7.25.1-31631715875.commit-ece3246
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_shape.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/avatar_shape.gen.js +9 -0
- 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/types.gen.d.ts +1 -0
- package/dist/components/generated/types.gen.js +2 -0
- package/dist/systems/triggerArea.js +1 -2
- 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_shape.gen.d.ts +8 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/avatar_shape.gen.js +10 -1
- 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/types.gen.d.ts +1 -0
- package/dist-cjs/components/generated/types.gen.js +2 -0
- package/dist-cjs/systems/triggerArea.js +1 -2
- 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,
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
import { Color3 } from "../../common/colors.gen";
|
|
3
|
+
/** Mask for which bones an animation applies to. */
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const enum AvatarEmoteMask {
|
|
8
|
+
AEM_FULL_BODY = 0,
|
|
9
|
+
AEM_UPPER_BODY = 1
|
|
10
|
+
}
|
|
3
11
|
/**
|
|
4
12
|
* The AvatarShape component contains the information required to draw and animate avatar, acting as
|
|
5
13
|
* a simplified GLTF container for this specific case.
|
|
@@ -3,6 +3,15 @@ import Long from "long";
|
|
|
3
3
|
import _m0 from "protobufjs/minimal";
|
|
4
4
|
import { Color3 } from "../../common/colors.gen";
|
|
5
5
|
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
6
|
+
/** Mask for which bones an animation applies to. */
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export var AvatarEmoteMask;
|
|
11
|
+
(function (AvatarEmoteMask) {
|
|
12
|
+
AvatarEmoteMask[AvatarEmoteMask["AEM_FULL_BODY"] = 0] = "AEM_FULL_BODY";
|
|
13
|
+
AvatarEmoteMask[AvatarEmoteMask["AEM_UPPER_BODY"] = 1] = "AEM_UPPER_BODY";
|
|
14
|
+
})(AvatarEmoteMask || (AvatarEmoteMask = {}));
|
|
6
15
|
function createBasePBAvatarShape() {
|
|
7
16
|
return {
|
|
8
17
|
id: "",
|
|
@@ -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 = {}));
|
|
@@ -4,6 +4,7 @@ export { ColorRange } from './pb/decentraland/common/colors.gen';
|
|
|
4
4
|
export * from './pb/decentraland/sdk/components/common/avatar_mask.gen';
|
|
5
5
|
export * from './pb/decentraland/sdk/components/common/camera_transition.gen';
|
|
6
6
|
export * from './pb/decentraland/sdk/components/common/camera_type.gen';
|
|
7
|
+
export * from './pb/decentraland/sdk/components/common/explorer_ui.gen';
|
|
7
8
|
export * from './pb/decentraland/sdk/components/common/input_action.gen';
|
|
8
9
|
export * from './pb/decentraland/sdk/components/common/loading_state.gen';
|
|
9
10
|
export * from './pb/decentraland/sdk/components/common/media_state.gen';
|
|
@@ -5,6 +5,8 @@ export * from './pb/decentraland/sdk/components/common/camera_transition.gen';
|
|
|
5
5
|
// export { PbCameraTransition }
|
|
6
6
|
export * from './pb/decentraland/sdk/components/common/camera_type.gen';
|
|
7
7
|
// export { PbCameraType }
|
|
8
|
+
export * from './pb/decentraland/sdk/components/common/explorer_ui.gen';
|
|
9
|
+
// export { PbExplorerUi }
|
|
8
10
|
export * from './pb/decentraland/sdk/components/common/input_action.gen';
|
|
9
11
|
// export { PbInputAction }
|
|
10
12
|
export * from './pb/decentraland/sdk/components/common/loading_state.gen';
|
|
@@ -177,8 +177,7 @@ export function createTriggerAreaEventsSystem(engine) {
|
|
|
177
177
|
// Pass 2: synthesize per-tick onStay callbacks
|
|
178
178
|
// -----------------------------------------------------------------------
|
|
179
179
|
// Only run if an onStay callback is registered and there are tracked triggerers.
|
|
180
|
-
if (data.triggerCallbackMap.has(1 /* TriggerAreaEventType.TAET_STAY */) &&
|
|
181
|
-
data.insideTriggerers.size > 0) {
|
|
180
|
+
if (data.triggerCallbackMap.has(1 /* TriggerAreaEventType.TAET_STAY */) && data.insideTriggerers.size > 0) {
|
|
182
181
|
const onStay = data.triggerCallbackMap.get(1 /* TriggerAreaEventType.TAET_STAY */);
|
|
183
182
|
const currentTimestamp = Date.now();
|
|
184
183
|
for (const [triggererEntity, cachedResult] of data.insideTriggerers) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExplorerUiEventsResultSchema = void 0;
|
|
4
|
+
const explorer_ui_events_result_gen_1 = require("./pb/decentraland/sdk/components/explorer_ui_events_result.gen");
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
exports.ExplorerUiEventsResultSchema = {
|
|
9
|
+
COMPONENT_ID: 1220,
|
|
10
|
+
serialize(value, builder) {
|
|
11
|
+
const writer = explorer_ui_events_result_gen_1.PBExplorerUiEventsResult.encode(value);
|
|
12
|
+
const buffer = new Uint8Array(writer.finish(), 0, writer.len);
|
|
13
|
+
builder.writeBuffer(buffer, false);
|
|
14
|
+
},
|
|
15
|
+
deserialize(reader) {
|
|
16
|
+
return explorer_ui_events_result_gen_1.PBExplorerUiEventsResult.decode(reader.buffer(), reader.remainingBytes());
|
|
17
|
+
},
|
|
18
|
+
create() {
|
|
19
|
+
// TODO: this is a hack.
|
|
20
|
+
return explorer_ui_events_result_gen_1.PBExplorerUiEventsResult.decode(new Uint8Array());
|
|
21
|
+
},
|
|
22
|
+
jsonSchema: {
|
|
23
|
+
type: "object",
|
|
24
|
+
properties: {},
|
|
25
|
+
serializationType: "protocol-buffer",
|
|
26
|
+
protocolBuffer: "PBExplorerUiEventsResult"
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -24,6 +24,7 @@ exports.coreComponentMappings = {
|
|
|
24
24
|
"core::CameraMode": 1072,
|
|
25
25
|
"core::CameraModeArea": 1071,
|
|
26
26
|
"core::EngineInfo": 1048,
|
|
27
|
+
"core::ExplorerUiEventsResult": 1220,
|
|
27
28
|
"core::GltfContainer": 1041,
|
|
28
29
|
"core::GltfContainerLoadingState": 1049,
|
|
29
30
|
"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>;
|
|
@@ -26,8 +26,8 @@ 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.
|
|
30
|
-
exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = void 0;
|
|
29
|
+
exports.UiInputResult = exports.UiInputBinding = exports.UiInput = exports.UiDropdownResult = exports.UiDropdown = exports.UiCanvasInformation = exports.UiBackground = exports.TweenState = exports.TweenSequence = exports.TriggerAreaResult = exports.TriggerArea = exports.TouchScreenControls = exports.TextShape = exports.SkyboxTime = exports.RealmInfo = exports.RaycastResult = exports.Raycast = exports.PrimaryPointerInfo = exports.PointerLock = exports.PointerEventsResult = exports.PointerEvents = exports.PlayerIdentityData = exports.PhysicsCombinedImpulse = exports.PhysicsCombinedForce = exports.ParticleSystem = exports.NftShape = exports.MainCamera = exports.LightSource = exports.InputModifier = exports.GltfNodeModifiers = exports.GltfContainerLoadingState = exports.GltfContainer = exports.ExplorerUiEventsResult = exports.EngineInfo = exports.CameraModeArea = exports.CameraMode = exports.Billboard = exports.AvatarShape = exports.AvatarModifierArea = exports.AvatarLocomotionSettings = exports.AvatarEquippedData = exports.AvatarEmoteCommand = exports.AvatarBase = exports.AvatarAttach = exports.AudioStream = exports.AudioSource = exports.AudioEvent = exports.AudioAnalysis = exports.AssetLoadLoadingState = exports.AssetLoad = void 0;
|
|
30
|
+
exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = exports.UiText = void 0;
|
|
31
31
|
const initialization_1 = require("../../runtime/initialization");
|
|
32
32
|
const components = __importStar(require("./index.gen"));
|
|
33
33
|
__exportStar(require("./index.gen"), exports);
|
|
@@ -48,6 +48,7 @@ __exportStar(require("./index.gen"), exports);
|
|
|
48
48
|
/** @public */ exports.CameraMode = components.CameraMode(initialization_1.engine);
|
|
49
49
|
/** @public */ exports.CameraModeArea = components.CameraModeArea(initialization_1.engine);
|
|
50
50
|
/** @public */ exports.EngineInfo = components.EngineInfo(initialization_1.engine);
|
|
51
|
+
/** @public */ exports.ExplorerUiEventsResult = components.ExplorerUiEventsResult(initialization_1.engine);
|
|
51
52
|
/** @public */ exports.GltfContainer = components.GltfContainer(initialization_1.engine);
|
|
52
53
|
/** @public */ exports.GltfContainerLoadingState = components.GltfContainerLoadingState(initialization_1.engine);
|
|
53
54
|
/** @public */ exports.GltfNodeModifiers = components.GltfNodeModifiers(initialization_1.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>>;
|
|
@@ -14,8 +14,8 @@ 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.
|
|
18
|
-
exports.componentDefinitionByName = exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = exports.UiText = exports.UiInputResult = exports.UiInputBinding = exports.UiInput = exports.UiDropdownResult = void 0;
|
|
17
|
+
exports.UiCanvasInformation = exports.UiBackground = exports.TweenState = exports.TweenSequence = exports.Tween = exports.TriggerAreaResult = exports.TriggerArea = exports.TouchScreenControls = exports.TextShape = exports.SkyboxTime = exports.RealmInfo = exports.RaycastResult = exports.Raycast = exports.PrimaryPointerInfo = exports.PointerLock = exports.PointerEventsResult = exports.PointerEvents = exports.PlayerIdentityData = exports.PhysicsCombinedImpulse = exports.PhysicsCombinedForce = exports.ParticleSystem = exports.NftShape = exports.MeshRenderer = exports.MeshCollider = exports.Material = exports.MainCamera = exports.LightSource = exports.InputModifier = exports.GltfNodeModifiers = exports.GltfContainerLoadingState = exports.GltfContainer = exports.ExplorerUiEventsResult = exports.EngineInfo = exports.CameraModeArea = exports.CameraMode = exports.Billboard = exports.AvatarShape = exports.AvatarModifierArea = exports.AvatarLocomotionSettings = exports.AvatarEquippedData = exports.AvatarEmoteCommand = exports.AvatarBase = exports.AvatarAttach = exports.AudioStream = exports.AudioSource = exports.AudioEvent = exports.AudioAnalysis = exports.AssetLoadLoadingState = exports.AssetLoad = exports.Animator = void 0;
|
|
18
|
+
exports.componentDefinitionByName = exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = exports.UiText = exports.UiInputResult = exports.UiInputBinding = exports.UiInput = exports.UiDropdownResult = exports.UiDropdown = void 0;
|
|
19
19
|
const Animator_gen_1 = require("./Animator.gen");
|
|
20
20
|
const AssetLoad_gen_1 = require("./AssetLoad.gen");
|
|
21
21
|
const AssetLoadLoadingState_gen_1 = require("./AssetLoadLoadingState.gen");
|
|
@@ -34,6 +34,7 @@ const Billboard_gen_1 = require("./Billboard.gen");
|
|
|
34
34
|
const CameraMode_gen_1 = require("./CameraMode.gen");
|
|
35
35
|
const CameraModeArea_gen_1 = require("./CameraModeArea.gen");
|
|
36
36
|
const EngineInfo_gen_1 = require("./EngineInfo.gen");
|
|
37
|
+
const ExplorerUiEventsResult_gen_1 = require("./ExplorerUiEventsResult.gen");
|
|
37
38
|
const GltfContainer_gen_1 = require("./GltfContainer.gen");
|
|
38
39
|
const GltfContainerLoadingState_gen_1 = require("./GltfContainerLoadingState.gen");
|
|
39
40
|
const GltfNodeModifiers_gen_1 = require("./GltfNodeModifiers.gen");
|
|
@@ -94,6 +95,7 @@ __exportStar(require("./pb/decentraland/sdk/components/billboard.gen"), exports)
|
|
|
94
95
|
__exportStar(require("./pb/decentraland/sdk/components/camera_mode.gen"), exports);
|
|
95
96
|
__exportStar(require("./pb/decentraland/sdk/components/camera_mode_area.gen"), exports);
|
|
96
97
|
__exportStar(require("./pb/decentraland/sdk/components/engine_info.gen"), exports);
|
|
98
|
+
__exportStar(require("./pb/decentraland/sdk/components/explorer_ui_events_result.gen"), exports);
|
|
97
99
|
__exportStar(require("./pb/decentraland/sdk/components/gltf_container.gen"), exports);
|
|
98
100
|
__exportStar(require("./pb/decentraland/sdk/components/gltf_container_loading_state.gen"), exports);
|
|
99
101
|
__exportStar(require("./pb/decentraland/sdk/components/gltf_node_modifiers.gen"), exports);
|
|
@@ -196,6 +198,11 @@ exports.CameraModeArea = CameraModeArea;
|
|
|
196
198
|
/** @public */ const EngineInfo = engine =>
|
|
197
199
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::EngineInfo", EngineInfo_gen_1.EngineInfoSchema);
|
|
198
200
|
exports.EngineInfo = EngineInfo;
|
|
201
|
+
/** @public */ const ExplorerUiEventsResult = (engine) => /* @__PURE__ */ engine.defineValueSetComponentFromSchema("core::ExplorerUiEventsResult", ExplorerUiEventsResult_gen_1.ExplorerUiEventsResultSchema, {
|
|
202
|
+
timestampFunction: (t) => t.timestamp,
|
|
203
|
+
maxElements: 100
|
|
204
|
+
});
|
|
205
|
+
exports.ExplorerUiEventsResult = ExplorerUiEventsResult;
|
|
199
206
|
/** @public */ const GltfContainer = engine =>
|
|
200
207
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::GltfContainer", GltfContainer_gen_1.GltfContainerSchema);
|
|
201
208
|
exports.GltfContainer = GltfContainer;
|
|
@@ -348,6 +355,7 @@ exports.componentDefinitionByName = {
|
|
|
348
355
|
"core::CameraMode": exports.CameraMode,
|
|
349
356
|
"core::CameraModeArea": exports.CameraModeArea,
|
|
350
357
|
"core::EngineInfo": exports.EngineInfo,
|
|
358
|
+
"core::ExplorerUiEventsResult": exports.ExplorerUiEventsResult,
|
|
351
359
|
"core::GltfContainer": exports.GltfContainer,
|
|
352
360
|
"core::GltfContainerLoadingState": exports.GltfContainerLoadingState,
|
|
353
361
|
"core::GltfNodeModifiers": exports.GltfNodeModifiers,
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
import { Color3 } from "../../common/colors.gen";
|
|
3
|
+
/** Mask for which bones an animation applies to. */
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const enum AvatarEmoteMask {
|
|
8
|
+
AEM_FULL_BODY = 0,
|
|
9
|
+
AEM_UPPER_BODY = 1
|
|
10
|
+
}
|
|
3
11
|
/**
|
|
4
12
|
* The AvatarShape component contains the information required to draw and animate avatar, acting as
|
|
5
13
|
* a simplified GLTF container for this specific case.
|
|
@@ -3,12 +3,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.PBAvatarShape = void 0;
|
|
6
|
+
exports.PBAvatarShape = exports.AvatarEmoteMask = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
10
|
const colors_gen_1 = require("../../common/colors.gen");
|
|
11
11
|
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
12
|
+
/** Mask for which bones an animation applies to. */
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
var AvatarEmoteMask;
|
|
17
|
+
(function (AvatarEmoteMask) {
|
|
18
|
+
AvatarEmoteMask[AvatarEmoteMask["AEM_FULL_BODY"] = 0] = "AEM_FULL_BODY";
|
|
19
|
+
AvatarEmoteMask[AvatarEmoteMask["AEM_UPPER_BODY"] = 1] = "AEM_UPPER_BODY";
|
|
20
|
+
})(AvatarEmoteMask = exports.AvatarEmoteMask || (exports.AvatarEmoteMask = {}));
|
|
12
21
|
function createBasePBAvatarShape() {
|
|
13
22
|
return {
|
|
14
23
|
id: "",
|
package/dist-cjs/components/generated/pb/decentraland/sdk/components/common/explorer_ui.gen.d.ts
ADDED
|
@@ -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
|
+
}
|
package/dist-cjs/components/generated/pb/decentraland/sdk/components/common/explorer_ui.gen.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ExplorerUi = void 0;
|
|
5
|
+
const protobufPackageSarasa = "decentraland.sdk.components.common";
|
|
6
|
+
/**
|
|
7
|
+
* Identifies which fullscreen explorer panel OpenExplorerUi targets.
|
|
8
|
+
* EU_SETTINGS holds 0 so an unset `ui` field defaults to the least-intrusive panel.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
var ExplorerUi;
|
|
14
|
+
(function (ExplorerUi) {
|
|
15
|
+
ExplorerUi[ExplorerUi["EU_SETTINGS"] = 0] = "EU_SETTINGS";
|
|
16
|
+
ExplorerUi[ExplorerUi["EU_MAP"] = 1] = "EU_MAP";
|
|
17
|
+
ExplorerUi[ExplorerUi["EU_BACKPACK"] = 2] = "EU_BACKPACK";
|
|
18
|
+
ExplorerUi[ExplorerUi["EU_CAMERA_REEL"] = 3] = "EU_CAMERA_REEL";
|
|
19
|
+
ExplorerUi[ExplorerUi["EU_COMMUNITIES"] = 4] = "EU_COMMUNITIES";
|
|
20
|
+
ExplorerUi[ExplorerUi["EU_PLACES"] = 5] = "EU_PLACES";
|
|
21
|
+
ExplorerUi[ExplorerUi["EU_EVENTS"] = 6] = "EU_EVENTS";
|
|
22
|
+
})(ExplorerUi = exports.ExplorerUi || (exports.ExplorerUi = {}));
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
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.PBExplorerUiEventsResult_UiClosed = exports.PBExplorerUiEventsResult_UiOpened = exports.PBExplorerUiEventsResult = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
+
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
10
|
+
function createBasePBExplorerUiEventsResult() {
|
|
11
|
+
return { ui: 0, timestamp: 0, event: undefined };
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
var PBExplorerUiEventsResult;
|
|
17
|
+
(function (PBExplorerUiEventsResult) {
|
|
18
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
19
|
+
if (message.ui !== 0) {
|
|
20
|
+
writer.uint32(8).int32(message.ui);
|
|
21
|
+
}
|
|
22
|
+
if (message.timestamp !== 0) {
|
|
23
|
+
writer.uint32(16).uint32(message.timestamp);
|
|
24
|
+
}
|
|
25
|
+
switch (message.event?.$case) {
|
|
26
|
+
case "opened":
|
|
27
|
+
PBExplorerUiEventsResult_UiOpened.encode(message.event.opened, writer.uint32(82).fork()).ldelim();
|
|
28
|
+
break;
|
|
29
|
+
case "closed":
|
|
30
|
+
PBExplorerUiEventsResult_UiClosed.encode(message.event.closed, writer.uint32(90).fork()).ldelim();
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
return writer;
|
|
34
|
+
}
|
|
35
|
+
PBExplorerUiEventsResult.encode = encode;
|
|
36
|
+
function decode(input, length) {
|
|
37
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
38
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
39
|
+
const message = createBasePBExplorerUiEventsResult();
|
|
40
|
+
while (reader.pos < end) {
|
|
41
|
+
const tag = reader.uint32();
|
|
42
|
+
switch (tag >>> 3) {
|
|
43
|
+
case 1:
|
|
44
|
+
if (tag !== 8) {
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
message.ui = reader.int32();
|
|
48
|
+
continue;
|
|
49
|
+
case 2:
|
|
50
|
+
if (tag !== 16) {
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
message.timestamp = reader.uint32();
|
|
54
|
+
continue;
|
|
55
|
+
case 10:
|
|
56
|
+
if (tag !== 82) {
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
message.event = {
|
|
60
|
+
$case: "opened",
|
|
61
|
+
opened: PBExplorerUiEventsResult_UiOpened.decode(reader, reader.uint32()),
|
|
62
|
+
};
|
|
63
|
+
continue;
|
|
64
|
+
case 11:
|
|
65
|
+
if (tag !== 90) {
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
message.event = {
|
|
69
|
+
$case: "closed",
|
|
70
|
+
closed: PBExplorerUiEventsResult_UiClosed.decode(reader, reader.uint32()),
|
|
71
|
+
};
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
reader.skipType(tag & 7);
|
|
78
|
+
}
|
|
79
|
+
return message;
|
|
80
|
+
}
|
|
81
|
+
PBExplorerUiEventsResult.decode = decode;
|
|
82
|
+
})(PBExplorerUiEventsResult = exports.PBExplorerUiEventsResult || (exports.PBExplorerUiEventsResult = {}));
|
|
83
|
+
function createBasePBExplorerUiEventsResult_UiOpened() {
|
|
84
|
+
return {};
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
var PBExplorerUiEventsResult_UiOpened;
|
|
90
|
+
(function (PBExplorerUiEventsResult_UiOpened) {
|
|
91
|
+
function encode(_, writer = minimal_1.default.Writer.create()) {
|
|
92
|
+
return writer;
|
|
93
|
+
}
|
|
94
|
+
PBExplorerUiEventsResult_UiOpened.encode = encode;
|
|
95
|
+
function decode(input, length) {
|
|
96
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
97
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
98
|
+
const message = createBasePBExplorerUiEventsResult_UiOpened();
|
|
99
|
+
while (reader.pos < end) {
|
|
100
|
+
const tag = reader.uint32();
|
|
101
|
+
switch (tag >>> 3) {
|
|
102
|
+
}
|
|
103
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
reader.skipType(tag & 7);
|
|
107
|
+
}
|
|
108
|
+
return message;
|
|
109
|
+
}
|
|
110
|
+
PBExplorerUiEventsResult_UiOpened.decode = decode;
|
|
111
|
+
})(PBExplorerUiEventsResult_UiOpened = exports.PBExplorerUiEventsResult_UiOpened || (exports.PBExplorerUiEventsResult_UiOpened = {}));
|
|
112
|
+
function createBasePBExplorerUiEventsResult_UiClosed() {
|
|
113
|
+
return {};
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
var PBExplorerUiEventsResult_UiClosed;
|
|
119
|
+
(function (PBExplorerUiEventsResult_UiClosed) {
|
|
120
|
+
function encode(_, writer = minimal_1.default.Writer.create()) {
|
|
121
|
+
return writer;
|
|
122
|
+
}
|
|
123
|
+
PBExplorerUiEventsResult_UiClosed.encode = encode;
|
|
124
|
+
function decode(input, length) {
|
|
125
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
126
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
127
|
+
const message = createBasePBExplorerUiEventsResult_UiClosed();
|
|
128
|
+
while (reader.pos < end) {
|
|
129
|
+
const tag = reader.uint32();
|
|
130
|
+
switch (tag >>> 3) {
|
|
131
|
+
}
|
|
132
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
reader.skipType(tag & 7);
|
|
136
|
+
}
|
|
137
|
+
return message;
|
|
138
|
+
}
|
|
139
|
+
PBExplorerUiEventsResult_UiClosed.decode = decode;
|
|
140
|
+
})(PBExplorerUiEventsResult_UiClosed = exports.PBExplorerUiEventsResult_UiClosed || (exports.PBExplorerUiEventsResult_UiClosed = {}));
|
|
@@ -4,6 +4,7 @@ export { ColorRange } from './pb/decentraland/common/colors.gen';
|
|
|
4
4
|
export * from './pb/decentraland/sdk/components/common/avatar_mask.gen';
|
|
5
5
|
export * from './pb/decentraland/sdk/components/common/camera_transition.gen';
|
|
6
6
|
export * from './pb/decentraland/sdk/components/common/camera_type.gen';
|
|
7
|
+
export * from './pb/decentraland/sdk/components/common/explorer_ui.gen';
|
|
7
8
|
export * from './pb/decentraland/sdk/components/common/input_action.gen';
|
|
8
9
|
export * from './pb/decentraland/sdk/components/common/loading_state.gen';
|
|
9
10
|
export * from './pb/decentraland/sdk/components/common/media_state.gen';
|
|
@@ -23,6 +23,8 @@ __exportStar(require("./pb/decentraland/sdk/components/common/camera_transition.
|
|
|
23
23
|
// export { PbCameraTransition }
|
|
24
24
|
__exportStar(require("./pb/decentraland/sdk/components/common/camera_type.gen"), exports);
|
|
25
25
|
// export { PbCameraType }
|
|
26
|
+
__exportStar(require("./pb/decentraland/sdk/components/common/explorer_ui.gen"), exports);
|
|
27
|
+
// export { PbExplorerUi }
|
|
26
28
|
__exportStar(require("./pb/decentraland/sdk/components/common/input_action.gen"), exports);
|
|
27
29
|
// export { PbInputAction }
|
|
28
30
|
__exportStar(require("./pb/decentraland/sdk/components/common/loading_state.gen"), exports);
|
|
@@ -203,8 +203,7 @@ function createTriggerAreaEventsSystem(engine) {
|
|
|
203
203
|
// Pass 2: synthesize per-tick onStay callbacks
|
|
204
204
|
// -----------------------------------------------------------------------
|
|
205
205
|
// Only run if an onStay callback is registered and there are tracked triggerers.
|
|
206
|
-
if (data.triggerCallbackMap.has(1 /* TriggerAreaEventType.TAET_STAY */) &&
|
|
207
|
-
data.insideTriggerers.size > 0) {
|
|
206
|
+
if (data.triggerCallbackMap.has(1 /* TriggerAreaEventType.TAET_STAY */) && data.insideTriggerers.size > 0) {
|
|
208
207
|
const onStay = data.triggerCallbackMap.get(1 /* TriggerAreaEventType.TAET_STAY */);
|
|
209
208
|
const currentTimestamp = Date.now();
|
|
210
209
|
for (const [triggererEntity, cachedResult] of data.insideTriggerers) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/ecs",
|
|
3
3
|
"description": "Decentraland ECS",
|
|
4
|
-
"version": "7.25.1-
|
|
4
|
+
"version": "7.25.1-31631715875.commit-ece3246",
|
|
5
5
|
"author": "DCL",
|
|
6
6
|
"bugs": "https://github.com/decentraland/ecs/issues",
|
|
7
7
|
"files": [
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"dependencies": {},
|
|
35
35
|
"types": "./dist/index.d.ts",
|
|
36
36
|
"typings": "./dist/index.d.ts",
|
|
37
|
-
"commit": "
|
|
37
|
+
"commit": "ece324654d220f5ab5517e743e374fd856308a58"
|
|
38
38
|
}
|