@dcl/sdk 7.0.0-2677486397.commit-094a357 → 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.
@@ -1,3 +1,21 @@
1
+ declare const enum ActionButton {
2
+ POINTER = 0,
3
+ PRIMARY = 1,
4
+ SECONDARY = 2,
5
+ ANY = 3,
6
+ FORWARD = 4,
7
+ BACKWARD = 5,
8
+ RIGHT = 6,
9
+ LEFT = 7,
10
+ JUMP = 8,
11
+ WALK = 9,
12
+ ACTION_3 = 10,
13
+ ACTION_4 = 11,
14
+ ACTION_5 = 12,
15
+ ACTION_6 = 13,
16
+ UNRECOGNIZED = -1
17
+ }
18
+
1
19
  /**
2
20
  * @public
3
21
  */
@@ -197,13 +215,9 @@ export declare type DeepReadonly<T> = {
197
215
  declare function defineSdkComponents(engine: Pick<IEngine, 'defineComponent'>): {
198
216
  Animator: ComponentDefinition<EcsType<PBAnimator>>;
199
217
  AudioSource: ComponentDefinition<EcsType<PBAudioSource>>;
200
- AudioStream: ComponentDefinition<EcsType<PBAudioStream>>;
201
218
  AvatarAttach: ComponentDefinition<EcsType<PBAvatarAttach>>;
202
- AvatarModifierArea: ComponentDefinition<EcsType<PBAvatarModifierArea>>;
203
219
  AvatarShape: ComponentDefinition<EcsType<PBAvatarShape>>;
204
- Billboard: ComponentDefinition<EcsType<PBBillboard>>;
205
220
  BoxShape: ComponentDefinition<EcsType<PBBoxShape>>;
206
- CameraModeArea: ComponentDefinition<EcsType<PBCameraModeArea>>;
207
221
  CylinderShape: ComponentDefinition<EcsType<PBCylinderShape>>;
208
222
  GLTFShape: ComponentDefinition<EcsType<PBGLTFShape>>;
209
223
  NFTShape: ComponentDefinition<EcsType<PBNFTShape>>;
@@ -214,7 +228,6 @@ declare function defineSdkComponents(engine: Pick<IEngine, 'defineComponent'>):
214
228
  PlaneShape: ComponentDefinition<EcsType<PBPlaneShape>>;
215
229
  SphereShape: ComponentDefinition<EcsType<PBSphereShape>>;
216
230
  TextShape: ComponentDefinition<EcsType<PBTextShape>>;
217
- UiTransform: ComponentDefinition<EcsType<PBUiTransform>>;
218
231
  Transform: ComponentDefinition<EcsType<Transform>>;
219
232
  };
220
233
 
@@ -322,7 +335,7 @@ export declare type IEngine = {
322
335
  groupOf<T extends [ComponentDefinition, ...ComponentDefinition[]]>(...components: T): Iterable<[Entity, ...DeepReadonly<ComponentEcsType<T>>]>;
323
336
  getComponent<T extends EcsType>(componentId: number): ComponentDefinition<T>;
324
337
  update(dt: number): void;
325
- baseComponents: SdkComponetns;
338
+ baseComponents: SdkComponents;
326
339
  };
327
340
 
328
341
  /**
@@ -1144,33 +1157,14 @@ declare interface PBAudioSource {
1144
1157
  volume: number;
1145
1158
  loop: boolean;
1146
1159
  pitch: number;
1147
- playedAtTimestamp: number;
1148
1160
  audioClipUrl: string;
1149
1161
  }
1150
1162
 
1151
- declare interface PBAudioStream {
1152
- playing: boolean;
1153
- volume: number;
1154
- url: string;
1155
- }
1156
-
1157
1163
  declare interface PBAvatarAttach {
1158
1164
  avatarId: string;
1159
1165
  anchorPointId: number;
1160
1166
  }
1161
1167
 
1162
- declare interface PBAvatarModifierArea {
1163
- area: Vector3_2 | undefined;
1164
- excludeIds: string[];
1165
- modifiers: PBAvatarModifierArea_Modifier[];
1166
- }
1167
-
1168
- declare enum PBAvatarModifierArea_Modifier {
1169
- HIDE_AVATARS = 0,
1170
- DISABLE_PASSPORTS = 1,
1171
- UNRECOGNIZED = -1
1172
- }
1173
-
1174
1168
  declare interface PBAvatarShape {
1175
1169
  id: string;
1176
1170
  name: string;
@@ -1186,12 +1180,6 @@ declare interface PBAvatarShape {
1186
1180
  talking: boolean;
1187
1181
  }
1188
1182
 
1189
- declare interface PBBillboard {
1190
- x: boolean;
1191
- y: boolean;
1192
- z: boolean;
1193
- }
1194
-
1195
1183
  declare interface PBBoxShape {
1196
1184
  withCollisions: boolean;
1197
1185
  isPointerBlocker: boolean;
@@ -1199,17 +1187,6 @@ declare interface PBBoxShape {
1199
1187
  uvs: number[];
1200
1188
  }
1201
1189
 
1202
- declare interface PBCameraModeArea {
1203
- area: Vector3_2 | undefined;
1204
- mode: PBCameraModeArea_CameraMode;
1205
- }
1206
-
1207
- declare enum PBCameraModeArea_CameraMode {
1208
- FIRST_PERSON = 0,
1209
- THIRD_PERSON = 1,
1210
- UNRECOGNIZED = -1
1211
- }
1212
-
1213
1190
  declare interface PBCylinderShape {
1214
1191
  withCollisions: boolean;
1215
1192
  isPointerBlocker: boolean;
@@ -1236,14 +1213,14 @@ declare interface PBNFTShape {
1236
1213
  }
1237
1214
 
1238
1215
  declare interface PBOnPointerDown {
1239
- button: number;
1216
+ button: ActionButton;
1240
1217
  hoverText: string;
1241
1218
  distance: number;
1242
1219
  showFeedback: boolean;
1243
1220
  }
1244
1221
 
1245
1222
  declare interface PBOnPointerDownResult {
1246
- button: number;
1223
+ button: ActionButton;
1247
1224
  meshName: string;
1248
1225
  origin: Vector3_2 | undefined;
1249
1226
  direction: Vector3_2 | undefined;
@@ -1254,14 +1231,14 @@ declare interface PBOnPointerDownResult {
1254
1231
  }
1255
1232
 
1256
1233
  declare interface PBOnPointerUp {
1257
- button: number;
1234
+ button: ActionButton;
1258
1235
  hoverText: string;
1259
1236
  distance: number;
1260
1237
  showFeedback: boolean;
1261
1238
  }
1262
1239
 
1263
1240
  declare interface PBOnPointerUpResult {
1264
- button: number;
1241
+ button: ActionButton;
1265
1242
  meshName: string;
1266
1243
  origin: Vector3_2 | undefined;
1267
1244
  direction: Vector3_2 | undefined;
@@ -1311,65 +1288,6 @@ declare interface PBTextShape {
1311
1288
  textColor: Color3 | undefined;
1312
1289
  }
1313
1290
 
1314
- declare interface PBUiTransform {
1315
- positionType: YGPositionType;
1316
- alignContent: YGAlign;
1317
- alignItems: YGAlign;
1318
- alignSelf: YGAlign;
1319
- flexDirection: YGFlexDirection;
1320
- flexWrap: YGWrap;
1321
- justifyContent: YGJustify;
1322
- overflow: YGOverflow;
1323
- display: YGDisplay;
1324
- direction: YGDirection;
1325
- flex: number;
1326
- flexBasisUnit: YGUnit;
1327
- flexBasis: number;
1328
- flexGrow: number;
1329
- flexShrink: number;
1330
- widthUnit: YGUnit;
1331
- width: number;
1332
- heightUnit: YGUnit;
1333
- height: number;
1334
- minWidthUnit: YGUnit;
1335
- minWidth: number;
1336
- minHeightUnit: YGUnit;
1337
- minHeight: number;
1338
- maxWidthUnit: YGUnit;
1339
- maxWidth: number;
1340
- maxHeightUnit: YGUnit;
1341
- maxHeight: number;
1342
- positionLeftUnit: YGUnit;
1343
- positionLeft: number;
1344
- positionTopUnit: YGUnit;
1345
- positionTop: number;
1346
- positionRightUnit: YGUnit;
1347
- positionRight: number;
1348
- positionBottomUnit: YGUnit;
1349
- positionBottom: number;
1350
- /** margin */
1351
- marginLeftUnit: YGUnit;
1352
- marginLeft: number;
1353
- marginTopUnit: YGUnit;
1354
- marginTop: number;
1355
- marginRightUnit: YGUnit;
1356
- marginRight: number;
1357
- marginBottomUnit: YGUnit;
1358
- marginBottom: number;
1359
- paddingLeftUnit: YGUnit;
1360
- paddingLeft: number;
1361
- paddingTopUnit: YGUnit;
1362
- paddingTop: number;
1363
- paddingRightUnit: YGUnit;
1364
- paddingRight: number;
1365
- paddingBottomUnit: YGUnit;
1366
- paddingBottom: number;
1367
- borderLeft: number;
1368
- borderTop: number;
1369
- borderRight: number;
1370
- borderBottom: number;
1371
- }
1372
-
1373
1291
  /**
1374
1292
  * Represens a plane by the equation ax + by + cz + d = 0
1375
1293
  * @public
@@ -1669,7 +1587,7 @@ export declare type Result<T extends Spec> = ToOptional<{
1669
1587
  /**
1670
1588
  * @public
1671
1589
  */
1672
- export declare type SdkComponetns = ReturnType<typeof defineSdkComponents>;
1590
+ export declare type SdkComponents = ReturnType<typeof defineSdkComponents>;
1673
1591
 
1674
1592
  /**
1675
1593
  * Defines supported spaces
@@ -1965,82 +1883,10 @@ declare namespace WireMessage {
1965
1883
  const HEADER_LENGTH = 8;
1966
1884
  /**
1967
1885
  * Validate if the message incoming is completed
1968
- * @param buf
1886
+ * @param buf - ByteBuffer
1969
1887
  */
1970
1888
  function validate(buf: ByteBuffer): boolean;
1971
1889
  function readHeader(buf: ByteBuffer): Header | null;
1972
1890
  }
1973
1891
 
1974
- declare enum YGAlign {
1975
- YGAlignAuto = 0,
1976
- YGAlignFlexStart = 1,
1977
- YGAlignCenter = 2,
1978
- YGAlignFlexEnd = 3,
1979
- YGAlignStretch = 4,
1980
- YGAlignBaseline = 5,
1981
- YGAlignSpaceBetween = 6,
1982
- YGAlignSpaceAround = 7,
1983
- UNRECOGNIZED = -1
1984
- }
1985
-
1986
- declare enum YGDirection {
1987
- YGDirectionInherit = 0,
1988
- YGDirectionLTR = 1,
1989
- YGDirectionRTL = 2,
1990
- UNRECOGNIZED = -1
1991
- }
1992
-
1993
- declare enum YGDisplay {
1994
- YGDisplayFlex = 0,
1995
- YGDisplayNone = 1,
1996
- UNRECOGNIZED = -1
1997
- }
1998
-
1999
- declare enum YGFlexDirection {
2000
- YGFlexDirectionColumn = 0,
2001
- YGFlexDirectionColumnReverse = 1,
2002
- YGFlexDirectionRow = 2,
2003
- YGFlexDirectionRowReverse = 3,
2004
- UNRECOGNIZED = -1
2005
- }
2006
-
2007
- declare enum YGJustify {
2008
- YGJustifyFlexStart = 0,
2009
- YGJustifyCenter = 1,
2010
- YGJustifyFlexEnd = 2,
2011
- YGJustifySpaceBetween = 3,
2012
- YGJustifySpaceAround = 4,
2013
- YGJustifySpaceEvenly = 5,
2014
- UNRECOGNIZED = -1
2015
- }
2016
-
2017
- declare enum YGOverflow {
2018
- YGOverflowVisible = 0,
2019
- YGOverflowHidden = 1,
2020
- YGOverflowScroll = 2,
2021
- UNRECOGNIZED = -1
2022
- }
2023
-
2024
- declare enum YGPositionType {
2025
- YGPositionTypeStatic = 0,
2026
- YGPositionTypeRelative = 1,
2027
- YGPositionTypeAbsolute = 2,
2028
- UNRECOGNIZED = -1
2029
- }
2030
-
2031
- declare enum YGUnit {
2032
- YGUnitUndefined = 0,
2033
- YGUnitPoint = 1,
2034
- YGUnitPercent = 2,
2035
- YGUnitAuto = 3,
2036
- UNRECOGNIZED = -1
2037
- }
2038
-
2039
- declare enum YGWrap {
2040
- YGWrapNoWrap = 0,
2041
- YGWrapWrap = 1,
2042
- YGWrapWrapReverse = 2,
2043
- UNRECOGNIZED = -1
2044
- }
2045
-
2046
1892
  export { }