@dcl/playground-assets 7.18.2-21450088960.commit-3c16004 → 7.18.2-21457748765.commit-7ae2e38

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.
@@ -866,6 +866,9 @@ export function createPointerEventsSystem(engine: IEngine, inputSystem: IInputSy
866
866
  // @public (undocumented)
867
867
  export function createReactBasedUiSystem(engine: IEngine, pointerSystem: PointerEventsSystem): ReactBasedUiSystem;
868
868
 
869
+ // @public
870
+ export function createTimers(targetEngine: IEngine): Timers;
871
+
869
872
  // @public (undocumented)
870
873
  export function createTweenSystem(engine: IEngine): TweenSystem;
871
874
 
@@ -1153,6 +1156,7 @@ export type EventSystemOptions = {
1153
1156
  maxDistance?: number;
1154
1157
  showFeedback?: boolean;
1155
1158
  showHighlight?: boolean;
1159
+ maxPlayerDistance?: number;
1156
1160
  };
1157
1161
 
1158
1162
  // @public
@@ -1163,6 +1167,33 @@ export type ExcludeUndefined<T> = {
1163
1167
  // @public
1164
1168
  export const executeTask: (task: Task<unknown>) => void;
1165
1169
 
1170
+ // @public
1171
+ export interface FlatMaterial {
1172
+ albedoColor: PBColor4 | undefined;
1173
+ alphaTest: number | undefined;
1174
+ readonly alphaTexture: FlatTexture;
1175
+ readonly bumpTexture: FlatTexture | undefined;
1176
+ castShadows: boolean | undefined;
1177
+ diffuseColor: PBColor4 | undefined;
1178
+ directIntensity: number | undefined;
1179
+ emissiveColor: PBColor3 | undefined;
1180
+ emissiveIntensity: number | undefined;
1181
+ readonly emissiveTexture: FlatTexture | undefined;
1182
+ metallic: number | undefined;
1183
+ reflectivityColor: PBColor3 | undefined;
1184
+ roughness: number | undefined;
1185
+ specularIntensity: number | undefined;
1186
+ readonly texture: FlatTexture;
1187
+ transparencyMode: MaterialTransparencyMode | undefined;
1188
+ }
1189
+
1190
+ // @public
1191
+ export interface FlatTexture {
1192
+ filterMode: TextureFilterMode | undefined;
1193
+ src: string | undefined;
1194
+ wrapMode: TextureWrapMode | undefined;
1195
+ }
1196
+
1166
1197
  // @public (undocumented)
1167
1198
  export type FlexDirectionType = 'row' | 'column' | 'column-reverse' | 'row-reverse';
1168
1199
 
@@ -1195,6 +1226,15 @@ export function getCompositeRootComponent(engine: IEngine): LastWriteWinElementS
1195
1226
  // @public (undocumented)
1196
1227
  export const getDefaultOpts: (opts?: Partial<EventSystemOptions>) => EventSystemOptions;
1197
1228
 
1229
+ // @public
1230
+ export function getEntitiesWithParent(engine: Pick<IEngine, 'getEntitiesWith' | 'defineComponentFromSchema'>, parent: Entity): Entity[];
1231
+
1232
+ // @public
1233
+ export function getWorldPosition(engine: WorldTransformEngine, entity: Entity): Vector3Type;
1234
+
1235
+ // @public
1236
+ export function getWorldRotation(engine: WorldTransformEngine, entity: Entity): QuaternionType;
1237
+
1198
1238
  // Warning: (ae-missing-release-tag) "GlobalDirectionRaycastOptions" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1199
1239
  //
1200
1240
  // @public (undocumented)
@@ -1659,6 +1699,10 @@ export const Material: MaterialComponentDefinitionExtended;
1659
1699
 
1660
1700
  // @public (undocumented)
1661
1701
  export interface MaterialComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBMaterial> {
1702
+ getFlat: (entity: Entity) => ReadonlyFlatMaterial;
1703
+ getFlatMutable: (entity: Entity) => FlatMaterial;
1704
+ getFlatMutableOrNull: (entity: Entity) => FlatMaterial | null;
1705
+ getFlatOrNull: (entity: Entity) => ReadonlyFlatMaterial | null;
1662
1706
  setBasicMaterial: (entity: Entity, material: PBMaterial_UnlitMaterial) => void;
1663
1707
  setPbrMaterial: (entity: Entity, material: PBMaterial_PbrMaterial) => void;
1664
1708
  Texture: TextureHelper;
@@ -2843,6 +2887,7 @@ export interface PBPointerEvents_Info {
2843
2887
  button?: InputAction | undefined;
2844
2888
  hoverText?: string | undefined;
2845
2889
  maxDistance?: number | undefined;
2890
+ maxPlayerDistance?: number | undefined;
2846
2891
  showFeedback?: boolean | undefined;
2847
2892
  showHighlight?: boolean | undefined;
2848
2893
  }
@@ -3940,6 +3985,33 @@ export type ReadonlyComponentSchema<T extends [ComponentDefinition<unknown>, ...
3940
3985
  [K in keyof T]: T[K] extends ComponentDefinition<unknown> ? ReturnType<T[K]['get']> : never;
3941
3986
  };
3942
3987
 
3988
+ // @public
3989
+ export interface ReadonlyFlatMaterial {
3990
+ readonly albedoColor: PBColor4 | undefined;
3991
+ readonly alphaTest: number | undefined;
3992
+ readonly alphaTexture: ReadonlyFlatTexture;
3993
+ readonly bumpTexture: ReadonlyFlatTexture | undefined;
3994
+ readonly castShadows: boolean | undefined;
3995
+ readonly diffuseColor: PBColor4 | undefined;
3996
+ readonly directIntensity: number | undefined;
3997
+ readonly emissiveColor: PBColor3 | undefined;
3998
+ readonly emissiveIntensity: number | undefined;
3999
+ readonly emissiveTexture: ReadonlyFlatTexture | undefined;
4000
+ readonly metallic: number | undefined;
4001
+ readonly reflectivityColor: PBColor3 | undefined;
4002
+ readonly roughness: number | undefined;
4003
+ readonly specularIntensity: number | undefined;
4004
+ readonly texture: ReadonlyFlatTexture;
4005
+ readonly transparencyMode: MaterialTransparencyMode | undefined;
4006
+ }
4007
+
4008
+ // @public
4009
+ export interface ReadonlyFlatTexture {
4010
+ readonly filterMode: TextureFilterMode | undefined;
4011
+ readonly src: string | undefined;
4012
+ readonly wrapMode: TextureWrapMode | undefined;
4013
+ }
4014
+
3943
4015
  // @public (undocumented)
3944
4016
  export type ReadOnlyGrowOnlyValueSetComponentDefinition<T> = Omit<GrowOnlyValueSetComponentDefinition<T>, 'addValue'>;
3945
4017
 
@@ -4376,6 +4448,29 @@ export const enum TextWrap {
4376
4448
  TW_WRAP = 0
4377
4449
  }
4378
4450
 
4451
+ // Warning: (ae-missing-release-tag) "TimerCallback" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
4452
+ //
4453
+ // @public (undocumented)
4454
+ export type TimerCallback = () => void;
4455
+
4456
+ // Warning: (ae-missing-release-tag) "TimerId" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
4457
+ //
4458
+ // @public (undocumented)
4459
+ export type TimerId = number;
4460
+
4461
+ // Warning: (ae-missing-release-tag) "Timers" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
4462
+ //
4463
+ // @public (undocumented)
4464
+ export type Timers = {
4465
+ setTimeout(callback: TimerCallback, ms: number): TimerId;
4466
+ clearTimeout(timerId: TimerId): void;
4467
+ setInterval(callback: TimerCallback, ms: number): TimerId;
4468
+ clearInterval(timerId: TimerId): void;
4469
+ };
4470
+
4471
+ // @public
4472
+ export const timers: Timers;
4473
+
4379
4474
  // @public
4380
4475
  export const ToGammaSpace: number;
4381
4476
 
@@ -4916,6 +5011,9 @@ export interface VirtualCameraComponentDefinitionExtended extends LastWriteWinEl
4916
5011
  // @public (undocumented)
4917
5012
  export const VisibilityComponent: LastWriteWinElementSetComponentDefinition<PBVisibilityComponent>;
4918
5013
 
5014
+ // @public
5015
+ export type WorldTransformEngine = Pick<IEngine, 'getEntitiesWith' | 'defineComponentFromSchema' | 'PlayerEntity'>;
5016
+
4919
5017
  // @public (undocumented)
4920
5018
  export const enum YGAlign {
4921
5019
  // (undocumented)
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dcl/playground-assets",
3
3
  "description": "",
4
- "version": "7.18.2-21450088960.commit-3c16004",
4
+ "version": "7.18.2-21457748765.commit-7ae2e38",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
- "@dcl/js-runtime": "7.18.2-21450088960.commit-3c16004",
8
- "@dcl/sdk": "7.18.2-21450088960.commit-3c16004"
7
+ "@dcl/js-runtime": "7.18.2-21457748765.commit-7ae2e38",
8
+ "@dcl/sdk": "7.18.2-21457748765.commit-7ae2e38"
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": "3c16004bf414bf59df7f067e30d2da6f69799936"
35
+ "commit": "7ae2e3848e600c323d6828ece5bcecd5fd9f3911"
36
36
  }