@dcl/playground-assets 7.4.16-8634981775.commit-0048266 → 7.4.16-8693217507.commit-f417f2c

Sign up to get free protection for your applications and to get access to all the features.
package/dist/alpha.d.ts CHANGED
@@ -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
- /** @public */
121
- export declare const AudioStream: LastWriteWinElementSetComponentDefinition<PBAudioStream>;
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 Entity is restored to its prior state when done */
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.
package/dist/beta.d.ts CHANGED
@@ -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
- /** @public */
121
- export declare const AudioStream: LastWriteWinElementSetComponentDefinition<PBAudioStream>;
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>>;
@@ -3597,6 +3616,20 @@ export declare namespace Matrix {
3597
3616
  export function toggleProjectionMatrixHandInPlace(self: MutableMatrix): void;
3598
3617
  }
3599
3618
 
3619
+ /**
3620
+ * @public
3621
+ */
3622
+ export declare const enum MediaState {
3623
+ MS_NONE = 0,
3624
+ MS_ERROR = 1,
3625
+ MS_LOADING = 2,
3626
+ MS_READY = 3,
3627
+ MS_PLAYING = 4,
3628
+ MS_BUFFERING = 5,
3629
+ MS_SEEKING = 6,
3630
+ MS_PAUSED = 7
3631
+ }
3632
+
3600
3633
  export declare const MeshCollider: MeshColliderComponentDefinitionExtended;
3601
3634
 
3602
3635
  /**
@@ -4077,13 +4110,13 @@ export declare interface PBAnimationState {
4077
4110
  clip: string;
4078
4111
  /** whether this animation is currently playing */
4079
4112
  playing?: boolean | undefined;
4080
- /** the "weight" of this animation (see below, default: 1.0) */
4113
+ /** @experimental the "weight" of this animation (see below, default: 1.0) */
4081
4114
  weight?: number | undefined;
4082
4115
  /** the playback speed (default: 1.0) */
4083
4116
  speed?: number | undefined;
4084
- /** whether the animation repeats until stopped (default: true) */
4117
+ /** whether the animation repeats (**) until is manually stopped (default: true) */
4085
4118
  loop?: boolean | undefined;
4086
- /** whether the Entity is restored to its prior state when done */
4119
+ /** whether the animation is restored to the initial state (*) when it changes from stopped to playing (default: false) */
4087
4120
  shouldReset?: boolean | undefined;
4088
4121
  }
4089
4122
 
@@ -4119,6 +4152,23 @@ export declare namespace PBAnimator {
4119
4152
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAnimator;
4120
4153
  }
4121
4154
 
4155
+ /**
4156
+ * @public
4157
+ */
4158
+ export declare interface PBAudioEvent {
4159
+ state: MediaState;
4160
+ /** monotonic counter */
4161
+ timestamp: number;
4162
+ }
4163
+
4164
+ /**
4165
+ * @public
4166
+ */
4167
+ export declare namespace PBAudioEvent {
4168
+ export function encode(message: PBAudioEvent, writer?: _m0.Writer): _m0.Writer;
4169
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioEvent;
4170
+ }
4171
+
4122
4172
  /**
4123
4173
  * The AudioSource component can play an audio clips bundled with the scene, controlling some
4124
4174
  * of the behavior.
@@ -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
- /** @public */
121
- export declare const AudioStream: LastWriteWinElementSetComponentDefinition<PBAudioStream>;
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>>;
@@ -3597,6 +3616,20 @@ export declare namespace Matrix {
3597
3616
  export function toggleProjectionMatrixHandInPlace(self: MutableMatrix): void;
3598
3617
  }
3599
3618
 
3619
+ /**
3620
+ * @public
3621
+ */
3622
+ export declare const enum MediaState {
3623
+ MS_NONE = 0,
3624
+ MS_ERROR = 1,
3625
+ MS_LOADING = 2,
3626
+ MS_READY = 3,
3627
+ MS_PLAYING = 4,
3628
+ MS_BUFFERING = 5,
3629
+ MS_SEEKING = 6,
3630
+ MS_PAUSED = 7
3631
+ }
3632
+
3600
3633
  export declare const MeshCollider: MeshColliderComponentDefinitionExtended;
3601
3634
 
3602
3635
  /**
@@ -4077,13 +4110,13 @@ export declare interface PBAnimationState {
4077
4110
  clip: string;
4078
4111
  /** whether this animation is currently playing */
4079
4112
  playing?: boolean | undefined;
4080
- /** the "weight" of this animation (see below, default: 1.0) */
4113
+ /** @experimental the "weight" of this animation (see below, default: 1.0) */
4081
4114
  weight?: number | undefined;
4082
4115
  /** the playback speed (default: 1.0) */
4083
4116
  speed?: number | undefined;
4084
- /** whether the animation repeats until stopped (default: true) */
4117
+ /** whether the animation repeats (**) until is manually stopped (default: true) */
4085
4118
  loop?: boolean | undefined;
4086
- /** whether the Entity is restored to its prior state when done */
4119
+ /** whether the animation is restored to the initial state (*) when it changes from stopped to playing (default: false) */
4087
4120
  shouldReset?: boolean | undefined;
4088
4121
  }
4089
4122
 
@@ -4119,6 +4152,23 @@ export declare namespace PBAnimator {
4119
4152
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAnimator;
4120
4153
  }
4121
4154
 
4155
+ /**
4156
+ * @public
4157
+ */
4158
+ export declare interface PBAudioEvent {
4159
+ state: MediaState;
4160
+ /** monotonic counter */
4161
+ timestamp: number;
4162
+ }
4163
+
4164
+ /**
4165
+ * @public
4166
+ */
4167
+ export declare namespace PBAudioEvent {
4168
+ export function encode(message: PBAudioEvent, writer?: _m0.Writer): _m0.Writer;
4169
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioEvent;
4170
+ }
4171
+
4122
4172
  /**
4123
4173
  * The AudioSource component can play an audio clips bundled with the scene, controlling some
4124
4174
  * of the behavior.