@dcl/playground-assets 7.10.2 → 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>>;
@@ -1253,6 +1254,7 @@ export interface IEngine {
1253
1254
  defineValueSetComponentFromSchema<T>(componentName: string, spec: ISchema<T>, options: ValueSetOptions<T>): GrowOnlyValueSetComponentDefinition<T>;
1254
1255
  getComponent<T>(componentId: number | string): ComponentDefinition<T>;
1255
1256
  getComponentOrNull<T>(componentId: number | string): ComponentDefinition<T> | null;
1257
+ getEntitiesByTag(tagName: string): Iterable<Entity>;
1256
1258
  getEntitiesWith<T extends [ComponentDefinition<any>, ...ComponentDefinition<any>[]]>(...components: T): Iterable<[Entity, ...ReadonlyComponentSchema<T>]>;
1257
1259
  getEntityByName<T = never, K = T>(value: K & (T extends never ? never : string)): Entity;
1258
1260
  // @alpha
@@ -3036,6 +3038,56 @@ export namespace PBTextShape {
3036
3038
  export function encode(message: PBTextShape, writer?: _m0.Writer): _m0.Writer;
3037
3039
  }
3038
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
+
3039
3091
  // @public (undocumented)
3040
3092
  export interface PBTween {
3041
3093
  currentTime?: number | undefined;
@@ -4081,6 +4133,27 @@ export type SystemItem = {
4081
4133
  // @public (undocumented)
4082
4134
  export const SYSTEMS_REGULAR_PRIORITY = 100000;
4083
4135
 
4136
+ // Warning: (ae-missing-release-tag) "Tags" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
4137
+ //
4138
+ // @public (undocumented)
4139
+ export const Tags: TagsComponentDefinitionExtended;
4140
+
4141
+ // Warning: (ae-missing-release-tag) "TagsComponentDefinitionExtended" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
4142
+ //
4143
+ // @public (undocumented)
4144
+ export interface TagsComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<TagsType> {
4145
+ add(entity: Entity, tagName: string): boolean;
4146
+ remove(entity: Entity, tagName: string): boolean;
4147
+ }
4148
+
4149
+ // Warning: (ae-missing-release-tag) "TagsType" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
4150
+ //
4151
+ // @public (undocumented)
4152
+ export interface TagsType {
4153
+ // (undocumented)
4154
+ tags: string[];
4155
+ }
4156
+
4084
4157
  // Warning: (ae-missing-release-tag) "TargetEntityRaycastOptions" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
4085
4158
  //
4086
4159
  // @public (undocumented)
@@ -4304,6 +4377,54 @@ export type Transport = {
4304
4377
  // @public (undocumented)
4305
4378
  export type TransportMessage = Omit<ReceiveMessage, 'data'>;
4306
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
+
4307
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)
4308
4429
  //
4309
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.2",
4
+ "version": "7.10.3-18106625709.commit-1bcaa4a",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
- "@dcl/js-runtime": "7.10.2",
8
- "@dcl/sdk": "7.10.2"
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": "931de89979b7eca676af3d4e3ccbaa5dcf8ef300"
35
+ "commit": "1bcaa4aa66245ab02561c033a0a0651eed1260f3"
36
36
  }