@dcl/ecs 7.20.5-22674879735.commit-6a30e67 → 7.20.5-22869988861.commit-9d0cc3a
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/component-names.gen.js +0 -2
- package/dist/components/generated/global.gen.d.ts +0 -4
- package/dist/components/generated/global.gen.js +0 -2
- package/dist/components/generated/index.gen.d.ts +0 -8
- package/dist/components/generated/index.gen.js +0 -10
- package/dist/components/generated/pb/decentraland/sdk/components/common/input_action.gen.d.ts +2 -12
- package/dist/components/generated/pb/decentraland/sdk/components/common/input_action.gen.js +0 -11
- package/dist/components/generated/pb/decentraland/sdk/components/pointer_events.gen.d.ts +1 -5
- package/dist/components/generated/pb/decentraland/sdk/components/pointer_events.gen.js +1 -20
- package/dist/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.d.ts +0 -3
- package/dist/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.js +1 -10
- package/dist/components/index.d.ts +0 -4
- package/dist/components/index.js +0 -3
- package/dist/components/types.d.ts +0 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/runtime/globals.d.ts +10 -1
- package/dist/runtime/globals.js +2 -2
- package/dist/systems/events.d.ts +0 -65
- package/dist/systems/events.js +8 -70
- package/dist-cjs/components/generated/component-names.gen.js +0 -2
- package/dist-cjs/components/generated/global.gen.d.ts +0 -4
- package/dist-cjs/components/generated/global.gen.js +1 -4
- package/dist-cjs/components/generated/index.gen.d.ts +0 -8
- package/dist-cjs/components/generated/index.gen.js +2 -14
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/common/input_action.gen.d.ts +2 -12
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/common/input_action.gen.js +1 -12
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/pointer_events.gen.d.ts +1 -5
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/pointer_events.gen.js +1 -20
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.d.ts +0 -3
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/virtual_camera.gen.js +1 -10
- package/dist-cjs/components/index.d.ts +0 -4
- package/dist-cjs/components/index.js +1 -5
- package/dist-cjs/components/types.d.ts +0 -1
- package/dist-cjs/index.d.ts +2 -2
- package/dist-cjs/index.js +2 -2
- package/dist-cjs/runtime/globals.d.ts +10 -1
- package/dist-cjs/runtime/globals.js +2 -2
- package/dist-cjs/systems/events.d.ts +0 -65
- package/dist-cjs/systems/events.js +8 -70
- package/package.json +2 -2
- package/dist/components/extended/AudioAnalysis.d.ts +0 -55
- package/dist/components/extended/AudioAnalysis.js +0 -66
- package/dist/components/generated/AudioAnalysis.gen.d.ts +0 -1
- package/dist/components/generated/AudioAnalysis.gen.js +0 -25
- package/dist/components/generated/AvatarLocomotionSettings.gen.d.ts +0 -1
- package/dist/components/generated/AvatarLocomotionSettings.gen.js +0 -25
- package/dist/components/generated/pb/decentraland/sdk/components/audio_analysis.gen.d.ts +0 -37
- package/dist/components/generated/pb/decentraland/sdk/components/audio_analysis.gen.js +0 -161
- package/dist/components/generated/pb/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +0 -35
- package/dist/components/generated/pb/decentraland/sdk/components/avatar_locomotion_settings.gen.js +0 -123
- package/dist-cjs/components/extended/AudioAnalysis.d.ts +0 -55
- package/dist-cjs/components/extended/AudioAnalysis.js +0 -70
- package/dist-cjs/components/generated/AudioAnalysis.gen.d.ts +0 -1
- package/dist-cjs/components/generated/AudioAnalysis.gen.js +0 -28
- package/dist-cjs/components/generated/AvatarLocomotionSettings.gen.d.ts +0 -1
- package/dist-cjs/components/generated/AvatarLocomotionSettings.gen.js +0 -28
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/audio_analysis.gen.d.ts +0 -37
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/audio_analysis.gen.js +0 -167
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +0 -35
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/avatar_locomotion_settings.gen.js +0 -129
|
@@ -6,7 +6,6 @@ export const coreComponentMappings = {
|
|
|
6
6
|
"core::Animator": 1042,
|
|
7
7
|
"core::AssetLoad": 1213,
|
|
8
8
|
"core::AssetLoadLoadingState": 1214,
|
|
9
|
-
"core::AudioAnalysis": 1212,
|
|
10
9
|
"core::AudioEvent": 1105,
|
|
11
10
|
"core::AudioSource": 1020,
|
|
12
11
|
"core::AudioStream": 1021,
|
|
@@ -14,7 +13,6 @@ export const coreComponentMappings = {
|
|
|
14
13
|
"core::AvatarBase": 1087,
|
|
15
14
|
"core::AvatarEmoteCommand": 1088,
|
|
16
15
|
"core::AvatarEquippedData": 1091,
|
|
17
|
-
"core::AvatarLocomotionSettings": 1211,
|
|
18
16
|
"core::AvatarModifierArea": 1070,
|
|
19
17
|
"core::AvatarShape": 1080,
|
|
20
18
|
"core::Billboard": 1090,
|
|
@@ -2,7 +2,6 @@ import { LastWriteWinElementSetComponentDefinition, GrowOnlyValueSetComponentDef
|
|
|
2
2
|
export * from './index.gen';
|
|
3
3
|
import { PBAssetLoad } from './pb/decentraland/sdk/components/asset_load.gen';
|
|
4
4
|
import { PBAssetLoadLoadingState } from './pb/decentraland/sdk/components/asset_load_loading_state.gen';
|
|
5
|
-
import { PBAudioAnalysis } from './pb/decentraland/sdk/components/audio_analysis.gen';
|
|
6
5
|
import { PBAudioEvent } from './pb/decentraland/sdk/components/audio_event.gen';
|
|
7
6
|
import { PBAudioSource } from './pb/decentraland/sdk/components/audio_source.gen';
|
|
8
7
|
import { PBAudioStream } from './pb/decentraland/sdk/components/audio_stream.gen';
|
|
@@ -10,7 +9,6 @@ import { PBAvatarAttach } from './pb/decentraland/sdk/components/avatar_attach.g
|
|
|
10
9
|
import { PBAvatarBase } from './pb/decentraland/sdk/components/avatar_base.gen';
|
|
11
10
|
import { PBAvatarEmoteCommand } from './pb/decentraland/sdk/components/avatar_emote_command.gen';
|
|
12
11
|
import { PBAvatarEquippedData } from './pb/decentraland/sdk/components/avatar_equipped_data.gen';
|
|
13
|
-
import { PBAvatarLocomotionSettings } from './pb/decentraland/sdk/components/avatar_locomotion_settings.gen';
|
|
14
12
|
import { PBAvatarModifierArea } from './pb/decentraland/sdk/components/avatar_modifier_area.gen';
|
|
15
13
|
import { PBAvatarShape } from './pb/decentraland/sdk/components/avatar_shape.gen';
|
|
16
14
|
import { PBBillboard } from './pb/decentraland/sdk/components/billboard.gen';
|
|
@@ -54,7 +52,6 @@ import { PBVirtualCamera } from './pb/decentraland/sdk/components/virtual_camera
|
|
|
54
52
|
import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibility_component.gen';
|
|
55
53
|
/** @public */ export declare const AssetLoad: LastWriteWinElementSetComponentDefinition<PBAssetLoad>;
|
|
56
54
|
/** @public */ export declare const AssetLoadLoadingState: GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>;
|
|
57
|
-
/** @public */ export declare const AudioAnalysis: LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>;
|
|
58
55
|
/** @public */ export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
|
|
59
56
|
/** @public */ export declare const AudioSource: LastWriteWinElementSetComponentDefinition<PBAudioSource>;
|
|
60
57
|
/** @public */ export declare const AudioStream: LastWriteWinElementSetComponentDefinition<PBAudioStream>;
|
|
@@ -62,7 +59,6 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
|
|
|
62
59
|
/** @public */ export declare const AvatarBase: LastWriteWinElementSetComponentDefinition<PBAvatarBase>;
|
|
63
60
|
/** @public */ export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>;
|
|
64
61
|
/** @public */ export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
|
65
|
-
/** @public */ export declare const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
|
|
66
62
|
/** @public */ export declare const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
|
|
67
63
|
/** @public */ export declare const AvatarShape: LastWriteWinElementSetComponentDefinition<PBAvatarShape>;
|
|
68
64
|
/** @public */ export declare const Billboard: LastWriteWinElementSetComponentDefinition<PBBillboard>;
|
|
@@ -3,7 +3,6 @@ import * as components from './index.gen';
|
|
|
3
3
|
export * from './index.gen';
|
|
4
4
|
/** @public */ export const AssetLoad = /* @__PURE__ */ components.AssetLoad(engine);
|
|
5
5
|
/** @public */ export const AssetLoadLoadingState = /* @__PURE__ */ components.AssetLoadLoadingState(engine);
|
|
6
|
-
/** @public */ export const AudioAnalysis = /* @__PURE__ */ components.AudioAnalysis(engine);
|
|
7
6
|
/** @public */ export const AudioEvent = /* @__PURE__ */ components.AudioEvent(engine);
|
|
8
7
|
/** @public */ export const AudioSource = /* @__PURE__ */ components.AudioSource(engine);
|
|
9
8
|
/** @public */ export const AudioStream = /* @__PURE__ */ components.AudioStream(engine);
|
|
@@ -11,7 +10,6 @@ export * from './index.gen';
|
|
|
11
10
|
/** @public */ export const AvatarBase = /* @__PURE__ */ components.AvatarBase(engine);
|
|
12
11
|
/** @public */ export const AvatarEmoteCommand = /* @__PURE__ */ components.AvatarEmoteCommand(engine);
|
|
13
12
|
/** @public */ export const AvatarEquippedData = /* @__PURE__ */ components.AvatarEquippedData(engine);
|
|
14
|
-
/** @public */ export const AvatarLocomotionSettings = /* @__PURE__ */ components.AvatarLocomotionSettings(engine);
|
|
15
13
|
/** @public */ export const AvatarModifierArea = /* @__PURE__ */ components.AvatarModifierArea(engine);
|
|
16
14
|
/** @public */ export const AvatarShape = /* @__PURE__ */ components.AvatarShape(engine);
|
|
17
15
|
/** @public */ export const Billboard = /* @__PURE__ */ components.Billboard(engine);
|
|
@@ -3,7 +3,6 @@ import { LastWriteWinElementSetComponentDefinition, GrowOnlyValueSetComponentDef
|
|
|
3
3
|
import { PBAnimator } from './pb/decentraland/sdk/components/animator.gen';
|
|
4
4
|
import { PBAssetLoad } from './pb/decentraland/sdk/components/asset_load.gen';
|
|
5
5
|
import { PBAssetLoadLoadingState } from './pb/decentraland/sdk/components/asset_load_loading_state.gen';
|
|
6
|
-
import { PBAudioAnalysis } from './pb/decentraland/sdk/components/audio_analysis.gen';
|
|
7
6
|
import { PBAudioEvent } from './pb/decentraland/sdk/components/audio_event.gen';
|
|
8
7
|
import { PBAudioSource } from './pb/decentraland/sdk/components/audio_source.gen';
|
|
9
8
|
import { PBAudioStream } from './pb/decentraland/sdk/components/audio_stream.gen';
|
|
@@ -11,7 +10,6 @@ import { PBAvatarAttach } from './pb/decentraland/sdk/components/avatar_attach.g
|
|
|
11
10
|
import { PBAvatarBase } from './pb/decentraland/sdk/components/avatar_base.gen';
|
|
12
11
|
import { PBAvatarEmoteCommand } from './pb/decentraland/sdk/components/avatar_emote_command.gen';
|
|
13
12
|
import { PBAvatarEquippedData } from './pb/decentraland/sdk/components/avatar_equipped_data.gen';
|
|
14
|
-
import { PBAvatarLocomotionSettings } from './pb/decentraland/sdk/components/avatar_locomotion_settings.gen';
|
|
15
13
|
import { PBAvatarModifierArea } from './pb/decentraland/sdk/components/avatar_modifier_area.gen';
|
|
16
14
|
import { PBAvatarShape } from './pb/decentraland/sdk/components/avatar_shape.gen';
|
|
17
15
|
import { PBBillboard } from './pb/decentraland/sdk/components/billboard.gen';
|
|
@@ -60,7 +58,6 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
|
|
|
60
58
|
export * from './pb/decentraland/sdk/components/animator.gen';
|
|
61
59
|
export * from './pb/decentraland/sdk/components/asset_load.gen';
|
|
62
60
|
export * from './pb/decentraland/sdk/components/asset_load_loading_state.gen';
|
|
63
|
-
export * from './pb/decentraland/sdk/components/audio_analysis.gen';
|
|
64
61
|
export * from './pb/decentraland/sdk/components/audio_event.gen';
|
|
65
62
|
export * from './pb/decentraland/sdk/components/audio_source.gen';
|
|
66
63
|
export * from './pb/decentraland/sdk/components/audio_stream.gen';
|
|
@@ -68,7 +65,6 @@ export * from './pb/decentraland/sdk/components/avatar_attach.gen';
|
|
|
68
65
|
export * from './pb/decentraland/sdk/components/avatar_base.gen';
|
|
69
66
|
export * from './pb/decentraland/sdk/components/avatar_emote_command.gen';
|
|
70
67
|
export * from './pb/decentraland/sdk/components/avatar_equipped_data.gen';
|
|
71
|
-
export * from './pb/decentraland/sdk/components/avatar_locomotion_settings.gen';
|
|
72
68
|
export * from './pb/decentraland/sdk/components/avatar_modifier_area.gen';
|
|
73
69
|
export * from './pb/decentraland/sdk/components/avatar_shape.gen';
|
|
74
70
|
export * from './pb/decentraland/sdk/components/billboard.gen';
|
|
@@ -119,7 +115,6 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
|
|
|
119
115
|
/** @public */ export declare const Animator: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
|
|
120
116
|
/** @public */ export declare const AssetLoad: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
|
|
121
117
|
/** @public */ export declare const AssetLoadLoadingState: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
|
|
122
|
-
/** @public */ export declare const AudioAnalysis: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
|
|
123
118
|
/** @public */ export declare const AudioEvent: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
|
|
124
119
|
/** @public */ export declare const AudioSource: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
|
|
125
120
|
/** @public */ export declare const AudioStream: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
|
|
@@ -127,7 +122,6 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
|
|
|
127
122
|
/** @public */ export declare const AvatarBase: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
|
|
128
123
|
/** @public */ export declare const AvatarEmoteCommand: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
|
|
129
124
|
/** @public */ export declare const AvatarEquippedData: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
130
|
-
/** @public */ export declare const AvatarLocomotionSettings: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
131
125
|
/** @public */ export declare const AvatarModifierArea: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
132
126
|
/** @public */ export declare const AvatarShape: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
133
127
|
/** @public */ export declare const Billboard: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
@@ -178,7 +172,6 @@ export declare const componentDefinitionByName: {
|
|
|
178
172
|
"core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
|
|
179
173
|
"core::AssetLoad": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
|
|
180
174
|
"core::AssetLoadLoadingState": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
|
|
181
|
-
"core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
|
|
182
175
|
"core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
|
|
183
176
|
"core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
|
|
184
177
|
"core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
|
|
@@ -186,7 +179,6 @@ export declare const componentDefinitionByName: {
|
|
|
186
179
|
"core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
|
|
187
180
|
"core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
|
|
188
181
|
"core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
189
|
-
"core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
190
182
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
191
183
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
192
184
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AnimatorSchema } from './Animator.gen';
|
|
2
2
|
import { AssetLoadSchema } from './AssetLoad.gen';
|
|
3
3
|
import { AssetLoadLoadingStateSchema } from './AssetLoadLoadingState.gen';
|
|
4
|
-
import { AudioAnalysisSchema } from './AudioAnalysis.gen';
|
|
5
4
|
import { AudioEventSchema } from './AudioEvent.gen';
|
|
6
5
|
import { AudioSourceSchema } from './AudioSource.gen';
|
|
7
6
|
import { AudioStreamSchema } from './AudioStream.gen';
|
|
@@ -9,7 +8,6 @@ import { AvatarAttachSchema } from './AvatarAttach.gen';
|
|
|
9
8
|
import { AvatarBaseSchema } from './AvatarBase.gen';
|
|
10
9
|
import { AvatarEmoteCommandSchema } from './AvatarEmoteCommand.gen';
|
|
11
10
|
import { AvatarEquippedDataSchema } from './AvatarEquippedData.gen';
|
|
12
|
-
import { AvatarLocomotionSettingsSchema } from './AvatarLocomotionSettings.gen';
|
|
13
11
|
import { AvatarModifierAreaSchema } from './AvatarModifierArea.gen';
|
|
14
12
|
import { AvatarShapeSchema } from './AvatarShape.gen';
|
|
15
13
|
import { BillboardSchema } from './Billboard.gen';
|
|
@@ -58,7 +56,6 @@ import { VisibilityComponentSchema } from './VisibilityComponent.gen';
|
|
|
58
56
|
export * from './pb/decentraland/sdk/components/animator.gen';
|
|
59
57
|
export * from './pb/decentraland/sdk/components/asset_load.gen';
|
|
60
58
|
export * from './pb/decentraland/sdk/components/asset_load_loading_state.gen';
|
|
61
|
-
export * from './pb/decentraland/sdk/components/audio_analysis.gen';
|
|
62
59
|
export * from './pb/decentraland/sdk/components/audio_event.gen';
|
|
63
60
|
export * from './pb/decentraland/sdk/components/audio_source.gen';
|
|
64
61
|
export * from './pb/decentraland/sdk/components/audio_stream.gen';
|
|
@@ -66,7 +63,6 @@ export * from './pb/decentraland/sdk/components/avatar_attach.gen';
|
|
|
66
63
|
export * from './pb/decentraland/sdk/components/avatar_base.gen';
|
|
67
64
|
export * from './pb/decentraland/sdk/components/avatar_emote_command.gen';
|
|
68
65
|
export * from './pb/decentraland/sdk/components/avatar_equipped_data.gen';
|
|
69
|
-
export * from './pb/decentraland/sdk/components/avatar_locomotion_settings.gen';
|
|
70
66
|
export * from './pb/decentraland/sdk/components/avatar_modifier_area.gen';
|
|
71
67
|
export * from './pb/decentraland/sdk/components/avatar_shape.gen';
|
|
72
68
|
export * from './pb/decentraland/sdk/components/billboard.gen';
|
|
@@ -120,8 +116,6 @@ export * from './pb/decentraland/sdk/components/visibility_component.gen';
|
|
|
120
116
|
timestampFunction: (t) => t.timestamp,
|
|
121
117
|
maxElements: 100
|
|
122
118
|
});
|
|
123
|
-
/** @public */ export const AudioAnalysis = engine =>
|
|
124
|
-
/* @__PURE__ */ engine.defineComponentFromSchema("core::AudioAnalysis", AudioAnalysisSchema);
|
|
125
119
|
/** @public */ export const AudioEvent = (engine) => /* @__PURE__ */ engine.defineValueSetComponentFromSchema("core::AudioEvent", AudioEventSchema, {
|
|
126
120
|
timestampFunction: (t) => t.timestamp,
|
|
127
121
|
maxElements: 100
|
|
@@ -140,8 +134,6 @@ export * from './pb/decentraland/sdk/components/visibility_component.gen';
|
|
|
140
134
|
});
|
|
141
135
|
/** @public */ export const AvatarEquippedData = engine =>
|
|
142
136
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::AvatarEquippedData", AvatarEquippedDataSchema);
|
|
143
|
-
/** @public */ export const AvatarLocomotionSettings = engine =>
|
|
144
|
-
/* @__PURE__ */ engine.defineComponentFromSchema("core::AvatarLocomotionSettings", AvatarLocomotionSettingsSchema);
|
|
145
137
|
/** @public */ export const AvatarModifierArea = engine =>
|
|
146
138
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::AvatarModifierArea", AvatarModifierAreaSchema);
|
|
147
139
|
/** @public */ export const AvatarShape = engine =>
|
|
@@ -243,7 +235,6 @@ export const componentDefinitionByName = /* @__PURE__ */ {
|
|
|
243
235
|
"core::Animator": Animator,
|
|
244
236
|
"core::AssetLoad": AssetLoad,
|
|
245
237
|
"core::AssetLoadLoadingState": AssetLoadLoadingState,
|
|
246
|
-
"core::AudioAnalysis": AudioAnalysis,
|
|
247
238
|
"core::AudioEvent": AudioEvent,
|
|
248
239
|
"core::AudioSource": AudioSource,
|
|
249
240
|
"core::AudioStream": AudioStream,
|
|
@@ -251,7 +242,6 @@ export const componentDefinitionByName = /* @__PURE__ */ {
|
|
|
251
242
|
"core::AvatarBase": AvatarBase,
|
|
252
243
|
"core::AvatarEmoteCommand": AvatarEmoteCommand,
|
|
253
244
|
"core::AvatarEquippedData": AvatarEquippedData,
|
|
254
|
-
"core::AvatarLocomotionSettings": AvatarLocomotionSettings,
|
|
255
245
|
"core::AvatarModifierArea": AvatarModifierArea,
|
|
256
246
|
"core::AvatarShape": AvatarShape,
|
|
257
247
|
"core::Billboard": Billboard,
|
package/dist/components/generated/pb/decentraland/sdk/components/common/input_action.gen.d.ts
CHANGED
|
@@ -15,8 +15,7 @@ export declare const enum InputAction {
|
|
|
15
15
|
IA_ACTION_3 = 10,
|
|
16
16
|
IA_ACTION_4 = 11,
|
|
17
17
|
IA_ACTION_5 = 12,
|
|
18
|
-
IA_ACTION_6 = 13
|
|
19
|
-
IA_MODIFIER = 14
|
|
18
|
+
IA_ACTION_6 = 13
|
|
20
19
|
}
|
|
21
20
|
/** PointerEventType is a kind of interaction that can be detected. */
|
|
22
21
|
/**
|
|
@@ -26,14 +25,5 @@ export declare const enum PointerEventType {
|
|
|
26
25
|
PET_UP = 0,
|
|
27
26
|
PET_DOWN = 1,
|
|
28
27
|
PET_HOVER_ENTER = 2,
|
|
29
|
-
PET_HOVER_LEAVE = 3
|
|
30
|
-
PET_PROXIMITY_ENTER = 4,
|
|
31
|
-
PET_PROXIMITY_LEAVE = 5
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* @public
|
|
35
|
-
*/
|
|
36
|
-
export declare const enum InteractionType {
|
|
37
|
-
CURSOR = 0,
|
|
38
|
-
PROXIMITY = 1
|
|
28
|
+
PET_HOVER_LEAVE = 3
|
|
39
29
|
}
|
|
@@ -19,7 +19,6 @@ export var InputAction;
|
|
|
19
19
|
InputAction[InputAction["IA_ACTION_4"] = 11] = "IA_ACTION_4";
|
|
20
20
|
InputAction[InputAction["IA_ACTION_5"] = 12] = "IA_ACTION_5";
|
|
21
21
|
InputAction[InputAction["IA_ACTION_6"] = 13] = "IA_ACTION_6";
|
|
22
|
-
InputAction[InputAction["IA_MODIFIER"] = 14] = "IA_MODIFIER";
|
|
23
22
|
})(InputAction || (InputAction = {}));
|
|
24
23
|
/** PointerEventType is a kind of interaction that can be detected. */
|
|
25
24
|
/**
|
|
@@ -31,14 +30,4 @@ export var PointerEventType;
|
|
|
31
30
|
PointerEventType[PointerEventType["PET_DOWN"] = 1] = "PET_DOWN";
|
|
32
31
|
PointerEventType[PointerEventType["PET_HOVER_ENTER"] = 2] = "PET_HOVER_ENTER";
|
|
33
32
|
PointerEventType[PointerEventType["PET_HOVER_LEAVE"] = 3] = "PET_HOVER_LEAVE";
|
|
34
|
-
PointerEventType[PointerEventType["PET_PROXIMITY_ENTER"] = 4] = "PET_PROXIMITY_ENTER";
|
|
35
|
-
PointerEventType[PointerEventType["PET_PROXIMITY_LEAVE"] = 5] = "PET_PROXIMITY_LEAVE";
|
|
36
33
|
})(PointerEventType || (PointerEventType = {}));
|
|
37
|
-
/**
|
|
38
|
-
* @public
|
|
39
|
-
*/
|
|
40
|
-
export var InteractionType;
|
|
41
|
-
(function (InteractionType) {
|
|
42
|
-
InteractionType[InteractionType["CURSOR"] = 0] = "CURSOR";
|
|
43
|
-
InteractionType[InteractionType["PROXIMITY"] = 1] = "PROXIMITY";
|
|
44
|
-
})(InteractionType || (InteractionType = {}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
|
-
import { InputAction,
|
|
2
|
+
import { InputAction, PointerEventType } from "./common/input_action.gen";
|
|
3
3
|
/**
|
|
4
4
|
* PointerEvents adds configurable pointer-based interactions to the attached Entity.
|
|
5
5
|
*
|
|
@@ -61,8 +61,6 @@ export interface PBPointerEvents_Info {
|
|
|
61
61
|
showHighlight?: boolean | undefined;
|
|
62
62
|
/** range of interaction from the avatar's position (default 0) */
|
|
63
63
|
maxPlayerDistance?: number | undefined;
|
|
64
|
-
/** resolution order when multiple events overlap, higher wins (default 0) */
|
|
65
|
-
priority?: number | undefined;
|
|
66
64
|
}
|
|
67
65
|
/**
|
|
68
66
|
* @public
|
|
@@ -72,8 +70,6 @@ export interface PBPointerEvents_Entry {
|
|
|
72
70
|
eventType: PointerEventType;
|
|
73
71
|
/** additional configuration for this detection */
|
|
74
72
|
eventInfo: PBPointerEvents_Info | undefined;
|
|
75
|
-
/** the type of interaction source (default 0 == CURSOR) */
|
|
76
|
-
interactionType?: InteractionType | undefined;
|
|
77
73
|
}
|
|
78
74
|
/**
|
|
79
75
|
* @public
|
|
@@ -47,7 +47,6 @@ function createBasePBPointerEvents_Info() {
|
|
|
47
47
|
showFeedback: undefined,
|
|
48
48
|
showHighlight: undefined,
|
|
49
49
|
maxPlayerDistance: undefined,
|
|
50
|
-
priority: undefined,
|
|
51
50
|
};
|
|
52
51
|
}
|
|
53
52
|
/**
|
|
@@ -74,9 +73,6 @@ export var PBPointerEvents_Info;
|
|
|
74
73
|
if (message.maxPlayerDistance !== undefined) {
|
|
75
74
|
writer.uint32(53).float(message.maxPlayerDistance);
|
|
76
75
|
}
|
|
77
|
-
if (message.priority !== undefined) {
|
|
78
|
-
writer.uint32(56).uint32(message.priority);
|
|
79
|
-
}
|
|
80
76
|
return writer;
|
|
81
77
|
}
|
|
82
78
|
PBPointerEvents_Info.encode = encode;
|
|
@@ -123,12 +119,6 @@ export var PBPointerEvents_Info;
|
|
|
123
119
|
}
|
|
124
120
|
message.maxPlayerDistance = reader.float();
|
|
125
121
|
continue;
|
|
126
|
-
case 7:
|
|
127
|
-
if (tag !== 56) {
|
|
128
|
-
break;
|
|
129
|
-
}
|
|
130
|
-
message.priority = reader.uint32();
|
|
131
|
-
continue;
|
|
132
122
|
}
|
|
133
123
|
if ((tag & 7) === 4 || tag === 0) {
|
|
134
124
|
break;
|
|
@@ -140,7 +130,7 @@ export var PBPointerEvents_Info;
|
|
|
140
130
|
PBPointerEvents_Info.decode = decode;
|
|
141
131
|
})(PBPointerEvents_Info || (PBPointerEvents_Info = {}));
|
|
142
132
|
function createBasePBPointerEvents_Entry() {
|
|
143
|
-
return { eventType: 0, eventInfo: undefined
|
|
133
|
+
return { eventType: 0, eventInfo: undefined };
|
|
144
134
|
}
|
|
145
135
|
/**
|
|
146
136
|
* @public
|
|
@@ -154,9 +144,6 @@ export var PBPointerEvents_Entry;
|
|
|
154
144
|
if (message.eventInfo !== undefined) {
|
|
155
145
|
PBPointerEvents_Info.encode(message.eventInfo, writer.uint32(18).fork()).ldelim();
|
|
156
146
|
}
|
|
157
|
-
if (message.interactionType !== undefined) {
|
|
158
|
-
writer.uint32(24).int32(message.interactionType);
|
|
159
|
-
}
|
|
160
147
|
return writer;
|
|
161
148
|
}
|
|
162
149
|
PBPointerEvents_Entry.encode = encode;
|
|
@@ -179,12 +166,6 @@ export var PBPointerEvents_Entry;
|
|
|
179
166
|
}
|
|
180
167
|
message.eventInfo = PBPointerEvents_Info.decode(reader, reader.uint32());
|
|
181
168
|
continue;
|
|
182
|
-
case 3:
|
|
183
|
-
if (tag !== 24) {
|
|
184
|
-
break;
|
|
185
|
-
}
|
|
186
|
-
message.interactionType = reader.int32();
|
|
187
|
-
continue;
|
|
188
169
|
}
|
|
189
170
|
if ((tag & 7) === 4 || tag === 0) {
|
|
190
171
|
break;
|
|
@@ -6,7 +6,6 @@ import { CameraTransition } from "./common/camera_transition.gen";
|
|
|
6
6
|
* an 'instant' transition (like using speed/time = 0)
|
|
7
7
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
|
8
8
|
* the holding entity transform).
|
|
9
|
-
* * The fov defines the Field of View of the virtual camera
|
|
10
9
|
*/
|
|
11
10
|
/**
|
|
12
11
|
* @public
|
|
@@ -14,8 +13,6 @@ import { CameraTransition } from "./common/camera_transition.gen";
|
|
|
14
13
|
export interface PBVirtualCamera {
|
|
15
14
|
defaultTransition?: CameraTransition | undefined;
|
|
16
15
|
lookAtEntity?: number | undefined;
|
|
17
|
-
/** default: 60 */
|
|
18
|
-
fov?: number | undefined;
|
|
19
16
|
}
|
|
20
17
|
/**
|
|
21
18
|
* @public
|
|
@@ -3,7 +3,7 @@ import _m0 from "protobufjs/minimal";
|
|
|
3
3
|
import { CameraTransition } from "./common/camera_transition.gen";
|
|
4
4
|
const protobufPackageSarasa = "decentraland.sdk.components";
|
|
5
5
|
function createBasePBVirtualCamera() {
|
|
6
|
-
return { defaultTransition: undefined, lookAtEntity: undefined
|
|
6
|
+
return { defaultTransition: undefined, lookAtEntity: undefined };
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* @public
|
|
@@ -17,9 +17,6 @@ export var PBVirtualCamera;
|
|
|
17
17
|
if (message.lookAtEntity !== undefined) {
|
|
18
18
|
writer.uint32(16).uint32(message.lookAtEntity);
|
|
19
19
|
}
|
|
20
|
-
if (message.fov !== undefined) {
|
|
21
|
-
writer.uint32(29).float(message.fov);
|
|
22
|
-
}
|
|
23
20
|
return writer;
|
|
24
21
|
}
|
|
25
22
|
PBVirtualCamera.encode = encode;
|
|
@@ -42,12 +39,6 @@ export var PBVirtualCamera;
|
|
|
42
39
|
}
|
|
43
40
|
message.lookAtEntity = reader.uint32();
|
|
44
41
|
continue;
|
|
45
|
-
case 3:
|
|
46
|
-
if (tag !== 29) {
|
|
47
|
-
break;
|
|
48
|
-
}
|
|
49
|
-
message.fov = reader.float();
|
|
50
|
-
continue;
|
|
51
42
|
}
|
|
52
43
|
if ((tag & 7) === 4 || tag === 0) {
|
|
53
44
|
break;
|
|
@@ -2,8 +2,6 @@ import { GrowOnlyValueSetComponentDefinition, LastWriteWinElementSetComponentDef
|
|
|
2
2
|
import { IEngine } from '../engine/types';
|
|
3
3
|
import { AnimatorComponentDefinitionExtended } from './extended/Animator';
|
|
4
4
|
import { AudioSourceComponentDefinitionExtended } from './extended/AudioSource';
|
|
5
|
-
import { AudioAnalysisComponentDefinitionExtended } from './extended/AudioAnalysis';
|
|
6
|
-
import type { AudioAnalysisView } from './extended/AudioAnalysis';
|
|
7
5
|
import { MaterialComponentDefinitionExtended } from './extended/Material';
|
|
8
6
|
import { MeshColliderComponentDefinitionExtended } from './extended/MeshCollider';
|
|
9
7
|
import { MeshRendererComponentDefinitionExtended } from './extended/MeshRenderer';
|
|
@@ -27,7 +25,6 @@ export declare const Transform: LwwComponentGetter<TransformComponentExtended>;
|
|
|
27
25
|
export declare const Material: LwwComponentGetter<MaterialComponentDefinitionExtended>;
|
|
28
26
|
export declare const Animator: LwwComponentGetter<AnimatorComponentDefinitionExtended>;
|
|
29
27
|
export declare const AudioSource: LwwComponentGetter<AudioSourceComponentDefinitionExtended>;
|
|
30
|
-
export declare const AudioAnalysis: LwwComponentGetter<AudioAnalysisComponentDefinitionExtended>;
|
|
31
28
|
export declare const AudioStream: (engine: Pick<IEngine, 'defineComponentFromSchema' | 'defineValueSetComponentFromSchema'>) => AudioStreamComponentDefinitionExtended;
|
|
32
29
|
export declare const MeshRenderer: LwwComponentGetter<MeshRendererComponentDefinitionExtended>;
|
|
33
30
|
export declare const MeshCollider: LwwComponentGetter<MeshColliderComponentDefinitionExtended>;
|
|
@@ -54,4 +51,3 @@ export declare const NetworkEntity: (engine: Pick<IEngine, 'defineComponent'>) =
|
|
|
54
51
|
*/
|
|
55
52
|
export declare const NetworkParent: (engine: Pick<IEngine, 'defineComponent'>) => LastWriteWinElementSetComponentDefinition<INetowrkParentType>;
|
|
56
53
|
export { MediaState };
|
|
57
|
-
export type { AudioAnalysisView };
|
package/dist/components/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { defineAnimatorComponent } from './extended/Animator';
|
|
2
2
|
import { defineAudioSourceComponent } from './extended/AudioSource';
|
|
3
|
-
import { defineAudioAnalysisComponent } from './extended/AudioAnalysis';
|
|
4
3
|
import { defineMaterialComponent } from './extended/Material';
|
|
5
4
|
import { defineMeshColliderComponent } from './extended/MeshCollider';
|
|
6
5
|
import { defineMeshRendererComponent } from './extended/MeshRenderer';
|
|
@@ -27,8 +26,6 @@ export const Animator = (engine) => defineAnimatorComponent(engine);
|
|
|
27
26
|
/* @__PURE__ */
|
|
28
27
|
export const AudioSource = (engine) => defineAudioSourceComponent(engine);
|
|
29
28
|
/* @__PURE__ */
|
|
30
|
-
export const AudioAnalysis = (engine) => defineAudioAnalysisComponent(engine);
|
|
31
|
-
/* @__PURE__ */
|
|
32
29
|
export const AudioStream = (engine) => defineAudioStreamComponent(engine);
|
|
33
30
|
/* @__PURE__ */
|
|
34
31
|
export const MeshRenderer = (engine) => defineMeshRendererComponent(engine);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export type { AnimatorComponentDefinitionExtended } from './extended/Animator';
|
|
2
2
|
export type { AudioSourceComponentDefinitionExtended } from './extended/AudioSource';
|
|
3
|
-
export type { AudioAnalysisComponentDefinitionExtended, AudioAnalysisView } from './extended/AudioAnalysis';
|
|
4
3
|
export type { AudioStreamComponentDefinitionExtended } from './extended/AudioStream';
|
|
5
4
|
export type { MeshRendererComponentDefinitionExtended } from './extended/MeshRenderer';
|
|
6
5
|
export type { MeshColliderComponentDefinitionExtended } from './extended/MeshCollider';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './engine';
|
|
2
2
|
export * from './schemas';
|
|
3
|
+
export * from './runtime/globals';
|
|
3
4
|
export * from './runtime/initialization';
|
|
4
5
|
export * from './runtime/types';
|
|
5
6
|
export * from './runtime/helpers';
|
|
@@ -13,13 +14,12 @@ export * from './systems/tween';
|
|
|
13
14
|
export * from './systems/triggerArea';
|
|
14
15
|
export * from './engine/entity';
|
|
15
16
|
export * from './components/types';
|
|
16
|
-
import { MaterialComponentDefinitionExtended, MeshColliderComponentDefinitionExtended, MeshRendererComponentDefinitionExtended, TransformComponentExtended, AnimatorComponentDefinitionExtended, AudioSourceComponentDefinitionExtended,
|
|
17
|
+
import { MaterialComponentDefinitionExtended, MeshColliderComponentDefinitionExtended, MeshRendererComponentDefinitionExtended, TransformComponentExtended, AnimatorComponentDefinitionExtended, AudioSourceComponentDefinitionExtended, AudioStreamComponentDefinitionExtended, ISyncComponents, TweenComponentDefinitionExtended, INetowrkEntity, INetowrkParent, VirtualCameraComponentDefinitionExtended, InputModifierComponentDefinitionExtended, LightSourceComponentDefinitionExtended, TriggerAreaComponentDefinitionExtended } from './components/types';
|
|
17
18
|
import { NameComponent } from './components/manual/Name';
|
|
18
19
|
import { TagsComponentDefinitionExtended } from './components/manual/Tags';
|
|
19
20
|
export declare const Transform: TransformComponentExtended;
|
|
20
21
|
export declare const Animator: AnimatorComponentDefinitionExtended;
|
|
21
22
|
export declare const AudioSource: AudioSourceComponentDefinitionExtended;
|
|
22
|
-
export declare const AudioAnalysis: AudioAnalysisComponentDefinitionExtended;
|
|
23
23
|
export declare const AudioStream: AudioStreamComponentDefinitionExtended;
|
|
24
24
|
export declare const Material: MaterialComponentDefinitionExtended;
|
|
25
25
|
export declare const MeshRenderer: MeshRendererComponentDefinitionExtended;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// The order of the following imports matters. Please do not auto-sort
|
|
2
2
|
export * from './engine';
|
|
3
3
|
export * from './schemas';
|
|
4
|
+
export * from './runtime/globals';
|
|
4
5
|
export * from './runtime/initialization';
|
|
5
6
|
export * from './runtime/types';
|
|
6
7
|
export * from './runtime/helpers';
|
|
@@ -23,7 +24,6 @@ import { engine } from './runtime/initialization';
|
|
|
23
24
|
export const Transform = /* @__PURE__*/ components.Transform(engine);
|
|
24
25
|
export const Animator = /* @__PURE__*/ components.Animator(engine);
|
|
25
26
|
export const AudioSource = /* @__PURE__*/ components.AudioSource(engine);
|
|
26
|
-
export const AudioAnalysis = /* @__PURE__*/ components.AudioAnalysis(engine);
|
|
27
27
|
export const AudioStream = /* @__PURE__*/ components.AudioStream(engine);
|
|
28
28
|
export const Material = /* @__PURE__*/ components.Material(engine);
|
|
29
29
|
export const MeshRenderer = /* @__PURE__*/ components.MeshRenderer(engine);
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Internal utilities for standardized globalThis access.
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Type-safe globalThis property access.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare function getGlobal<T>(key: string): T | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Sets a globalThis property as a polyfill (only if undefined/null).
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export declare function setGlobalPolyfill<T>(key: string, value: T): void;
|
package/dist/runtime/globals.js
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Type-safe globalThis property access.
|
|
6
|
-
* @
|
|
6
|
+
* @public
|
|
7
7
|
*/
|
|
8
8
|
export function getGlobal(key) {
|
|
9
9
|
return globalThis[key];
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Sets a globalThis property as a polyfill (only if undefined/null).
|
|
13
|
-
* @
|
|
13
|
+
* @public
|
|
14
14
|
*/
|
|
15
15
|
export function setGlobalPolyfill(key, value) {
|
|
16
16
|
;
|
package/dist/systems/events.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ export type EventSystemOptions = {
|
|
|
17
17
|
showFeedback?: boolean;
|
|
18
18
|
showHighlight?: boolean;
|
|
19
19
|
maxPlayerDistance?: number;
|
|
20
|
-
priority?: number;
|
|
21
20
|
};
|
|
22
21
|
export declare const getDefaultOpts: (opts?: Partial<EventSystemOptions>) => EventSystemOptions;
|
|
23
22
|
/**
|
|
@@ -48,30 +47,6 @@ export interface PointerEventsSystem {
|
|
|
48
47
|
* @param entity - Entity where the callback was attached
|
|
49
48
|
*/
|
|
50
49
|
removeOnPointerHoverLeave(entity: Entity): void;
|
|
51
|
-
/**
|
|
52
|
-
* @public
|
|
53
|
-
* Remove the callback for onProximityDown event
|
|
54
|
-
* @param entity - Entity where the callback was attached
|
|
55
|
-
*/
|
|
56
|
-
removeOnProximityDown(entity: Entity): void;
|
|
57
|
-
/**
|
|
58
|
-
* @public
|
|
59
|
-
* Remove the callback for onProximityUp event
|
|
60
|
-
* @param entity - Entity where the callback was attached
|
|
61
|
-
*/
|
|
62
|
-
removeOnProximityUp(entity: Entity): void;
|
|
63
|
-
/**
|
|
64
|
-
* @public
|
|
65
|
-
* Remove the callback for onProximityEnter event
|
|
66
|
-
* @param entity - Entity where the callback was attached
|
|
67
|
-
*/
|
|
68
|
-
removeOnProximityEnter(entity: Entity): void;
|
|
69
|
-
/**
|
|
70
|
-
* @public
|
|
71
|
-
* Remove the callback for onProximityLeave event
|
|
72
|
-
* @param entity - Entity where the callback was attached
|
|
73
|
-
*/
|
|
74
|
-
removeOnProximityLeave(entity: Entity): void;
|
|
75
50
|
/**
|
|
76
51
|
* @public
|
|
77
52
|
* Execute callback when the user press the InputButton pointing at the entity
|
|
@@ -126,46 +101,6 @@ export interface PointerEventsSystem {
|
|
|
126
101
|
entity: Entity;
|
|
127
102
|
opts?: Partial<EventSystemOptions>;
|
|
128
103
|
}, cb: EventSystemCallback): void;
|
|
129
|
-
/**
|
|
130
|
-
* @public
|
|
131
|
-
* Execute callback when the user presses the proximity button on the entity
|
|
132
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
|
133
|
-
* @param cb - Function to execute when click fires
|
|
134
|
-
*/
|
|
135
|
-
onProximityDown(pointerData: {
|
|
136
|
-
entity: Entity;
|
|
137
|
-
opts?: Partial<EventSystemOptions>;
|
|
138
|
-
}, cb: EventSystemCallback): void;
|
|
139
|
-
/**
|
|
140
|
-
* @public
|
|
141
|
-
* Execute callback when the user releases the proximity button on the entity
|
|
142
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
|
143
|
-
* @param cb - Function to execute when event fires
|
|
144
|
-
*/
|
|
145
|
-
onProximityUp(pointerData: {
|
|
146
|
-
entity: Entity;
|
|
147
|
-
opts?: Partial<EventSystemOptions>;
|
|
148
|
-
}, cb: EventSystemCallback): void;
|
|
149
|
-
/**
|
|
150
|
-
* @public
|
|
151
|
-
* Execute callback when the entity enters the proximity zone of the user
|
|
152
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
|
153
|
-
* @param cb - Function to execute when event fires
|
|
154
|
-
*/
|
|
155
|
-
onProximityEnter(pointerData: {
|
|
156
|
-
entity: Entity;
|
|
157
|
-
opts?: Partial<EventSystemOptions>;
|
|
158
|
-
}, cb: EventSystemCallback): void;
|
|
159
|
-
/**
|
|
160
|
-
* @public
|
|
161
|
-
* Execute callback when the entity leaves the proximity zone of the user
|
|
162
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
|
163
|
-
* @param cb - Function to execute when event fires
|
|
164
|
-
*/
|
|
165
|
-
onProximityLeave(pointerData: {
|
|
166
|
-
entity: Entity;
|
|
167
|
-
opts?: Partial<EventSystemOptions>;
|
|
168
|
-
}, cb: EventSystemCallback): void;
|
|
169
104
|
}
|
|
170
105
|
/**
|
|
171
106
|
* @public
|