@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.
@@ -427,10 +427,9 @@ export const enum ColliderLayer {
427
427
  CL_CUSTOM8 = 32768,
428
428
  CL_NONE = 0,
429
429
  CL_PHYSICS = 2,
430
+ CL_PLAYER = 4,
430
431
  CL_POINTER = 1,
431
432
  // (undocumented)
432
- CL_RESERVED1 = 4,
433
- // (undocumented)
434
433
  CL_RESERVED2 = 8,
435
434
  // (undocumented)
436
435
  CL_RESERVED3 = 16,
@@ -656,6 +655,8 @@ export const componentDefinitionByName: {
656
655
  "core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
657
656
  "core::SkyboxTime": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkyboxTime>>;
658
657
  "core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
658
+ "core::TriggerArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTriggerArea>>;
659
+ "core::TriggerAreaResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>>;
659
660
  "core::Tween": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
660
661
  "core::TweenSequence": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenSequence>>;
661
662
  "core::TweenState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenState>>;
@@ -3037,6 +3038,56 @@ export namespace PBTextShape {
3037
3038
  export function encode(message: PBTextShape, writer?: _m0.Writer): _m0.Writer;
3038
3039
  }
3039
3040
 
3041
+ // @public (undocumented)
3042
+ export interface PBTriggerArea {
3043
+ collisionMask?: number | undefined;
3044
+ mesh?: TriggerAreaMeshType | undefined;
3045
+ }
3046
+
3047
+ // @public (undocumented)
3048
+ export namespace PBTriggerArea {
3049
+ // (undocumented)
3050
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTriggerArea;
3051
+ // (undocumented)
3052
+ export function encode(message: PBTriggerArea, writer?: _m0.Writer): _m0.Writer;
3053
+ }
3054
+
3055
+ // @public (undocumented)
3056
+ export interface PBTriggerAreaResult {
3057
+ eventType: TriggerAreaEventType;
3058
+ timestamp: number;
3059
+ // (undocumented)
3060
+ trigger: PBTriggerAreaResult_Trigger | undefined;
3061
+ triggeredEntity: number;
3062
+ triggeredEntityPosition: PBVector3 | undefined;
3063
+ triggeredEntityRotation: PBQuaternion | undefined;
3064
+ }
3065
+
3066
+ // @public (undocumented)
3067
+ export namespace PBTriggerAreaResult {
3068
+ // (undocumented)
3069
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTriggerAreaResult;
3070
+ // (undocumented)
3071
+ export function encode(message: PBTriggerAreaResult, writer?: _m0.Writer): _m0.Writer;
3072
+ }
3073
+
3074
+ // @public (undocumented)
3075
+ export interface PBTriggerAreaResult_Trigger {
3076
+ entity: number;
3077
+ layers: number;
3078
+ position: PBVector3 | undefined;
3079
+ rotation: PBQuaternion | undefined;
3080
+ scale: PBVector3 | undefined;
3081
+ }
3082
+
3083
+ // @public (undocumented)
3084
+ export namespace PBTriggerAreaResult_Trigger {
3085
+ // (undocumented)
3086
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTriggerAreaResult_Trigger;
3087
+ // (undocumented)
3088
+ export function encode(message: PBTriggerAreaResult_Trigger, writer?: _m0.Writer): _m0.Writer;
3089
+ }
3090
+
3040
3091
  // @public (undocumented)
3041
3092
  export interface PBTween {
3042
3093
  currentTime?: number | undefined;
@@ -3424,6 +3475,7 @@ export namespace PBVideoPlayer {
3424
3475
  export interface PBVirtualCamera {
3425
3476
  // (undocumented)
3426
3477
  defaultTransition?: CameraTransition | undefined;
3478
+ fov?: number | undefined;
3427
3479
  // (undocumented)
3428
3480
  lookAtEntity?: number | undefined;
3429
3481
  }
@@ -4326,6 +4378,54 @@ export type Transport = {
4326
4378
  // @public (undocumented)
4327
4379
  export type TransportMessage = Omit<ReceiveMessage, 'data'>;
4328
4380
 
4381
+ // Warning: (ae-missing-release-tag) "TriggerArea" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
4382
+ //
4383
+ // @public (undocumented)
4384
+ export const TriggerArea: TriggerAreaComponentDefinitionExtended;
4385
+
4386
+ // @public (undocumented)
4387
+ export interface TriggerAreaComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBTriggerArea> {
4388
+ setBox(entity: Entity, collisionMask?: ColliderLayer | ColliderLayer[]): void;
4389
+ setSphere(entity: Entity, collisionMask?: ColliderLayer | ColliderLayer[]): void;
4390
+ }
4391
+
4392
+ // @public (undocumented)
4393
+ export interface TriggerAreaEventsSystem {
4394
+ onTriggerEnter(entity: Entity, cb: TriggerAreaEventSystemCallback): void;
4395
+ onTriggerExit(entity: Entity, cb: TriggerAreaEventSystemCallback): void;
4396
+ onTriggerStay(entity: Entity, cb: TriggerAreaEventSystemCallback): void;
4397
+ removeOnTriggerEnter(entity: Entity): void;
4398
+ removeOnTriggerExit(entity: Entity): void;
4399
+ removeOnTriggerStay(entity: Entity): void;
4400
+ }
4401
+
4402
+ // @public
4403
+ export const triggerAreaEventsSystem: TriggerAreaEventsSystem;
4404
+
4405
+ // @public (undocumented)
4406
+ export type TriggerAreaEventSystemCallback = (result: DeepReadonlyObject<PBTriggerAreaResult>) => void;
4407
+
4408
+ // @public (undocumented)
4409
+ export const enum TriggerAreaEventType {
4410
+ // (undocumented)
4411
+ TAET_ENTER = 0,
4412
+ // (undocumented)
4413
+ TAET_EXIT = 2,
4414
+ // (undocumented)
4415
+ TAET_STAY = 1
4416
+ }
4417
+
4418
+ // @public (undocumented)
4419
+ export const enum TriggerAreaMeshType {
4420
+ // (undocumented)
4421
+ TAMT_BOX = 0,
4422
+ // (undocumented)
4423
+ TAMT_SPHERE = 1
4424
+ }
4425
+
4426
+ // @public (undocumented)
4427
+ export const TriggerAreaResult: GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>;
4428
+
4329
4429
  // Warning: (ae-missing-release-tag) "Tween" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
4330
4430
  //
4331
4431
  // @public (undocumented)
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dcl/playground-assets",
3
3
  "description": "",
4
- "version": "7.10.3-17918694201.commit-b983b3b",
4
+ "version": "7.10.3-18110910324.commit-20b1978",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
- "@dcl/js-runtime": "7.10.3-17918694201.commit-b983b3b",
8
- "@dcl/sdk": "7.10.3-17918694201.commit-b983b3b"
7
+ "@dcl/js-runtime": "7.10.3-18110910324.commit-20b1978",
8
+ "@dcl/sdk": "7.10.3-18110910324.commit-20b1978"
9
9
  },
10
10
  "devDependencies": {
11
11
  "@microsoft/api-extractor": "^7.33.8"
@@ -32,5 +32,5 @@
32
32
  },
33
33
  "types": "./dist/index.d.ts",
34
34
  "typings": "./dist/index.d.ts",
35
- "commit": "b983b3b74a44f323355ad4aed6a0e25504d20eb1"
35
+ "commit": "20b1978008d89a9d9bb851ccc8d055468a6133a8"
36
36
  }