@dcl/playground-assets 7.12.3-19242573384.commit-09d14b4 → 7.12.3-19269915433.commit-cbf59ef

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
@@ -193,7 +193,8 @@ export declare const enum AvatarControlType {
193
193
  /** @public */
194
194
  export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>;
195
195
 
196
- export declare const AvatarEquippedData: AvatarEquippedDataComponentDefinitionExtended;
196
+ /** @public */
197
+ export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
197
198
 
198
199
  /**
199
200
  * @public
@@ -249,7 +250,8 @@ export declare namespace AvatarMovementSettings {
249
250
  export function decode(input: _m0.Reader | Uint8Array, length?: number): AvatarMovementSettings;
250
251
  }
251
252
 
252
- export declare const AvatarShape: AvatarShapeComponentDefinitionExtended;
253
+ /** @public */
254
+ export declare const AvatarShape: LastWriteWinElementSetComponentDefinition<PBAvatarShape>;
253
255
 
254
256
  /**
255
257
  * @public
@@ -1434,7 +1436,7 @@ export declare const componentDefinitionByName: {
1434
1436
  "core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
1435
1437
  "core::TextureCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextureCamera>>;
1436
1438
  "core::TriggerArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTriggerArea>>;
1437
- "core::TriggerAreaResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTriggerAreaResult>>;
1439
+ "core::TriggerAreaResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>>;
1438
1440
  "core::Tween": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
1439
1441
  "core::TweenSequence": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenSequence>>;
1440
1442
  "core::TweenState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenState>>;
@@ -2394,6 +2396,13 @@ export declare interface IEngine {
2394
2396
  * @typeParam T - The type of the entity name value
2395
2397
  */
2396
2398
  getEntityByName<T = never, K = T>(value: K & (T extends never ? never : string)): Entity;
2399
+ /**
2400
+ * @public
2401
+ * Get all entities that have a specific tag in their Tag component
2402
+ * @param tag - Tag to search
2403
+ * @returns Iterator of entities that have the given tag
2404
+ */
2405
+ getEntitiesByTag(tagName: string): Iterable<Entity>;
2397
2406
  /**
2398
2407
  * @public
2399
2408
  * @param deltaTime - deltaTime in seconds
@@ -2831,8 +2840,31 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2831
2840
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2832
2841
  }
2833
2842
 
2834
- /** @public */
2835
- export declare const LightSource: LastWriteWinElementSetComponentDefinition<PBLightSource>;
2843
+ export declare const LightSource: LightSourceComponentDefinitionExtended;
2844
+
2845
+ /**
2846
+ * @public
2847
+ */
2848
+ export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
2849
+ /**
2850
+ * LightSource helper with constructor
2851
+ */
2852
+ Type: LightSourceHelper;
2853
+ }
2854
+
2855
+ /**
2856
+ * @public
2857
+ */
2858
+ export declare interface LightSourceHelper {
2859
+ /**
2860
+ * @returns a Light Source type
2861
+ */
2862
+ Point: (point: PBLightSource_Point) => PBLightSource['type'];
2863
+ /**
2864
+ * @returns a Light Source type
2865
+ */
2866
+ Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
2867
+ }
2836
2868
 
2837
2869
  /**
2838
2870
  * User key event Listeners
@@ -8078,6 +8110,33 @@ export declare type SystemItem = {
8078
8110
 
8079
8111
  export declare const SYSTEMS_REGULAR_PRIORITY = 100000;
8080
8112
 
8113
+ export declare const Tags: TagsComponentDefinitionExtended;
8114
+
8115
+ export declare interface TagsComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<TagsType> {
8116
+ /**
8117
+ * @public
8118
+ *
8119
+ * Add a tag to the entity's Tags component or create the component if it doesn't exist and add the tag
8120
+ * @param entity - entity to add the tag to
8121
+ * @param tagName - the tag name to add
8122
+ * @returns true
8123
+ */
8124
+ add(entity: Entity, tagName: string): boolean;
8125
+ /**
8126
+ * @public
8127
+ *
8128
+ * Remove a tag from the entity's Tags component
8129
+ * @param entity - entity to remove the tag from
8130
+ * @param tagName - the tag name to remove
8131
+ * @returns true if successful, false if the entity doesn't have a Tags component or the tag doesn't exist
8132
+ */
8133
+ remove(entity: Entity, tagName: string): boolean;
8134
+ }
8135
+
8136
+ export declare interface TagsType {
8137
+ tags: string[];
8138
+ }
8139
+
8081
8140
  export declare type TargetEntityRaycastOptions = RaycastSystemOptions & TargetEntityRaycastSystemOptions;
8082
8141
 
8083
8142
  export declare type TargetEntityRaycastSystemOptions = {
@@ -8371,8 +8430,83 @@ export declare type Transport = {
8371
8430
  */
8372
8431
  export declare type TransportMessage = Omit<ReceiveMessage, 'data'>;
8373
8432
 
8374
- /** @public */
8375
- export declare const TriggerArea: LastWriteWinElementSetComponentDefinition<PBTriggerArea>;
8433
+ export declare const TriggerArea: TriggerAreaComponentDefinitionExtended;
8434
+
8435
+ /**
8436
+ * @public
8437
+ */
8438
+ export declare interface TriggerAreaComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBTriggerArea> {
8439
+ /**
8440
+ * @public
8441
+ * Set a box in the MeshCollider component
8442
+ * @param entity - entity to create or replace the TriggerArea component
8443
+ * @param collisionMask - the collision layers mask for the trigger to react, default: Player
8444
+ */
8445
+ setBox(entity: Entity, collisionMask?: ColliderLayer | ColliderLayer[]): void;
8446
+ /**
8447
+ * @public
8448
+ * Set a sphere in the MeshCollider component
8449
+ * @param entity - entity to create or replace the TriggerArea component
8450
+ * @param collisionMask - the collision layers mask for the trigger to react, default: Player
8451
+ */
8452
+ setSphere(entity: Entity, collisionMask?: ColliderLayer | ColliderLayer[]): void;
8453
+ }
8454
+
8455
+ /**
8456
+ * @public
8457
+ */
8458
+ export declare interface TriggerAreaEventsSystem {
8459
+ /**
8460
+ * @public
8461
+ * Execute callback when an entity enters the Trigger Area
8462
+ * @param entity - The entity that already has the TriggerArea component
8463
+ * @param cb - Function to execute the 'Enter' type of result is detected
8464
+ */
8465
+ onTriggerEnter(entity: Entity, cb: TriggerAreaEventSystemCallback): void;
8466
+ /**
8467
+ * @public
8468
+ * Remove the callback for Trigger Area 'Enter' type of result
8469
+ * @param entity - Entity where the Trigger Area was attached
8470
+ */
8471
+ removeOnTriggerEnter(entity: Entity): void;
8472
+ /**
8473
+ * @public
8474
+ * Execute callback when an entity stays in the Trigger Area
8475
+ * @param entity - The entity that already has the TriggerArea component
8476
+ * @param cb - Function to execute the 'Stay' type of result is detected
8477
+ */
8478
+ onTriggerStay(entity: Entity, cb: TriggerAreaEventSystemCallback): void;
8479
+ /**
8480
+ * @public
8481
+ * Remove the callback for Trigger Area 'Stay' type of result
8482
+ * @param entity - Entity where the Trigger Area was attached
8483
+ */
8484
+ removeOnTriggerStay(entity: Entity): void;
8485
+ /**
8486
+ * @public
8487
+ * Execute callback when an entity exits the Trigger Area
8488
+ * @param entity - The entity that already has the TriggerArea component
8489
+ * @param cb - Function to execute the 'Exit' type of result is detected
8490
+ */
8491
+ onTriggerExit(entity: Entity, cb: TriggerAreaEventSystemCallback): void;
8492
+ /**
8493
+ * @public
8494
+ * Remove the callback for Trigger Area 'Exit' type of result
8495
+ * @param entity - Entity where the Trigger Area was attached
8496
+ */
8497
+ removeOnTriggerExit(entity: Entity): void;
8498
+ }
8499
+
8500
+ /**
8501
+ * @public
8502
+ * Register callback functions for trigger area results.
8503
+ */
8504
+ export declare const triggerAreaEventsSystem: TriggerAreaEventsSystem;
8505
+
8506
+ /**
8507
+ * @public
8508
+ */
8509
+ export declare type TriggerAreaEventSystemCallback = (result: DeepReadonlyObject<PBTriggerAreaResult>) => void;
8376
8510
 
8377
8511
  /**
8378
8512
  * @public
@@ -8392,7 +8526,7 @@ export declare const enum TriggerAreaMeshType {
8392
8526
  }
8393
8527
 
8394
8528
  /** @public */
8395
- export declare const TriggerAreaResult: LastWriteWinElementSetComponentDefinition<PBTriggerAreaResult>;
8529
+ export declare const TriggerAreaResult: GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>;
8396
8530
 
8397
8531
  export declare const Tween: TweenComponentDefinitionExtended;
8398
8532
 
@@ -8404,6 +8538,82 @@ export declare interface TweenComponentDefinitionExtended extends LastWriteWinEl
8404
8538
  * Texture helpers with constructor
8405
8539
  */
8406
8540
  Mode: TweenHelper;
8541
+ /**
8542
+ * @public
8543
+ *
8544
+ * Creates or replaces a move tween component that animates an entity's position from start to end
8545
+ * @param entity - entity to apply the tween to
8546
+ * @param start - starting position vector
8547
+ * @param end - ending position vector
8548
+ * @param duration - duration of the tween in milliseconds
8549
+ * @param easingFunction - easing function to use (defaults to EF_LINEAR)
8550
+ */
8551
+ setMove(entity: Entity, start: PBVector3, end: PBVector3, duration: number, easingFunction?: EasingFunction): void;
8552
+ /**
8553
+ * @public
8554
+ *
8555
+ * Creates or replaces a scale tween component that animates an entity's scale from start to end
8556
+ * @param entity - entity to apply the tween to
8557
+ * @param start - starting scale vector
8558
+ * @param end - ending scale vector
8559
+ * @param duration - duration of the tween in milliseconds
8560
+ * @param easingFunction - easing function to use (defaults to EF_LINEAR)
8561
+ */
8562
+ setScale(entity: Entity, start: PBVector3, end: PBVector3, duration: number, easingFunction?: EasingFunction): void;
8563
+ /**
8564
+ * @public
8565
+ *
8566
+ * Creates or replaces a rotation tween component that animates an entity's rotation from start to end
8567
+ * @param entity - entity to apply the tween to
8568
+ * @param start - starting rotation quaternion
8569
+ * @param end - ending rotation quaternion
8570
+ * @param duration - duration of the tween in milliseconds
8571
+ * @param easingFunction - easing function to use (defaults to EF_LINEAR)
8572
+ */
8573
+ setRotate(entity: Entity, start: PBQuaternion, end: PBQuaternion, duration: number, easingFunction?: EasingFunction): void;
8574
+ /**
8575
+ * @public
8576
+ *
8577
+ * Creates or replaces a texture move tween component that animates texture UV coordinates from start to end
8578
+ * @param entity - entity to apply the tween to
8579
+ * @param start - starting UV coordinates
8580
+ * @param end - ending UV coordinates
8581
+ * @param duration - duration of the tween in milliseconds
8582
+ * @param movementType - type of texture movement (defaults to TMT_OFFSET)
8583
+ * @param easingFunction - easing function to use (defaults to EF_LINEAR)
8584
+ */
8585
+ setTextureMove(entity: Entity, start: PBVector2, end: PBVector2, duration: number, movementType?: TextureMovementType, easingFunction?: EasingFunction): void;
8586
+ /**
8587
+ * @public
8588
+ *
8589
+ * Creates or replaces a continuous move tween component that moves an entity continuously in a direction
8590
+ * @param entity - entity to apply the tween to
8591
+ * @param direction - direction vector to move towards
8592
+ * @param speed - speed of movement per second
8593
+ * @param duration - duration of the tween in milliseconds (defaults to 0 for infinite)
8594
+ */
8595
+ setMoveContinuous(entity: Entity, direction: PBVector3, speed: number, duration?: number): void;
8596
+ /**
8597
+ * @public
8598
+ *
8599
+ * Creates or replaces a continuous rotation tween component that rotates an entity continuously
8600
+ * @param entity - entity to apply the tween to
8601
+ * @param direction - rotation direction quaternion
8602
+ * @param speed - speed of rotation per second
8603
+ * @param duration - duration of the tween in milliseconds (defaults to 0 for infinite)
8604
+ */
8605
+ setRotateContinuous(entity: Entity, direction: PBQuaternion, speed: number, duration?: number): void;
8606
+ /**
8607
+ * @public
8608
+ *
8609
+ * Creates or replaces a continuous texture move tween component that moves texture UV coordinates continuously
8610
+ * @param entity - entity to apply the tween to
8611
+ * @param direction - direction vector for UV movement
8612
+ * @param speed - speed of UV movement per second
8613
+ * @param movementType - type of texture movement (defaults to TMT_OFFSET)
8614
+ * @param duration - duration of the tween in milliseconds (defaults to 0 for infinite)
8615
+ */
8616
+ setTextureMoveContinuous(entity: Entity, direction: PBVector2, speed: number, movementType?: TextureMovementType, duration?: number): void;
8407
8617
  }
8408
8618
 
8409
8619
  /**
@@ -8415,17 +8625,29 @@ export declare interface TweenHelper {
8415
8625
  */
8416
8626
  Move: (move: Move) => PBTween['mode'];
8417
8627
  /**
8418
- * @returns a move mode tween
8628
+ * @returns a move-continuous mode tween
8629
+ */
8630
+ MoveContinuous: (move: MoveContinuous) => PBTween['mode'];
8631
+ /**
8632
+ * @returns a rotate mode tween
8419
8633
  */
8420
8634
  Rotate: (rotate: Rotate) => PBTween['mode'];
8421
8635
  /**
8422
- * @returns a move mode tween
8636
+ * @returns a rotate-continuous mode tween
8637
+ */
8638
+ RotateContinuous: (rotate: RotateContinuous) => PBTween['mode'];
8639
+ /**
8640
+ * @returns a scale mode tween
8423
8641
  */
8424
8642
  Scale: (scale: Scale) => PBTween['mode'];
8425
8643
  /**
8426
- * @returns a texture move mode tween
8644
+ * @returns a texture-move mode tween
8427
8645
  */
8428
8646
  TextureMove: (textureMove: TextureMove) => PBTween['mode'];
8647
+ /**
8648
+ * @returns a texture-move-continuous mode tween
8649
+ */
8650
+ TextureMoveContinuous: (textureMove: TextureMoveContinuous) => PBTween['mode'];
8429
8651
  }
8430
8652
 
8431
8653
  /**
package/dist/beta.d.ts CHANGED
@@ -193,7 +193,8 @@ export declare const enum AvatarControlType {
193
193
  /** @public */
194
194
  export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>;
195
195
 
196
- export declare const AvatarEquippedData: AvatarEquippedDataComponentDefinitionExtended;
196
+ /** @public */
197
+ export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
197
198
 
198
199
  /**
199
200
  * @public
@@ -249,7 +250,8 @@ export declare namespace AvatarMovementSettings {
249
250
  export function decode(input: _m0.Reader | Uint8Array, length?: number): AvatarMovementSettings;
250
251
  }
251
252
 
252
- export declare const AvatarShape: AvatarShapeComponentDefinitionExtended;
253
+ /** @public */
254
+ export declare const AvatarShape: LastWriteWinElementSetComponentDefinition<PBAvatarShape>;
253
255
 
254
256
  /**
255
257
  * @public
@@ -1434,7 +1436,7 @@ export declare const componentDefinitionByName: {
1434
1436
  "core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
1435
1437
  "core::TextureCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextureCamera>>;
1436
1438
  "core::TriggerArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTriggerArea>>;
1437
- "core::TriggerAreaResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTriggerAreaResult>>;
1439
+ "core::TriggerAreaResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>>;
1438
1440
  "core::Tween": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
1439
1441
  "core::TweenSequence": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenSequence>>;
1440
1442
  "core::TweenState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenState>>;
@@ -2389,6 +2391,13 @@ export declare interface IEngine {
2389
2391
  * @typeParam T - The type of the entity name value
2390
2392
  */
2391
2393
  getEntityByName<T = never, K = T>(value: K & (T extends never ? never : string)): Entity;
2394
+ /**
2395
+ * @public
2396
+ * Get all entities that have a specific tag in their Tag component
2397
+ * @param tag - Tag to search
2398
+ * @returns Iterator of entities that have the given tag
2399
+ */
2400
+ getEntitiesByTag(tagName: string): Iterable<Entity>;
2392
2401
  /**
2393
2402
  * @public
2394
2403
  * @param deltaTime - deltaTime in seconds
@@ -2822,8 +2831,31 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2822
2831
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2823
2832
  }
2824
2833
 
2825
- /** @public */
2826
- export declare const LightSource: LastWriteWinElementSetComponentDefinition<PBLightSource>;
2834
+ export declare const LightSource: LightSourceComponentDefinitionExtended;
2835
+
2836
+ /**
2837
+ * @public
2838
+ */
2839
+ export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
2840
+ /**
2841
+ * LightSource helper with constructor
2842
+ */
2843
+ Type: LightSourceHelper;
2844
+ }
2845
+
2846
+ /**
2847
+ * @public
2848
+ */
2849
+ export declare interface LightSourceHelper {
2850
+ /**
2851
+ * @returns a Light Source type
2852
+ */
2853
+ Point: (point: PBLightSource_Point) => PBLightSource['type'];
2854
+ /**
2855
+ * @returns a Light Source type
2856
+ */
2857
+ Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
2858
+ }
2827
2859
 
2828
2860
  /**
2829
2861
  * User key event Listeners
@@ -8045,6 +8077,33 @@ export declare type SystemItem = {
8045
8077
 
8046
8078
  export declare const SYSTEMS_REGULAR_PRIORITY = 100000;
8047
8079
 
8080
+ export declare const Tags: TagsComponentDefinitionExtended;
8081
+
8082
+ export declare interface TagsComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<TagsType> {
8083
+ /**
8084
+ * @public
8085
+ *
8086
+ * Add a tag to the entity's Tags component or create the component if it doesn't exist and add the tag
8087
+ * @param entity - entity to add the tag to
8088
+ * @param tagName - the tag name to add
8089
+ * @returns true
8090
+ */
8091
+ add(entity: Entity, tagName: string): boolean;
8092
+ /**
8093
+ * @public
8094
+ *
8095
+ * Remove a tag from the entity's Tags component
8096
+ * @param entity - entity to remove the tag from
8097
+ * @param tagName - the tag name to remove
8098
+ * @returns true if successful, false if the entity doesn't have a Tags component or the tag doesn't exist
8099
+ */
8100
+ remove(entity: Entity, tagName: string): boolean;
8101
+ }
8102
+
8103
+ export declare interface TagsType {
8104
+ tags: string[];
8105
+ }
8106
+
8048
8107
  export declare type TargetEntityRaycastOptions = RaycastSystemOptions & TargetEntityRaycastSystemOptions;
8049
8108
 
8050
8109
  export declare type TargetEntityRaycastSystemOptions = {
@@ -8338,8 +8397,83 @@ export declare type Transport = {
8338
8397
  */
8339
8398
  export declare type TransportMessage = Omit<ReceiveMessage, 'data'>;
8340
8399
 
8341
- /** @public */
8342
- export declare const TriggerArea: LastWriteWinElementSetComponentDefinition<PBTriggerArea>;
8400
+ export declare const TriggerArea: TriggerAreaComponentDefinitionExtended;
8401
+
8402
+ /**
8403
+ * @public
8404
+ */
8405
+ export declare interface TriggerAreaComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBTriggerArea> {
8406
+ /**
8407
+ * @public
8408
+ * Set a box in the MeshCollider component
8409
+ * @param entity - entity to create or replace the TriggerArea component
8410
+ * @param collisionMask - the collision layers mask for the trigger to react, default: Player
8411
+ */
8412
+ setBox(entity: Entity, collisionMask?: ColliderLayer | ColliderLayer[]): void;
8413
+ /**
8414
+ * @public
8415
+ * Set a sphere in the MeshCollider component
8416
+ * @param entity - entity to create or replace the TriggerArea component
8417
+ * @param collisionMask - the collision layers mask for the trigger to react, default: Player
8418
+ */
8419
+ setSphere(entity: Entity, collisionMask?: ColliderLayer | ColliderLayer[]): void;
8420
+ }
8421
+
8422
+ /**
8423
+ * @public
8424
+ */
8425
+ export declare interface TriggerAreaEventsSystem {
8426
+ /**
8427
+ * @public
8428
+ * Execute callback when an entity enters the Trigger Area
8429
+ * @param entity - The entity that already has the TriggerArea component
8430
+ * @param cb - Function to execute the 'Enter' type of result is detected
8431
+ */
8432
+ onTriggerEnter(entity: Entity, cb: TriggerAreaEventSystemCallback): void;
8433
+ /**
8434
+ * @public
8435
+ * Remove the callback for Trigger Area 'Enter' type of result
8436
+ * @param entity - Entity where the Trigger Area was attached
8437
+ */
8438
+ removeOnTriggerEnter(entity: Entity): void;
8439
+ /**
8440
+ * @public
8441
+ * Execute callback when an entity stays in the Trigger Area
8442
+ * @param entity - The entity that already has the TriggerArea component
8443
+ * @param cb - Function to execute the 'Stay' type of result is detected
8444
+ */
8445
+ onTriggerStay(entity: Entity, cb: TriggerAreaEventSystemCallback): void;
8446
+ /**
8447
+ * @public
8448
+ * Remove the callback for Trigger Area 'Stay' type of result
8449
+ * @param entity - Entity where the Trigger Area was attached
8450
+ */
8451
+ removeOnTriggerStay(entity: Entity): void;
8452
+ /**
8453
+ * @public
8454
+ * Execute callback when an entity exits the Trigger Area
8455
+ * @param entity - The entity that already has the TriggerArea component
8456
+ * @param cb - Function to execute the 'Exit' type of result is detected
8457
+ */
8458
+ onTriggerExit(entity: Entity, cb: TriggerAreaEventSystemCallback): void;
8459
+ /**
8460
+ * @public
8461
+ * Remove the callback for Trigger Area 'Exit' type of result
8462
+ * @param entity - Entity where the Trigger Area was attached
8463
+ */
8464
+ removeOnTriggerExit(entity: Entity): void;
8465
+ }
8466
+
8467
+ /**
8468
+ * @public
8469
+ * Register callback functions for trigger area results.
8470
+ */
8471
+ export declare const triggerAreaEventsSystem: TriggerAreaEventsSystem;
8472
+
8473
+ /**
8474
+ * @public
8475
+ */
8476
+ export declare type TriggerAreaEventSystemCallback = (result: DeepReadonlyObject<PBTriggerAreaResult>) => void;
8343
8477
 
8344
8478
  /**
8345
8479
  * @public
@@ -8359,7 +8493,7 @@ export declare const enum TriggerAreaMeshType {
8359
8493
  }
8360
8494
 
8361
8495
  /** @public */
8362
- export declare const TriggerAreaResult: LastWriteWinElementSetComponentDefinition<PBTriggerAreaResult>;
8496
+ export declare const TriggerAreaResult: GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>;
8363
8497
 
8364
8498
  export declare const Tween: TweenComponentDefinitionExtended;
8365
8499
 
@@ -8371,6 +8505,82 @@ export declare interface TweenComponentDefinitionExtended extends LastWriteWinEl
8371
8505
  * Texture helpers with constructor
8372
8506
  */
8373
8507
  Mode: TweenHelper;
8508
+ /**
8509
+ * @public
8510
+ *
8511
+ * Creates or replaces a move tween component that animates an entity's position from start to end
8512
+ * @param entity - entity to apply the tween to
8513
+ * @param start - starting position vector
8514
+ * @param end - ending position vector
8515
+ * @param duration - duration of the tween in milliseconds
8516
+ * @param easingFunction - easing function to use (defaults to EF_LINEAR)
8517
+ */
8518
+ setMove(entity: Entity, start: PBVector3, end: PBVector3, duration: number, easingFunction?: EasingFunction): void;
8519
+ /**
8520
+ * @public
8521
+ *
8522
+ * Creates or replaces a scale tween component that animates an entity's scale from start to end
8523
+ * @param entity - entity to apply the tween to
8524
+ * @param start - starting scale vector
8525
+ * @param end - ending scale vector
8526
+ * @param duration - duration of the tween in milliseconds
8527
+ * @param easingFunction - easing function to use (defaults to EF_LINEAR)
8528
+ */
8529
+ setScale(entity: Entity, start: PBVector3, end: PBVector3, duration: number, easingFunction?: EasingFunction): void;
8530
+ /**
8531
+ * @public
8532
+ *
8533
+ * Creates or replaces a rotation tween component that animates an entity's rotation from start to end
8534
+ * @param entity - entity to apply the tween to
8535
+ * @param start - starting rotation quaternion
8536
+ * @param end - ending rotation quaternion
8537
+ * @param duration - duration of the tween in milliseconds
8538
+ * @param easingFunction - easing function to use (defaults to EF_LINEAR)
8539
+ */
8540
+ setRotate(entity: Entity, start: PBQuaternion, end: PBQuaternion, duration: number, easingFunction?: EasingFunction): void;
8541
+ /**
8542
+ * @public
8543
+ *
8544
+ * Creates or replaces a texture move tween component that animates texture UV coordinates from start to end
8545
+ * @param entity - entity to apply the tween to
8546
+ * @param start - starting UV coordinates
8547
+ * @param end - ending UV coordinates
8548
+ * @param duration - duration of the tween in milliseconds
8549
+ * @param movementType - type of texture movement (defaults to TMT_OFFSET)
8550
+ * @param easingFunction - easing function to use (defaults to EF_LINEAR)
8551
+ */
8552
+ setTextureMove(entity: Entity, start: PBVector2, end: PBVector2, duration: number, movementType?: TextureMovementType, easingFunction?: EasingFunction): void;
8553
+ /**
8554
+ * @public
8555
+ *
8556
+ * Creates or replaces a continuous move tween component that moves an entity continuously in a direction
8557
+ * @param entity - entity to apply the tween to
8558
+ * @param direction - direction vector to move towards
8559
+ * @param speed - speed of movement per second
8560
+ * @param duration - duration of the tween in milliseconds (defaults to 0 for infinite)
8561
+ */
8562
+ setMoveContinuous(entity: Entity, direction: PBVector3, speed: number, duration?: number): void;
8563
+ /**
8564
+ * @public
8565
+ *
8566
+ * Creates or replaces a continuous rotation tween component that rotates an entity continuously
8567
+ * @param entity - entity to apply the tween to
8568
+ * @param direction - rotation direction quaternion
8569
+ * @param speed - speed of rotation per second
8570
+ * @param duration - duration of the tween in milliseconds (defaults to 0 for infinite)
8571
+ */
8572
+ setRotateContinuous(entity: Entity, direction: PBQuaternion, speed: number, duration?: number): void;
8573
+ /**
8574
+ * @public
8575
+ *
8576
+ * Creates or replaces a continuous texture move tween component that moves texture UV coordinates continuously
8577
+ * @param entity - entity to apply the tween to
8578
+ * @param direction - direction vector for UV movement
8579
+ * @param speed - speed of UV movement per second
8580
+ * @param movementType - type of texture movement (defaults to TMT_OFFSET)
8581
+ * @param duration - duration of the tween in milliseconds (defaults to 0 for infinite)
8582
+ */
8583
+ setTextureMoveContinuous(entity: Entity, direction: PBVector2, speed: number, movementType?: TextureMovementType, duration?: number): void;
8374
8584
  }
8375
8585
 
8376
8586
  /**
@@ -8382,17 +8592,29 @@ export declare interface TweenHelper {
8382
8592
  */
8383
8593
  Move: (move: Move) => PBTween['mode'];
8384
8594
  /**
8385
- * @returns a move mode tween
8595
+ * @returns a move-continuous mode tween
8596
+ */
8597
+ MoveContinuous: (move: MoveContinuous) => PBTween['mode'];
8598
+ /**
8599
+ * @returns a rotate mode tween
8386
8600
  */
8387
8601
  Rotate: (rotate: Rotate) => PBTween['mode'];
8388
8602
  /**
8389
- * @returns a move mode tween
8603
+ * @returns a rotate-continuous mode tween
8604
+ */
8605
+ RotateContinuous: (rotate: RotateContinuous) => PBTween['mode'];
8606
+ /**
8607
+ * @returns a scale mode tween
8390
8608
  */
8391
8609
  Scale: (scale: Scale) => PBTween['mode'];
8392
8610
  /**
8393
- * @returns a texture move mode tween
8611
+ * @returns a texture-move mode tween
8394
8612
  */
8395
8613
  TextureMove: (textureMove: TextureMove) => PBTween['mode'];
8614
+ /**
8615
+ * @returns a texture-move-continuous mode tween
8616
+ */
8617
+ TextureMoveContinuous: (textureMove: TextureMoveContinuous) => PBTween['mode'];
8396
8618
  }
8397
8619
 
8398
8620
  /**