@dcl/playground-assets 7.25.1-31605440953.commit-08dff78 → 7.25.1-31608505224.commit-f858f90

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
@@ -173,6 +173,31 @@ export declare type AudioAnalysisView = {
173
173
  /** @public */
174
174
  export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
175
175
 
176
+ /**
177
+ * @public
178
+ */
179
+ export declare interface AudioEventsSystem {
180
+ removeAudioEventsEntity(entity: Entity): void;
181
+ registerAudioEventsEntity(entity: Entity, callback: AudioEventsSystemCallback): void;
182
+ hasAudioEventsEntity(entity: Entity): boolean;
183
+ /**
184
+ * Returns the latest state of the AudioEvent
185
+ * @param entity - Entity to retrieve the audio status
186
+ */
187
+ getAudioState(entity: Entity): DeepReadonlyObject<PBAudioEvent> | undefined;
188
+ }
189
+
190
+ /**
191
+ * @public
192
+ * Register callback functions to a particular entity on audio events.
193
+ */
194
+ export declare const audioEventsSystem: AudioEventsSystem;
195
+
196
+ /**
197
+ * @public
198
+ */
199
+ export declare type AudioEventsSystemCallback = (event: DeepReadonlyObject<PBAudioEvent>) => void;
200
+
176
201
  export declare const AudioSource: AudioSourceComponentDefinitionExtended;
177
202
 
178
203
  /**
@@ -2005,6 +2030,26 @@ export declare interface EcsElements {
2005
2030
  };
2006
2031
  }
2007
2032
 
2033
+ /** EmoteState describes the lifecycle state of an emote playback. */
2034
+ /**
2035
+ * @public
2036
+ */
2037
+ export declare const enum EmoteState {
2038
+ /**
2039
+ * ES_STARTED - ES_STARTED indicates the emote started playing.
2040
+ * This is the zero value and is used for backward compatibility — entries
2041
+ * written by older explorers (field absent) read as "started".
2042
+ */
2043
+ ES_STARTED = 0,
2044
+ /** ES_FINISHED - ES_FINISHED indicates a non-looping emote completed naturally. */
2045
+ ES_FINISHED = 1,
2046
+ /**
2047
+ * ES_INTERRUPTED - ES_INTERRUPTED indicates playback was cancelled (movement, teleport,
2048
+ * another emote superseding it, explicit stop, or scene change).
2049
+ */
2050
+ ES_INTERRUPTED = 2
2051
+ }
2052
+
2008
2053
  /**
2009
2054
  * Internal constructor of new engines, this is an internal API
2010
2055
  * @public
@@ -4839,6 +4884,11 @@ export declare interface PBAvatarEmoteCommand {
4839
4884
  /** monotonic counter */
4840
4885
  timestamp: number;
4841
4886
  mask?: AvatarMask | undefined;
4887
+ /**
4888
+ * state describes the lifecycle event for this emote entry.
4889
+ * When absent (older explorers), defaults to ES_STARTED.
4890
+ */
4891
+ state?: EmoteState | undefined;
4842
4892
  }
4843
4893
 
4844
4894
  /**
package/dist/beta.d.ts CHANGED
@@ -173,6 +173,31 @@ export declare type AudioAnalysisView = {
173
173
  /** @public */
174
174
  export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
175
175
 
176
+ /**
177
+ * @public
178
+ */
179
+ export declare interface AudioEventsSystem {
180
+ removeAudioEventsEntity(entity: Entity): void;
181
+ registerAudioEventsEntity(entity: Entity, callback: AudioEventsSystemCallback): void;
182
+ hasAudioEventsEntity(entity: Entity): boolean;
183
+ /**
184
+ * Returns the latest state of the AudioEvent
185
+ * @param entity - Entity to retrieve the audio status
186
+ */
187
+ getAudioState(entity: Entity): DeepReadonlyObject<PBAudioEvent> | undefined;
188
+ }
189
+
190
+ /**
191
+ * @public
192
+ * Register callback functions to a particular entity on audio events.
193
+ */
194
+ export declare const audioEventsSystem: AudioEventsSystem;
195
+
196
+ /**
197
+ * @public
198
+ */
199
+ export declare type AudioEventsSystemCallback = (event: DeepReadonlyObject<PBAudioEvent>) => void;
200
+
176
201
  export declare const AudioSource: AudioSourceComponentDefinitionExtended;
177
202
 
178
203
  /**
@@ -2005,6 +2030,26 @@ export declare interface EcsElements {
2005
2030
  };
2006
2031
  }
2007
2032
 
2033
+ /** EmoteState describes the lifecycle state of an emote playback. */
2034
+ /**
2035
+ * @public
2036
+ */
2037
+ export declare const enum EmoteState {
2038
+ /**
2039
+ * ES_STARTED - ES_STARTED indicates the emote started playing.
2040
+ * This is the zero value and is used for backward compatibility — entries
2041
+ * written by older explorers (field absent) read as "started".
2042
+ */
2043
+ ES_STARTED = 0,
2044
+ /** ES_FINISHED - ES_FINISHED indicates a non-looping emote completed naturally. */
2045
+ ES_FINISHED = 1,
2046
+ /**
2047
+ * ES_INTERRUPTED - ES_INTERRUPTED indicates playback was cancelled (movement, teleport,
2048
+ * another emote superseding it, explicit stop, or scene change).
2049
+ */
2050
+ ES_INTERRUPTED = 2
2051
+ }
2052
+
2008
2053
  /**
2009
2054
  * Internal constructor of new engines, this is an internal API
2010
2055
  * @public
@@ -4811,6 +4856,11 @@ export declare interface PBAvatarEmoteCommand {
4811
4856
  /** monotonic counter */
4812
4857
  timestamp: number;
4813
4858
  mask?: AvatarMask | undefined;
4859
+ /**
4860
+ * state describes the lifecycle event for this emote entry.
4861
+ * When absent (older explorers), defaults to ES_STARTED.
4862
+ */
4863
+ state?: EmoteState | undefined;
4814
4864
  }
4815
4865
 
4816
4866
  /**
@@ -173,6 +173,31 @@ export declare type AudioAnalysisView = {
173
173
  /** @public */
174
174
  export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
175
175
 
176
+ /**
177
+ * @public
178
+ */
179
+ export declare interface AudioEventsSystem {
180
+ removeAudioEventsEntity(entity: Entity): void;
181
+ registerAudioEventsEntity(entity: Entity, callback: AudioEventsSystemCallback): void;
182
+ hasAudioEventsEntity(entity: Entity): boolean;
183
+ /**
184
+ * Returns the latest state of the AudioEvent
185
+ * @param entity - Entity to retrieve the audio status
186
+ */
187
+ getAudioState(entity: Entity): DeepReadonlyObject<PBAudioEvent> | undefined;
188
+ }
189
+
190
+ /**
191
+ * @public
192
+ * Register callback functions to a particular entity on audio events.
193
+ */
194
+ export declare const audioEventsSystem: AudioEventsSystem;
195
+
196
+ /**
197
+ * @public
198
+ */
199
+ export declare type AudioEventsSystemCallback = (event: DeepReadonlyObject<PBAudioEvent>) => void;
200
+
176
201
  export declare const AudioSource: AudioSourceComponentDefinitionExtended;
177
202
 
178
203
  /**
@@ -2005,6 +2030,26 @@ export declare interface EcsElements {
2005
2030
  };
2006
2031
  }
2007
2032
 
2033
+ /** EmoteState describes the lifecycle state of an emote playback. */
2034
+ /**
2035
+ * @public
2036
+ */
2037
+ export declare const enum EmoteState {
2038
+ /**
2039
+ * ES_STARTED - ES_STARTED indicates the emote started playing.
2040
+ * This is the zero value and is used for backward compatibility — entries
2041
+ * written by older explorers (field absent) read as "started".
2042
+ */
2043
+ ES_STARTED = 0,
2044
+ /** ES_FINISHED - ES_FINISHED indicates a non-looping emote completed naturally. */
2045
+ ES_FINISHED = 1,
2046
+ /**
2047
+ * ES_INTERRUPTED - ES_INTERRUPTED indicates playback was cancelled (movement, teleport,
2048
+ * another emote superseding it, explicit stop, or scene change).
2049
+ */
2050
+ ES_INTERRUPTED = 2
2051
+ }
2052
+
2008
2053
  /**
2009
2054
  * Internal constructor of new engines, this is an internal API
2010
2055
  * @public
@@ -4811,6 +4856,11 @@ export declare interface PBAvatarEmoteCommand {
4811
4856
  /** monotonic counter */
4812
4857
  timestamp: number;
4813
4858
  mask?: AvatarMask | undefined;
4859
+ /**
4860
+ * state describes the lifecycle event for this emote entry.
4861
+ * When absent (older explorers), defaults to ES_STARTED.
4862
+ */
4863
+ state?: EmoteState | undefined;
4814
4864
  }
4815
4865
 
4816
4866
  /**