@dcl/playground-assets 7.24.1-27294863236.commit-bff98c4 → 7.24.1-27387182535.commit-de44c20

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 CHANGED
@@ -182,11 +182,13 @@ export declare interface AudioSourceComponentDefinitionExtended extends LastWrit
182
182
  /**
183
183
  * @public
184
184
  *
185
- * Set playing=true the sound `$name`
186
- * @param entity - entity with AudioSource component
185
+ * Play the sound `src` on the given entity. Creates the AudioSource component
186
+ * if it does not yet exist. Always emits a CRDT PUT, so repeated calls with
187
+ * identical parameters reliably retrigger playback.
188
+ * @param entity - target entity (AudioSource will be created if missing)
187
189
  * @param src - the path to the sound to play
188
190
  * @param resetCursor - the sound starts at 0 or continues from the current cursor position
189
- * @returns true in successful playing, false if it doesn't find the AudioSource component
191
+ * @returns always true; retained for backwards compatibility
190
192
  */
191
193
  playSound(entity: Entity, src: string, resetCursor?: boolean): boolean;
192
194
  /**
package/dist/beta.d.ts CHANGED
@@ -182,11 +182,13 @@ export declare interface AudioSourceComponentDefinitionExtended extends LastWrit
182
182
  /**
183
183
  * @public
184
184
  *
185
- * Set playing=true the sound `$name`
186
- * @param entity - entity with AudioSource component
185
+ * Play the sound `src` on the given entity. Creates the AudioSource component
186
+ * if it does not yet exist. Always emits a CRDT PUT, so repeated calls with
187
+ * identical parameters reliably retrigger playback.
188
+ * @param entity - target entity (AudioSource will be created if missing)
187
189
  * @param src - the path to the sound to play
188
190
  * @param resetCursor - the sound starts at 0 or continues from the current cursor position
189
- * @returns true in successful playing, false if it doesn't find the AudioSource component
191
+ * @returns always true; retained for backwards compatibility
190
192
  */
191
193
  playSound(entity: Entity, src: string, resetCursor?: boolean): boolean;
192
194
  /**
@@ -182,11 +182,13 @@ export declare interface AudioSourceComponentDefinitionExtended extends LastWrit
182
182
  /**
183
183
  * @public
184
184
  *
185
- * Set playing=true the sound `$name`
186
- * @param entity - entity with AudioSource component
185
+ * Play the sound `src` on the given entity. Creates the AudioSource component
186
+ * if it does not yet exist. Always emits a CRDT PUT, so repeated calls with
187
+ * identical parameters reliably retrigger playback.
188
+ * @param entity - target entity (AudioSource will be created if missing)
187
189
  * @param src - the path to the sound to play
188
190
  * @param resetCursor - the sound starts at 0 or continues from the current cursor position
189
- * @returns true in successful playing, false if it doesn't find the AudioSource component
191
+ * @returns always true; retained for backwards compatibility
190
192
  */
191
193
  playSound(entity: Entity, src: string, resetCursor?: boolean): boolean;
192
194
  /**