@dcl/sdk 7.0.0-2781674220.commit-d772e02 → 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.
- package/dist/ecs7/index.d.ts +21 -3
- package/dist/ecs7/index.js +152 -38
- package/dist/ecs7/index.min.js +1 -1
- package/dist/ecs7/index.min.js.map +1 -1
- package/dist/ecs7/proto-definitions/AvatarAttach.proto +9 -2
- package/dist/ecs7/proto-definitions/CameraMode.proto +9 -0
- package/dist/ecs7/proto-definitions/CameraModeArea.proto +3 -7
- package/dist/ecs7/proto-definitions/PointerLock.proto +8 -0
- package/dist/ecs7/proto-definitions/common/CameraModeValue.proto +6 -0
- package/package.json +4 -4
- package/types/ecs7/index.d.ts +21 -3
package/dist/ecs7/index.d.ts
CHANGED
@@ -21,12 +21,20 @@ 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
|
|
29
|
-
declare const enum
|
37
|
+
declare const enum CameraModeValue {
|
30
38
|
FIRST_PERSON = 0,
|
31
39
|
THIRD_PERSON = 1,
|
32
40
|
UNRECOGNIZED = -1
|
@@ -225,6 +233,7 @@ declare function defineSdkComponents(engine: Pick<IEngine, 'defineComponent'>):
|
|
225
233
|
AvatarShape: ComponentDefinition<EcsType<PBAvatarShape>>;
|
226
234
|
Billboard: ComponentDefinition<EcsType<PBBillboard>>;
|
227
235
|
BoxShape: ComponentDefinition<EcsType<PBBoxShape>>;
|
236
|
+
CameraMode: ComponentDefinition<EcsType<PBCameraMode>>;
|
228
237
|
CameraModeArea: ComponentDefinition<EcsType<PBCameraModeArea>>;
|
229
238
|
CylinderShape: ComponentDefinition<EcsType<PBCylinderShape>>;
|
230
239
|
GLTFShape: ComponentDefinition<EcsType<PBGLTFShape>>;
|
@@ -234,6 +243,7 @@ declare function defineSdkComponents(engine: Pick<IEngine, 'defineComponent'>):
|
|
234
243
|
OnPointerUp: ComponentDefinition<EcsType<PBOnPointerUp>>;
|
235
244
|
OnPointerUpResult: ComponentDefinition<EcsType<PBOnPointerUpResult>>;
|
236
245
|
PlaneShape: ComponentDefinition<EcsType<PBPlaneShape>>;
|
246
|
+
PointerLock: ComponentDefinition<EcsType<PBPointerLock>>;
|
237
247
|
SphereShape: ComponentDefinition<EcsType<PBSphereShape>>;
|
238
248
|
TextShape: ComponentDefinition<EcsType<PBTextShape>>;
|
239
249
|
Transform: ComponentDefinition<EcsType<Transform>>;
|
@@ -1170,7 +1180,7 @@ declare interface PBAudioSource {
|
|
1170
1180
|
|
1171
1181
|
declare interface PBAvatarAttach {
|
1172
1182
|
avatarId: string;
|
1173
|
-
anchorPointId:
|
1183
|
+
anchorPointId: AvatarAnchorPoint;
|
1174
1184
|
}
|
1175
1185
|
|
1176
1186
|
declare interface PBAvatarShape {
|
@@ -1201,9 +1211,13 @@ declare interface PBBoxShape {
|
|
1201
1211
|
uvs: number[];
|
1202
1212
|
}
|
1203
1213
|
|
1214
|
+
declare interface PBCameraMode {
|
1215
|
+
mode: CameraModeValue;
|
1216
|
+
}
|
1217
|
+
|
1204
1218
|
declare interface PBCameraModeArea {
|
1205
1219
|
area: Vector3_2 | undefined;
|
1206
|
-
mode:
|
1220
|
+
mode: CameraModeValue;
|
1207
1221
|
}
|
1208
1222
|
|
1209
1223
|
declare interface PBCylinderShape {
|
@@ -1274,6 +1288,10 @@ declare interface PBPlaneShape {
|
|
1274
1288
|
uvs: number[];
|
1275
1289
|
}
|
1276
1290
|
|
1291
|
+
declare interface PBPointerLock {
|
1292
|
+
isPointerLocked: boolean;
|
1293
|
+
}
|
1294
|
+
|
1277
1295
|
declare interface PBSphereShape {
|
1278
1296
|
withCollisions: boolean;
|
1279
1297
|
isPointerBlocker: boolean;
|