@dcl/playground-assets 7.22.3-24082946861.commit-0d8c4f2 → 7.22.3-24140259774.commit-413d8e2
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/alpha.d.ts +1 -140
- package/dist/beta.d.ts +1 -140
- package/dist/index.bundled.d.ts +1 -140
- package/dist/index.js +6 -6
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +1 -140
- package/etc/playground-assets.api.json +587 -2102
- package/etc/playground-assets.api.md +0 -94
- package/package.json +4 -4
package/dist/alpha.d.ts
CHANGED
|
@@ -115,61 +115,6 @@ export declare const assetLoadLoadingStateSystem: AssetLoadLoadingStateSystem;
|
|
|
115
115
|
*/
|
|
116
116
|
export declare type AssetLoadLoadingStateSystemCallback = (event: DeepReadonlyObject<PBAssetLoadLoadingState>) => void;
|
|
117
117
|
|
|
118
|
-
export declare const AudioAnalysis: AudioAnalysisComponentDefinitionExtended;
|
|
119
|
-
|
|
120
|
-
export declare interface AudioAnalysisComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBAudioAnalysis> {
|
|
121
|
-
/**
|
|
122
|
-
* Reads the component data of `entity` into the provided `out` view.
|
|
123
|
-
*
|
|
124
|
-
* @throws Error if the entity does not have an AudioAnalysis component.
|
|
125
|
-
* @param entity - The entity whose AudioAnalysis data will be read.
|
|
126
|
-
* @param out - An existing AudioAnalysisView to populate with the latest values.
|
|
127
|
-
*/
|
|
128
|
-
readIntoView(entity: Entity, out: AudioAnalysisView): void;
|
|
129
|
-
/**
|
|
130
|
-
* Attempts to read the component data of `entity` into the provided `out` view.
|
|
131
|
-
*
|
|
132
|
-
* @returns `true` if the component exists and data was written into `out`,
|
|
133
|
-
* `false` if the entity does not have an AudioAnalysis component.
|
|
134
|
-
* @param entity - The entity whose AudioAnalysis data will be read.
|
|
135
|
-
* @param out - An existing AudioAnalysisView to populate.
|
|
136
|
-
*/
|
|
137
|
-
tryReadIntoView(entity: Entity, out: AudioAnalysisView): boolean;
|
|
138
|
-
/**
|
|
139
|
-
* Creates an AudioAnalysis component for the given `entity`.
|
|
140
|
-
*
|
|
141
|
-
* If a component already exists on the entity, this call fails (does not replace).
|
|
142
|
-
*
|
|
143
|
-
* @param entity - The entity to attach the component to.
|
|
144
|
-
* @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
|
|
145
|
-
* @param amplitudeGain - Optional amplitude gain multiplier.
|
|
146
|
-
* @param bandsGain - Optional gain multiplier applied to all frequency bands.
|
|
147
|
-
*/
|
|
148
|
-
createAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
149
|
-
amplitudeGain?: number, bandsGain?: number): void;
|
|
150
|
-
/**
|
|
151
|
-
* Creates the AudioAnalysis component if missing, or replaces the existing one.
|
|
152
|
-
*
|
|
153
|
-
* @param entity - The target entity.
|
|
154
|
-
* @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
|
|
155
|
-
* @param amplitudeGain - Optional amplitude gain multiplier.
|
|
156
|
-
* @param bandsGain - Optional gain multiplier applied to the frequency bands.
|
|
157
|
-
*/
|
|
158
|
-
createOrReplaceAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
159
|
-
amplitudeGain?: number, bandsGain?: number): void;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* A read-only JavaScript-friendly view of AudioAnalysis ECS data.
|
|
164
|
-
*
|
|
165
|
-
* `amplitude` represents the aggregated signal strength.
|
|
166
|
-
* `bands` represents the processed frequency bands.
|
|
167
|
-
*/
|
|
168
|
-
export declare type AudioAnalysisView = {
|
|
169
|
-
amplitude: number;
|
|
170
|
-
bands: number[];
|
|
171
|
-
};
|
|
172
|
-
|
|
173
118
|
/** @public */
|
|
174
119
|
export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
|
|
175
120
|
|
|
@@ -264,9 +209,6 @@ export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBA
|
|
|
264
209
|
/** @public */
|
|
265
210
|
export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
|
266
211
|
|
|
267
|
-
/** @public */
|
|
268
|
-
export declare const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
|
|
269
|
-
|
|
270
212
|
/** @public */
|
|
271
213
|
export declare const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
|
|
272
214
|
|
|
@@ -1396,7 +1338,6 @@ export declare const componentDefinitionByName: {
|
|
|
1396
1338
|
"core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
|
|
1397
1339
|
"core::AssetLoad": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
|
|
1398
1340
|
"core::AssetLoadLoadingState": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
|
|
1399
|
-
"core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
|
|
1400
1341
|
"core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
|
|
1401
1342
|
"core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
|
|
1402
1343
|
"core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
|
|
@@ -1404,7 +1345,6 @@ export declare const componentDefinitionByName: {
|
|
|
1404
1345
|
"core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
|
|
1405
1346
|
"core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
|
|
1406
1347
|
"core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
1407
|
-
"core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
1408
1348
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
1409
1349
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
1410
1350
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
@@ -2792,8 +2732,7 @@ export declare const enum InputAction {
|
|
|
2792
2732
|
IA_ACTION_3 = 10,
|
|
2793
2733
|
IA_ACTION_4 = 11,
|
|
2794
2734
|
IA_ACTION_5 = 12,
|
|
2795
|
-
IA_ACTION_6 = 13
|
|
2796
|
-
IA_MODIFIER = 14
|
|
2735
|
+
IA_ACTION_6 = 13
|
|
2797
2736
|
}
|
|
2798
2737
|
|
|
2799
2738
|
export declare const InputModifier: InputModifierComponentDefinitionExtended;
|
|
@@ -4585,45 +4524,6 @@ export declare namespace PBAssetLoadLoadingState {
|
|
|
4585
4524
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAssetLoadLoadingState;
|
|
4586
4525
|
}
|
|
4587
4526
|
|
|
4588
|
-
/**
|
|
4589
|
-
* @public
|
|
4590
|
-
*/
|
|
4591
|
-
export declare interface PBAudioAnalysis {
|
|
4592
|
-
/** Parameters section */
|
|
4593
|
-
mode: PBAudioAnalysisMode;
|
|
4594
|
-
/** Used only when mode == MODE_LOGARITHMIC */
|
|
4595
|
-
amplitudeGain?: number | undefined;
|
|
4596
|
-
/** End when mode == MODE_LOGARITHMIC */
|
|
4597
|
-
bandsGain?: number | undefined;
|
|
4598
|
-
/** Result section */
|
|
4599
|
-
amplitude: number;
|
|
4600
|
-
/** Protobuf doesn't support fixed arrays -> 8 band fields */
|
|
4601
|
-
band0: number;
|
|
4602
|
-
band1: number;
|
|
4603
|
-
band2: number;
|
|
4604
|
-
band3: number;
|
|
4605
|
-
band4: number;
|
|
4606
|
-
band5: number;
|
|
4607
|
-
band6: number;
|
|
4608
|
-
band7: number;
|
|
4609
|
-
}
|
|
4610
|
-
|
|
4611
|
-
/**
|
|
4612
|
-
* @public
|
|
4613
|
-
*/
|
|
4614
|
-
export declare namespace PBAudioAnalysis {
|
|
4615
|
-
export function encode(message: PBAudioAnalysis, writer?: _m0.Writer): _m0.Writer;
|
|
4616
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioAnalysis;
|
|
4617
|
-
}
|
|
4618
|
-
|
|
4619
|
-
/**
|
|
4620
|
-
* @public
|
|
4621
|
-
*/
|
|
4622
|
-
export declare const enum PBAudioAnalysisMode {
|
|
4623
|
-
MODE_RAW = 0,
|
|
4624
|
-
MODE_LOGARITHMIC = 1
|
|
4625
|
-
}
|
|
4626
|
-
|
|
4627
4527
|
/**
|
|
4628
4528
|
* @public
|
|
4629
4529
|
*/
|
|
@@ -4813,42 +4713,6 @@ export declare namespace PBAvatarEquippedData {
|
|
|
4813
4713
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEquippedData;
|
|
4814
4714
|
}
|
|
4815
4715
|
|
|
4816
|
-
/**
|
|
4817
|
-
* The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
|
|
4818
|
-
* as the avatar movement speed, jump height etc.
|
|
4819
|
-
*/
|
|
4820
|
-
/**
|
|
4821
|
-
* @public
|
|
4822
|
-
*/
|
|
4823
|
-
export declare interface PBAvatarLocomotionSettings {
|
|
4824
|
-
/** Maximum speed when walking (in meters per second) */
|
|
4825
|
-
walkSpeed?: number | undefined;
|
|
4826
|
-
/** Maximum speed when jogging (in meters per second) */
|
|
4827
|
-
jogSpeed?: number | undefined;
|
|
4828
|
-
/** Maximum speed when running (in meters per second) */
|
|
4829
|
-
runSpeed?: number | undefined;
|
|
4830
|
-
/** Height of a regular jump (in meters) */
|
|
4831
|
-
jumpHeight?: number | undefined;
|
|
4832
|
-
/** Height of a jump while running (in meters) */
|
|
4833
|
-
runJumpHeight?: number | undefined;
|
|
4834
|
-
/** Cooldown time after a hard landing before the avatar can move again (in seconds) */
|
|
4835
|
-
hardLandingCooldown?: number | undefined;
|
|
4836
|
-
/** Height of the double jump (in meters) */
|
|
4837
|
-
doubleJumpHeight?: number | undefined;
|
|
4838
|
-
/** Maximum speed when gliding (in meters per second) */
|
|
4839
|
-
glidingSpeed?: number | undefined;
|
|
4840
|
-
/** Maximum falling speed when gliding (in meters per second) */
|
|
4841
|
-
glidingFallingSpeed?: number | undefined;
|
|
4842
|
-
}
|
|
4843
|
-
|
|
4844
|
-
/**
|
|
4845
|
-
* @public
|
|
4846
|
-
*/
|
|
4847
|
-
export declare namespace PBAvatarLocomotionSettings {
|
|
4848
|
-
export function encode(message: PBAvatarLocomotionSettings, writer?: _m0.Writer): _m0.Writer;
|
|
4849
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings;
|
|
4850
|
-
}
|
|
4851
|
-
|
|
4852
4716
|
/**
|
|
4853
4717
|
* The AvatarModifierArea component can be attached to an Entity to define a region of space where
|
|
4854
4718
|
* avatar behavior changes.
|
|
@@ -6908,7 +6772,6 @@ export declare namespace PBVideoPlayer {
|
|
|
6908
6772
|
* an 'instant' transition (like using speed/time = 0)
|
|
6909
6773
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
|
6910
6774
|
* the holding entity transform).
|
|
6911
|
-
* * The fov defines the Field of View of the virtual camera
|
|
6912
6775
|
*/
|
|
6913
6776
|
/**
|
|
6914
6777
|
* @public
|
|
@@ -6916,8 +6779,6 @@ export declare namespace PBVideoPlayer {
|
|
|
6916
6779
|
export declare interface PBVirtualCamera {
|
|
6917
6780
|
defaultTransition?: CameraTransition | undefined;
|
|
6918
6781
|
lookAtEntity?: number | undefined;
|
|
6919
|
-
/** default: 60 */
|
|
6920
|
-
fov?: number | undefined;
|
|
6921
6782
|
}
|
|
6922
6783
|
|
|
6923
6784
|
/**
|
package/dist/beta.d.ts
CHANGED
|
@@ -115,61 +115,6 @@ export declare const assetLoadLoadingStateSystem: AssetLoadLoadingStateSystem;
|
|
|
115
115
|
*/
|
|
116
116
|
export declare type AssetLoadLoadingStateSystemCallback = (event: DeepReadonlyObject<PBAssetLoadLoadingState>) => void;
|
|
117
117
|
|
|
118
|
-
export declare const AudioAnalysis: AudioAnalysisComponentDefinitionExtended;
|
|
119
|
-
|
|
120
|
-
export declare interface AudioAnalysisComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBAudioAnalysis> {
|
|
121
|
-
/**
|
|
122
|
-
* Reads the component data of `entity` into the provided `out` view.
|
|
123
|
-
*
|
|
124
|
-
* @throws Error if the entity does not have an AudioAnalysis component.
|
|
125
|
-
* @param entity - The entity whose AudioAnalysis data will be read.
|
|
126
|
-
* @param out - An existing AudioAnalysisView to populate with the latest values.
|
|
127
|
-
*/
|
|
128
|
-
readIntoView(entity: Entity, out: AudioAnalysisView): void;
|
|
129
|
-
/**
|
|
130
|
-
* Attempts to read the component data of `entity` into the provided `out` view.
|
|
131
|
-
*
|
|
132
|
-
* @returns `true` if the component exists and data was written into `out`,
|
|
133
|
-
* `false` if the entity does not have an AudioAnalysis component.
|
|
134
|
-
* @param entity - The entity whose AudioAnalysis data will be read.
|
|
135
|
-
* @param out - An existing AudioAnalysisView to populate.
|
|
136
|
-
*/
|
|
137
|
-
tryReadIntoView(entity: Entity, out: AudioAnalysisView): boolean;
|
|
138
|
-
/**
|
|
139
|
-
* Creates an AudioAnalysis component for the given `entity`.
|
|
140
|
-
*
|
|
141
|
-
* If a component already exists on the entity, this call fails (does not replace).
|
|
142
|
-
*
|
|
143
|
-
* @param entity - The entity to attach the component to.
|
|
144
|
-
* @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
|
|
145
|
-
* @param amplitudeGain - Optional amplitude gain multiplier.
|
|
146
|
-
* @param bandsGain - Optional gain multiplier applied to all frequency bands.
|
|
147
|
-
*/
|
|
148
|
-
createAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
149
|
-
amplitudeGain?: number, bandsGain?: number): void;
|
|
150
|
-
/**
|
|
151
|
-
* Creates the AudioAnalysis component if missing, or replaces the existing one.
|
|
152
|
-
*
|
|
153
|
-
* @param entity - The target entity.
|
|
154
|
-
* @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
|
|
155
|
-
* @param amplitudeGain - Optional amplitude gain multiplier.
|
|
156
|
-
* @param bandsGain - Optional gain multiplier applied to the frequency bands.
|
|
157
|
-
*/
|
|
158
|
-
createOrReplaceAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
159
|
-
amplitudeGain?: number, bandsGain?: number): void;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* A read-only JavaScript-friendly view of AudioAnalysis ECS data.
|
|
164
|
-
*
|
|
165
|
-
* `amplitude` represents the aggregated signal strength.
|
|
166
|
-
* `bands` represents the processed frequency bands.
|
|
167
|
-
*/
|
|
168
|
-
export declare type AudioAnalysisView = {
|
|
169
|
-
amplitude: number;
|
|
170
|
-
bands: number[];
|
|
171
|
-
};
|
|
172
|
-
|
|
173
118
|
/** @public */
|
|
174
119
|
export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
|
|
175
120
|
|
|
@@ -264,9 +209,6 @@ export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBA
|
|
|
264
209
|
/** @public */
|
|
265
210
|
export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
|
266
211
|
|
|
267
|
-
/** @public */
|
|
268
|
-
export declare const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
|
|
269
|
-
|
|
270
212
|
/** @public */
|
|
271
213
|
export declare const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
|
|
272
214
|
|
|
@@ -1396,7 +1338,6 @@ export declare const componentDefinitionByName: {
|
|
|
1396
1338
|
"core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
|
|
1397
1339
|
"core::AssetLoad": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
|
|
1398
1340
|
"core::AssetLoadLoadingState": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
|
|
1399
|
-
"core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
|
|
1400
1341
|
"core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
|
|
1401
1342
|
"core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
|
|
1402
1343
|
"core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
|
|
@@ -1404,7 +1345,6 @@ export declare const componentDefinitionByName: {
|
|
|
1404
1345
|
"core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
|
|
1405
1346
|
"core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
|
|
1406
1347
|
"core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
1407
|
-
"core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
1408
1348
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
1409
1349
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
1410
1350
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
@@ -2783,8 +2723,7 @@ export declare const enum InputAction {
|
|
|
2783
2723
|
IA_ACTION_3 = 10,
|
|
2784
2724
|
IA_ACTION_4 = 11,
|
|
2785
2725
|
IA_ACTION_5 = 12,
|
|
2786
|
-
IA_ACTION_6 = 13
|
|
2787
|
-
IA_MODIFIER = 14
|
|
2726
|
+
IA_ACTION_6 = 13
|
|
2788
2727
|
}
|
|
2789
2728
|
|
|
2790
2729
|
export declare const InputModifier: InputModifierComponentDefinitionExtended;
|
|
@@ -4557,45 +4496,6 @@ export declare namespace PBAssetLoadLoadingState {
|
|
|
4557
4496
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAssetLoadLoadingState;
|
|
4558
4497
|
}
|
|
4559
4498
|
|
|
4560
|
-
/**
|
|
4561
|
-
* @public
|
|
4562
|
-
*/
|
|
4563
|
-
export declare interface PBAudioAnalysis {
|
|
4564
|
-
/** Parameters section */
|
|
4565
|
-
mode: PBAudioAnalysisMode;
|
|
4566
|
-
/** Used only when mode == MODE_LOGARITHMIC */
|
|
4567
|
-
amplitudeGain?: number | undefined;
|
|
4568
|
-
/** End when mode == MODE_LOGARITHMIC */
|
|
4569
|
-
bandsGain?: number | undefined;
|
|
4570
|
-
/** Result section */
|
|
4571
|
-
amplitude: number;
|
|
4572
|
-
/** Protobuf doesn't support fixed arrays -> 8 band fields */
|
|
4573
|
-
band0: number;
|
|
4574
|
-
band1: number;
|
|
4575
|
-
band2: number;
|
|
4576
|
-
band3: number;
|
|
4577
|
-
band4: number;
|
|
4578
|
-
band5: number;
|
|
4579
|
-
band6: number;
|
|
4580
|
-
band7: number;
|
|
4581
|
-
}
|
|
4582
|
-
|
|
4583
|
-
/**
|
|
4584
|
-
* @public
|
|
4585
|
-
*/
|
|
4586
|
-
export declare namespace PBAudioAnalysis {
|
|
4587
|
-
export function encode(message: PBAudioAnalysis, writer?: _m0.Writer): _m0.Writer;
|
|
4588
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioAnalysis;
|
|
4589
|
-
}
|
|
4590
|
-
|
|
4591
|
-
/**
|
|
4592
|
-
* @public
|
|
4593
|
-
*/
|
|
4594
|
-
export declare const enum PBAudioAnalysisMode {
|
|
4595
|
-
MODE_RAW = 0,
|
|
4596
|
-
MODE_LOGARITHMIC = 1
|
|
4597
|
-
}
|
|
4598
|
-
|
|
4599
4499
|
/**
|
|
4600
4500
|
* @public
|
|
4601
4501
|
*/
|
|
@@ -4785,42 +4685,6 @@ export declare namespace PBAvatarEquippedData {
|
|
|
4785
4685
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEquippedData;
|
|
4786
4686
|
}
|
|
4787
4687
|
|
|
4788
|
-
/**
|
|
4789
|
-
* The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
|
|
4790
|
-
* as the avatar movement speed, jump height etc.
|
|
4791
|
-
*/
|
|
4792
|
-
/**
|
|
4793
|
-
* @public
|
|
4794
|
-
*/
|
|
4795
|
-
export declare interface PBAvatarLocomotionSettings {
|
|
4796
|
-
/** Maximum speed when walking (in meters per second) */
|
|
4797
|
-
walkSpeed?: number | undefined;
|
|
4798
|
-
/** Maximum speed when jogging (in meters per second) */
|
|
4799
|
-
jogSpeed?: number | undefined;
|
|
4800
|
-
/** Maximum speed when running (in meters per second) */
|
|
4801
|
-
runSpeed?: number | undefined;
|
|
4802
|
-
/** Height of a regular jump (in meters) */
|
|
4803
|
-
jumpHeight?: number | undefined;
|
|
4804
|
-
/** Height of a jump while running (in meters) */
|
|
4805
|
-
runJumpHeight?: number | undefined;
|
|
4806
|
-
/** Cooldown time after a hard landing before the avatar can move again (in seconds) */
|
|
4807
|
-
hardLandingCooldown?: number | undefined;
|
|
4808
|
-
/** Height of the double jump (in meters) */
|
|
4809
|
-
doubleJumpHeight?: number | undefined;
|
|
4810
|
-
/** Maximum speed when gliding (in meters per second) */
|
|
4811
|
-
glidingSpeed?: number | undefined;
|
|
4812
|
-
/** Maximum falling speed when gliding (in meters per second) */
|
|
4813
|
-
glidingFallingSpeed?: number | undefined;
|
|
4814
|
-
}
|
|
4815
|
-
|
|
4816
|
-
/**
|
|
4817
|
-
* @public
|
|
4818
|
-
*/
|
|
4819
|
-
export declare namespace PBAvatarLocomotionSettings {
|
|
4820
|
-
export function encode(message: PBAvatarLocomotionSettings, writer?: _m0.Writer): _m0.Writer;
|
|
4821
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings;
|
|
4822
|
-
}
|
|
4823
|
-
|
|
4824
4688
|
/**
|
|
4825
4689
|
* The AvatarModifierArea component can be attached to an Entity to define a region of space where
|
|
4826
4690
|
* avatar behavior changes.
|
|
@@ -6880,7 +6744,6 @@ export declare namespace PBVideoPlayer {
|
|
|
6880
6744
|
* an 'instant' transition (like using speed/time = 0)
|
|
6881
6745
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
|
6882
6746
|
* the holding entity transform).
|
|
6883
|
-
* * The fov defines the Field of View of the virtual camera
|
|
6884
6747
|
*/
|
|
6885
6748
|
/**
|
|
6886
6749
|
* @public
|
|
@@ -6888,8 +6751,6 @@ export declare namespace PBVideoPlayer {
|
|
|
6888
6751
|
export declare interface PBVirtualCamera {
|
|
6889
6752
|
defaultTransition?: CameraTransition | undefined;
|
|
6890
6753
|
lookAtEntity?: number | undefined;
|
|
6891
|
-
/** default: 60 */
|
|
6892
|
-
fov?: number | undefined;
|
|
6893
6754
|
}
|
|
6894
6755
|
|
|
6895
6756
|
/**
|
package/dist/index.bundled.d.ts
CHANGED
|
@@ -115,61 +115,6 @@ export declare const assetLoadLoadingStateSystem: AssetLoadLoadingStateSystem;
|
|
|
115
115
|
*/
|
|
116
116
|
export declare type AssetLoadLoadingStateSystemCallback = (event: DeepReadonlyObject<PBAssetLoadLoadingState>) => void;
|
|
117
117
|
|
|
118
|
-
export declare const AudioAnalysis: AudioAnalysisComponentDefinitionExtended;
|
|
119
|
-
|
|
120
|
-
export declare interface AudioAnalysisComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBAudioAnalysis> {
|
|
121
|
-
/**
|
|
122
|
-
* Reads the component data of `entity` into the provided `out` view.
|
|
123
|
-
*
|
|
124
|
-
* @throws Error if the entity does not have an AudioAnalysis component.
|
|
125
|
-
* @param entity - The entity whose AudioAnalysis data will be read.
|
|
126
|
-
* @param out - An existing AudioAnalysisView to populate with the latest values.
|
|
127
|
-
*/
|
|
128
|
-
readIntoView(entity: Entity, out: AudioAnalysisView): void;
|
|
129
|
-
/**
|
|
130
|
-
* Attempts to read the component data of `entity` into the provided `out` view.
|
|
131
|
-
*
|
|
132
|
-
* @returns `true` if the component exists and data was written into `out`,
|
|
133
|
-
* `false` if the entity does not have an AudioAnalysis component.
|
|
134
|
-
* @param entity - The entity whose AudioAnalysis data will be read.
|
|
135
|
-
* @param out - An existing AudioAnalysisView to populate.
|
|
136
|
-
*/
|
|
137
|
-
tryReadIntoView(entity: Entity, out: AudioAnalysisView): boolean;
|
|
138
|
-
/**
|
|
139
|
-
* Creates an AudioAnalysis component for the given `entity`.
|
|
140
|
-
*
|
|
141
|
-
* If a component already exists on the entity, this call fails (does not replace).
|
|
142
|
-
*
|
|
143
|
-
* @param entity - The entity to attach the component to.
|
|
144
|
-
* @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
|
|
145
|
-
* @param amplitudeGain - Optional amplitude gain multiplier.
|
|
146
|
-
* @param bandsGain - Optional gain multiplier applied to all frequency bands.
|
|
147
|
-
*/
|
|
148
|
-
createAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
149
|
-
amplitudeGain?: number, bandsGain?: number): void;
|
|
150
|
-
/**
|
|
151
|
-
* Creates the AudioAnalysis component if missing, or replaces the existing one.
|
|
152
|
-
*
|
|
153
|
-
* @param entity - The target entity.
|
|
154
|
-
* @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
|
|
155
|
-
* @param amplitudeGain - Optional amplitude gain multiplier.
|
|
156
|
-
* @param bandsGain - Optional gain multiplier applied to the frequency bands.
|
|
157
|
-
*/
|
|
158
|
-
createOrReplaceAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
159
|
-
amplitudeGain?: number, bandsGain?: number): void;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* A read-only JavaScript-friendly view of AudioAnalysis ECS data.
|
|
164
|
-
*
|
|
165
|
-
* `amplitude` represents the aggregated signal strength.
|
|
166
|
-
* `bands` represents the processed frequency bands.
|
|
167
|
-
*/
|
|
168
|
-
export declare type AudioAnalysisView = {
|
|
169
|
-
amplitude: number;
|
|
170
|
-
bands: number[];
|
|
171
|
-
};
|
|
172
|
-
|
|
173
118
|
/** @public */
|
|
174
119
|
export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
|
|
175
120
|
|
|
@@ -264,9 +209,6 @@ export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBA
|
|
|
264
209
|
/** @public */
|
|
265
210
|
export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
|
266
211
|
|
|
267
|
-
/** @public */
|
|
268
|
-
export declare const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
|
|
269
|
-
|
|
270
212
|
/** @public */
|
|
271
213
|
export declare const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
|
|
272
214
|
|
|
@@ -1396,7 +1338,6 @@ export declare const componentDefinitionByName: {
|
|
|
1396
1338
|
"core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
|
|
1397
1339
|
"core::AssetLoad": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
|
|
1398
1340
|
"core::AssetLoadLoadingState": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
|
|
1399
|
-
"core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
|
|
1400
1341
|
"core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
|
|
1401
1342
|
"core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
|
|
1402
1343
|
"core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
|
|
@@ -1404,7 +1345,6 @@ export declare const componentDefinitionByName: {
|
|
|
1404
1345
|
"core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
|
|
1405
1346
|
"core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
|
|
1406
1347
|
"core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
1407
|
-
"core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
1408
1348
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
1409
1349
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
1410
1350
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
@@ -2783,8 +2723,7 @@ export declare const enum InputAction {
|
|
|
2783
2723
|
IA_ACTION_3 = 10,
|
|
2784
2724
|
IA_ACTION_4 = 11,
|
|
2785
2725
|
IA_ACTION_5 = 12,
|
|
2786
|
-
IA_ACTION_6 = 13
|
|
2787
|
-
IA_MODIFIER = 14
|
|
2726
|
+
IA_ACTION_6 = 13
|
|
2788
2727
|
}
|
|
2789
2728
|
|
|
2790
2729
|
export declare const InputModifier: InputModifierComponentDefinitionExtended;
|
|
@@ -4557,45 +4496,6 @@ export declare namespace PBAssetLoadLoadingState {
|
|
|
4557
4496
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAssetLoadLoadingState;
|
|
4558
4497
|
}
|
|
4559
4498
|
|
|
4560
|
-
/**
|
|
4561
|
-
* @public
|
|
4562
|
-
*/
|
|
4563
|
-
export declare interface PBAudioAnalysis {
|
|
4564
|
-
/** Parameters section */
|
|
4565
|
-
mode: PBAudioAnalysisMode;
|
|
4566
|
-
/** Used only when mode == MODE_LOGARITHMIC */
|
|
4567
|
-
amplitudeGain?: number | undefined;
|
|
4568
|
-
/** End when mode == MODE_LOGARITHMIC */
|
|
4569
|
-
bandsGain?: number | undefined;
|
|
4570
|
-
/** Result section */
|
|
4571
|
-
amplitude: number;
|
|
4572
|
-
/** Protobuf doesn't support fixed arrays -> 8 band fields */
|
|
4573
|
-
band0: number;
|
|
4574
|
-
band1: number;
|
|
4575
|
-
band2: number;
|
|
4576
|
-
band3: number;
|
|
4577
|
-
band4: number;
|
|
4578
|
-
band5: number;
|
|
4579
|
-
band6: number;
|
|
4580
|
-
band7: number;
|
|
4581
|
-
}
|
|
4582
|
-
|
|
4583
|
-
/**
|
|
4584
|
-
* @public
|
|
4585
|
-
*/
|
|
4586
|
-
export declare namespace PBAudioAnalysis {
|
|
4587
|
-
export function encode(message: PBAudioAnalysis, writer?: _m0.Writer): _m0.Writer;
|
|
4588
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioAnalysis;
|
|
4589
|
-
}
|
|
4590
|
-
|
|
4591
|
-
/**
|
|
4592
|
-
* @public
|
|
4593
|
-
*/
|
|
4594
|
-
export declare const enum PBAudioAnalysisMode {
|
|
4595
|
-
MODE_RAW = 0,
|
|
4596
|
-
MODE_LOGARITHMIC = 1
|
|
4597
|
-
}
|
|
4598
|
-
|
|
4599
4499
|
/**
|
|
4600
4500
|
* @public
|
|
4601
4501
|
*/
|
|
@@ -4785,42 +4685,6 @@ export declare namespace PBAvatarEquippedData {
|
|
|
4785
4685
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEquippedData;
|
|
4786
4686
|
}
|
|
4787
4687
|
|
|
4788
|
-
/**
|
|
4789
|
-
* The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
|
|
4790
|
-
* as the avatar movement speed, jump height etc.
|
|
4791
|
-
*/
|
|
4792
|
-
/**
|
|
4793
|
-
* @public
|
|
4794
|
-
*/
|
|
4795
|
-
export declare interface PBAvatarLocomotionSettings {
|
|
4796
|
-
/** Maximum speed when walking (in meters per second) */
|
|
4797
|
-
walkSpeed?: number | undefined;
|
|
4798
|
-
/** Maximum speed when jogging (in meters per second) */
|
|
4799
|
-
jogSpeed?: number | undefined;
|
|
4800
|
-
/** Maximum speed when running (in meters per second) */
|
|
4801
|
-
runSpeed?: number | undefined;
|
|
4802
|
-
/** Height of a regular jump (in meters) */
|
|
4803
|
-
jumpHeight?: number | undefined;
|
|
4804
|
-
/** Height of a jump while running (in meters) */
|
|
4805
|
-
runJumpHeight?: number | undefined;
|
|
4806
|
-
/** Cooldown time after a hard landing before the avatar can move again (in seconds) */
|
|
4807
|
-
hardLandingCooldown?: number | undefined;
|
|
4808
|
-
/** Height of the double jump (in meters) */
|
|
4809
|
-
doubleJumpHeight?: number | undefined;
|
|
4810
|
-
/** Maximum speed when gliding (in meters per second) */
|
|
4811
|
-
glidingSpeed?: number | undefined;
|
|
4812
|
-
/** Maximum falling speed when gliding (in meters per second) */
|
|
4813
|
-
glidingFallingSpeed?: number | undefined;
|
|
4814
|
-
}
|
|
4815
|
-
|
|
4816
|
-
/**
|
|
4817
|
-
* @public
|
|
4818
|
-
*/
|
|
4819
|
-
export declare namespace PBAvatarLocomotionSettings {
|
|
4820
|
-
export function encode(message: PBAvatarLocomotionSettings, writer?: _m0.Writer): _m0.Writer;
|
|
4821
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings;
|
|
4822
|
-
}
|
|
4823
|
-
|
|
4824
4688
|
/**
|
|
4825
4689
|
* The AvatarModifierArea component can be attached to an Entity to define a region of space where
|
|
4826
4690
|
* avatar behavior changes.
|
|
@@ -6880,7 +6744,6 @@ export declare namespace PBVideoPlayer {
|
|
|
6880
6744
|
* an 'instant' transition (like using speed/time = 0)
|
|
6881
6745
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
|
6882
6746
|
* the holding entity transform).
|
|
6883
|
-
* * The fov defines the Field of View of the virtual camera
|
|
6884
6747
|
*/
|
|
6885
6748
|
/**
|
|
6886
6749
|
* @public
|
|
@@ -6888,8 +6751,6 @@ export declare namespace PBVideoPlayer {
|
|
|
6888
6751
|
export declare interface PBVirtualCamera {
|
|
6889
6752
|
defaultTransition?: CameraTransition | undefined;
|
|
6890
6753
|
lookAtEntity?: number | undefined;
|
|
6891
|
-
/** default: 60 */
|
|
6892
|
-
fov?: number | undefined;
|
|
6893
6754
|
}
|
|
6894
6755
|
|
|
6895
6756
|
/**
|