@dcl/playground-assets 7.4.4 → 7.4.5-8055633679.commit-2c5f6a7

Sign up to get free protection for your applications and to get access to all the features.
package/dist/beta.d.ts CHANGED
@@ -1451,6 +1451,25 @@ export declare function createEntityContainer(opts?: {
1451
1451
  reservedStaticEntities: number;
1452
1452
  }): IEntityContainer;
1453
1453
 
1454
+ /**
1455
+ * This module is exposed by the sdk via `@dcl/sdk/etherum-provider`
1456
+ *
1457
+
1458
+ * @example
1459
+ * ```tsx
1460
+ * import { createEthereumProvider } from '@dcl/sdk/ethereum-provider'
1461
+ * import { ethers } from 'ethers'
1462
+
1463
+ * const provider = new ethers.providers.Web3Provider(createEthereumProvider() as any)
1464
+ * ```
1465
+ *
1466
+ * @module Etherum Provider
1467
+ *
1468
+ */
1469
+ /**
1470
+ * Etherum Provider
1471
+ * @public
1472
+ */
1454
1473
  export declare function createEthereumProvider(): {
1455
1474
  send(message: RPCSendableMessage, callback?: ((error: Error | null, result?: any) => void) | undefined): void;
1456
1475
  sendAsync(message: RPCSendableMessage, callback: (error: Error | null, result?: any) => void): void;
@@ -1707,7 +1726,9 @@ export declare function Engine(options?: IEngineOptions): IEngine;
1707
1726
  */
1708
1727
  export declare const engine: IEngine;
1709
1728
 
1729
+ /** @public */
1710
1730
  export declare type EngineEvent<T extends IEventNames = IEventNames, V = IEvents[T]> = {
1731
+ /** eventName */
1711
1732
  type: T;
1712
1733
  data: Readonly<V>;
1713
1734
  };
@@ -1884,6 +1905,7 @@ export declare function getComponentEntityTree<T>(engine: Pick<IEngine, 'getEnti
1884
1905
  */
1885
1906
  export declare function getCompositeRootComponent(engine: IEngine): LastWriteWinElementSetComponentDefinition<CompositeRootType>;
1886
1907
 
1908
+ /** @public */
1887
1909
  export declare type GizmoDragEndEvent = {
1888
1910
  type: 'gizmoDragEnded';
1889
1911
  transforms: Array<{
@@ -1894,6 +1916,7 @@ export declare type GizmoDragEndEvent = {
1894
1916
  }>;
1895
1917
  };
1896
1918
 
1919
+ /** @public */
1897
1920
  export declare type GizmoSelectedEvent = {
1898
1921
  type: 'gizmoSelected';
1899
1922
  gizmoType: 'MOVE' | 'ROTATE' | 'SCALE' | 'NONE';
@@ -1906,7 +1929,12 @@ export declare type GlobalDirectionRaycastSystemOptions = {
1906
1929
  direction?: PBVector3;
1907
1930
  };
1908
1931
 
1932
+ /** @public */
1909
1933
  export declare type GlobalInputEventResult = InputEventResult & {
1934
+ /**
1935
+ * DOWN = 0,
1936
+ * UP = 1
1937
+ */
1910
1938
  type: 0 | 1;
1911
1939
  };
1912
1940
 
@@ -2147,79 +2175,199 @@ export declare type IEntityContainer = {
2147
2175
  updateUsedEntity(entity: Entity): boolean;
2148
2176
  };
2149
2177
 
2178
+ /** @public */
2150
2179
  export declare type IEventNames = keyof IEvents;
2151
2180
 
2181
+ /**
2182
+ * @public
2183
+ * Note: Don't use `on` prefix for IEvents to avoid redundancy with `event.on("onEventName")` syntax.
2184
+ */
2152
2185
  export declare interface IEvents {
2186
+ /**
2187
+ * `positionChanged` is triggered when the position of the camera changes
2188
+ * This event is throttled to 10 times per second.
2189
+ */
2153
2190
  positionChanged: {
2191
+ /** Camera position relative to the base parcel of the scene */
2154
2192
  position: Vector3Type;
2193
+ /** Camera position, this is a absolute world position */
2155
2194
  cameraPosition: Vector3Type;
2195
+ /** Eye height, in meters. */
2156
2196
  playerHeight: number;
2157
2197
  };
2198
+ /**
2199
+ * `rotationChanged` is triggered when the rotation of the camera changes.
2200
+ * This event is throttled to 10 times per second.
2201
+ */
2158
2202
  rotationChanged: {
2203
+ /** Degree vector. Same as entities */
2159
2204
  rotation: Vector3Type;
2205
+ /** Rotation quaternion, useful in some scenarios. */
2160
2206
  quaternion: QuaternionType;
2161
2207
  };
2208
+ /**
2209
+ * `cameraModeChanged` is triggered when the user changes the camera mode
2210
+ */
2162
2211
  cameraModeChanged: {
2212
+ /**
2213
+ * FIRST_PERSON = 0,
2214
+ * THIRD_PERSON = 1,
2215
+ * FREE_CAMERA = 2
2216
+ */
2163
2217
  cameraMode: 0 | 1 | 2;
2164
2218
  };
2219
+ /**
2220
+ * `idleStateChanged` is triggered when the user not moves for a defined period of time
2221
+ */
2165
2222
  idleStateChanged: {
2166
2223
  isIdle: boolean;
2167
2224
  };
2168
2225
  playerExpression: {
2169
2226
  expressionId: string;
2170
2227
  };
2228
+ /**
2229
+ * `pointerUp` is triggered when the user releases an input pointer.
2230
+ * It could be a VR controller, a touch screen or the mouse.
2231
+ */
2171
2232
  pointerUp: InputEventResult;
2233
+ /**
2234
+ * `pointerDown` is triggered when the user press an input pointer.
2235
+ * It could be a VR controller, a touch screen or the mouse.
2236
+ */
2172
2237
  pointerDown: InputEventResult;
2238
+ /**
2239
+ * `pointerEvent` is triggered when the user press or releases an input pointer.
2240
+ * It could be a VR controller, a touch screen or the mouse.
2241
+ *
2242
+ * @deprecated use actionButtonEvent instead
2243
+ */
2173
2244
  pointerEvent: GlobalInputEventResult;
2245
+ /**
2246
+ * `actionButtonEvent` is triggered when the user press or releases an input pointer.
2247
+ * It could be a VR controller, a touch screen or the mouse.
2248
+ *
2249
+ * This event is exactly the same as `pointerEvent` but the logic in the ECS had an unsolvable
2250
+ * condition that required us to create this new event to handle more cases for new buttons.
2251
+ */
2174
2252
  actionButtonEvent: GlobalInputEventResult;
2253
+ /**
2254
+ * `raycastResponse` is triggered in response to a raycast query
2255
+ */
2175
2256
  raycastResponse: RaycastResponsePayload<any>;
2257
+ /**
2258
+ * `chatMessage` is triggered when the user sends a message through chat entity.
2259
+ */
2176
2260
  chatMessage: {
2177
2261
  id: string;
2178
2262
  sender: string;
2179
2263
  message: string;
2180
2264
  isCommand: boolean;
2181
2265
  };
2266
+ /**
2267
+ * `onChange` is triggered when an entity changes its own internal state.
2268
+ * Dispatched by the `ui-*` entities when their value is changed. It triggers a callback.
2269
+ * Notice: Only entities with ID will be listening for click events.
2270
+ */
2182
2271
  onChange: {
2183
2272
  value?: any;
2273
+ /** ID of the pointer that triggered the event */
2184
2274
  pointerId?: number;
2185
2275
  };
2276
+ /**
2277
+ * `onEnter` is triggered when the user hits the "Enter" key from the keyboard
2278
+ * Used principally by the Chat internal scene
2279
+ */
2186
2280
  onEnter: unknown;
2281
+ /**
2282
+ * `onPointerLock` is triggered when the user clicks the world canvas and the
2283
+ * pointer locks to it so the pointer moves the camera
2284
+ */
2187
2285
  onPointerLock: {
2188
2286
  locked?: boolean;
2189
2287
  };
2288
+ /**
2289
+ * `onAnimationEnd` is triggered when an animation clip gets finish
2290
+ */
2190
2291
  onAnimationEnd: {
2191
2292
  clipName: string;
2192
2293
  };
2294
+ /**
2295
+ * `onFocus` is triggered when an entity focus is active.
2296
+ * Dispatched by the `ui-input` and `ui-password` entities when the value is changed.
2297
+ * It triggers a callback.
2298
+ *
2299
+ * Notice: Only entities with ID will be listening for click events.
2300
+ */
2193
2301
  onFocus: {
2302
+ /** ID of the entitiy of the event */
2194
2303
  entityId: unknown;
2304
+ /** ID of the pointer that triggered the event */
2195
2305
  pointerId: number;
2196
2306
  };
2307
+ /**
2308
+ * `onBlur` is triggered when an entity loses its focus.
2309
+ * Dispatched by the `ui-input` and `ui-password` entities when the value is changed.
2310
+ * It triggers a callback.
2311
+ *
2312
+ * Notice: Only entities with ID will be listening for click events.
2313
+ */
2197
2314
  onBlur: {
2315
+ /** ID of the entitiy of the event */
2198
2316
  entityId: unknown;
2317
+ /** ID of the pointer that triggered the event */
2199
2318
  pointerId: number;
2200
2319
  };
2320
+ /** The onClick event is only used for UI elements */
2201
2321
  onClick: {
2202
2322
  entityId: unknown;
2203
2323
  };
2324
+ /**
2325
+ * This event gets triggered when an entity leaves the scene fences.
2326
+ */
2204
2327
  entityOutOfScene: {
2205
2328
  entityId: unknown;
2206
2329
  };
2330
+ /**
2331
+ * This event gets triggered when an entity enters the scene fences.
2332
+ */
2207
2333
  entityBackInScene: {
2208
2334
  entityId: unknown;
2209
2335
  };
2336
+ /**
2337
+ * This event gets triggered when the user enters the scene
2338
+ */
2210
2339
  onEnterScene: {
2211
2340
  userId: string;
2212
2341
  };
2342
+ /**
2343
+ * This event gets triggered when the user leaves the scene
2344
+ */
2213
2345
  onLeaveScene: {
2214
2346
  userId: string;
2215
2347
  };
2348
+ /**
2349
+ * This event gets triggered after receiving a comms message.
2350
+ */
2216
2351
  comms: {
2217
2352
  sender: string;
2218
2353
  message: string;
2219
2354
  };
2355
+ /**
2356
+ * This is triggered once the scene should start.
2357
+ */
2220
2358
  sceneStart: unknown;
2359
+ /**
2360
+ * This is triggered once the builder scene is loaded.
2361
+ */
2221
2362
  builderSceneStart: unknown;
2363
+ /**
2364
+ * This is triggered once the builder scene is unloaded.
2365
+ */
2222
2366
  builderSceneUnloaded: unknown;
2367
+ /**
2368
+ * After checking entities outside the fences, if any is outside, this event
2369
+ * will be triggered with all the entities outside the scene.
2370
+ */
2223
2371
  entitiesOutOfBoundaries: {
2224
2372
  entities: string[];
2225
2373
  };
@@ -2238,6 +2386,7 @@ export declare interface IEvents {
2238
2386
  given: Record<string, number>;
2239
2387
  limit: Record<string, number>;
2240
2388
  };
2389
+ /** For gizmos */
2241
2390
  gizmoEvent: GizmoDragEndEvent | GizmoSelectedEvent;
2242
2391
  externalAction: {
2243
2392
  type: string;
@@ -2247,29 +2396,38 @@ export declare interface IEvents {
2247
2396
  type: string;
2248
2397
  payload: any;
2249
2398
  };
2399
+ /** This is triggered at least for each videoStatus change */
2250
2400
  videoEvent: {
2251
2401
  componentId: string;
2252
2402
  videoClipId: string;
2403
+ /** Status, can be NONE = 0, ERROR = 1, LOADING = 2, READY = 3, PLAYING = 4,BUFFERING = 5 */
2253
2404
  videoStatus: number;
2405
+ /** Current offset position in seconds */
2254
2406
  currentOffset: number;
2407
+ /** Video length in seconds. Can be -1 */
2255
2408
  totalVideoLength: number;
2256
2409
  };
2410
+ /** This is trigger everytime a profile is changed */
2257
2411
  profileChanged: {
2258
2412
  ethAddress: string;
2259
2413
  version: number;
2260
2414
  };
2415
+ /** Triggered when peer's avatar is connected and visible */
2261
2416
  playerConnected: {
2262
2417
  userId: string;
2263
2418
  };
2419
+ /** Triggered when peer disconnect and/or it avatar is set invisible by comms */
2264
2420
  playerDisconnected: {
2265
2421
  userId: string;
2266
2422
  };
2423
+ /** Triggered when current realm or island changes */
2267
2424
  onRealmChanged: {
2268
2425
  domain: string;
2269
2426
  room: string;
2270
2427
  serverName: string;
2271
2428
  displayName: string;
2272
2429
  };
2430
+ /** Triggered when other player's avatar is clicked */
2273
2431
  playerClicked: {
2274
2432
  userId: string;
2275
2433
  ray: {
@@ -2278,7 +2436,9 @@ export declare interface IEvents {
2278
2436
  distance: number;
2279
2437
  };
2280
2438
  };
2439
+ /** Triggered when pointer start hovering an entities' shape */
2281
2440
  pointerHoverEnter: unknown;
2441
+ /** Triggered when pointer stop hovering an entities' shape */
2282
2442
  pointerHoverExit: unknown;
2283
2443
  }
2284
2444
 
@@ -2378,16 +2538,27 @@ export declare const enum InputAction {
2378
2538
  IA_ACTION_6 = 13
2379
2539
  }
2380
2540
 
2541
+ /** @public */
2381
2542
  export declare type InputEventResult = {
2543
+ /** Origin of the ray, relative to the scene */
2382
2544
  origin: Vector3Type;
2545
+ /** Direction vector of the ray (normalized) */
2383
2546
  direction: Vector3Type;
2547
+ /** ID of the pointer that triggered the event */
2384
2548
  buttonId: number;
2549
+ /** Does this pointer event hit any object? */
2385
2550
  hit?: {
2551
+ /** Length of the ray */
2386
2552
  length: number;
2553
+ /** If the ray hits a mesh the intersection point will be this */
2387
2554
  hitPoint: Vector3Type;
2555
+ /** If the mesh has a name, it will be assigned to meshName */
2388
2556
  meshName: string;
2557
+ /** Normal of the hit */
2389
2558
  normal: Vector3Type;
2559
+ /** Normal of the hit, in world space */
2390
2560
  worldNormal: Vector3Type;
2561
+ /** Hit entity ID if any */
2391
2562
  entityId: unknown;
2392
2563
  };
2393
2564
  };
@@ -3457,14 +3628,7 @@ export declare interface MeshRendererComponentDefinitionExtended extends LastWri
3457
3628
  setSphere(entity: Entity): void;
3458
3629
  }
3459
3630
 
3460
- export declare class MessageBus {
3461
- private messageQueue;
3462
- private flushing;
3463
- constructor();
3464
- on(message: string, callback: (value: any, sender: string) => void): Observer<IEvents['comms']>;
3465
- emit(message: string, payload: Record<any, any>): void;
3466
- private flush;
3467
- }
3631
+ /* Excluded from this release type: MessageBus */
3468
3632
 
3469
3633
  /**
3470
3634
  * @public
@@ -3528,42 +3692,198 @@ export declare const enum NftFrameType {
3528
3692
  /** @public */
3529
3693
  export declare const NftShape: LastWriteWinElementSetComponentDefinition<PBNftShape>;
3530
3694
 
3695
+ /**
3696
+ * The Observable class is a simple implementation of the Observable pattern.
3697
+ *
3698
+ * There's one slight particularity though: a given Observable can notify its observer using a particular mask value, only the Observers registered with this mask value will be notified.
3699
+ * This enable a more fine grained execution without having to rely on multiple different Observable objects.
3700
+ * For instance you may have a given Observable that have four different types of notifications: Move (mask = 0x01), Stop (mask = 0x02), Turn Right (mask = 0X04), Turn Left (mask = 0X08).
3701
+ * A given observer can register itself with only Move and Stop (mask = 0x03), then it will only be notified when one of these two occurs and will never be for Turn Left/Right.
3702
+ *
3703
+ * @public
3704
+ * @deprecated This function is an inheritance of ECS6, it's here temporary for the feature parity, please read the news and docs to know how handle when it's removed
3705
+ */
3531
3706
  export declare class Observable<T> {
3532
3707
  private _observers;
3533
3708
  private _eventState;
3534
3709
  private _onObserverAdded;
3710
+ /**
3711
+ * Creates a new observable
3712
+ * @param onObserverAdded - defines a callback to call when a new observer is added
3713
+ */
3535
3714
  constructor(onObserverAdded?: (observer: Observer<T>) => void);
3715
+ /**
3716
+ * Create a new Observer with the specified callback
3717
+ * @param callback - the callback that will be executed for that Observer
3718
+ * @param mask - the mask used to filter observers
3719
+ * @param insertFirst - if true the callback will be inserted at the first position, hence executed before the others ones. If false (default behavior) the callback will be inserted at the last position, executed after all the others already present.
3720
+ * @param scope - optional scope for the callback to be called from
3721
+ * @param unregisterOnFirstCall - defines if the observer as to be unregistered after the next notification
3722
+ * @returns the new observer created for the callback
3723
+ */
3536
3724
  add(callback: (eventData: T, eventState: ObserverEventState) => void, mask?: number, insertFirst?: boolean, scope?: any, unregisterOnFirstCall?: boolean): null | Observer<T>;
3725
+ /**
3726
+ * Create a new Observer with the specified callback and unregisters after the next notification
3727
+ * @param callback - the callback that will be executed for that Observer
3728
+ * @returns the new observer created for the callback
3729
+ */
3537
3730
  addOnce(callback: (eventData: T, eventState: ObserverEventState) => void): null | Observer<T>;
3731
+ /**
3732
+ * Remove an Observer from the Observable object
3733
+ * @param observer - the instance of the Observer to remove
3734
+ * @returns false if it doesn't belong to this Observable
3735
+ */
3538
3736
  remove(observer: null | Observer<T>): boolean;
3737
+ /**
3738
+ * Remove a callback from the Observable object
3739
+ * @param callback - the callback to remove
3740
+ * @param scope - optional scope. If used only the callbacks with this scope will be removed
3741
+ * @returns false if it doesn't belong to this Observable
3742
+ */
3539
3743
  removeCallback(callback: (eventData: T, eventState: ObserverEventState) => void, scope?: any): boolean;
3744
+ /**
3745
+ * Notify all Observers by calling their respective callback with the given data
3746
+ * Will return true if all observers were executed, false if an observer set skipNextObservers to true, then prevent the subsequent ones to execute
3747
+ * @param eventData - defines the data to send to all observers
3748
+ * @param mask - defines the mask of the current notification (observers with incompatible mask (ie mask & observer.mask === 0) will not be notified)
3749
+ * @param target - defines the original target of the state
3750
+ * @param currentTarget - defines the current target of the state
3751
+ * @returns false if the complete observer chain was not processed (because one observer set the skipNextObservers to true)
3752
+ */
3540
3753
  notifyObservers(eventData: T, mask?: number, target?: any, currentTarget?: any): boolean;
3754
+ /**
3755
+ * Calling this will execute each callback, expecting it to be a promise or return a value.
3756
+ * If at any point in the chain one function fails, the promise will fail and the execution will not continue.
3757
+ * This is useful when a chain of events (sometimes async events) is needed to initialize a certain object
3758
+ * and it is crucial that all callbacks will be executed.
3759
+ * The order of the callbacks is kept, callbacks are not executed parallel.
3760
+ *
3761
+ * @param eventData - The data to be sent to each callback
3762
+ * @param mask - is used to filter observers defaults to -1
3763
+ * @param target - defines the callback target (see EventState)
3764
+ * @param currentTarget - defines he current object in the bubbling phase
3765
+ * @returns will return a Promise than resolves when all callbacks executed successfully.
3766
+ */
3541
3767
  notifyObserversWithPromise(eventData: T, mask?: number, target?: any, currentTarget?: any): Promise<T>;
3768
+ /**
3769
+ * Notify a specific observer
3770
+ * @param observer - defines the observer to notify
3771
+ * @param eventData - defines the data to be sent to each callback
3772
+ * @param mask - is used to filter observers defaults to -1
3773
+ */
3542
3774
  notifyObserver(observer: Observer<T>, eventData: T, mask?: number): void;
3775
+ /**
3776
+ * Gets a boolean indicating if the observable has at least one observer
3777
+ * @returns true is the Observable has at least one Observer registered
3778
+ */
3543
3779
  hasObservers(): boolean;
3780
+ /**
3781
+ * Clear the list of observers
3782
+ */
3544
3783
  clear(): void;
3784
+ /**
3785
+ * Clone the current observable
3786
+ * @returns a new observable
3787
+ */
3545
3788
  clone(): Observable<T>;
3789
+ /**
3790
+ * Does this observable handles observer registered with a given mask
3791
+ * @param mask - defines the mask to be tested
3792
+ * @returns whether or not one observer registered with the given mask is handeled
3793
+ */
3546
3794
  hasSpecificMask(mask?: number): boolean;
3547
3795
  private _deferUnregister;
3548
3796
  private _remove;
3549
3797
  }
3550
3798
 
3799
+ /**
3800
+ * Represent an Observer registered to a given Observable object.
3801
+ * @deprecated This function is an inheritance of ECS6, it's here temporary for the feature parity, please read the news and docs to know how handle when it's removed
3802
+ * @public
3803
+ */
3551
3804
  export declare class Observer<T> {
3805
+ /**
3806
+ * Defines the callback to call when the observer is notified
3807
+ */
3552
3808
  callback: (eventData: T, eventState: ObserverEventState) => void;
3809
+ /**
3810
+ * Defines the mask of the observer (used to filter notifications)
3811
+ */
3553
3812
  mask: number;
3813
+ /**
3814
+ * Defines the current scope used to restore the JS context
3815
+ */
3554
3816
  scope: any;
3817
+ /**
3818
+ * Gets or sets a property defining that the observer as to be unregistered after the next notification
3819
+ */
3555
3820
  unregisterOnNextCall: boolean;
3821
+ /** For internal usage */
3556
3822
  _willBeUnregistered: boolean;
3557
- constructor(callback: (eventData: T, eventState: ObserverEventState) => void, mask: number, scope?: any);
3823
+ /**
3824
+ * Creates a new observer
3825
+ * @param callback - defines the callback to call when the observer is notified
3826
+ * @param mask - defines the mask of the observer (used to filter notifications)
3827
+ * @param scope - defines the current scope used to restore the JS context
3828
+ */
3829
+ constructor(
3830
+ /**
3831
+ * Defines the callback to call when the observer is notified
3832
+ */
3833
+ callback: (eventData: T, eventState: ObserverEventState) => void,
3834
+ /**
3835
+ * Defines the mask of the observer (used to filter notifications)
3836
+ */
3837
+ mask: number,
3838
+ /**
3839
+ * Defines the current scope used to restore the JS context
3840
+ */
3841
+ scope?: any);
3558
3842
  }
3559
3843
 
3844
+ /**
3845
+ * A class serves as a medium between the observable and its observers
3846
+ * @deprecated This function is an inheritance of ECS6, it's here temporary for the feature parity, please read the news and docs to know how handle when it's removed
3847
+ * @public
3848
+ */
3560
3849
  export declare class ObserverEventState {
3850
+ /**
3851
+ * An Observer can set this property to true to prevent subsequent observers of being notified
3852
+ */
3561
3853
  skipNextObservers: boolean;
3854
+ /**
3855
+ * Get the mask value that were used to trigger the event corresponding to this EventState object
3856
+ */
3562
3857
  mask: number;
3858
+ /**
3859
+ * The object that originally notified the event
3860
+ */
3563
3861
  target?: any;
3862
+ /**
3863
+ * The current object in the bubbling phase
3864
+ */
3564
3865
  currentTarget?: any;
3866
+ /**
3867
+ * This will be populated with the return value of the last function that was executed.
3868
+ * If it is the first function in the callback chain it will be the event data.
3869
+ */
3565
3870
  lastReturnValue?: any;
3871
+ /**
3872
+ * Create a new EventState
3873
+ * @param mask - defines the mask associated with this state
3874
+ * @param skipNextObservers - defines a flag which will instruct the observable to skip following observers when set to true
3875
+ * @param target - defines the original target of the state
3876
+ * @param currentTarget - defines the current target of the state
3877
+ */
3566
3878
  constructor(mask: number, skipNextObservers?: boolean, target?: any, currentTarget?: any);
3879
+ /**
3880
+ * Initialize the current event state
3881
+ * @param mask - defines the mask associated with this state
3882
+ * @param skipNextObservers - defines a flag which will instruct the observable to skip following observers when set to true
3883
+ * @param target - defines the original target of the state
3884
+ * @param currentTarget - defines the current target of the state
3885
+ * @returns the current event state
3886
+ */
3567
3887
  initalize(mask: number, skipNextObservers?: boolean, target?: any, currentTarget?: any): ObserverEventState;
3568
3888
  }
3569
3889
 
@@ -3572,18 +3892,34 @@ export declare class ObserverEventState {
3572
3892
  */
3573
3893
  export declare type OnChangeFunction = (entity: Entity, operation: CrdtMessageType, component?: ComponentDefinition<any>, componentValue?: any) => void;
3574
3894
 
3895
+ /** @public
3896
+ * @deprecated This function is an inheritance of ECS6, it's here temporary for the feature parity, please read the news and docs to know how handle when it's removed.
3897
+ * @deprecated This function is an inheritance of ECS6, it's here temporary for the feature parity, please read the news and docs to know how handle when it's removed. Use onEnterSceneObservable instead. */
3575
3898
  export declare const onEnterScene: Observable<{
3576
3899
  userId: string;
3577
3900
  }>;
3578
3901
 
3902
+ /**
3903
+ * These events are triggered after your character enters the scene.
3904
+ * @public
3905
+ * @deprecated This function is an inheritance of ECS6, it's here temporary for the feature parity, please read the news and docs to know how handle when it's removed.
3906
+ */
3579
3907
  export declare const onEnterSceneObservable: Observable<{
3580
3908
  userId: string;
3581
3909
  }>;
3582
3910
 
3911
+ /** @public
3912
+ * @deprecated This function is an inheritance of ECS6, it's here temporary for the feature parity, please read the news and docs to know how handle when it's removed.
3913
+ * @deprecated This function is an inheritance of ECS6, it's here temporary for the feature parity, please read the news and docs to know how handle when it's removed. Use onLeaveSceneObservable instead. */
3583
3914
  export declare const onLeaveScene: Observable<{
3584
3915
  userId: string;
3585
3916
  }>;
3586
3917
 
3918
+ /**
3919
+ * These events are triggered after your character leaves the scene.
3920
+ * @public
3921
+ * @deprecated This function is an inheritance of ECS6, it's here temporary for the feature parity, please read the news and docs to know how handle when it's removed.
3922
+ */
3587
3923
  export declare const onLeaveSceneObservable: Observable<{
3588
3924
  userId: string;
3589
3925
  }>;
@@ -3602,6 +3938,10 @@ export declare type OnlyOptionalUndefinedTypes<T> = {
3602
3938
  [K in IncludeUndefined<T>]?: T[K];
3603
3939
  };
3604
3940
 
3941
+ /**
3942
+ * @public
3943
+ * @deprecated This function is an inheritance of ECS6, it's here temporary for the feature parity, please read the news and docs to know how handle when it's removed.
3944
+ */
3605
3945
  export declare const onPlayerClickedObservable: Observable<{
3606
3946
  userId: string;
3607
3947
  ray: {
@@ -3611,23 +3951,43 @@ export declare const onPlayerClickedObservable: Observable<{
3611
3951
  };
3612
3952
  }>;
3613
3953
 
3954
+ /**
3955
+ * @public
3956
+ * @deprecated This function is an inheritance of ECS6, it's here temporary for the feature parity, please read the news and docs to know how handle when it's removed.
3957
+ */
3614
3958
  export declare const onPlayerConnectedObservable: Observable<{
3615
3959
  userId: string;
3616
3960
  }>;
3617
3961
 
3962
+ /**
3963
+ * @public
3964
+ * @deprecated This function is an inheritance of ECS6, it's here temporary for the feature parity, please read the news and docs to know how handle when it's removed.
3965
+ */
3618
3966
  export declare const onPlayerDisconnectedObservable: Observable<{
3619
3967
  userId: string;
3620
3968
  }>;
3621
3969
 
3970
+ /**
3971
+ * @public
3972
+ * @deprecated This function is an inheritance of ECS6, it's here temporary for the feature parity, please read the news and docs to know how handle when it's removed.
3973
+ */
3622
3974
  export declare const onPlayerExpressionObservable: Observable<{
3623
3975
  expressionId: string;
3624
3976
  }>;
3625
3977
 
3978
+ /**
3979
+ * @public
3980
+ * @deprecated This function is an inheritance of ECS6, it's here temporary for the feature parity, please read the news and docs to know how handle when it's removed.
3981
+ */
3626
3982
  export declare const onProfileChanged: Observable<{
3627
3983
  ethAddress: string;
3628
3984
  version: number;
3629
3985
  }>;
3630
3986
 
3987
+ /**
3988
+ * @public
3989
+ * @deprecated This function is an inheritance of ECS6, it's here temporary for the feature parity, please read the news and docs to know how handle when it's removed.
3990
+ */
3631
3991
  export declare const onRealmChangedObservable: Observable<{
3632
3992
  domain: string;
3633
3993
  room: string;
@@ -3635,15 +3995,27 @@ export declare const onRealmChangedObservable: Observable<{
3635
3995
  displayName: string;
3636
3996
  }>;
3637
3997
 
3998
+ /**
3999
+ * This event is triggered after all the resources of the scene were loaded (models, textures, etc...)
4000
+ * @public
4001
+ * @deprecated This function is an inheritance of ECS6, it's here temporary for the feature parity, please read the news and docs to know how handle when it's removed.
4002
+ */
3638
4003
  export declare const onSceneReadyObservable: Observable<unknown>;
3639
4004
 
3640
4005
  export declare function onUpdate(deltaTime: number): Promise<void>;
3641
4006
 
4007
+ /**
4008
+ * @public
4009
+ * @deprecated This function is an inheritance of ECS6, it's here temporary for the feature parity, please read the news and docs to know how handle when it's removed.
4010
+ */
3642
4011
  export declare const onVideoEvent: Observable<{
3643
4012
  componentId: string;
3644
4013
  videoClipId: string;
4014
+ /** Status, can be NONE = 0, ERROR = 1, LOADING = 2, READY = 3, PLAYING = 4,BUFFERING = 5 */
3645
4015
  videoStatus: number;
4016
+ /** Current offset position in seconds */
3646
4017
  currentOffset: number;
4018
+ /** Video length in seconds. Can be -1 */
3647
4019
  totalVideoLength: number;
3648
4020
  }>;
3649
4021
 
@@ -5848,6 +6220,7 @@ export declare const enum RaycastQueryType {
5848
6220
  RQT_NONE = 2
5849
6221
  }
5850
6222
 
6223
+ /** @public */
5851
6224
  export declare type RaycastResponsePayload<T> = {
5852
6225
  queryId: string;
5853
6226
  queryType: string;