@dcl/sdk 7.0.0-2706310238.commit-e895a52 → 7.0.0-2706600078.commit-85e1525

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.
@@ -21,23 +21,11 @@ declare const enum ActionButton {
21
21
  */
22
22
  export declare function ArrayType<T>(type: EcsType<T>): EcsType<Array<T>>;
23
23
 
24
- declare const enum AvatarModifier {
25
- HIDE_AVATARS = 0,
26
- DISABLE_PASSPORTS = 1,
27
- UNRECOGNIZED = -1
28
- }
29
-
30
24
  /**
31
25
  * @public
32
26
  */
33
27
  export declare type ByteBuffer = ReturnType<typeof createByteBuffer>;
34
28
 
35
- declare const enum CameraMode {
36
- FIRST_PERSON = 0,
37
- THIRD_PERSON = 1,
38
- UNRECOGNIZED = -1
39
- }
40
-
41
29
  declare interface Color3 {
42
30
  r: number;
43
31
  g: number;
@@ -227,13 +215,9 @@ export declare type DeepReadonly<T> = {
227
215
  declare function defineSdkComponents(engine: Pick<IEngine, 'defineComponent'>): {
228
216
  Animator: ComponentDefinition<EcsType<PBAnimator>>;
229
217
  AudioSource: ComponentDefinition<EcsType<PBAudioSource>>;
230
- AudioStream: ComponentDefinition<EcsType<PBAudioStream>>;
231
218
  AvatarAttach: ComponentDefinition<EcsType<PBAvatarAttach>>;
232
- AvatarModifierArea: ComponentDefinition<EcsType<PBAvatarModifierArea>>;
233
219
  AvatarShape: ComponentDefinition<EcsType<PBAvatarShape>>;
234
- Billboard: ComponentDefinition<EcsType<PBBillboard>>;
235
220
  BoxShape: ComponentDefinition<EcsType<PBBoxShape>>;
236
- CameraModeArea: ComponentDefinition<EcsType<PBCameraModeArea>>;
237
221
  CylinderShape: ComponentDefinition<EcsType<PBCylinderShape>>;
238
222
  GLTFShape: ComponentDefinition<EcsType<PBGLTFShape>>;
239
223
  NFTShape: ComponentDefinition<EcsType<PBNFTShape>>;
@@ -244,7 +228,6 @@ declare function defineSdkComponents(engine: Pick<IEngine, 'defineComponent'>):
244
228
  PlaneShape: ComponentDefinition<EcsType<PBPlaneShape>>;
245
229
  SphereShape: ComponentDefinition<EcsType<PBSphereShape>>;
246
230
  TextShape: ComponentDefinition<EcsType<PBTextShape>>;
247
- UiTransform: ComponentDefinition<EcsType<PBUiTransform>>;
248
231
  Transform: ComponentDefinition<EcsType<Transform>>;
249
232
  };
250
233
 
@@ -352,7 +335,7 @@ export declare type IEngine = {
352
335
  groupOf<T extends [ComponentDefinition, ...ComponentDefinition[]]>(...components: T): Iterable<[Entity, ...DeepReadonly<ComponentEcsType<T>>]>;
353
336
  getComponent<T extends EcsType>(componentId: number): ComponentDefinition<T>;
354
337
  update(dt: number): void;
355
- baseComponents: SdkComponetns;
338
+ baseComponents: SdkComponents;
356
339
  };
357
340
 
358
341
  /**
@@ -1177,23 +1160,11 @@ declare interface PBAudioSource {
1177
1160
  audioClipUrl: string;
1178
1161
  }
1179
1162
 
1180
- declare interface PBAudioStream {
1181
- playing: boolean;
1182
- volume: number;
1183
- url: string;
1184
- }
1185
-
1186
1163
  declare interface PBAvatarAttach {
1187
1164
  avatarId: string;
1188
1165
  anchorPointId: number;
1189
1166
  }
1190
1167
 
1191
- declare interface PBAvatarModifierArea {
1192
- area: Vector3_2 | undefined;
1193
- excludeIds: string[];
1194
- modifiers: AvatarModifier[];
1195
- }
1196
-
1197
1168
  declare interface PBAvatarShape {
1198
1169
  id: string;
1199
1170
  name: string;
@@ -1209,12 +1180,6 @@ declare interface PBAvatarShape {
1209
1180
  talking: boolean;
1210
1181
  }
1211
1182
 
1212
- declare interface PBBillboard {
1213
- x: boolean;
1214
- y: boolean;
1215
- z: boolean;
1216
- }
1217
-
1218
1183
  declare interface PBBoxShape {
1219
1184
  withCollisions: boolean;
1220
1185
  isPointerBlocker: boolean;
@@ -1222,11 +1187,6 @@ declare interface PBBoxShape {
1222
1187
  uvs: number[];
1223
1188
  }
1224
1189
 
1225
- declare interface PBCameraModeArea {
1226
- area: Vector3_2 | undefined;
1227
- mode: CameraMode;
1228
- }
1229
-
1230
1190
  declare interface PBCylinderShape {
1231
1191
  withCollisions: boolean;
1232
1192
  isPointerBlocker: boolean;
@@ -1328,65 +1288,6 @@ declare interface PBTextShape {
1328
1288
  textColor: Color3 | undefined;
1329
1289
  }
1330
1290
 
1331
- declare interface PBUiTransform {
1332
- positionType: YGPositionType;
1333
- alignContent: YGAlign;
1334
- alignItems: YGAlign;
1335
- alignSelf: YGAlign;
1336
- flexDirection: YGFlexDirection;
1337
- flexWrap: YGWrap;
1338
- justifyContent: YGJustify;
1339
- overflow: YGOverflow;
1340
- display: YGDisplay;
1341
- direction: YGDirection;
1342
- flex: number;
1343
- flexBasisUnit: YGUnit;
1344
- flexBasis: number;
1345
- flexGrow: number;
1346
- flexShrink: number;
1347
- widthUnit: YGUnit;
1348
- width: number;
1349
- heightUnit: YGUnit;
1350
- height: number;
1351
- minWidthUnit: YGUnit;
1352
- minWidth: number;
1353
- minHeightUnit: YGUnit;
1354
- minHeight: number;
1355
- maxWidthUnit: YGUnit;
1356
- maxWidth: number;
1357
- maxHeightUnit: YGUnit;
1358
- maxHeight: number;
1359
- positionLeftUnit: YGUnit;
1360
- positionLeft: number;
1361
- positionTopUnit: YGUnit;
1362
- positionTop: number;
1363
- positionRightUnit: YGUnit;
1364
- positionRight: number;
1365
- positionBottomUnit: YGUnit;
1366
- positionBottom: number;
1367
- /** margin */
1368
- marginLeftUnit: YGUnit;
1369
- marginLeft: number;
1370
- marginTopUnit: YGUnit;
1371
- marginTop: number;
1372
- marginRightUnit: YGUnit;
1373
- marginRight: number;
1374
- marginBottomUnit: YGUnit;
1375
- marginBottom: number;
1376
- paddingLeftUnit: YGUnit;
1377
- paddingLeft: number;
1378
- paddingTopUnit: YGUnit;
1379
- paddingTop: number;
1380
- paddingRightUnit: YGUnit;
1381
- paddingRight: number;
1382
- paddingBottomUnit: YGUnit;
1383
- paddingBottom: number;
1384
- borderLeft: number;
1385
- borderTop: number;
1386
- borderRight: number;
1387
- borderBottom: number;
1388
- }
1389
-
1390
1291
  /**
1391
1292
  * Represens a plane by the equation ax + by + cz + d = 0
1392
1293
  * @public
@@ -1686,7 +1587,7 @@ export declare type Result<T extends Spec> = ToOptional<{
1686
1587
  /**
1687
1588
  * @public
1688
1589
  */
1689
- export declare type SdkComponetns = ReturnType<typeof defineSdkComponents>;
1590
+ export declare type SdkComponents = ReturnType<typeof defineSdkComponents>;
1690
1591
 
1691
1592
  /**
1692
1593
  * Defines supported spaces
@@ -1982,82 +1883,10 @@ declare namespace WireMessage {
1982
1883
  const HEADER_LENGTH = 8;
1983
1884
  /**
1984
1885
  * Validate if the message incoming is completed
1985
- * @param buf
1886
+ * @param buf - ByteBuffer
1986
1887
  */
1987
1888
  function validate(buf: ByteBuffer): boolean;
1988
1889
  function readHeader(buf: ByteBuffer): Header | null;
1989
1890
  }
1990
1891
 
1991
- declare const enum YGAlign {
1992
- YGAlignAuto = 0,
1993
- YGAlignFlexStart = 1,
1994
- YGAlignCenter = 2,
1995
- YGAlignFlexEnd = 3,
1996
- YGAlignStretch = 4,
1997
- YGAlignBaseline = 5,
1998
- YGAlignSpaceBetween = 6,
1999
- YGAlignSpaceAround = 7,
2000
- UNRECOGNIZED = -1
2001
- }
2002
-
2003
- declare const enum YGDirection {
2004
- YGDirectionInherit = 0,
2005
- YGDirectionLTR = 1,
2006
- YGDirectionRTL = 2,
2007
- UNRECOGNIZED = -1
2008
- }
2009
-
2010
- declare const enum YGDisplay {
2011
- YGDisplayFlex = 0,
2012
- YGDisplayNone = 1,
2013
- UNRECOGNIZED = -1
2014
- }
2015
-
2016
- declare const enum YGFlexDirection {
2017
- YGFlexDirectionColumn = 0,
2018
- YGFlexDirectionColumnReverse = 1,
2019
- YGFlexDirectionRow = 2,
2020
- YGFlexDirectionRowReverse = 3,
2021
- UNRECOGNIZED = -1
2022
- }
2023
-
2024
- declare const enum YGJustify {
2025
- YGJustifyFlexStart = 0,
2026
- YGJustifyCenter = 1,
2027
- YGJustifyFlexEnd = 2,
2028
- YGJustifySpaceBetween = 3,
2029
- YGJustifySpaceAround = 4,
2030
- YGJustifySpaceEvenly = 5,
2031
- UNRECOGNIZED = -1
2032
- }
2033
-
2034
- declare const enum YGOverflow {
2035
- YGOverflowVisible = 0,
2036
- YGOverflowHidden = 1,
2037
- YGOverflowScroll = 2,
2038
- UNRECOGNIZED = -1
2039
- }
2040
-
2041
- declare const enum YGPositionType {
2042
- YGPositionTypeStatic = 0,
2043
- YGPositionTypeRelative = 1,
2044
- YGPositionTypeAbsolute = 2,
2045
- UNRECOGNIZED = -1
2046
- }
2047
-
2048
- declare const enum YGUnit {
2049
- YGUnitUndefined = 0,
2050
- YGUnitPoint = 1,
2051
- YGUnitPercent = 2,
2052
- YGUnitAuto = 3,
2053
- UNRECOGNIZED = -1
2054
- }
2055
-
2056
- declare const enum YGWrap {
2057
- YGWrapNoWrap = 0,
2058
- YGWrapWrap = 1,
2059
- YGWrapWrapReverse = 2,
2060
- UNRECOGNIZED = -1
2061
- }
2062
-
2063
1892
  export { }