@dcl/sdk 7.0.0-2740047851.commit-db29ac2 → 7.0.0-2805922413.commit-7f80d4a
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 +28 -3
- package/dist/ecs7/index.js +219 -36
- 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 +28 -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
|
@@ -223,7 +231,9 @@ declare function defineSdkComponents(engine: Pick<IEngine, 'defineComponent'>):
|
|
223
231
|
AudioSource: ComponentDefinition<EcsType<PBAudioSource>>;
|
224
232
|
AvatarAttach: ComponentDefinition<EcsType<PBAvatarAttach>>;
|
225
233
|
AvatarShape: ComponentDefinition<EcsType<PBAvatarShape>>;
|
234
|
+
Billboard: ComponentDefinition<EcsType<PBBillboard>>;
|
226
235
|
BoxShape: ComponentDefinition<EcsType<PBBoxShape>>;
|
236
|
+
CameraMode: ComponentDefinition<EcsType<PBCameraMode>>;
|
227
237
|
CameraModeArea: ComponentDefinition<EcsType<PBCameraModeArea>>;
|
228
238
|
CylinderShape: ComponentDefinition<EcsType<PBCylinderShape>>;
|
229
239
|
GLTFShape: ComponentDefinition<EcsType<PBGLTFShape>>;
|
@@ -233,6 +243,7 @@ declare function defineSdkComponents(engine: Pick<IEngine, 'defineComponent'>):
|
|
233
243
|
OnPointerUp: ComponentDefinition<EcsType<PBOnPointerUp>>;
|
234
244
|
OnPointerUpResult: ComponentDefinition<EcsType<PBOnPointerUpResult>>;
|
235
245
|
PlaneShape: ComponentDefinition<EcsType<PBPlaneShape>>;
|
246
|
+
PointerLock: ComponentDefinition<EcsType<PBPointerLock>>;
|
236
247
|
SphereShape: ComponentDefinition<EcsType<PBSphereShape>>;
|
237
248
|
TextShape: ComponentDefinition<EcsType<PBTextShape>>;
|
238
249
|
Transform: ComponentDefinition<EcsType<Transform>>;
|
@@ -1169,7 +1180,7 @@ declare interface PBAudioSource {
|
|
1169
1180
|
|
1170
1181
|
declare interface PBAvatarAttach {
|
1171
1182
|
avatarId: string;
|
1172
|
-
anchorPointId:
|
1183
|
+
anchorPointId: AvatarAnchorPoint;
|
1173
1184
|
}
|
1174
1185
|
|
1175
1186
|
declare interface PBAvatarShape {
|
@@ -1187,6 +1198,12 @@ declare interface PBAvatarShape {
|
|
1187
1198
|
talking: boolean;
|
1188
1199
|
}
|
1189
1200
|
|
1201
|
+
declare interface PBBillboard {
|
1202
|
+
x: boolean;
|
1203
|
+
y: boolean;
|
1204
|
+
z: boolean;
|
1205
|
+
}
|
1206
|
+
|
1190
1207
|
declare interface PBBoxShape {
|
1191
1208
|
withCollisions: boolean;
|
1192
1209
|
isPointerBlocker: boolean;
|
@@ -1194,9 +1211,13 @@ declare interface PBBoxShape {
|
|
1194
1211
|
uvs: number[];
|
1195
1212
|
}
|
1196
1213
|
|
1214
|
+
declare interface PBCameraMode {
|
1215
|
+
mode: CameraModeValue;
|
1216
|
+
}
|
1217
|
+
|
1197
1218
|
declare interface PBCameraModeArea {
|
1198
1219
|
area: Vector3_2 | undefined;
|
1199
|
-
mode:
|
1220
|
+
mode: CameraModeValue;
|
1200
1221
|
}
|
1201
1222
|
|
1202
1223
|
declare interface PBCylinderShape {
|
@@ -1267,6 +1288,10 @@ declare interface PBPlaneShape {
|
|
1267
1288
|
uvs: number[];
|
1268
1289
|
}
|
1269
1290
|
|
1291
|
+
declare interface PBPointerLock {
|
1292
|
+
isPointerLocked: boolean;
|
1293
|
+
}
|
1294
|
+
|
1270
1295
|
declare interface PBSphereShape {
|
1271
1296
|
withCollisions: boolean;
|
1272
1297
|
isPointerBlocker: boolean;
|