@dcl/playground-assets 7.20.4-22623908379.commit-46ce898 → 7.20.5-22631826546.commit-7c189f5

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.
@@ -70,6 +70,31 @@ export const assetLoadLoadingStateSystem: AssetLoadLoadingStateSystem;
70
70
  // @public (undocumented)
71
71
  export type AssetLoadLoadingStateSystemCallback = (event: DeepReadonlyObject<PBAssetLoadLoadingState>) => void;
72
72
 
73
+ // Warning: (ae-missing-release-tag) "AudioAnalysis" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
74
+ //
75
+ // @public (undocumented)
76
+ export const AudioAnalysis: AudioAnalysisComponentDefinitionExtended;
77
+
78
+ // Warning: (ae-missing-release-tag) "AudioAnalysisComponentDefinitionExtended" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
79
+ //
80
+ // @public (undocumented)
81
+ export interface AudioAnalysisComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBAudioAnalysis> {
82
+ createAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
83
+ amplitudeGain?: number, bandsGain?: number): void;
84
+ createOrReplaceAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
85
+ amplitudeGain?: number, bandsGain?: number): void;
86
+ readIntoView(entity: Entity, out: AudioAnalysisView): void;
87
+ tryReadIntoView(entity: Entity, out: AudioAnalysisView): boolean;
88
+ }
89
+
90
+ // Warning: (ae-missing-release-tag) "AudioAnalysisView" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
91
+ //
92
+ // @public
93
+ export type AudioAnalysisView = {
94
+ amplitude: number;
95
+ bands: number[];
96
+ };
97
+
73
98
  // @public (undocumented)
74
99
  export const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
75
100
 
@@ -162,6 +187,9 @@ export const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBAvatarEmo
162
187
  // @public (undocumented)
163
188
  export const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
164
189
 
190
+ // @public (undocumented)
191
+ export const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
192
+
165
193
  // @public (undocumented)
166
194
  export const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
167
195
 
@@ -644,6 +672,7 @@ export const componentDefinitionByName: {
644
672
  "core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
645
673
  "core::AssetLoad": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
646
674
  "core::AssetLoadLoadingState": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
675
+ "core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
647
676
  "core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
648
677
  "core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
649
678
  "core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
@@ -651,6 +680,7 @@ export const componentDefinitionByName: {
651
680
  "core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
652
681
  "core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
653
682
  "core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
683
+ "core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
654
684
  "core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
655
685
  "core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
656
686
  "core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
@@ -667,6 +697,8 @@ export const componentDefinitionByName: {
667
697
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
668
698
  "core::MeshRenderer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
669
699
  "core::NftShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBNftShape>>;
700
+ "core::PhysicsCombinedForce": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>>;
701
+ "core::PhysicsCombinedImpulse": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>>;
670
702
  "core::PlayerIdentityData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>>;
671
703
  "core::PointerEvents": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
672
704
  "core::PointerEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
@@ -1179,6 +1211,7 @@ export type EventSystemOptions = {
1179
1211
  showFeedback?: boolean;
1180
1212
  showHighlight?: boolean;
1181
1213
  maxPlayerDistance?: number;
1214
+ priority?: number;
1182
1215
  };
1183
1216
 
1184
1217
  // @public
@@ -1499,6 +1532,8 @@ export const enum InputAction {
1499
1532
  // (undocumented)
1500
1533
  IA_LEFT = 7,
1501
1534
  // (undocumented)
1535
+ IA_MODIFIER = 14,
1536
+ // (undocumented)
1502
1537
  IA_POINTER = 0,
1503
1538
  // (undocumented)
1504
1539
  IA_PRIMARY = 1,
@@ -1542,6 +1577,14 @@ export type InstanceCompositeOptions = {
1542
1577
  alreadyRequestedSrc?: Set<string>;
1543
1578
  };
1544
1579
 
1580
+ // @public (undocumented)
1581
+ export const enum InteractionType {
1582
+ // (undocumented)
1583
+ CURSOR = 0,
1584
+ // (undocumented)
1585
+ PROXIMITY = 1
1586
+ }
1587
+
1545
1588
  // @public (undocumented)
1546
1589
  export interface ISchema<T = any> {
1547
1590
  // (undocumented)
@@ -1970,6 +2013,80 @@ export namespace MoveContinuous {
1970
2013
  export function encode(message: MoveContinuous, writer?: _m0.Writer): _m0.Writer;
1971
2014
  }
1972
2015
 
2016
+ // @public (undocumented)
2017
+ export interface MoveRotateScale {
2018
+ // (undocumented)
2019
+ positionEnd: PBVector3 | undefined;
2020
+ // (undocumented)
2021
+ positionStart: PBVector3 | undefined;
2022
+ // (undocumented)
2023
+ rotationEnd: PBQuaternion | undefined;
2024
+ // (undocumented)
2025
+ rotationStart: PBQuaternion | undefined;
2026
+ // (undocumented)
2027
+ scaleEnd: PBVector3 | undefined;
2028
+ // (undocumented)
2029
+ scaleStart: PBVector3 | undefined;
2030
+ }
2031
+
2032
+ // @public (undocumented)
2033
+ export namespace MoveRotateScale {
2034
+ // (undocumented)
2035
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveRotateScale;
2036
+ // (undocumented)
2037
+ export function encode(message: MoveRotateScale, writer?: _m0.Writer): _m0.Writer;
2038
+ }
2039
+
2040
+ // @public (undocumented)
2041
+ export interface MoveRotateScaleContinuous {
2042
+ // (undocumented)
2043
+ positionDirection: PBVector3 | undefined;
2044
+ // (undocumented)
2045
+ rotationDirection: PBQuaternion | undefined;
2046
+ // (undocumented)
2047
+ scaleDirection: PBVector3 | undefined;
2048
+ // (undocumented)
2049
+ speed: number;
2050
+ }
2051
+
2052
+ // @public (undocumented)
2053
+ export namespace MoveRotateScaleContinuous {
2054
+ // (undocumented)
2055
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveRotateScaleContinuous;
2056
+ // (undocumented)
2057
+ export function encode(message: MoveRotateScaleContinuous, writer?: _m0.Writer): _m0.Writer;
2058
+ }
2059
+
2060
+ // @public
2061
+ export interface MoveRotateScaleContinuousModeParams {
2062
+ position?: {
2063
+ direction: PBVector3;
2064
+ };
2065
+ rotation?: {
2066
+ direction: PBQuaternion;
2067
+ };
2068
+ scale?: {
2069
+ direction: PBVector3;
2070
+ };
2071
+ speed: number;
2072
+ }
2073
+
2074
+ // @public
2075
+ export interface MoveRotateScaleModeParams {
2076
+ position?: {
2077
+ start: PBVector3;
2078
+ end: PBVector3;
2079
+ };
2080
+ rotation?: {
2081
+ start: PBQuaternion;
2082
+ end: PBQuaternion;
2083
+ };
2084
+ scale?: {
2085
+ start: PBVector3;
2086
+ end: PBVector3;
2087
+ };
2088
+ }
2089
+
1973
2090
  // Warning: (ae-missing-release-tag) "Name" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1974
2091
  //
1975
2092
  // @public (undocumented)
@@ -2239,6 +2356,46 @@ export namespace PBAssetLoadLoadingState {
2239
2356
  export function encode(message: PBAssetLoadLoadingState, writer?: _m0.Writer): _m0.Writer;
2240
2357
  }
2241
2358
 
2359
+ // @public (undocumented)
2360
+ export interface PBAudioAnalysis {
2361
+ amplitude: number;
2362
+ amplitudeGain?: number | undefined;
2363
+ // Warning: (tsdoc-escape-greater-than) The ">" character should be escaped using a backslash to avoid confusion with an HTML tag
2364
+ band0: number;
2365
+ // (undocumented)
2366
+ band1: number;
2367
+ // (undocumented)
2368
+ band2: number;
2369
+ // (undocumented)
2370
+ band3: number;
2371
+ // (undocumented)
2372
+ band4: number;
2373
+ // (undocumented)
2374
+ band5: number;
2375
+ // (undocumented)
2376
+ band6: number;
2377
+ // (undocumented)
2378
+ band7: number;
2379
+ bandsGain?: number | undefined;
2380
+ mode: PBAudioAnalysisMode;
2381
+ }
2382
+
2383
+ // @public (undocumented)
2384
+ export namespace PBAudioAnalysis {
2385
+ // (undocumented)
2386
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioAnalysis;
2387
+ // (undocumented)
2388
+ export function encode(message: PBAudioAnalysis, writer?: _m0.Writer): _m0.Writer;
2389
+ }
2390
+
2391
+ // @public (undocumented)
2392
+ export const enum PBAudioAnalysisMode {
2393
+ // (undocumented)
2394
+ MODE_LOGARITHMIC = 1,
2395
+ // (undocumented)
2396
+ MODE_RAW = 0
2397
+ }
2398
+
2242
2399
  // @public (undocumented)
2243
2400
  export interface PBAudioEvent {
2244
2401
  // (undocumented)
@@ -2360,6 +2517,27 @@ export namespace PBAvatarEquippedData {
2360
2517
  export function encode(message: PBAvatarEquippedData, writer?: _m0.Writer): _m0.Writer;
2361
2518
  }
2362
2519
 
2520
+ // @public (undocumented)
2521
+ export interface PBAvatarLocomotionSettings {
2522
+ doubleJumpHeight?: number | undefined;
2523
+ glidingFallingSpeed?: number | undefined;
2524
+ glidingSpeed?: number | undefined;
2525
+ hardLandingCooldown?: number | undefined;
2526
+ jogSpeed?: number | undefined;
2527
+ jumpHeight?: number | undefined;
2528
+ runJumpHeight?: number | undefined;
2529
+ runSpeed?: number | undefined;
2530
+ walkSpeed?: number | undefined;
2531
+ }
2532
+
2533
+ // @public (undocumented)
2534
+ export namespace PBAvatarLocomotionSettings {
2535
+ // (undocumented)
2536
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings;
2537
+ // (undocumented)
2538
+ export function encode(message: PBAvatarLocomotionSettings, writer?: _m0.Writer): _m0.Writer;
2539
+ }
2540
+
2363
2541
  // @public (undocumented)
2364
2542
  export interface PBAvatarModifierArea {
2365
2543
  area: PBVector3 | undefined;
@@ -2572,8 +2750,12 @@ export interface PBInputModifier_StandardInput {
2572
2750
  // (undocumented)
2573
2751
  disableAll?: boolean | undefined;
2574
2752
  // (undocumented)
2753
+ disableDoubleJump?: boolean | undefined;
2754
+ // (undocumented)
2575
2755
  disableEmote?: boolean | undefined;
2576
2756
  // (undocumented)
2757
+ disableGliding?: boolean | undefined;
2758
+ // (undocumented)
2577
2759
  disableJog?: boolean | undefined;
2578
2760
  // (undocumented)
2579
2761
  disableJump?: boolean | undefined;
@@ -2891,6 +3073,33 @@ export namespace PBNftShape {
2891
3073
  export function encode(message: PBNftShape, writer?: _m0.Writer): _m0.Writer;
2892
3074
  }
2893
3075
 
3076
+ // @public (undocumented)
3077
+ export interface PBPhysicsCombinedForce {
3078
+ vector: PBVector3 | undefined;
3079
+ }
3080
+
3081
+ // @public (undocumented)
3082
+ export namespace PBPhysicsCombinedForce {
3083
+ // (undocumented)
3084
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPhysicsCombinedForce;
3085
+ // (undocumented)
3086
+ export function encode(message: PBPhysicsCombinedForce, writer?: _m0.Writer): _m0.Writer;
3087
+ }
3088
+
3089
+ // @public (undocumented)
3090
+ export interface PBPhysicsCombinedImpulse {
3091
+ eventId: number;
3092
+ vector: PBVector3 | undefined;
3093
+ }
3094
+
3095
+ // @public (undocumented)
3096
+ export namespace PBPhysicsCombinedImpulse {
3097
+ // (undocumented)
3098
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPhysicsCombinedImpulse;
3099
+ // (undocumented)
3100
+ export function encode(message: PBPhysicsCombinedImpulse, writer?: _m0.Writer): _m0.Writer;
3101
+ }
3102
+
2894
3103
  // @public (undocumented)
2895
3104
  export interface PBPlayerIdentityData {
2896
3105
  address: string;
@@ -2923,6 +3132,7 @@ export namespace PBPointerEvents {
2923
3132
  export interface PBPointerEvents_Entry {
2924
3133
  eventInfo: PBPointerEvents_Info | undefined;
2925
3134
  eventType: PointerEventType;
3135
+ interactionType?: InteractionType | undefined;
2926
3136
  }
2927
3137
 
2928
3138
  // @public (undocumented)
@@ -2939,6 +3149,7 @@ export interface PBPointerEvents_Info {
2939
3149
  hoverText?: string | undefined;
2940
3150
  maxDistance?: number | undefined;
2941
3151
  maxPlayerDistance?: number | undefined;
3152
+ priority?: number | undefined;
2942
3153
  showFeedback?: boolean | undefined;
2943
3154
  showHighlight?: boolean | undefined;
2944
3155
  }
@@ -3231,6 +3442,12 @@ export interface PBTween {
3231
3442
  } | {
3232
3443
  $case: "textureMoveContinuous";
3233
3444
  textureMoveContinuous: TextureMoveContinuous;
3445
+ } | {
3446
+ $case: "moveRotateScale";
3447
+ moveRotateScale: MoveRotateScale;
3448
+ } | {
3449
+ $case: "moveRotateScaleContinuous";
3450
+ moveRotateScaleContinuous: MoveRotateScaleContinuous;
3234
3451
  } | undefined;
3235
3452
  playing?: boolean | undefined;
3236
3453
  }
@@ -3602,6 +3819,7 @@ export namespace PBVideoPlayer {
3602
3819
  export interface PBVirtualCamera {
3603
3820
  // (undocumented)
3604
3821
  defaultTransition?: CameraTransition | undefined;
3822
+ fov?: number | undefined;
3605
3823
  // (undocumented)
3606
3824
  lookAtEntity?: number | undefined;
3607
3825
  }
@@ -3628,6 +3846,12 @@ export namespace PBVisibilityComponent {
3628
3846
  export function encode(message: PBVisibilityComponent, writer?: _m0.Writer): _m0.Writer;
3629
3847
  }
3630
3848
 
3849
+ // @public (undocumented)
3850
+ export const PhysicsCombinedForce: LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>;
3851
+
3852
+ // @public (undocumented)
3853
+ export const PhysicsCombinedImpulse: LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>;
3854
+
3631
3855
  // @public
3632
3856
  export namespace Plane {
3633
3857
  // (undocumented)
@@ -3693,10 +3917,30 @@ export interface PointerEventsSystem {
3693
3917
  }, cb: EventSystemCallback): void;
3694
3918
  // @deprecated (undocumented)
3695
3919
  onPointerUp(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
3920
+ onProximityDown(pointerData: {
3921
+ entity: Entity;
3922
+ opts?: Partial<EventSystemOptions>;
3923
+ }, cb: EventSystemCallback): void;
3924
+ onProximityEnter(pointerData: {
3925
+ entity: Entity;
3926
+ opts?: Partial<EventSystemOptions>;
3927
+ }, cb: EventSystemCallback): void;
3928
+ onProximityLeave(pointerData: {
3929
+ entity: Entity;
3930
+ opts?: Partial<EventSystemOptions>;
3931
+ }, cb: EventSystemCallback): void;
3932
+ onProximityUp(pointerData: {
3933
+ entity: Entity;
3934
+ opts?: Partial<EventSystemOptions>;
3935
+ }, cb: EventSystemCallback): void;
3696
3936
  removeOnPointerDown(entity: Entity): void;
3697
3937
  removeOnPointerHoverEnter(entity: Entity): void;
3698
3938
  removeOnPointerHoverLeave(entity: Entity): void;
3699
3939
  removeOnPointerUp(entity: Entity): void;
3940
+ removeOnProximityDown(entity: Entity): void;
3941
+ removeOnProximityEnter(entity: Entity): void;
3942
+ removeOnProximityLeave(entity: Entity): void;
3943
+ removeOnProximityUp(entity: Entity): void;
3700
3944
  }
3701
3945
 
3702
3946
  // @public
@@ -3711,6 +3955,10 @@ export const enum PointerEventType {
3711
3955
  // (undocumented)
3712
3956
  PET_HOVER_LEAVE = 3,
3713
3957
  // (undocumented)
3958
+ PET_PROXIMITY_ENTER = 4,
3959
+ // (undocumented)
3960
+ PET_PROXIMITY_LEAVE = 5,
3961
+ // (undocumented)
3714
3962
  PET_UP = 0
3715
3963
  }
3716
3964
 
@@ -4275,6 +4523,17 @@ export namespace Schemas {
4275
4523
  }) => void;
4276
4524
  }
4277
4525
 
4526
+ // @public
4527
+ export interface SetMoveRotateScaleContinuousParams extends MoveRotateScaleContinuousModeParams {
4528
+ duration?: number;
4529
+ }
4530
+
4531
+ // @public
4532
+ export interface SetMoveRotateScaleParams extends MoveRotateScaleModeParams {
4533
+ duration: number;
4534
+ easingFunction?: EasingFunction;
4535
+ }
4536
+
4278
4537
  // @public (undocumented)
4279
4538
  export const SkyboxTime: LastWriteWinElementSetComponentDefinition<PBSkyboxTime>;
4280
4539
 
@@ -4646,6 +4905,8 @@ export interface TweenComponentDefinitionExtended extends LastWriteWinElementSet
4646
4905
  Mode: TweenHelper;
4647
4906
  setMove(entity: Entity, start: PBVector3, end: PBVector3, duration: number, easingFunction?: EasingFunction): void;
4648
4907
  setMoveContinuous(entity: Entity, direction: PBVector3, speed: number, duration?: number): void;
4908
+ setMoveRotateScale(entity: Entity, params: SetMoveRotateScaleParams): void;
4909
+ setMoveRotateScaleContinuous(entity: Entity, params: SetMoveRotateScaleContinuousParams): void;
4649
4910
  setRotate(entity: Entity, start: PBQuaternion, end: PBQuaternion, duration: number, easingFunction?: EasingFunction): void;
4650
4911
  setRotateContinuous(entity: Entity, direction: PBQuaternion, speed: number, duration?: number): void;
4651
4912
  setScale(entity: Entity, start: PBVector3, end: PBVector3, duration: number, easingFunction?: EasingFunction): void;
@@ -4660,6 +4921,10 @@ export interface TweenHelper {
4660
4921
  // (undocumented)
4661
4922
  MoveContinuous: (move: MoveContinuous) => PBTween['mode'];
4662
4923
  // (undocumented)
4924
+ MoveRotateScale: (params: MoveRotateScaleModeParams) => PBTween['mode'];
4925
+ // (undocumented)
4926
+ MoveRotateScaleContinuous: (params: MoveRotateScaleContinuousModeParams) => PBTween['mode'];
4927
+ // (undocumented)
4663
4928
  Rotate: (rotate: Rotate) => PBTween['mode'];
4664
4929
  // (undocumented)
4665
4930
  RotateContinuous: (rotate: RotateContinuous) => PBTween['mode'];
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dcl/playground-assets",
3
3
  "description": "",
4
- "version": "7.20.4-22623908379.commit-46ce898",
4
+ "version": "7.20.5-22631826546.commit-7c189f5",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
- "@dcl/js-runtime": "7.20.4-22623908379.commit-46ce898",
8
- "@dcl/sdk": "7.20.4-22623908379.commit-46ce898"
7
+ "@dcl/js-runtime": "7.20.5-22631826546.commit-7c189f5",
8
+ "@dcl/sdk": "7.20.5-22631826546.commit-7c189f5"
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": "46ce8981334e95bd4d0a007d64be2c875a526129"
35
+ "commit": "7c189f506c0cafa9920233b0b576ab1e6d16ab75"
36
36
  }