@dcl/playground-assets 7.10.3-17918694201.commit-b983b3b → 7.10.3-18106625709.commit-1bcaa4a

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;
@@ -4326,6 +4377,54 @@ export type Transport = {
4326
4377
  // @public (undocumented)
4327
4378
  export type TransportMessage = Omit<ReceiveMessage, 'data'>;
4328
4379
 
4380
+ // 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)
4381
+ //
4382
+ // @public (undocumented)
4383
+ export const TriggerArea: TriggerAreaComponentDefinitionExtended;
4384
+
4385
+ // @public (undocumented)
4386
+ export interface TriggerAreaComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBTriggerArea> {
4387
+ setBox(entity: Entity, collisionMask?: ColliderLayer | ColliderLayer[]): void;
4388
+ setSphere(entity: Entity, collisionMask?: ColliderLayer | ColliderLayer[]): void;
4389
+ }
4390
+
4391
+ // @public (undocumented)
4392
+ export interface TriggerAreaEventsSystem {
4393
+ onTriggerEnter(entity: Entity, cb: TriggerAreaEventSystemCallback): void;
4394
+ onTriggerExit(entity: Entity, cb: TriggerAreaEventSystemCallback): void;
4395
+ onTriggerStay(entity: Entity, cb: TriggerAreaEventSystemCallback): void;
4396
+ removeOnTriggerEnter(entity: Entity): void;
4397
+ removeOnTriggerExit(entity: Entity): void;
4398
+ removeOnTriggerStay(entity: Entity): void;
4399
+ }
4400
+
4401
+ // @public
4402
+ export const triggerAreaEventsSystem: TriggerAreaEventsSystem;
4403
+
4404
+ // @public (undocumented)
4405
+ export type TriggerAreaEventSystemCallback = (result: DeepReadonlyObject<PBTriggerAreaResult>) => void;
4406
+
4407
+ // @public (undocumented)
4408
+ export const enum TriggerAreaEventType {
4409
+ // (undocumented)
4410
+ TAET_ENTER = 0,
4411
+ // (undocumented)
4412
+ TAET_EXIT = 2,
4413
+ // (undocumented)
4414
+ TAET_STAY = 1
4415
+ }
4416
+
4417
+ // @public (undocumented)
4418
+ export const enum TriggerAreaMeshType {
4419
+ // (undocumented)
4420
+ TAMT_BOX = 0,
4421
+ // (undocumented)
4422
+ TAMT_SPHERE = 1
4423
+ }
4424
+
4425
+ // @public (undocumented)
4426
+ export const TriggerAreaResult: GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>;
4427
+
4329
4428
  // 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
4429
  //
4331
4430
  // @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-18106625709.commit-1bcaa4a",
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-18106625709.commit-1bcaa4a",
8
+ "@dcl/sdk": "7.10.3-18106625709.commit-1bcaa4a"
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": "1bcaa4aa66245ab02561c033a0a0651eed1260f3"
36
36
  }