@dcl/playground-assets 7.12.3-19251638766.commit-26dce86 → 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 +233 -11
- package/dist/beta.d.ts +233 -11
- package/dist/index.bundled.d.ts +233 -11
- package/dist/index.js +7 -7
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +233 -11
- package/etc/playground-assets.api.json +2608 -614
- package/etc/playground-assets.api.md +80 -10
- package/package.json +4 -4
package/dist/index.bundled.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
|
-
|
|
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
|
-
|
|
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":
|
|
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
|
-
|
|
2826
|
-
|
|
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
|
-
|
|
8342
|
-
|
|
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:
|
|
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
|
|
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
|
|
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
|
/**
|