@dcl/playground-assets 7.18.2-21458377493.commit-ea4f3b6 → 7.19.1-21526551025.commit-799f37f
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 +2 -135
- package/dist/beta.d.ts +2 -135
- package/dist/index.bundled.d.ts +2 -135
- package/dist/index.js +7 -7
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +2 -135
- package/dist/tsdoc-metadata.json +1 -1
- package/etc/playground-assets.api.json +2 -1436
- package/etc/playground-assets.api.md +1 -92
- package/package.json +4 -4
package/dist/alpha.d.ts
CHANGED
|
@@ -90,61 +90,6 @@ export declare namespace AppendValueOperation {
|
|
|
90
90
|
*/
|
|
91
91
|
export declare function areConnected(parcels: Coords[]): boolean;
|
|
92
92
|
|
|
93
|
-
export declare const AudioAnalysis: AudioAnalysisComponentDefinitionExtended;
|
|
94
|
-
|
|
95
|
-
export declare interface AudioAnalysisComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBAudioAnalysis> {
|
|
96
|
-
/**
|
|
97
|
-
* Reads the component data of `entity` into the provided `out` view.
|
|
98
|
-
*
|
|
99
|
-
* @throws Error if the entity does not have an AudioAnalysis component.
|
|
100
|
-
* @param entity - The entity whose AudioAnalysis data will be read.
|
|
101
|
-
* @param out - An existing AudioAnalysisView to populate with the latest values.
|
|
102
|
-
*/
|
|
103
|
-
readIntoView(entity: Entity, out: AudioAnalysisView): void;
|
|
104
|
-
/**
|
|
105
|
-
* Attempts to read the component data of `entity` into the provided `out` view.
|
|
106
|
-
*
|
|
107
|
-
* @returns `true` if the component exists and data was written into `out`,
|
|
108
|
-
* `false` if the entity does not have an AudioAnalysis component.
|
|
109
|
-
* @param entity - The entity whose AudioAnalysis data will be read.
|
|
110
|
-
* @param out - An existing AudioAnalysisView to populate.
|
|
111
|
-
*/
|
|
112
|
-
tryReadIntoView(entity: Entity, out: AudioAnalysisView): boolean;
|
|
113
|
-
/**
|
|
114
|
-
* Creates an AudioAnalysis component for the given `entity`.
|
|
115
|
-
*
|
|
116
|
-
* If a component already exists on the entity, this call fails (does not replace).
|
|
117
|
-
*
|
|
118
|
-
* @param entity - The entity to attach the component to.
|
|
119
|
-
* @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
|
|
120
|
-
* @param amplitudeGain - Optional amplitude gain multiplier.
|
|
121
|
-
* @param bandsGain - Optional gain multiplier applied to all frequency bands.
|
|
122
|
-
*/
|
|
123
|
-
createAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
124
|
-
amplitudeGain?: number, bandsGain?: number): void;
|
|
125
|
-
/**
|
|
126
|
-
* Creates the AudioAnalysis component if missing, or replaces the existing one.
|
|
127
|
-
*
|
|
128
|
-
* @param entity - The target entity.
|
|
129
|
-
* @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
|
|
130
|
-
* @param amplitudeGain - Optional amplitude gain multiplier.
|
|
131
|
-
* @param bandsGain - Optional gain multiplier applied to the frequency bands.
|
|
132
|
-
*/
|
|
133
|
-
createOrReplaceAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
134
|
-
amplitudeGain?: number, bandsGain?: number): void;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* A read-only JavaScript-friendly view of AudioAnalysis ECS data.
|
|
139
|
-
*
|
|
140
|
-
* `amplitude` represents the aggregated signal strength.
|
|
141
|
-
* `bands` represents the processed frequency bands.
|
|
142
|
-
*/
|
|
143
|
-
export declare type AudioAnalysisView = {
|
|
144
|
-
amplitude: number;
|
|
145
|
-
bands: number[];
|
|
146
|
-
};
|
|
147
|
-
|
|
148
93
|
/** @public */
|
|
149
94
|
export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
|
|
150
95
|
|
|
@@ -239,9 +184,6 @@ export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBA
|
|
|
239
184
|
/** @public */
|
|
240
185
|
export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
|
241
186
|
|
|
242
|
-
/** @public */
|
|
243
|
-
export declare const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
|
|
244
|
-
|
|
245
187
|
/** @public */
|
|
246
188
|
export declare const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
|
|
247
189
|
|
|
@@ -1352,7 +1294,6 @@ export declare type ComponentDefinition<T> = LastWriteWinElementSetComponentDefi
|
|
|
1352
1294
|
/** public */
|
|
1353
1295
|
export declare const componentDefinitionByName: {
|
|
1354
1296
|
"core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
|
|
1355
|
-
"core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
|
|
1356
1297
|
"core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
|
|
1357
1298
|
"core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
|
|
1358
1299
|
"core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
|
|
@@ -1360,7 +1301,6 @@ export declare const componentDefinitionByName: {
|
|
|
1360
1301
|
"core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
|
|
1361
1302
|
"core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
|
|
1362
1303
|
"core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
1363
|
-
"core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
1364
1304
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
1365
1305
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
1366
1306
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
@@ -2718,8 +2658,7 @@ export declare const enum InputAction {
|
|
|
2718
2658
|
IA_ACTION_3 = 10,
|
|
2719
2659
|
IA_ACTION_4 = 11,
|
|
2720
2660
|
IA_ACTION_5 = 12,
|
|
2721
|
-
IA_ACTION_6 = 13
|
|
2722
|
-
IA_MODIFIER = 14
|
|
2661
|
+
IA_ACTION_6 = 13
|
|
2723
2662
|
}
|
|
2724
2663
|
|
|
2725
2664
|
export declare const InputModifier: InputModifierComponentDefinitionExtended;
|
|
@@ -4382,45 +4321,6 @@ export declare namespace PBAnimator {
|
|
|
4382
4321
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAnimator;
|
|
4383
4322
|
}
|
|
4384
4323
|
|
|
4385
|
-
/**
|
|
4386
|
-
* @public
|
|
4387
|
-
*/
|
|
4388
|
-
export declare interface PBAudioAnalysis {
|
|
4389
|
-
/** Parameters section */
|
|
4390
|
-
mode: PBAudioAnalysisMode;
|
|
4391
|
-
/** Used only when mode == MODE_LOGARITHMIC */
|
|
4392
|
-
amplitudeGain?: number | undefined;
|
|
4393
|
-
/** End when mode == MODE_LOGARITHMIC */
|
|
4394
|
-
bandsGain?: number | undefined;
|
|
4395
|
-
/** Result section */
|
|
4396
|
-
amplitude: number;
|
|
4397
|
-
/** Protobuf doesn't support fixed arrays -> 8 band fields */
|
|
4398
|
-
band0: number;
|
|
4399
|
-
band1: number;
|
|
4400
|
-
band2: number;
|
|
4401
|
-
band3: number;
|
|
4402
|
-
band4: number;
|
|
4403
|
-
band5: number;
|
|
4404
|
-
band6: number;
|
|
4405
|
-
band7: number;
|
|
4406
|
-
}
|
|
4407
|
-
|
|
4408
|
-
/**
|
|
4409
|
-
* @public
|
|
4410
|
-
*/
|
|
4411
|
-
export declare namespace PBAudioAnalysis {
|
|
4412
|
-
export function encode(message: PBAudioAnalysis, writer?: _m0.Writer): _m0.Writer;
|
|
4413
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioAnalysis;
|
|
4414
|
-
}
|
|
4415
|
-
|
|
4416
|
-
/**
|
|
4417
|
-
* @public
|
|
4418
|
-
*/
|
|
4419
|
-
export declare const enum PBAudioAnalysisMode {
|
|
4420
|
-
MODE_RAW = 0,
|
|
4421
|
-
MODE_LOGARITHMIC = 1
|
|
4422
|
-
}
|
|
4423
|
-
|
|
4424
4324
|
/**
|
|
4425
4325
|
* @public
|
|
4426
4326
|
*/
|
|
@@ -4610,36 +4510,6 @@ export declare namespace PBAvatarEquippedData {
|
|
|
4610
4510
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEquippedData;
|
|
4611
4511
|
}
|
|
4612
4512
|
|
|
4613
|
-
/**
|
|
4614
|
-
* The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
|
|
4615
|
-
* as the avatar movement speed, jump height etc.
|
|
4616
|
-
*/
|
|
4617
|
-
/**
|
|
4618
|
-
* @public
|
|
4619
|
-
*/
|
|
4620
|
-
export declare interface PBAvatarLocomotionSettings {
|
|
4621
|
-
/** Maximum speed when walking (in meters per second) */
|
|
4622
|
-
walkSpeed?: number | undefined;
|
|
4623
|
-
/** Maximum speed when jogging (in meters per second) */
|
|
4624
|
-
jogSpeed?: number | undefined;
|
|
4625
|
-
/** Maximum speed when running (in meters per second) */
|
|
4626
|
-
runSpeed?: number | undefined;
|
|
4627
|
-
/** Height of a regular jump (in meters) */
|
|
4628
|
-
jumpHeight?: number | undefined;
|
|
4629
|
-
/** Height of a jump while running (in meters) */
|
|
4630
|
-
runJumpHeight?: number | undefined;
|
|
4631
|
-
/** Cooldown time after a hard landing before the avatar can move again (in seconds) */
|
|
4632
|
-
hardLandingCooldown?: number | undefined;
|
|
4633
|
-
}
|
|
4634
|
-
|
|
4635
|
-
/**
|
|
4636
|
-
* @public
|
|
4637
|
-
*/
|
|
4638
|
-
export declare namespace PBAvatarLocomotionSettings {
|
|
4639
|
-
export function encode(message: PBAvatarLocomotionSettings, writer?: _m0.Writer): _m0.Writer;
|
|
4640
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings;
|
|
4641
|
-
}
|
|
4642
|
-
|
|
4643
4513
|
/**
|
|
4644
4514
|
* The AvatarModifierArea component can be attached to an Entity to define a region of space where
|
|
4645
4515
|
* avatar behavior changes.
|
|
@@ -6391,7 +6261,6 @@ export declare namespace PBVideoPlayer {
|
|
|
6391
6261
|
* an 'instant' transition (like using speed/time = 0)
|
|
6392
6262
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
|
6393
6263
|
* the holding entity transform).
|
|
6394
|
-
* * The fov defines the Field of View of the virtual camera
|
|
6395
6264
|
*/
|
|
6396
6265
|
/**
|
|
6397
6266
|
* @public
|
|
@@ -6399,8 +6268,6 @@ export declare namespace PBVideoPlayer {
|
|
|
6399
6268
|
export declare interface PBVirtualCamera {
|
|
6400
6269
|
defaultTransition?: CameraTransition | undefined;
|
|
6401
6270
|
lookAtEntity?: number | undefined;
|
|
6402
|
-
/** default: 60 */
|
|
6403
|
-
fov?: number | undefined;
|
|
6404
6271
|
}
|
|
6405
6272
|
|
|
6406
6273
|
/**
|
|
@@ -7353,7 +7220,7 @@ export declare namespace ReactEcs {
|
|
|
7353
7220
|
export type EffectHook = (effect: EffectCallback, deps?: DependencyList) => void;
|
|
7354
7221
|
const useEffect: EffectHook;
|
|
7355
7222
|
const useState: StateHook;
|
|
7356
|
-
|
|
7223
|
+
export {};
|
|
7357
7224
|
}
|
|
7358
7225
|
|
|
7359
7226
|
/**
|
package/dist/beta.d.ts
CHANGED
|
@@ -90,61 +90,6 @@ export declare namespace AppendValueOperation {
|
|
|
90
90
|
*/
|
|
91
91
|
export declare function areConnected(parcels: Coords[]): boolean;
|
|
92
92
|
|
|
93
|
-
export declare const AudioAnalysis: AudioAnalysisComponentDefinitionExtended;
|
|
94
|
-
|
|
95
|
-
export declare interface AudioAnalysisComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBAudioAnalysis> {
|
|
96
|
-
/**
|
|
97
|
-
* Reads the component data of `entity` into the provided `out` view.
|
|
98
|
-
*
|
|
99
|
-
* @throws Error if the entity does not have an AudioAnalysis component.
|
|
100
|
-
* @param entity - The entity whose AudioAnalysis data will be read.
|
|
101
|
-
* @param out - An existing AudioAnalysisView to populate with the latest values.
|
|
102
|
-
*/
|
|
103
|
-
readIntoView(entity: Entity, out: AudioAnalysisView): void;
|
|
104
|
-
/**
|
|
105
|
-
* Attempts to read the component data of `entity` into the provided `out` view.
|
|
106
|
-
*
|
|
107
|
-
* @returns `true` if the component exists and data was written into `out`,
|
|
108
|
-
* `false` if the entity does not have an AudioAnalysis component.
|
|
109
|
-
* @param entity - The entity whose AudioAnalysis data will be read.
|
|
110
|
-
* @param out - An existing AudioAnalysisView to populate.
|
|
111
|
-
*/
|
|
112
|
-
tryReadIntoView(entity: Entity, out: AudioAnalysisView): boolean;
|
|
113
|
-
/**
|
|
114
|
-
* Creates an AudioAnalysis component for the given `entity`.
|
|
115
|
-
*
|
|
116
|
-
* If a component already exists on the entity, this call fails (does not replace).
|
|
117
|
-
*
|
|
118
|
-
* @param entity - The entity to attach the component to.
|
|
119
|
-
* @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
|
|
120
|
-
* @param amplitudeGain - Optional amplitude gain multiplier.
|
|
121
|
-
* @param bandsGain - Optional gain multiplier applied to all frequency bands.
|
|
122
|
-
*/
|
|
123
|
-
createAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
124
|
-
amplitudeGain?: number, bandsGain?: number): void;
|
|
125
|
-
/**
|
|
126
|
-
* Creates the AudioAnalysis component if missing, or replaces the existing one.
|
|
127
|
-
*
|
|
128
|
-
* @param entity - The target entity.
|
|
129
|
-
* @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
|
|
130
|
-
* @param amplitudeGain - Optional amplitude gain multiplier.
|
|
131
|
-
* @param bandsGain - Optional gain multiplier applied to the frequency bands.
|
|
132
|
-
*/
|
|
133
|
-
createOrReplaceAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
134
|
-
amplitudeGain?: number, bandsGain?: number): void;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* A read-only JavaScript-friendly view of AudioAnalysis ECS data.
|
|
139
|
-
*
|
|
140
|
-
* `amplitude` represents the aggregated signal strength.
|
|
141
|
-
* `bands` represents the processed frequency bands.
|
|
142
|
-
*/
|
|
143
|
-
export declare type AudioAnalysisView = {
|
|
144
|
-
amplitude: number;
|
|
145
|
-
bands: number[];
|
|
146
|
-
};
|
|
147
|
-
|
|
148
93
|
/** @public */
|
|
149
94
|
export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
|
|
150
95
|
|
|
@@ -239,9 +184,6 @@ export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBA
|
|
|
239
184
|
/** @public */
|
|
240
185
|
export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
|
241
186
|
|
|
242
|
-
/** @public */
|
|
243
|
-
export declare const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
|
|
244
|
-
|
|
245
187
|
/** @public */
|
|
246
188
|
export declare const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
|
|
247
189
|
|
|
@@ -1352,7 +1294,6 @@ export declare type ComponentDefinition<T> = LastWriteWinElementSetComponentDefi
|
|
|
1352
1294
|
/** public */
|
|
1353
1295
|
export declare const componentDefinitionByName: {
|
|
1354
1296
|
"core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
|
|
1355
|
-
"core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
|
|
1356
1297
|
"core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
|
|
1357
1298
|
"core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
|
|
1358
1299
|
"core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
|
|
@@ -1360,7 +1301,6 @@ export declare const componentDefinitionByName: {
|
|
|
1360
1301
|
"core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
|
|
1361
1302
|
"core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
|
|
1362
1303
|
"core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
1363
|
-
"core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
1364
1304
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
1365
1305
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
1366
1306
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
@@ -2709,8 +2649,7 @@ export declare const enum InputAction {
|
|
|
2709
2649
|
IA_ACTION_3 = 10,
|
|
2710
2650
|
IA_ACTION_4 = 11,
|
|
2711
2651
|
IA_ACTION_5 = 12,
|
|
2712
|
-
IA_ACTION_6 = 13
|
|
2713
|
-
IA_MODIFIER = 14
|
|
2652
|
+
IA_ACTION_6 = 13
|
|
2714
2653
|
}
|
|
2715
2654
|
|
|
2716
2655
|
export declare const InputModifier: InputModifierComponentDefinitionExtended;
|
|
@@ -4354,45 +4293,6 @@ export declare namespace PBAnimator {
|
|
|
4354
4293
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAnimator;
|
|
4355
4294
|
}
|
|
4356
4295
|
|
|
4357
|
-
/**
|
|
4358
|
-
* @public
|
|
4359
|
-
*/
|
|
4360
|
-
export declare interface PBAudioAnalysis {
|
|
4361
|
-
/** Parameters section */
|
|
4362
|
-
mode: PBAudioAnalysisMode;
|
|
4363
|
-
/** Used only when mode == MODE_LOGARITHMIC */
|
|
4364
|
-
amplitudeGain?: number | undefined;
|
|
4365
|
-
/** End when mode == MODE_LOGARITHMIC */
|
|
4366
|
-
bandsGain?: number | undefined;
|
|
4367
|
-
/** Result section */
|
|
4368
|
-
amplitude: number;
|
|
4369
|
-
/** Protobuf doesn't support fixed arrays -> 8 band fields */
|
|
4370
|
-
band0: number;
|
|
4371
|
-
band1: number;
|
|
4372
|
-
band2: number;
|
|
4373
|
-
band3: number;
|
|
4374
|
-
band4: number;
|
|
4375
|
-
band5: number;
|
|
4376
|
-
band6: number;
|
|
4377
|
-
band7: number;
|
|
4378
|
-
}
|
|
4379
|
-
|
|
4380
|
-
/**
|
|
4381
|
-
* @public
|
|
4382
|
-
*/
|
|
4383
|
-
export declare namespace PBAudioAnalysis {
|
|
4384
|
-
export function encode(message: PBAudioAnalysis, writer?: _m0.Writer): _m0.Writer;
|
|
4385
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioAnalysis;
|
|
4386
|
-
}
|
|
4387
|
-
|
|
4388
|
-
/**
|
|
4389
|
-
* @public
|
|
4390
|
-
*/
|
|
4391
|
-
export declare const enum PBAudioAnalysisMode {
|
|
4392
|
-
MODE_RAW = 0,
|
|
4393
|
-
MODE_LOGARITHMIC = 1
|
|
4394
|
-
}
|
|
4395
|
-
|
|
4396
4296
|
/**
|
|
4397
4297
|
* @public
|
|
4398
4298
|
*/
|
|
@@ -4582,36 +4482,6 @@ export declare namespace PBAvatarEquippedData {
|
|
|
4582
4482
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEquippedData;
|
|
4583
4483
|
}
|
|
4584
4484
|
|
|
4585
|
-
/**
|
|
4586
|
-
* The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
|
|
4587
|
-
* as the avatar movement speed, jump height etc.
|
|
4588
|
-
*/
|
|
4589
|
-
/**
|
|
4590
|
-
* @public
|
|
4591
|
-
*/
|
|
4592
|
-
export declare interface PBAvatarLocomotionSettings {
|
|
4593
|
-
/** Maximum speed when walking (in meters per second) */
|
|
4594
|
-
walkSpeed?: number | undefined;
|
|
4595
|
-
/** Maximum speed when jogging (in meters per second) */
|
|
4596
|
-
jogSpeed?: number | undefined;
|
|
4597
|
-
/** Maximum speed when running (in meters per second) */
|
|
4598
|
-
runSpeed?: number | undefined;
|
|
4599
|
-
/** Height of a regular jump (in meters) */
|
|
4600
|
-
jumpHeight?: number | undefined;
|
|
4601
|
-
/** Height of a jump while running (in meters) */
|
|
4602
|
-
runJumpHeight?: number | undefined;
|
|
4603
|
-
/** Cooldown time after a hard landing before the avatar can move again (in seconds) */
|
|
4604
|
-
hardLandingCooldown?: number | undefined;
|
|
4605
|
-
}
|
|
4606
|
-
|
|
4607
|
-
/**
|
|
4608
|
-
* @public
|
|
4609
|
-
*/
|
|
4610
|
-
export declare namespace PBAvatarLocomotionSettings {
|
|
4611
|
-
export function encode(message: PBAvatarLocomotionSettings, writer?: _m0.Writer): _m0.Writer;
|
|
4612
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings;
|
|
4613
|
-
}
|
|
4614
|
-
|
|
4615
4485
|
/**
|
|
4616
4486
|
* The AvatarModifierArea component can be attached to an Entity to define a region of space where
|
|
4617
4487
|
* avatar behavior changes.
|
|
@@ -6363,7 +6233,6 @@ export declare namespace PBVideoPlayer {
|
|
|
6363
6233
|
* an 'instant' transition (like using speed/time = 0)
|
|
6364
6234
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
|
6365
6235
|
* the holding entity transform).
|
|
6366
|
-
* * The fov defines the Field of View of the virtual camera
|
|
6367
6236
|
*/
|
|
6368
6237
|
/**
|
|
6369
6238
|
* @public
|
|
@@ -6371,8 +6240,6 @@ export declare namespace PBVideoPlayer {
|
|
|
6371
6240
|
export declare interface PBVirtualCamera {
|
|
6372
6241
|
defaultTransition?: CameraTransition | undefined;
|
|
6373
6242
|
lookAtEntity?: number | undefined;
|
|
6374
|
-
/** default: 60 */
|
|
6375
|
-
fov?: number | undefined;
|
|
6376
6243
|
}
|
|
6377
6244
|
|
|
6378
6245
|
/**
|
|
@@ -7325,7 +7192,7 @@ export declare namespace ReactEcs {
|
|
|
7325
7192
|
export type EffectHook = (effect: EffectCallback, deps?: DependencyList) => void;
|
|
7326
7193
|
const useEffect: EffectHook;
|
|
7327
7194
|
const useState: StateHook;
|
|
7328
|
-
|
|
7195
|
+
export {};
|
|
7329
7196
|
}
|
|
7330
7197
|
|
|
7331
7198
|
/**
|
package/dist/index.bundled.d.ts
CHANGED
|
@@ -90,61 +90,6 @@ export declare namespace AppendValueOperation {
|
|
|
90
90
|
*/
|
|
91
91
|
export declare function areConnected(parcels: Coords[]): boolean;
|
|
92
92
|
|
|
93
|
-
export declare const AudioAnalysis: AudioAnalysisComponentDefinitionExtended;
|
|
94
|
-
|
|
95
|
-
export declare interface AudioAnalysisComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBAudioAnalysis> {
|
|
96
|
-
/**
|
|
97
|
-
* Reads the component data of `entity` into the provided `out` view.
|
|
98
|
-
*
|
|
99
|
-
* @throws Error if the entity does not have an AudioAnalysis component.
|
|
100
|
-
* @param entity - The entity whose AudioAnalysis data will be read.
|
|
101
|
-
* @param out - An existing AudioAnalysisView to populate with the latest values.
|
|
102
|
-
*/
|
|
103
|
-
readIntoView(entity: Entity, out: AudioAnalysisView): void;
|
|
104
|
-
/**
|
|
105
|
-
* Attempts to read the component data of `entity` into the provided `out` view.
|
|
106
|
-
*
|
|
107
|
-
* @returns `true` if the component exists and data was written into `out`,
|
|
108
|
-
* `false` if the entity does not have an AudioAnalysis component.
|
|
109
|
-
* @param entity - The entity whose AudioAnalysis data will be read.
|
|
110
|
-
* @param out - An existing AudioAnalysisView to populate.
|
|
111
|
-
*/
|
|
112
|
-
tryReadIntoView(entity: Entity, out: AudioAnalysisView): boolean;
|
|
113
|
-
/**
|
|
114
|
-
* Creates an AudioAnalysis component for the given `entity`.
|
|
115
|
-
*
|
|
116
|
-
* If a component already exists on the entity, this call fails (does not replace).
|
|
117
|
-
*
|
|
118
|
-
* @param entity - The entity to attach the component to.
|
|
119
|
-
* @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
|
|
120
|
-
* @param amplitudeGain - Optional amplitude gain multiplier.
|
|
121
|
-
* @param bandsGain - Optional gain multiplier applied to all frequency bands.
|
|
122
|
-
*/
|
|
123
|
-
createAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
124
|
-
amplitudeGain?: number, bandsGain?: number): void;
|
|
125
|
-
/**
|
|
126
|
-
* Creates the AudioAnalysis component if missing, or replaces the existing one.
|
|
127
|
-
*
|
|
128
|
-
* @param entity - The target entity.
|
|
129
|
-
* @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
|
|
130
|
-
* @param amplitudeGain - Optional amplitude gain multiplier.
|
|
131
|
-
* @param bandsGain - Optional gain multiplier applied to the frequency bands.
|
|
132
|
-
*/
|
|
133
|
-
createOrReplaceAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
134
|
-
amplitudeGain?: number, bandsGain?: number): void;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* A read-only JavaScript-friendly view of AudioAnalysis ECS data.
|
|
139
|
-
*
|
|
140
|
-
* `amplitude` represents the aggregated signal strength.
|
|
141
|
-
* `bands` represents the processed frequency bands.
|
|
142
|
-
*/
|
|
143
|
-
export declare type AudioAnalysisView = {
|
|
144
|
-
amplitude: number;
|
|
145
|
-
bands: number[];
|
|
146
|
-
};
|
|
147
|
-
|
|
148
93
|
/** @public */
|
|
149
94
|
export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
|
|
150
95
|
|
|
@@ -239,9 +184,6 @@ export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBA
|
|
|
239
184
|
/** @public */
|
|
240
185
|
export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
|
241
186
|
|
|
242
|
-
/** @public */
|
|
243
|
-
export declare const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
|
|
244
|
-
|
|
245
187
|
/** @public */
|
|
246
188
|
export declare const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
|
|
247
189
|
|
|
@@ -1352,7 +1294,6 @@ export declare type ComponentDefinition<T> = LastWriteWinElementSetComponentDefi
|
|
|
1352
1294
|
/** public */
|
|
1353
1295
|
export declare const componentDefinitionByName: {
|
|
1354
1296
|
"core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
|
|
1355
|
-
"core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
|
|
1356
1297
|
"core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
|
|
1357
1298
|
"core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
|
|
1358
1299
|
"core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
|
|
@@ -1360,7 +1301,6 @@ export declare const componentDefinitionByName: {
|
|
|
1360
1301
|
"core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
|
|
1361
1302
|
"core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
|
|
1362
1303
|
"core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
1363
|
-
"core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
1364
1304
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
1365
1305
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
1366
1306
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
@@ -2709,8 +2649,7 @@ export declare const enum InputAction {
|
|
|
2709
2649
|
IA_ACTION_3 = 10,
|
|
2710
2650
|
IA_ACTION_4 = 11,
|
|
2711
2651
|
IA_ACTION_5 = 12,
|
|
2712
|
-
IA_ACTION_6 = 13
|
|
2713
|
-
IA_MODIFIER = 14
|
|
2652
|
+
IA_ACTION_6 = 13
|
|
2714
2653
|
}
|
|
2715
2654
|
|
|
2716
2655
|
export declare const InputModifier: InputModifierComponentDefinitionExtended;
|
|
@@ -4354,45 +4293,6 @@ export declare namespace PBAnimator {
|
|
|
4354
4293
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAnimator;
|
|
4355
4294
|
}
|
|
4356
4295
|
|
|
4357
|
-
/**
|
|
4358
|
-
* @public
|
|
4359
|
-
*/
|
|
4360
|
-
export declare interface PBAudioAnalysis {
|
|
4361
|
-
/** Parameters section */
|
|
4362
|
-
mode: PBAudioAnalysisMode;
|
|
4363
|
-
/** Used only when mode == MODE_LOGARITHMIC */
|
|
4364
|
-
amplitudeGain?: number | undefined;
|
|
4365
|
-
/** End when mode == MODE_LOGARITHMIC */
|
|
4366
|
-
bandsGain?: number | undefined;
|
|
4367
|
-
/** Result section */
|
|
4368
|
-
amplitude: number;
|
|
4369
|
-
/** Protobuf doesn't support fixed arrays -> 8 band fields */
|
|
4370
|
-
band0: number;
|
|
4371
|
-
band1: number;
|
|
4372
|
-
band2: number;
|
|
4373
|
-
band3: number;
|
|
4374
|
-
band4: number;
|
|
4375
|
-
band5: number;
|
|
4376
|
-
band6: number;
|
|
4377
|
-
band7: number;
|
|
4378
|
-
}
|
|
4379
|
-
|
|
4380
|
-
/**
|
|
4381
|
-
* @public
|
|
4382
|
-
*/
|
|
4383
|
-
export declare namespace PBAudioAnalysis {
|
|
4384
|
-
export function encode(message: PBAudioAnalysis, writer?: _m0.Writer): _m0.Writer;
|
|
4385
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioAnalysis;
|
|
4386
|
-
}
|
|
4387
|
-
|
|
4388
|
-
/**
|
|
4389
|
-
* @public
|
|
4390
|
-
*/
|
|
4391
|
-
export declare const enum PBAudioAnalysisMode {
|
|
4392
|
-
MODE_RAW = 0,
|
|
4393
|
-
MODE_LOGARITHMIC = 1
|
|
4394
|
-
}
|
|
4395
|
-
|
|
4396
4296
|
/**
|
|
4397
4297
|
* @public
|
|
4398
4298
|
*/
|
|
@@ -4582,36 +4482,6 @@ export declare namespace PBAvatarEquippedData {
|
|
|
4582
4482
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEquippedData;
|
|
4583
4483
|
}
|
|
4584
4484
|
|
|
4585
|
-
/**
|
|
4586
|
-
* The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
|
|
4587
|
-
* as the avatar movement speed, jump height etc.
|
|
4588
|
-
*/
|
|
4589
|
-
/**
|
|
4590
|
-
* @public
|
|
4591
|
-
*/
|
|
4592
|
-
export declare interface PBAvatarLocomotionSettings {
|
|
4593
|
-
/** Maximum speed when walking (in meters per second) */
|
|
4594
|
-
walkSpeed?: number | undefined;
|
|
4595
|
-
/** Maximum speed when jogging (in meters per second) */
|
|
4596
|
-
jogSpeed?: number | undefined;
|
|
4597
|
-
/** Maximum speed when running (in meters per second) */
|
|
4598
|
-
runSpeed?: number | undefined;
|
|
4599
|
-
/** Height of a regular jump (in meters) */
|
|
4600
|
-
jumpHeight?: number | undefined;
|
|
4601
|
-
/** Height of a jump while running (in meters) */
|
|
4602
|
-
runJumpHeight?: number | undefined;
|
|
4603
|
-
/** Cooldown time after a hard landing before the avatar can move again (in seconds) */
|
|
4604
|
-
hardLandingCooldown?: number | undefined;
|
|
4605
|
-
}
|
|
4606
|
-
|
|
4607
|
-
/**
|
|
4608
|
-
* @public
|
|
4609
|
-
*/
|
|
4610
|
-
export declare namespace PBAvatarLocomotionSettings {
|
|
4611
|
-
export function encode(message: PBAvatarLocomotionSettings, writer?: _m0.Writer): _m0.Writer;
|
|
4612
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings;
|
|
4613
|
-
}
|
|
4614
|
-
|
|
4615
4485
|
/**
|
|
4616
4486
|
* The AvatarModifierArea component can be attached to an Entity to define a region of space where
|
|
4617
4487
|
* avatar behavior changes.
|
|
@@ -6363,7 +6233,6 @@ export declare namespace PBVideoPlayer {
|
|
|
6363
6233
|
* an 'instant' transition (like using speed/time = 0)
|
|
6364
6234
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
|
6365
6235
|
* the holding entity transform).
|
|
6366
|
-
* * The fov defines the Field of View of the virtual camera
|
|
6367
6236
|
*/
|
|
6368
6237
|
/**
|
|
6369
6238
|
* @public
|
|
@@ -6371,8 +6240,6 @@ export declare namespace PBVideoPlayer {
|
|
|
6371
6240
|
export declare interface PBVirtualCamera {
|
|
6372
6241
|
defaultTransition?: CameraTransition | undefined;
|
|
6373
6242
|
lookAtEntity?: number | undefined;
|
|
6374
|
-
/** default: 60 */
|
|
6375
|
-
fov?: number | undefined;
|
|
6376
6243
|
}
|
|
6377
6244
|
|
|
6378
6245
|
/**
|
|
@@ -7325,7 +7192,7 @@ export declare namespace ReactEcs {
|
|
|
7325
7192
|
export type EffectHook = (effect: EffectCallback, deps?: DependencyList) => void;
|
|
7326
7193
|
const useEffect: EffectHook;
|
|
7327
7194
|
const useState: StateHook;
|
|
7328
|
-
|
|
7195
|
+
export {};
|
|
7329
7196
|
}
|
|
7330
7197
|
|
|
7331
7198
|
/**
|