@dcl/playground-assets 7.19.0 → 7.19.1-21592078908.commit-9452d68

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
@@ -90,6 +90,31 @@ export declare namespace AppendValueOperation {
90
90
  */
91
91
  export declare function areConnected(parcels: Coords[]): boolean;
92
92
 
93
+ /** @public */
94
+ export declare const AssetLoad: LastWriteWinElementSetComponentDefinition<PBAssetLoad>;
95
+
96
+ /** @public */
97
+ export declare const AssetLoadLoadingState: GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>;
98
+
99
+ /**
100
+ * @public
101
+ */
102
+ export declare interface AssetLoadLoadingStateSystem {
103
+ removeAssetLoadLoadingStateEntity(entity: Entity): void;
104
+ registerAssetLoadLoadingStateEntity(entity: Entity, callback: AssetLoadLoadingStateSystemCallback): void;
105
+ }
106
+
107
+ /**
108
+ * @public
109
+ * Register callback functions to a particular entity on asset pre-load events.
110
+ */
111
+ export declare const assetLoadLoadingStateSystem: AssetLoadLoadingStateSystem;
112
+
113
+ /**
114
+ * @public
115
+ */
116
+ export declare type AssetLoadLoadingStateSystemCallback = (event: DeepReadonlyObject<PBAssetLoadLoadingState>) => void;
117
+
93
118
  /** @public */
94
119
  export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
95
120
 
@@ -1294,6 +1319,8 @@ export declare type ComponentDefinition<T> = LastWriteWinElementSetComponentDefi
1294
1319
  /** public */
1295
1320
  export declare const componentDefinitionByName: {
1296
1321
  "core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
1322
+ "core::AssetLoad": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
1323
+ "core::AssetLoadLoadingState": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
1297
1324
  "core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
1298
1325
  "core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
1299
1326
  "core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
@@ -4321,6 +4348,47 @@ export declare namespace PBAnimator {
4321
4348
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAnimator;
4322
4349
  }
4323
4350
 
4351
+ /** AssetLoad component allows an entity to request the pre-loading of one or more assets by the renderer. */
4352
+ /**
4353
+ * @public
4354
+ */
4355
+ export declare interface PBAssetLoad {
4356
+ assets: string[];
4357
+ }
4358
+
4359
+ /**
4360
+ * @public
4361
+ */
4362
+ export declare namespace PBAssetLoad {
4363
+ export function encode(message: PBAssetLoad, writer?: _m0.Writer): _m0.Writer;
4364
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAssetLoad;
4365
+ }
4366
+
4367
+ /**
4368
+ * AssetLoadLoadingState is set by the engine and provides information about
4369
+ * the current state of the AssetLoad of an entity.
4370
+ * The renderer appends a new object of this in each command, there can be many commands per frames
4371
+ */
4372
+ /**
4373
+ * @public
4374
+ */
4375
+ export declare interface PBAssetLoadLoadingState {
4376
+ /** current loading state */
4377
+ currentState: LoadingState;
4378
+ /** the asset being loaded (asset's scene path) */
4379
+ asset: string;
4380
+ /** monotonic counter */
4381
+ timestamp: number;
4382
+ }
4383
+
4384
+ /**
4385
+ * @public
4386
+ */
4387
+ export declare namespace PBAssetLoadLoadingState {
4388
+ export function encode(message: PBAssetLoadLoadingState, writer?: _m0.Writer): _m0.Writer;
4389
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAssetLoadLoadingState;
4390
+ }
4391
+
4324
4392
  /**
4325
4393
  * @public
4326
4394
  */
@@ -7220,7 +7288,7 @@ export declare namespace ReactEcs {
7220
7288
  export type EffectHook = (effect: EffectCallback, deps?: DependencyList) => void;
7221
7289
  const useEffect: EffectHook;
7222
7290
  const useState: StateHook;
7223
- {};
7291
+ export {};
7224
7292
  }
7225
7293
 
7226
7294
  /**
package/dist/beta.d.ts CHANGED
@@ -90,6 +90,31 @@ export declare namespace AppendValueOperation {
90
90
  */
91
91
  export declare function areConnected(parcels: Coords[]): boolean;
92
92
 
93
+ /** @public */
94
+ export declare const AssetLoad: LastWriteWinElementSetComponentDefinition<PBAssetLoad>;
95
+
96
+ /** @public */
97
+ export declare const AssetLoadLoadingState: GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>;
98
+
99
+ /**
100
+ * @public
101
+ */
102
+ export declare interface AssetLoadLoadingStateSystem {
103
+ removeAssetLoadLoadingStateEntity(entity: Entity): void;
104
+ registerAssetLoadLoadingStateEntity(entity: Entity, callback: AssetLoadLoadingStateSystemCallback): void;
105
+ }
106
+
107
+ /**
108
+ * @public
109
+ * Register callback functions to a particular entity on asset pre-load events.
110
+ */
111
+ export declare const assetLoadLoadingStateSystem: AssetLoadLoadingStateSystem;
112
+
113
+ /**
114
+ * @public
115
+ */
116
+ export declare type AssetLoadLoadingStateSystemCallback = (event: DeepReadonlyObject<PBAssetLoadLoadingState>) => void;
117
+
93
118
  /** @public */
94
119
  export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
95
120
 
@@ -1294,6 +1319,8 @@ export declare type ComponentDefinition<T> = LastWriteWinElementSetComponentDefi
1294
1319
  /** public */
1295
1320
  export declare const componentDefinitionByName: {
1296
1321
  "core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
1322
+ "core::AssetLoad": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
1323
+ "core::AssetLoadLoadingState": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
1297
1324
  "core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
1298
1325
  "core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
1299
1326
  "core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
@@ -4293,6 +4320,47 @@ export declare namespace PBAnimator {
4293
4320
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAnimator;
4294
4321
  }
4295
4322
 
4323
+ /** AssetLoad component allows an entity to request the pre-loading of one or more assets by the renderer. */
4324
+ /**
4325
+ * @public
4326
+ */
4327
+ export declare interface PBAssetLoad {
4328
+ assets: string[];
4329
+ }
4330
+
4331
+ /**
4332
+ * @public
4333
+ */
4334
+ export declare namespace PBAssetLoad {
4335
+ export function encode(message: PBAssetLoad, writer?: _m0.Writer): _m0.Writer;
4336
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAssetLoad;
4337
+ }
4338
+
4339
+ /**
4340
+ * AssetLoadLoadingState is set by the engine and provides information about
4341
+ * the current state of the AssetLoad of an entity.
4342
+ * The renderer appends a new object of this in each command, there can be many commands per frames
4343
+ */
4344
+ /**
4345
+ * @public
4346
+ */
4347
+ export declare interface PBAssetLoadLoadingState {
4348
+ /** current loading state */
4349
+ currentState: LoadingState;
4350
+ /** the asset being loaded (asset's scene path) */
4351
+ asset: string;
4352
+ /** monotonic counter */
4353
+ timestamp: number;
4354
+ }
4355
+
4356
+ /**
4357
+ * @public
4358
+ */
4359
+ export declare namespace PBAssetLoadLoadingState {
4360
+ export function encode(message: PBAssetLoadLoadingState, writer?: _m0.Writer): _m0.Writer;
4361
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAssetLoadLoadingState;
4362
+ }
4363
+
4296
4364
  /**
4297
4365
  * @public
4298
4366
  */
@@ -7192,7 +7260,7 @@ export declare namespace ReactEcs {
7192
7260
  export type EffectHook = (effect: EffectCallback, deps?: DependencyList) => void;
7193
7261
  const useEffect: EffectHook;
7194
7262
  const useState: StateHook;
7195
- {};
7263
+ export {};
7196
7264
  }
7197
7265
 
7198
7266
  /**
@@ -90,6 +90,31 @@ export declare namespace AppendValueOperation {
90
90
  */
91
91
  export declare function areConnected(parcels: Coords[]): boolean;
92
92
 
93
+ /** @public */
94
+ export declare const AssetLoad: LastWriteWinElementSetComponentDefinition<PBAssetLoad>;
95
+
96
+ /** @public */
97
+ export declare const AssetLoadLoadingState: GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>;
98
+
99
+ /**
100
+ * @public
101
+ */
102
+ export declare interface AssetLoadLoadingStateSystem {
103
+ removeAssetLoadLoadingStateEntity(entity: Entity): void;
104
+ registerAssetLoadLoadingStateEntity(entity: Entity, callback: AssetLoadLoadingStateSystemCallback): void;
105
+ }
106
+
107
+ /**
108
+ * @public
109
+ * Register callback functions to a particular entity on asset pre-load events.
110
+ */
111
+ export declare const assetLoadLoadingStateSystem: AssetLoadLoadingStateSystem;
112
+
113
+ /**
114
+ * @public
115
+ */
116
+ export declare type AssetLoadLoadingStateSystemCallback = (event: DeepReadonlyObject<PBAssetLoadLoadingState>) => void;
117
+
93
118
  /** @public */
94
119
  export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
95
120
 
@@ -1294,6 +1319,8 @@ export declare type ComponentDefinition<T> = LastWriteWinElementSetComponentDefi
1294
1319
  /** public */
1295
1320
  export declare const componentDefinitionByName: {
1296
1321
  "core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
1322
+ "core::AssetLoad": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
1323
+ "core::AssetLoadLoadingState": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
1297
1324
  "core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
1298
1325
  "core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
1299
1326
  "core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
@@ -4293,6 +4320,47 @@ export declare namespace PBAnimator {
4293
4320
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAnimator;
4294
4321
  }
4295
4322
 
4323
+ /** AssetLoad component allows an entity to request the pre-loading of one or more assets by the renderer. */
4324
+ /**
4325
+ * @public
4326
+ */
4327
+ export declare interface PBAssetLoad {
4328
+ assets: string[];
4329
+ }
4330
+
4331
+ /**
4332
+ * @public
4333
+ */
4334
+ export declare namespace PBAssetLoad {
4335
+ export function encode(message: PBAssetLoad, writer?: _m0.Writer): _m0.Writer;
4336
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAssetLoad;
4337
+ }
4338
+
4339
+ /**
4340
+ * AssetLoadLoadingState is set by the engine and provides information about
4341
+ * the current state of the AssetLoad of an entity.
4342
+ * The renderer appends a new object of this in each command, there can be many commands per frames
4343
+ */
4344
+ /**
4345
+ * @public
4346
+ */
4347
+ export declare interface PBAssetLoadLoadingState {
4348
+ /** current loading state */
4349
+ currentState: LoadingState;
4350
+ /** the asset being loaded (asset's scene path) */
4351
+ asset: string;
4352
+ /** monotonic counter */
4353
+ timestamp: number;
4354
+ }
4355
+
4356
+ /**
4357
+ * @public
4358
+ */
4359
+ export declare namespace PBAssetLoadLoadingState {
4360
+ export function encode(message: PBAssetLoadLoadingState, writer?: _m0.Writer): _m0.Writer;
4361
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAssetLoadLoadingState;
4362
+ }
4363
+
4296
4364
  /**
4297
4365
  * @public
4298
4366
  */
@@ -7192,7 +7260,7 @@ export declare namespace ReactEcs {
7192
7260
  export type EffectHook = (effect: EffectCallback, deps?: DependencyList) => void;
7193
7261
  const useEffect: EffectHook;
7194
7262
  const useState: StateHook;
7195
- {};
7263
+ export {};
7196
7264
  }
7197
7265
 
7198
7266
  /**