@dcl/playground-assets 7.10.3-17918694201.commit-b983b3b → 7.10.3-18110910324.commit-20b1978

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
@@ -541,7 +541,8 @@ export declare const enum ColliderLayer {
541
541
  CL_POINTER = 1,
542
542
  /** CL_PHYSICS - collision affecting your player's physics i.e. walls, floor, moving platfroms */
543
543
  CL_PHYSICS = 2,
544
- CL_RESERVED1 = 4,
544
+ /** CL_PLAYER - layer corresponding to any player avatar */
545
+ CL_PLAYER = 4,
545
546
  CL_RESERVED2 = 8,
546
547
  CL_RESERVED3 = 16,
547
548
  CL_RESERVED4 = 32,
@@ -1326,6 +1327,8 @@ export declare const componentDefinitionByName: {
1326
1327
  "core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
1327
1328
  "core::SkyboxTime": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkyboxTime>>;
1328
1329
  "core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
1330
+ "core::TriggerArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTriggerArea>>;
1331
+ "core::TriggerAreaResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>>;
1329
1332
  "core::Tween": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
1330
1333
  "core::TweenSequence": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenSequence>>;
1331
1334
  "core::TweenState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenState>>;
@@ -5460,6 +5463,86 @@ export declare namespace PBTextShape {
5460
5463
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTextShape;
5461
5464
  }
5462
5465
 
5466
+ /**
5467
+ * The PBTriggerArea component is used to raise collision triggering events (through the TriggerAreaResult component)
5468
+ * when entities enter this component's defined area.
5469
+ *
5470
+ * ADR: https://github.com/decentraland/adr/blob/2b30a5e2b4f359a7c22a68fb827db282f6e5f887/content/ADR-258-trigger-areas.md
5471
+ *
5472
+ * The area size and rotation is defined by the Entity's Transform.
5473
+ */
5474
+ /**
5475
+ * @public
5476
+ */
5477
+ export declare interface PBTriggerArea {
5478
+ /** default: MT_BOX */
5479
+ mesh?: TriggerAreaMeshType | undefined;
5480
+ /** default: CL_PLAYER */
5481
+ collisionMask?: number | undefined;
5482
+ }
5483
+
5484
+ /**
5485
+ * @public
5486
+ */
5487
+ export declare namespace PBTriggerArea {
5488
+ export function encode(message: PBTriggerArea, writer?: _m0.Writer): _m0.Writer;
5489
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTriggerArea;
5490
+ }
5491
+
5492
+ /**
5493
+ * The PBTriggerAreaResult component is used to transport the trigger collision event data for the PBTriggerArea component.
5494
+ * ADR: https://github.com/decentraland/adr/blob/2b30a5e2b4f359a7c22a68fb827db282f6e5f887/content/ADR-258-trigger-areas.md
5495
+ */
5496
+ /**
5497
+ * @public
5498
+ */
5499
+ export declare interface PBTriggerAreaResult {
5500
+ /** The entity that was triggered (this is the entity that owns the trigger area) */
5501
+ triggeredEntity: number;
5502
+ /** The position of the triggered entity at the time of the trigger */
5503
+ triggeredEntityPosition: PBVector3 | undefined;
5504
+ /** The rotation of the triggered entity at the time of the trigger */
5505
+ triggeredEntityRotation: PBQuaternion | undefined;
5506
+ /** The state of the trigger event (ENTER, STAY, EXIT) */
5507
+ eventType: TriggerAreaEventType;
5508
+ /** The timestamp of the trigger event */
5509
+ timestamp: number;
5510
+ trigger: PBTriggerAreaResult_Trigger | undefined;
5511
+ }
5512
+
5513
+ /**
5514
+ * @public
5515
+ */
5516
+ export declare namespace PBTriggerAreaResult {
5517
+ export function encode(message: PBTriggerAreaResult, writer?: _m0.Writer): _m0.Writer;
5518
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTriggerAreaResult;
5519
+ }
5520
+
5521
+ /** Trigger data object */
5522
+ /**
5523
+ * @public
5524
+ */
5525
+ export declare interface PBTriggerAreaResult_Trigger {
5526
+ /** The entity that triggered the Trigger Area */
5527
+ entity: number;
5528
+ /** The collision layermask of the entity that triggered the Trigger Area */
5529
+ layers: number;
5530
+ /** The position of the entity that triggered the trigger */
5531
+ position: PBVector3 | undefined;
5532
+ /** The rotation of the entity that triggered the trigger */
5533
+ rotation: PBQuaternion | undefined;
5534
+ /** The scale of the entity that triggered the trigger */
5535
+ scale: PBVector3 | undefined;
5536
+ }
5537
+
5538
+ /**
5539
+ * @public
5540
+ */
5541
+ export declare namespace PBTriggerAreaResult_Trigger {
5542
+ export function encode(message: PBTriggerAreaResult_Trigger, writer?: _m0.Writer): _m0.Writer;
5543
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTriggerAreaResult_Trigger;
5544
+ }
5545
+
5463
5546
  /**
5464
5547
  * @public
5465
5548
  */
@@ -5906,6 +5989,7 @@ export declare namespace PBVideoPlayer {
5906
5989
  * an 'instant' transition (like using speed/time = 0)
5907
5990
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
5908
5991
  * the holding entity transform).
5992
+ * * The fov defines the Field of View of the virtual camera
5909
5993
  */
5910
5994
  /**
5911
5995
  * @public
@@ -5913,6 +5997,8 @@ export declare namespace PBVideoPlayer {
5913
5997
  export declare interface PBVirtualCamera {
5914
5998
  defaultTransition?: CameraTransition | undefined;
5915
5999
  lookAtEntity?: number | undefined;
6000
+ /** default: 60 */
6001
+ fov?: number | undefined;
5916
6002
  }
5917
6003
 
5918
6004
  /**
@@ -7580,6 +7666,104 @@ export declare type Transport = {
7580
7666
  */
7581
7667
  export declare type TransportMessage = Omit<ReceiveMessage, 'data'>;
7582
7668
 
7669
+ export declare const TriggerArea: TriggerAreaComponentDefinitionExtended;
7670
+
7671
+ /**
7672
+ * @public
7673
+ */
7674
+ export declare interface TriggerAreaComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBTriggerArea> {
7675
+ /**
7676
+ * @public
7677
+ * Set a box in the MeshCollider component
7678
+ * @param entity - entity to create or replace the TriggerArea component
7679
+ * @param collisionMask - the collision layers mask for the trigger to react, default: Player
7680
+ */
7681
+ setBox(entity: Entity, collisionMask?: ColliderLayer | ColliderLayer[]): void;
7682
+ /**
7683
+ * @public
7684
+ * Set a sphere in the MeshCollider component
7685
+ * @param entity - entity to create or replace the TriggerArea component
7686
+ * @param collisionMask - the collision layers mask for the trigger to react, default: Player
7687
+ */
7688
+ setSphere(entity: Entity, collisionMask?: ColliderLayer | ColliderLayer[]): void;
7689
+ }
7690
+
7691
+ /**
7692
+ * @public
7693
+ */
7694
+ export declare interface TriggerAreaEventsSystem {
7695
+ /**
7696
+ * @public
7697
+ * Execute callback when an entity enters the Trigger Area
7698
+ * @param entity - The entity that already has the TriggerArea component
7699
+ * @param cb - Function to execute the 'Enter' type of result is detected
7700
+ */
7701
+ onTriggerEnter(entity: Entity, cb: TriggerAreaEventSystemCallback): void;
7702
+ /**
7703
+ * @public
7704
+ * Remove the callback for Trigger Area 'Enter' type of result
7705
+ * @param entity - Entity where the Trigger Area was attached
7706
+ */
7707
+ removeOnTriggerEnter(entity: Entity): void;
7708
+ /**
7709
+ * @public
7710
+ * Execute callback when an entity stays in the Trigger Area
7711
+ * @param entity - The entity that already has the TriggerArea component
7712
+ * @param cb - Function to execute the 'Stay' type of result is detected
7713
+ */
7714
+ onTriggerStay(entity: Entity, cb: TriggerAreaEventSystemCallback): void;
7715
+ /**
7716
+ * @public
7717
+ * Remove the callback for Trigger Area 'Stay' type of result
7718
+ * @param entity - Entity where the Trigger Area was attached
7719
+ */
7720
+ removeOnTriggerStay(entity: Entity): void;
7721
+ /**
7722
+ * @public
7723
+ * Execute callback when an entity exits the Trigger Area
7724
+ * @param entity - The entity that already has the TriggerArea component
7725
+ * @param cb - Function to execute the 'Exit' type of result is detected
7726
+ */
7727
+ onTriggerExit(entity: Entity, cb: TriggerAreaEventSystemCallback): void;
7728
+ /**
7729
+ * @public
7730
+ * Remove the callback for Trigger Area 'Exit' type of result
7731
+ * @param entity - Entity where the Trigger Area was attached
7732
+ */
7733
+ removeOnTriggerExit(entity: Entity): void;
7734
+ }
7735
+
7736
+ /**
7737
+ * @public
7738
+ * Register callback functions for trigger area results.
7739
+ */
7740
+ export declare const triggerAreaEventsSystem: TriggerAreaEventsSystem;
7741
+
7742
+ /**
7743
+ * @public
7744
+ */
7745
+ export declare type TriggerAreaEventSystemCallback = (result: DeepReadonlyObject<PBTriggerAreaResult>) => void;
7746
+
7747
+ /**
7748
+ * @public
7749
+ */
7750
+ export declare const enum TriggerAreaEventType {
7751
+ TAET_ENTER = 0,
7752
+ TAET_STAY = 1,
7753
+ TAET_EXIT = 2
7754
+ }
7755
+
7756
+ /**
7757
+ * @public
7758
+ */
7759
+ export declare const enum TriggerAreaMeshType {
7760
+ TAMT_BOX = 0,
7761
+ TAMT_SPHERE = 1
7762
+ }
7763
+
7764
+ /** @public */
7765
+ export declare const TriggerAreaResult: GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>;
7766
+
7583
7767
  export declare const Tween: TweenComponentDefinitionExtended;
7584
7768
 
7585
7769
  /**
package/dist/beta.d.ts CHANGED
@@ -541,7 +541,8 @@ export declare const enum ColliderLayer {
541
541
  CL_POINTER = 1,
542
542
  /** CL_PHYSICS - collision affecting your player's physics i.e. walls, floor, moving platfroms */
543
543
  CL_PHYSICS = 2,
544
- CL_RESERVED1 = 4,
544
+ /** CL_PLAYER - layer corresponding to any player avatar */
545
+ CL_PLAYER = 4,
545
546
  CL_RESERVED2 = 8,
546
547
  CL_RESERVED3 = 16,
547
548
  CL_RESERVED4 = 32,
@@ -1326,6 +1327,8 @@ export declare const componentDefinitionByName: {
1326
1327
  "core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
1327
1328
  "core::SkyboxTime": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkyboxTime>>;
1328
1329
  "core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
1330
+ "core::TriggerArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTriggerArea>>;
1331
+ "core::TriggerAreaResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>>;
1329
1332
  "core::Tween": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
1330
1333
  "core::TweenSequence": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenSequence>>;
1331
1334
  "core::TweenState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenState>>;
@@ -5432,6 +5435,86 @@ export declare namespace PBTextShape {
5432
5435
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTextShape;
5433
5436
  }
5434
5437
 
5438
+ /**
5439
+ * The PBTriggerArea component is used to raise collision triggering events (through the TriggerAreaResult component)
5440
+ * when entities enter this component's defined area.
5441
+ *
5442
+ * ADR: https://github.com/decentraland/adr/blob/2b30a5e2b4f359a7c22a68fb827db282f6e5f887/content/ADR-258-trigger-areas.md
5443
+ *
5444
+ * The area size and rotation is defined by the Entity's Transform.
5445
+ */
5446
+ /**
5447
+ * @public
5448
+ */
5449
+ export declare interface PBTriggerArea {
5450
+ /** default: MT_BOX */
5451
+ mesh?: TriggerAreaMeshType | undefined;
5452
+ /** default: CL_PLAYER */
5453
+ collisionMask?: number | undefined;
5454
+ }
5455
+
5456
+ /**
5457
+ * @public
5458
+ */
5459
+ export declare namespace PBTriggerArea {
5460
+ export function encode(message: PBTriggerArea, writer?: _m0.Writer): _m0.Writer;
5461
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTriggerArea;
5462
+ }
5463
+
5464
+ /**
5465
+ * The PBTriggerAreaResult component is used to transport the trigger collision event data for the PBTriggerArea component.
5466
+ * ADR: https://github.com/decentraland/adr/blob/2b30a5e2b4f359a7c22a68fb827db282f6e5f887/content/ADR-258-trigger-areas.md
5467
+ */
5468
+ /**
5469
+ * @public
5470
+ */
5471
+ export declare interface PBTriggerAreaResult {
5472
+ /** The entity that was triggered (this is the entity that owns the trigger area) */
5473
+ triggeredEntity: number;
5474
+ /** The position of the triggered entity at the time of the trigger */
5475
+ triggeredEntityPosition: PBVector3 | undefined;
5476
+ /** The rotation of the triggered entity at the time of the trigger */
5477
+ triggeredEntityRotation: PBQuaternion | undefined;
5478
+ /** The state of the trigger event (ENTER, STAY, EXIT) */
5479
+ eventType: TriggerAreaEventType;
5480
+ /** The timestamp of the trigger event */
5481
+ timestamp: number;
5482
+ trigger: PBTriggerAreaResult_Trigger | undefined;
5483
+ }
5484
+
5485
+ /**
5486
+ * @public
5487
+ */
5488
+ export declare namespace PBTriggerAreaResult {
5489
+ export function encode(message: PBTriggerAreaResult, writer?: _m0.Writer): _m0.Writer;
5490
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTriggerAreaResult;
5491
+ }
5492
+
5493
+ /** Trigger data object */
5494
+ /**
5495
+ * @public
5496
+ */
5497
+ export declare interface PBTriggerAreaResult_Trigger {
5498
+ /** The entity that triggered the Trigger Area */
5499
+ entity: number;
5500
+ /** The collision layermask of the entity that triggered the Trigger Area */
5501
+ layers: number;
5502
+ /** The position of the entity that triggered the trigger */
5503
+ position: PBVector3 | undefined;
5504
+ /** The rotation of the entity that triggered the trigger */
5505
+ rotation: PBQuaternion | undefined;
5506
+ /** The scale of the entity that triggered the trigger */
5507
+ scale: PBVector3 | undefined;
5508
+ }
5509
+
5510
+ /**
5511
+ * @public
5512
+ */
5513
+ export declare namespace PBTriggerAreaResult_Trigger {
5514
+ export function encode(message: PBTriggerAreaResult_Trigger, writer?: _m0.Writer): _m0.Writer;
5515
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTriggerAreaResult_Trigger;
5516
+ }
5517
+
5435
5518
  /**
5436
5519
  * @public
5437
5520
  */
@@ -5878,6 +5961,7 @@ export declare namespace PBVideoPlayer {
5878
5961
  * an 'instant' transition (like using speed/time = 0)
5879
5962
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
5880
5963
  * the holding entity transform).
5964
+ * * The fov defines the Field of View of the virtual camera
5881
5965
  */
5882
5966
  /**
5883
5967
  * @public
@@ -5885,6 +5969,8 @@ export declare namespace PBVideoPlayer {
5885
5969
  export declare interface PBVirtualCamera {
5886
5970
  defaultTransition?: CameraTransition | undefined;
5887
5971
  lookAtEntity?: number | undefined;
5972
+ /** default: 60 */
5973
+ fov?: number | undefined;
5888
5974
  }
5889
5975
 
5890
5976
  /**
@@ -7547,6 +7633,104 @@ export declare type Transport = {
7547
7633
  */
7548
7634
  export declare type TransportMessage = Omit<ReceiveMessage, 'data'>;
7549
7635
 
7636
+ export declare const TriggerArea: TriggerAreaComponentDefinitionExtended;
7637
+
7638
+ /**
7639
+ * @public
7640
+ */
7641
+ export declare interface TriggerAreaComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBTriggerArea> {
7642
+ /**
7643
+ * @public
7644
+ * Set a box in the MeshCollider component
7645
+ * @param entity - entity to create or replace the TriggerArea component
7646
+ * @param collisionMask - the collision layers mask for the trigger to react, default: Player
7647
+ */
7648
+ setBox(entity: Entity, collisionMask?: ColliderLayer | ColliderLayer[]): void;
7649
+ /**
7650
+ * @public
7651
+ * Set a sphere in the MeshCollider component
7652
+ * @param entity - entity to create or replace the TriggerArea component
7653
+ * @param collisionMask - the collision layers mask for the trigger to react, default: Player
7654
+ */
7655
+ setSphere(entity: Entity, collisionMask?: ColliderLayer | ColliderLayer[]): void;
7656
+ }
7657
+
7658
+ /**
7659
+ * @public
7660
+ */
7661
+ export declare interface TriggerAreaEventsSystem {
7662
+ /**
7663
+ * @public
7664
+ * Execute callback when an entity enters the Trigger Area
7665
+ * @param entity - The entity that already has the TriggerArea component
7666
+ * @param cb - Function to execute the 'Enter' type of result is detected
7667
+ */
7668
+ onTriggerEnter(entity: Entity, cb: TriggerAreaEventSystemCallback): void;
7669
+ /**
7670
+ * @public
7671
+ * Remove the callback for Trigger Area 'Enter' type of result
7672
+ * @param entity - Entity where the Trigger Area was attached
7673
+ */
7674
+ removeOnTriggerEnter(entity: Entity): void;
7675
+ /**
7676
+ * @public
7677
+ * Execute callback when an entity stays in the Trigger Area
7678
+ * @param entity - The entity that already has the TriggerArea component
7679
+ * @param cb - Function to execute the 'Stay' type of result is detected
7680
+ */
7681
+ onTriggerStay(entity: Entity, cb: TriggerAreaEventSystemCallback): void;
7682
+ /**
7683
+ * @public
7684
+ * Remove the callback for Trigger Area 'Stay' type of result
7685
+ * @param entity - Entity where the Trigger Area was attached
7686
+ */
7687
+ removeOnTriggerStay(entity: Entity): void;
7688
+ /**
7689
+ * @public
7690
+ * Execute callback when an entity exits the Trigger Area
7691
+ * @param entity - The entity that already has the TriggerArea component
7692
+ * @param cb - Function to execute the 'Exit' type of result is detected
7693
+ */
7694
+ onTriggerExit(entity: Entity, cb: TriggerAreaEventSystemCallback): void;
7695
+ /**
7696
+ * @public
7697
+ * Remove the callback for Trigger Area 'Exit' type of result
7698
+ * @param entity - Entity where the Trigger Area was attached
7699
+ */
7700
+ removeOnTriggerExit(entity: Entity): void;
7701
+ }
7702
+
7703
+ /**
7704
+ * @public
7705
+ * Register callback functions for trigger area results.
7706
+ */
7707
+ export declare const triggerAreaEventsSystem: TriggerAreaEventsSystem;
7708
+
7709
+ /**
7710
+ * @public
7711
+ */
7712
+ export declare type TriggerAreaEventSystemCallback = (result: DeepReadonlyObject<PBTriggerAreaResult>) => void;
7713
+
7714
+ /**
7715
+ * @public
7716
+ */
7717
+ export declare const enum TriggerAreaEventType {
7718
+ TAET_ENTER = 0,
7719
+ TAET_STAY = 1,
7720
+ TAET_EXIT = 2
7721
+ }
7722
+
7723
+ /**
7724
+ * @public
7725
+ */
7726
+ export declare const enum TriggerAreaMeshType {
7727
+ TAMT_BOX = 0,
7728
+ TAMT_SPHERE = 1
7729
+ }
7730
+
7731
+ /** @public */
7732
+ export declare const TriggerAreaResult: GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>;
7733
+
7550
7734
  export declare const Tween: TweenComponentDefinitionExtended;
7551
7735
 
7552
7736
  /**
@@ -541,7 +541,8 @@ export declare const enum ColliderLayer {
541
541
  CL_POINTER = 1,
542
542
  /** CL_PHYSICS - collision affecting your player's physics i.e. walls, floor, moving platfroms */
543
543
  CL_PHYSICS = 2,
544
- CL_RESERVED1 = 4,
544
+ /** CL_PLAYER - layer corresponding to any player avatar */
545
+ CL_PLAYER = 4,
545
546
  CL_RESERVED2 = 8,
546
547
  CL_RESERVED3 = 16,
547
548
  CL_RESERVED4 = 32,
@@ -1326,6 +1327,8 @@ export declare const componentDefinitionByName: {
1326
1327
  "core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
1327
1328
  "core::SkyboxTime": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkyboxTime>>;
1328
1329
  "core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
1330
+ "core::TriggerArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTriggerArea>>;
1331
+ "core::TriggerAreaResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>>;
1329
1332
  "core::Tween": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
1330
1333
  "core::TweenSequence": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenSequence>>;
1331
1334
  "core::TweenState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenState>>;
@@ -5432,6 +5435,86 @@ export declare namespace PBTextShape {
5432
5435
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTextShape;
5433
5436
  }
5434
5437
 
5438
+ /**
5439
+ * The PBTriggerArea component is used to raise collision triggering events (through the TriggerAreaResult component)
5440
+ * when entities enter this component's defined area.
5441
+ *
5442
+ * ADR: https://github.com/decentraland/adr/blob/2b30a5e2b4f359a7c22a68fb827db282f6e5f887/content/ADR-258-trigger-areas.md
5443
+ *
5444
+ * The area size and rotation is defined by the Entity's Transform.
5445
+ */
5446
+ /**
5447
+ * @public
5448
+ */
5449
+ export declare interface PBTriggerArea {
5450
+ /** default: MT_BOX */
5451
+ mesh?: TriggerAreaMeshType | undefined;
5452
+ /** default: CL_PLAYER */
5453
+ collisionMask?: number | undefined;
5454
+ }
5455
+
5456
+ /**
5457
+ * @public
5458
+ */
5459
+ export declare namespace PBTriggerArea {
5460
+ export function encode(message: PBTriggerArea, writer?: _m0.Writer): _m0.Writer;
5461
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTriggerArea;
5462
+ }
5463
+
5464
+ /**
5465
+ * The PBTriggerAreaResult component is used to transport the trigger collision event data for the PBTriggerArea component.
5466
+ * ADR: https://github.com/decentraland/adr/blob/2b30a5e2b4f359a7c22a68fb827db282f6e5f887/content/ADR-258-trigger-areas.md
5467
+ */
5468
+ /**
5469
+ * @public
5470
+ */
5471
+ export declare interface PBTriggerAreaResult {
5472
+ /** The entity that was triggered (this is the entity that owns the trigger area) */
5473
+ triggeredEntity: number;
5474
+ /** The position of the triggered entity at the time of the trigger */
5475
+ triggeredEntityPosition: PBVector3 | undefined;
5476
+ /** The rotation of the triggered entity at the time of the trigger */
5477
+ triggeredEntityRotation: PBQuaternion | undefined;
5478
+ /** The state of the trigger event (ENTER, STAY, EXIT) */
5479
+ eventType: TriggerAreaEventType;
5480
+ /** The timestamp of the trigger event */
5481
+ timestamp: number;
5482
+ trigger: PBTriggerAreaResult_Trigger | undefined;
5483
+ }
5484
+
5485
+ /**
5486
+ * @public
5487
+ */
5488
+ export declare namespace PBTriggerAreaResult {
5489
+ export function encode(message: PBTriggerAreaResult, writer?: _m0.Writer): _m0.Writer;
5490
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTriggerAreaResult;
5491
+ }
5492
+
5493
+ /** Trigger data object */
5494
+ /**
5495
+ * @public
5496
+ */
5497
+ export declare interface PBTriggerAreaResult_Trigger {
5498
+ /** The entity that triggered the Trigger Area */
5499
+ entity: number;
5500
+ /** The collision layermask of the entity that triggered the Trigger Area */
5501
+ layers: number;
5502
+ /** The position of the entity that triggered the trigger */
5503
+ position: PBVector3 | undefined;
5504
+ /** The rotation of the entity that triggered the trigger */
5505
+ rotation: PBQuaternion | undefined;
5506
+ /** The scale of the entity that triggered the trigger */
5507
+ scale: PBVector3 | undefined;
5508
+ }
5509
+
5510
+ /**
5511
+ * @public
5512
+ */
5513
+ export declare namespace PBTriggerAreaResult_Trigger {
5514
+ export function encode(message: PBTriggerAreaResult_Trigger, writer?: _m0.Writer): _m0.Writer;
5515
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTriggerAreaResult_Trigger;
5516
+ }
5517
+
5435
5518
  /**
5436
5519
  * @public
5437
5520
  */
@@ -5878,6 +5961,7 @@ export declare namespace PBVideoPlayer {
5878
5961
  * an 'instant' transition (like using speed/time = 0)
5879
5962
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
5880
5963
  * the holding entity transform).
5964
+ * * The fov defines the Field of View of the virtual camera
5881
5965
  */
5882
5966
  /**
5883
5967
  * @public
@@ -5885,6 +5969,8 @@ export declare namespace PBVideoPlayer {
5885
5969
  export declare interface PBVirtualCamera {
5886
5970
  defaultTransition?: CameraTransition | undefined;
5887
5971
  lookAtEntity?: number | undefined;
5972
+ /** default: 60 */
5973
+ fov?: number | undefined;
5888
5974
  }
5889
5975
 
5890
5976
  /**
@@ -7547,6 +7633,104 @@ export declare type Transport = {
7547
7633
  */
7548
7634
  export declare type TransportMessage = Omit<ReceiveMessage, 'data'>;
7549
7635
 
7636
+ export declare const TriggerArea: TriggerAreaComponentDefinitionExtended;
7637
+
7638
+ /**
7639
+ * @public
7640
+ */
7641
+ export declare interface TriggerAreaComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBTriggerArea> {
7642
+ /**
7643
+ * @public
7644
+ * Set a box in the MeshCollider component
7645
+ * @param entity - entity to create or replace the TriggerArea component
7646
+ * @param collisionMask - the collision layers mask for the trigger to react, default: Player
7647
+ */
7648
+ setBox(entity: Entity, collisionMask?: ColliderLayer | ColliderLayer[]): void;
7649
+ /**
7650
+ * @public
7651
+ * Set a sphere in the MeshCollider component
7652
+ * @param entity - entity to create or replace the TriggerArea component
7653
+ * @param collisionMask - the collision layers mask for the trigger to react, default: Player
7654
+ */
7655
+ setSphere(entity: Entity, collisionMask?: ColliderLayer | ColliderLayer[]): void;
7656
+ }
7657
+
7658
+ /**
7659
+ * @public
7660
+ */
7661
+ export declare interface TriggerAreaEventsSystem {
7662
+ /**
7663
+ * @public
7664
+ * Execute callback when an entity enters the Trigger Area
7665
+ * @param entity - The entity that already has the TriggerArea component
7666
+ * @param cb - Function to execute the 'Enter' type of result is detected
7667
+ */
7668
+ onTriggerEnter(entity: Entity, cb: TriggerAreaEventSystemCallback): void;
7669
+ /**
7670
+ * @public
7671
+ * Remove the callback for Trigger Area 'Enter' type of result
7672
+ * @param entity - Entity where the Trigger Area was attached
7673
+ */
7674
+ removeOnTriggerEnter(entity: Entity): void;
7675
+ /**
7676
+ * @public
7677
+ * Execute callback when an entity stays in the Trigger Area
7678
+ * @param entity - The entity that already has the TriggerArea component
7679
+ * @param cb - Function to execute the 'Stay' type of result is detected
7680
+ */
7681
+ onTriggerStay(entity: Entity, cb: TriggerAreaEventSystemCallback): void;
7682
+ /**
7683
+ * @public
7684
+ * Remove the callback for Trigger Area 'Stay' type of result
7685
+ * @param entity - Entity where the Trigger Area was attached
7686
+ */
7687
+ removeOnTriggerStay(entity: Entity): void;
7688
+ /**
7689
+ * @public
7690
+ * Execute callback when an entity exits the Trigger Area
7691
+ * @param entity - The entity that already has the TriggerArea component
7692
+ * @param cb - Function to execute the 'Exit' type of result is detected
7693
+ */
7694
+ onTriggerExit(entity: Entity, cb: TriggerAreaEventSystemCallback): void;
7695
+ /**
7696
+ * @public
7697
+ * Remove the callback for Trigger Area 'Exit' type of result
7698
+ * @param entity - Entity where the Trigger Area was attached
7699
+ */
7700
+ removeOnTriggerExit(entity: Entity): void;
7701
+ }
7702
+
7703
+ /**
7704
+ * @public
7705
+ * Register callback functions for trigger area results.
7706
+ */
7707
+ export declare const triggerAreaEventsSystem: TriggerAreaEventsSystem;
7708
+
7709
+ /**
7710
+ * @public
7711
+ */
7712
+ export declare type TriggerAreaEventSystemCallback = (result: DeepReadonlyObject<PBTriggerAreaResult>) => void;
7713
+
7714
+ /**
7715
+ * @public
7716
+ */
7717
+ export declare const enum TriggerAreaEventType {
7718
+ TAET_ENTER = 0,
7719
+ TAET_STAY = 1,
7720
+ TAET_EXIT = 2
7721
+ }
7722
+
7723
+ /**
7724
+ * @public
7725
+ */
7726
+ export declare const enum TriggerAreaMeshType {
7727
+ TAMT_BOX = 0,
7728
+ TAMT_SPHERE = 1
7729
+ }
7730
+
7731
+ /** @public */
7732
+ export declare const TriggerAreaResult: GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>;
7733
+
7550
7734
  export declare const Tween: TweenComponentDefinitionExtended;
7551
7735
 
7552
7736
  /**