@dcl/playground-assets 7.22.4-24525731607.commit-cda77a9 → 7.22.4
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 -149
- package/dist/beta.d.ts +1 -149
- package/dist/index.bundled.d.ts +1 -149
- package/dist/index.js +6 -6
- package/dist/playground/sdk/apis.d.ts +0 -6
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +1 -149
- package/etc/playground-assets.api.json +940 -2514
- package/etc/playground-assets.api.md +0 -102
- package/package.json +4 -4
|
@@ -1263,7 +1263,6 @@ declare module "~system/RestrictedActions" {
|
|
|
1263
1263
|
}
|
|
1264
1264
|
export interface TriggerEmoteRequest {
|
|
1265
1265
|
predefinedEmote: string;
|
|
1266
|
-
mask?: number | undefined;
|
|
1267
1266
|
}
|
|
1268
1267
|
export interface ChangeRealmRequest {
|
|
1269
1268
|
realm: string;
|
|
@@ -1283,7 +1282,6 @@ declare module "~system/RestrictedActions" {
|
|
|
1283
1282
|
export interface TriggerSceneEmoteRequest {
|
|
1284
1283
|
src: string;
|
|
1285
1284
|
loop?: boolean | undefined;
|
|
1286
|
-
mask?: number | undefined;
|
|
1287
1285
|
}
|
|
1288
1286
|
export interface SuccessResponse {
|
|
1289
1287
|
success: boolean;
|
|
@@ -1299,8 +1297,6 @@ declare module "~system/RestrictedActions" {
|
|
|
1299
1297
|
text: string;
|
|
1300
1298
|
}
|
|
1301
1299
|
export interface EmptyResponse {
|
|
1302
|
-
}
|
|
1303
|
-
export interface StopEmoteRequest {
|
|
1304
1300
|
}
|
|
1305
1301
|
|
|
1306
1302
|
// Function declaration section
|
|
@@ -1329,8 +1325,6 @@ declare module "~system/RestrictedActions" {
|
|
|
1329
1325
|
export function triggerSceneEmote(body: TriggerSceneEmoteRequest): Promise<SuccessResponse>;
|
|
1330
1326
|
/** CopyToClipboard copies the provided text into the clipboard */
|
|
1331
1327
|
export function copyToClipboard(body: CopyToClipboardRequest): Promise<EmptyResponse>;
|
|
1332
|
-
/** StopEmote will stop the current emote */
|
|
1333
|
-
export function stopEmote(body: StopEmoteRequest): Promise<SuccessResponse>;
|
|
1334
1328
|
|
|
1335
1329
|
}
|
|
1336
1330
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/sdk",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.22.4
|
|
4
|
+
"version": "7.22.4",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@dcl/ecs": "file:../ecs",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
},
|
|
36
36
|
"types": "./index.d.ts",
|
|
37
37
|
"typings": "./index.d.ts",
|
|
38
|
-
"commit": "
|
|
38
|
+
"commit": "1309a552442670f22b64ad4cea1d88136188ad2f"
|
|
39
39
|
}
|
|
@@ -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
|
|
|
@@ -261,21 +206,9 @@ export declare const AvatarBase: LastWriteWinElementSetComponentDefinition<PBAva
|
|
|
261
206
|
/** @public */
|
|
262
207
|
export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>;
|
|
263
208
|
|
|
264
|
-
/** Mask for which bones an animation applies to. */
|
|
265
|
-
/**
|
|
266
|
-
* @public
|
|
267
|
-
*/
|
|
268
|
-
export declare const enum AvatarEmoteMask {
|
|
269
|
-
AEM_FULL_BODY = 0,
|
|
270
|
-
AEM_UPPER_BODY = 1
|
|
271
|
-
}
|
|
272
|
-
|
|
273
209
|
/** @public */
|
|
274
210
|
export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
|
275
211
|
|
|
276
|
-
/** @public */
|
|
277
|
-
export declare const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
|
|
278
|
-
|
|
279
212
|
/** @public */
|
|
280
213
|
export declare const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
|
|
281
214
|
|
|
@@ -1405,7 +1338,6 @@ export declare const componentDefinitionByName: {
|
|
|
1405
1338
|
"core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
|
|
1406
1339
|
"core::AssetLoad": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
|
|
1407
1340
|
"core::AssetLoadLoadingState": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
|
|
1408
|
-
"core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
|
|
1409
1341
|
"core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
|
|
1410
1342
|
"core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
|
|
1411
1343
|
"core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
|
|
@@ -1413,7 +1345,6 @@ export declare const componentDefinitionByName: {
|
|
|
1413
1345
|
"core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
|
|
1414
1346
|
"core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
|
|
1415
1347
|
"core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
1416
|
-
"core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
1417
1348
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
1418
1349
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
1419
1350
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
@@ -2801,8 +2732,7 @@ export declare const enum InputAction {
|
|
|
2801
2732
|
IA_ACTION_3 = 10,
|
|
2802
2733
|
IA_ACTION_4 = 11,
|
|
2803
2734
|
IA_ACTION_5 = 12,
|
|
2804
|
-
IA_ACTION_6 = 13
|
|
2805
|
-
IA_MODIFIER = 14
|
|
2735
|
+
IA_ACTION_6 = 13
|
|
2806
2736
|
}
|
|
2807
2737
|
|
|
2808
2738
|
export declare const InputModifier: InputModifierComponentDefinitionExtended;
|
|
@@ -4594,45 +4524,6 @@ export declare namespace PBAssetLoadLoadingState {
|
|
|
4594
4524
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAssetLoadLoadingState;
|
|
4595
4525
|
}
|
|
4596
4526
|
|
|
4597
|
-
/**
|
|
4598
|
-
* @public
|
|
4599
|
-
*/
|
|
4600
|
-
export declare interface PBAudioAnalysis {
|
|
4601
|
-
/** Parameters section */
|
|
4602
|
-
mode: PBAudioAnalysisMode;
|
|
4603
|
-
/** Used only when mode == MODE_LOGARITHMIC */
|
|
4604
|
-
amplitudeGain?: number | undefined;
|
|
4605
|
-
/** End when mode == MODE_LOGARITHMIC */
|
|
4606
|
-
bandsGain?: number | undefined;
|
|
4607
|
-
/** Result section */
|
|
4608
|
-
amplitude: number;
|
|
4609
|
-
/** Protobuf doesn't support fixed arrays -> 8 band fields */
|
|
4610
|
-
band0: number;
|
|
4611
|
-
band1: number;
|
|
4612
|
-
band2: number;
|
|
4613
|
-
band3: number;
|
|
4614
|
-
band4: number;
|
|
4615
|
-
band5: number;
|
|
4616
|
-
band6: number;
|
|
4617
|
-
band7: number;
|
|
4618
|
-
}
|
|
4619
|
-
|
|
4620
|
-
/**
|
|
4621
|
-
* @public
|
|
4622
|
-
*/
|
|
4623
|
-
export declare namespace PBAudioAnalysis {
|
|
4624
|
-
export function encode(message: PBAudioAnalysis, writer?: _m0.Writer): _m0.Writer;
|
|
4625
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioAnalysis;
|
|
4626
|
-
}
|
|
4627
|
-
|
|
4628
|
-
/**
|
|
4629
|
-
* @public
|
|
4630
|
-
*/
|
|
4631
|
-
export declare const enum PBAudioAnalysisMode {
|
|
4632
|
-
MODE_RAW = 0,
|
|
4633
|
-
MODE_LOGARITHMIC = 1
|
|
4634
|
-
}
|
|
4635
|
-
|
|
4636
4527
|
/**
|
|
4637
4528
|
* @public
|
|
4638
4529
|
*/
|
|
@@ -4822,42 +4713,6 @@ export declare namespace PBAvatarEquippedData {
|
|
|
4822
4713
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEquippedData;
|
|
4823
4714
|
}
|
|
4824
4715
|
|
|
4825
|
-
/**
|
|
4826
|
-
* The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
|
|
4827
|
-
* as the avatar movement speed, jump height etc.
|
|
4828
|
-
*/
|
|
4829
|
-
/**
|
|
4830
|
-
* @public
|
|
4831
|
-
*/
|
|
4832
|
-
export declare interface PBAvatarLocomotionSettings {
|
|
4833
|
-
/** Maximum speed when walking (in meters per second) */
|
|
4834
|
-
walkSpeed?: number | undefined;
|
|
4835
|
-
/** Maximum speed when jogging (in meters per second) */
|
|
4836
|
-
jogSpeed?: number | undefined;
|
|
4837
|
-
/** Maximum speed when running (in meters per second) */
|
|
4838
|
-
runSpeed?: number | undefined;
|
|
4839
|
-
/** Height of a regular jump (in meters) */
|
|
4840
|
-
jumpHeight?: number | undefined;
|
|
4841
|
-
/** Height of a jump while running (in meters) */
|
|
4842
|
-
runJumpHeight?: number | undefined;
|
|
4843
|
-
/** Cooldown time after a hard landing before the avatar can move again (in seconds) */
|
|
4844
|
-
hardLandingCooldown?: number | undefined;
|
|
4845
|
-
/** Height of the double jump (in meters) */
|
|
4846
|
-
doubleJumpHeight?: number | undefined;
|
|
4847
|
-
/** Maximum speed when gliding (in meters per second) */
|
|
4848
|
-
glidingSpeed?: number | undefined;
|
|
4849
|
-
/** Maximum falling speed when gliding (in meters per second) */
|
|
4850
|
-
glidingFallingSpeed?: number | undefined;
|
|
4851
|
-
}
|
|
4852
|
-
|
|
4853
|
-
/**
|
|
4854
|
-
* @public
|
|
4855
|
-
*/
|
|
4856
|
-
export declare namespace PBAvatarLocomotionSettings {
|
|
4857
|
-
export function encode(message: PBAvatarLocomotionSettings, writer?: _m0.Writer): _m0.Writer;
|
|
4858
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings;
|
|
4859
|
-
}
|
|
4860
|
-
|
|
4861
4716
|
/**
|
|
4862
4717
|
* The AvatarModifierArea component can be attached to an Entity to define a region of space where
|
|
4863
4718
|
* avatar behavior changes.
|
|
@@ -6932,7 +6787,6 @@ export declare namespace PBVideoPlayer {
|
|
|
6932
6787
|
* an 'instant' transition (like using speed/time = 0)
|
|
6933
6788
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
|
6934
6789
|
* the holding entity transform).
|
|
6935
|
-
* * The fov defines the Field of View of the virtual camera
|
|
6936
6790
|
*/
|
|
6937
6791
|
/**
|
|
6938
6792
|
* @public
|
|
@@ -6940,8 +6794,6 @@ export declare namespace PBVideoPlayer {
|
|
|
6940
6794
|
export declare interface PBVirtualCamera {
|
|
6941
6795
|
defaultTransition?: CameraTransition | undefined;
|
|
6942
6796
|
lookAtEntity?: number | undefined;
|
|
6943
|
-
/** default: 60 */
|
|
6944
|
-
fov?: number | undefined;
|
|
6945
6797
|
}
|
|
6946
6798
|
|
|
6947
6799
|
/**
|