@dcl/playground-assets 7.4.16-8615212496.commit-43dbc5e → 7.4.16-8693217507.commit-f417f2c
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 +55 -5
- package/dist/beta.d.ts +55 -5
- package/dist/index.bundled.d.ts +55 -5
- package/dist/index.js +4 -4
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +55 -5
- package/dist/tsdoc-metadata.json +1 -1
- package/etc/playground-assets.api.json +569 -13
- package/etc/playground-assets.api.md +47 -1
- package/package.json +4 -4
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dcl/sdk",
|
3
3
|
"description": "",
|
4
|
-
"version": "7.4.16-
|
4
|
+
"version": "7.4.16-8693217507.commit-f417f2c",
|
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": "f417f2cb6dd3f14edead0807fc0676f7a6c5daff"
|
39
39
|
}
|
@@ -90,6 +90,9 @@ export declare namespace AppendValueOperation {
|
|
90
90
|
*/
|
91
91
|
export declare function areConnected(parcels: Coords[]): boolean;
|
92
92
|
|
93
|
+
/** @public */
|
94
|
+
export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
|
95
|
+
|
93
96
|
export declare const AudioSource: AudioSourceComponentDefinitionExtended;
|
94
97
|
|
95
98
|
/**
|
@@ -117,8 +120,23 @@ export declare interface AudioSourceComponentDefinitionExtended extends LastWrit
|
|
117
120
|
stopSound(entity: Entity, resetCursor?: boolean): boolean;
|
118
121
|
}
|
119
122
|
|
120
|
-
|
121
|
-
|
123
|
+
export declare const AudioStream: AudioStreamComponentDefinitionExtended;
|
124
|
+
|
125
|
+
/**
|
126
|
+
* @public
|
127
|
+
*/
|
128
|
+
export declare interface AudioStreamComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBAudioStream> {
|
129
|
+
/**
|
130
|
+
* @public
|
131
|
+
*
|
132
|
+
* Set playing=true the sound `$name`
|
133
|
+
* @param entity - entity with AudioStream component
|
134
|
+
* @param src - the path to the sound to play
|
135
|
+
* @param resetCursor - the sound starts at 0 or continues from the current cursor position
|
136
|
+
* @returns true in successful playing, false if it doesn't find the AudioStream component
|
137
|
+
*/
|
138
|
+
getAudioState(entity: Entity): PBAudioEvent | undefined;
|
139
|
+
}
|
122
140
|
|
123
141
|
/** AvatarAnchorPointType determines the part of the avatar's body that anchors the Entity. */
|
124
142
|
/**
|
@@ -1202,6 +1220,7 @@ export declare type ComponentDefinition<T> = LastWriteWinElementSetComponentDefi
|
|
1202
1220
|
/** public */
|
1203
1221
|
export declare const componentDefinitionByName: {
|
1204
1222
|
"core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
|
1223
|
+
"core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
|
1205
1224
|
"core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
|
1206
1225
|
"core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
|
1207
1226
|
"core::AvatarAttach": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarAttach>>;
|
@@ -3606,6 +3625,20 @@ export declare namespace Matrix {
|
|
3606
3625
|
export function toggleProjectionMatrixHandInPlace(self: MutableMatrix): void;
|
3607
3626
|
}
|
3608
3627
|
|
3628
|
+
/**
|
3629
|
+
* @public
|
3630
|
+
*/
|
3631
|
+
export declare const enum MediaState {
|
3632
|
+
MS_NONE = 0,
|
3633
|
+
MS_ERROR = 1,
|
3634
|
+
MS_LOADING = 2,
|
3635
|
+
MS_READY = 3,
|
3636
|
+
MS_PLAYING = 4,
|
3637
|
+
MS_BUFFERING = 5,
|
3638
|
+
MS_SEEKING = 6,
|
3639
|
+
MS_PAUSED = 7
|
3640
|
+
}
|
3641
|
+
|
3609
3642
|
export declare const MeshCollider: MeshColliderComponentDefinitionExtended;
|
3610
3643
|
|
3611
3644
|
/**
|
@@ -4105,13 +4138,13 @@ export declare interface PBAnimationState {
|
|
4105
4138
|
clip: string;
|
4106
4139
|
/** whether this animation is currently playing */
|
4107
4140
|
playing?: boolean | undefined;
|
4108
|
-
/** the "weight" of this animation (see below, default: 1.0) */
|
4141
|
+
/** @experimental the "weight" of this animation (see below, default: 1.0) */
|
4109
4142
|
weight?: number | undefined;
|
4110
4143
|
/** the playback speed (default: 1.0) */
|
4111
4144
|
speed?: number | undefined;
|
4112
|
-
/** whether the animation repeats until stopped (default: true) */
|
4145
|
+
/** whether the animation repeats (**) until is manually stopped (default: true) */
|
4113
4146
|
loop?: boolean | undefined;
|
4114
|
-
/** whether the
|
4147
|
+
/** whether the animation is restored to the initial state (*) when it changes from stopped to playing (default: false) */
|
4115
4148
|
shouldReset?: boolean | undefined;
|
4116
4149
|
}
|
4117
4150
|
|
@@ -4147,6 +4180,23 @@ export declare namespace PBAnimator {
|
|
4147
4180
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAnimator;
|
4148
4181
|
}
|
4149
4182
|
|
4183
|
+
/**
|
4184
|
+
* @public
|
4185
|
+
*/
|
4186
|
+
export declare interface PBAudioEvent {
|
4187
|
+
state: MediaState;
|
4188
|
+
/** monotonic counter */
|
4189
|
+
timestamp: number;
|
4190
|
+
}
|
4191
|
+
|
4192
|
+
/**
|
4193
|
+
* @public
|
4194
|
+
*/
|
4195
|
+
export declare namespace PBAudioEvent {
|
4196
|
+
export function encode(message: PBAudioEvent, writer?: _m0.Writer): _m0.Writer;
|
4197
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioEvent;
|
4198
|
+
}
|
4199
|
+
|
4150
4200
|
/**
|
4151
4201
|
* The AudioSource component can play an audio clips bundled with the scene, controlling some
|
4152
4202
|
* of the behavior.
|