@dcl/sdk 7.0.0-2706600078.commit-85e1525 → 7.0.0-2798614483.commit-4feae69

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,11 +21,25 @@ 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 AvatarAnchorPoint {
25
+ POSITION = 0,
26
+ NAME_TAG = 1,
27
+ LEFT_HAND = 2,
28
+ RIGHT_HAND = 3,
29
+ UNRECOGNIZED = -1
30
+ }
31
+
24
32
  /**
25
33
  * @public
26
34
  */
27
35
  export declare type ByteBuffer = ReturnType<typeof createByteBuffer>;
28
36
 
37
+ declare const enum CameraModeValue {
38
+ FIRST_PERSON = 0,
39
+ THIRD_PERSON = 1,
40
+ UNRECOGNIZED = -1
41
+ }
42
+
29
43
  declare interface Color3 {
30
44
  r: number;
31
45
  g: number;
@@ -217,7 +231,10 @@ declare function defineSdkComponents(engine: Pick<IEngine, 'defineComponent'>):
217
231
  AudioSource: ComponentDefinition<EcsType<PBAudioSource>>;
218
232
  AvatarAttach: ComponentDefinition<EcsType<PBAvatarAttach>>;
219
233
  AvatarShape: ComponentDefinition<EcsType<PBAvatarShape>>;
234
+ Billboard: ComponentDefinition<EcsType<PBBillboard>>;
220
235
  BoxShape: ComponentDefinition<EcsType<PBBoxShape>>;
236
+ CameraMode: ComponentDefinition<EcsType<PBCameraMode>>;
237
+ CameraModeArea: ComponentDefinition<EcsType<PBCameraModeArea>>;
221
238
  CylinderShape: ComponentDefinition<EcsType<PBCylinderShape>>;
222
239
  GLTFShape: ComponentDefinition<EcsType<PBGLTFShape>>;
223
240
  NFTShape: ComponentDefinition<EcsType<PBNFTShape>>;
@@ -226,6 +243,7 @@ declare function defineSdkComponents(engine: Pick<IEngine, 'defineComponent'>):
226
243
  OnPointerUp: ComponentDefinition<EcsType<PBOnPointerUp>>;
227
244
  OnPointerUpResult: ComponentDefinition<EcsType<PBOnPointerUpResult>>;
228
245
  PlaneShape: ComponentDefinition<EcsType<PBPlaneShape>>;
246
+ PointerLock: ComponentDefinition<EcsType<PBPointerLock>>;
229
247
  SphereShape: ComponentDefinition<EcsType<PBSphereShape>>;
230
248
  TextShape: ComponentDefinition<EcsType<PBTextShape>>;
231
249
  Transform: ComponentDefinition<EcsType<Transform>>;
@@ -1162,7 +1180,7 @@ declare interface PBAudioSource {
1162
1180
 
1163
1181
  declare interface PBAvatarAttach {
1164
1182
  avatarId: string;
1165
- anchorPointId: number;
1183
+ anchorPointId: AvatarAnchorPoint;
1166
1184
  }
1167
1185
 
1168
1186
  declare interface PBAvatarShape {
@@ -1180,6 +1198,12 @@ declare interface PBAvatarShape {
1180
1198
  talking: boolean;
1181
1199
  }
1182
1200
 
1201
+ declare interface PBBillboard {
1202
+ x: boolean;
1203
+ y: boolean;
1204
+ z: boolean;
1205
+ }
1206
+
1183
1207
  declare interface PBBoxShape {
1184
1208
  withCollisions: boolean;
1185
1209
  isPointerBlocker: boolean;
@@ -1187,6 +1211,15 @@ declare interface PBBoxShape {
1187
1211
  uvs: number[];
1188
1212
  }
1189
1213
 
1214
+ declare interface PBCameraMode {
1215
+ mode: CameraModeValue;
1216
+ }
1217
+
1218
+ declare interface PBCameraModeArea {
1219
+ area: Vector3_2 | undefined;
1220
+ mode: CameraModeValue;
1221
+ }
1222
+
1190
1223
  declare interface PBCylinderShape {
1191
1224
  withCollisions: boolean;
1192
1225
  isPointerBlocker: boolean;
@@ -1255,6 +1288,10 @@ declare interface PBPlaneShape {
1255
1288
  uvs: number[];
1256
1289
  }
1257
1290
 
1291
+ declare interface PBPointerLock {
1292
+ isPointerLocked: boolean;
1293
+ }
1294
+
1258
1295
  declare interface PBSphereShape {
1259
1296
  withCollisions: boolean;
1260
1297
  isPointerBlocker: boolean;