@dcl/playground-assets 7.4.10-8392909116.commit-6487246 → 7.4.10-8395171867.commit-71991c9
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 +37 -2
- package/dist/beta.d.ts +37 -2
- package/dist/index.bundled.d.ts +37 -2
- package/dist/index.js +5 -5
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +37 -2
- package/etc/playground-assets.api.json +234 -8
- package/etc/playground-assets.api.md +11 -1
- package/package.json +4 -4
package/dist/alpha.d.ts
CHANGED
@@ -90,8 +90,32 @@ export declare namespace AppendValueOperation {
|
|
90
90
|
*/
|
91
91
|
export declare function areConnected(parcels: Coords[]): boolean;
|
92
92
|
|
93
|
-
|
94
|
-
|
93
|
+
export declare const AudioSource: AudioSourceComponentDefinitionExtended;
|
94
|
+
|
95
|
+
/**
|
96
|
+
* @public
|
97
|
+
*/
|
98
|
+
export declare interface AudioSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBAudioSource> {
|
99
|
+
/**
|
100
|
+
* @public
|
101
|
+
*
|
102
|
+
* Set playing=true the sound `$name`
|
103
|
+
* @param entity - entity with AudioSource component
|
104
|
+
* @param src - the path to the sound to play
|
105
|
+
* @param resetCursor - the sound starts at 0 or continues from the current cursor position
|
106
|
+
* @returns true in successful playing, false if it doesn't find the AudioSource component
|
107
|
+
*/
|
108
|
+
playSound(entity: Entity, src: string, resetCursor?: boolean): boolean;
|
109
|
+
/**
|
110
|
+
* @public
|
111
|
+
*
|
112
|
+
* Set playing=false all sounds
|
113
|
+
* @param entity - entity with AudioSource component
|
114
|
+
* @param resetCursor - the sound stops at 0 or at the current cursor position
|
115
|
+
* @returns true in successful stopping, false if it doesn't find the AudioSource component
|
116
|
+
*/
|
117
|
+
stopSound(entity: Entity, resetCursor?: boolean): boolean;
|
118
|
+
}
|
95
119
|
|
96
120
|
/** @public */
|
97
121
|
export declare const AudioStream: LastWriteWinElementSetComponentDefinition<PBAudioStream>;
|
@@ -4133,6 +4157,13 @@ export declare namespace PBAnimator {
|
|
4133
4157
|
* Note that the `audio_clip_url` is not actually a URL, but rather the path of a file bundled with
|
4134
4158
|
* the scene and declared in its manifest. The name was chosen because the URL use-case will
|
4135
4159
|
* eventually be supported.
|
4160
|
+
*
|
4161
|
+
* `playing=true` when it's previously `playing=true`
|
4162
|
+
* a) if clip is playing and `current_time` is NOT SET, the clip remains in the current `current_time`
|
4163
|
+
* b) if clip is stopped or `current_time` is set, the clip is played from the `current_time` (if set) or from the beginning
|
4164
|
+
*
|
4165
|
+
* If other property (volume, loop, pitch) is changed while playing, the clip is keep playing with the new properties
|
4166
|
+
* Changing `audio_clip_url` while playing stops the current clip and plays the new one (as a new instance)
|
4136
4167
|
*/
|
4137
4168
|
/**
|
4138
4169
|
* @public
|
@@ -4148,6 +4179,10 @@ export declare interface PBAudioSource {
|
|
4148
4179
|
pitch?: number | undefined;
|
4149
4180
|
/** the clip path as given in the `files` array of the scene's manifest. */
|
4150
4181
|
audioClipUrl: string;
|
4182
|
+
/** specifies the current playback time of the clip in seconds (default: 0). */
|
4183
|
+
currentTime?: number | undefined;
|
4184
|
+
/** whether the audio plays at constant volume across the scene. */
|
4185
|
+
global?: boolean | undefined;
|
4151
4186
|
}
|
4152
4187
|
|
4153
4188
|
/**
|
package/dist/beta.d.ts
CHANGED
@@ -90,8 +90,32 @@ export declare namespace AppendValueOperation {
|
|
90
90
|
*/
|
91
91
|
export declare function areConnected(parcels: Coords[]): boolean;
|
92
92
|
|
93
|
-
|
94
|
-
|
93
|
+
export declare const AudioSource: AudioSourceComponentDefinitionExtended;
|
94
|
+
|
95
|
+
/**
|
96
|
+
* @public
|
97
|
+
*/
|
98
|
+
export declare interface AudioSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBAudioSource> {
|
99
|
+
/**
|
100
|
+
* @public
|
101
|
+
*
|
102
|
+
* Set playing=true the sound `$name`
|
103
|
+
* @param entity - entity with AudioSource component
|
104
|
+
* @param src - the path to the sound to play
|
105
|
+
* @param resetCursor - the sound starts at 0 or continues from the current cursor position
|
106
|
+
* @returns true in successful playing, false if it doesn't find the AudioSource component
|
107
|
+
*/
|
108
|
+
playSound(entity: Entity, src: string, resetCursor?: boolean): boolean;
|
109
|
+
/**
|
110
|
+
* @public
|
111
|
+
*
|
112
|
+
* Set playing=false all sounds
|
113
|
+
* @param entity - entity with AudioSource component
|
114
|
+
* @param resetCursor - the sound stops at 0 or at the current cursor position
|
115
|
+
* @returns true in successful stopping, false if it doesn't find the AudioSource component
|
116
|
+
*/
|
117
|
+
stopSound(entity: Entity, resetCursor?: boolean): boolean;
|
118
|
+
}
|
95
119
|
|
96
120
|
/** @public */
|
97
121
|
export declare const AudioStream: LastWriteWinElementSetComponentDefinition<PBAudioStream>;
|
@@ -4105,6 +4129,13 @@ export declare namespace PBAnimator {
|
|
4105
4129
|
* Note that the `audio_clip_url` is not actually a URL, but rather the path of a file bundled with
|
4106
4130
|
* the scene and declared in its manifest. The name was chosen because the URL use-case will
|
4107
4131
|
* eventually be supported.
|
4132
|
+
*
|
4133
|
+
* `playing=true` when it's previously `playing=true`
|
4134
|
+
* a) if clip is playing and `current_time` is NOT SET, the clip remains in the current `current_time`
|
4135
|
+
* b) if clip is stopped or `current_time` is set, the clip is played from the `current_time` (if set) or from the beginning
|
4136
|
+
*
|
4137
|
+
* If other property (volume, loop, pitch) is changed while playing, the clip is keep playing with the new properties
|
4138
|
+
* Changing `audio_clip_url` while playing stops the current clip and plays the new one (as a new instance)
|
4108
4139
|
*/
|
4109
4140
|
/**
|
4110
4141
|
* @public
|
@@ -4120,6 +4151,10 @@ export declare interface PBAudioSource {
|
|
4120
4151
|
pitch?: number | undefined;
|
4121
4152
|
/** the clip path as given in the `files` array of the scene's manifest. */
|
4122
4153
|
audioClipUrl: string;
|
4154
|
+
/** specifies the current playback time of the clip in seconds (default: 0). */
|
4155
|
+
currentTime?: number | undefined;
|
4156
|
+
/** whether the audio plays at constant volume across the scene. */
|
4157
|
+
global?: boolean | undefined;
|
4123
4158
|
}
|
4124
4159
|
|
4125
4160
|
/**
|
package/dist/index.bundled.d.ts
CHANGED
@@ -90,8 +90,32 @@ export declare namespace AppendValueOperation {
|
|
90
90
|
*/
|
91
91
|
export declare function areConnected(parcels: Coords[]): boolean;
|
92
92
|
|
93
|
-
|
94
|
-
|
93
|
+
export declare const AudioSource: AudioSourceComponentDefinitionExtended;
|
94
|
+
|
95
|
+
/**
|
96
|
+
* @public
|
97
|
+
*/
|
98
|
+
export declare interface AudioSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBAudioSource> {
|
99
|
+
/**
|
100
|
+
* @public
|
101
|
+
*
|
102
|
+
* Set playing=true the sound `$name`
|
103
|
+
* @param entity - entity with AudioSource component
|
104
|
+
* @param src - the path to the sound to play
|
105
|
+
* @param resetCursor - the sound starts at 0 or continues from the current cursor position
|
106
|
+
* @returns true in successful playing, false if it doesn't find the AudioSource component
|
107
|
+
*/
|
108
|
+
playSound(entity: Entity, src: string, resetCursor?: boolean): boolean;
|
109
|
+
/**
|
110
|
+
* @public
|
111
|
+
*
|
112
|
+
* Set playing=false all sounds
|
113
|
+
* @param entity - entity with AudioSource component
|
114
|
+
* @param resetCursor - the sound stops at 0 or at the current cursor position
|
115
|
+
* @returns true in successful stopping, false if it doesn't find the AudioSource component
|
116
|
+
*/
|
117
|
+
stopSound(entity: Entity, resetCursor?: boolean): boolean;
|
118
|
+
}
|
95
119
|
|
96
120
|
/** @public */
|
97
121
|
export declare const AudioStream: LastWriteWinElementSetComponentDefinition<PBAudioStream>;
|
@@ -4105,6 +4129,13 @@ export declare namespace PBAnimator {
|
|
4105
4129
|
* Note that the `audio_clip_url` is not actually a URL, but rather the path of a file bundled with
|
4106
4130
|
* the scene and declared in its manifest. The name was chosen because the URL use-case will
|
4107
4131
|
* eventually be supported.
|
4132
|
+
*
|
4133
|
+
* `playing=true` when it's previously `playing=true`
|
4134
|
+
* a) if clip is playing and `current_time` is NOT SET, the clip remains in the current `current_time`
|
4135
|
+
* b) if clip is stopped or `current_time` is set, the clip is played from the `current_time` (if set) or from the beginning
|
4136
|
+
*
|
4137
|
+
* If other property (volume, loop, pitch) is changed while playing, the clip is keep playing with the new properties
|
4138
|
+
* Changing `audio_clip_url` while playing stops the current clip and plays the new one (as a new instance)
|
4108
4139
|
*/
|
4109
4140
|
/**
|
4110
4141
|
* @public
|
@@ -4120,6 +4151,10 @@ export declare interface PBAudioSource {
|
|
4120
4151
|
pitch?: number | undefined;
|
4121
4152
|
/** the clip path as given in the `files` array of the scene's manifest. */
|
4122
4153
|
audioClipUrl: string;
|
4154
|
+
/** specifies the current playback time of the clip in seconds (default: 0). */
|
4155
|
+
currentTime?: number | undefined;
|
4156
|
+
/** whether the audio plays at constant volume across the scene. */
|
4157
|
+
global?: boolean | undefined;
|
4123
4158
|
}
|
4124
4159
|
|
4125
4160
|
/**
|