@dcl/sdk 7.0.0-2625231661.commit-ab8ccee → 7.0.0-2650546131.commit-45e34df
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 +65 -7
- package/dist/ecs7/index.js +551 -101
- 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 -0
- package/dist/ecs7/proto-definitions/AvatarModifierArea.proto +15 -0
- package/dist/ecs7/proto-definitions/AvatarShape.proto +20 -0
- package/dist/ecs7/proto-definitions/Billboard.proto +10 -0
- package/dist/ecs7/proto-definitions/BoxShape.proto +1 -2
- package/dist/ecs7/proto-definitions/CameraModeArea.proto +14 -0
- package/dist/ecs7/proto-definitions/CylinderShape.proto +1 -2
- package/dist/ecs7/proto-definitions/NFTShape.proto +0 -1
- package/dist/ecs7/proto-definitions/PlaneShape.proto +1 -3
- package/dist/ecs7/proto-definitions/README.md +1 -1
- package/dist/ecs7/proto-definitions/SphereShape.proto +1 -1
- package/dist/ecs7/proto-definitions/TextShape.proto +5 -7
- package/package.json +5 -5
- package/types/ecs7/index.d.ts +65 -7
package/dist/ecs7/index.d.ts
CHANGED
@@ -113,9 +113,19 @@ declare function createByteBuffer(options?: CreateByteBufferOptions): {
|
|
113
113
|
*/
|
114
114
|
size(): number;
|
115
115
|
/**
|
116
|
-
*
|
116
|
+
* Take care using this function, if you modify the data after, the
|
117
|
+
* returned subarray will change too. If you'll modify the content of the
|
118
|
+
* bytebuffer, maybe you want to use toCopiedBinary()
|
119
|
+
*
|
120
|
+
* @returns The subarray from 0 to offset as reference.
|
117
121
|
*/
|
118
122
|
toBinary(): Uint8Array;
|
123
|
+
/**
|
124
|
+
* Safe copied buffer of the current data of ByteBuffer
|
125
|
+
*
|
126
|
+
* @returns The subarray from 0 to offset.
|
127
|
+
*/
|
128
|
+
toCopiedBinary(): Uint8Array;
|
119
129
|
writeBuffer(value: Uint8Array, writeLength?: boolean): void;
|
120
130
|
writeFloat32(value: number): void;
|
121
131
|
writeFloat64(value: number): void;
|
@@ -188,7 +198,12 @@ declare function defineSdkComponents(engine: Pick<IEngine, 'defineComponent'>):
|
|
188
198
|
Animator: ComponentDefinition<EcsType<PBAnimator>>;
|
189
199
|
AudioSource: ComponentDefinition<EcsType<PBAudioSource>>;
|
190
200
|
AudioStream: ComponentDefinition<EcsType<PBAudioStream>>;
|
201
|
+
AvatarAttach: ComponentDefinition<EcsType<PBAvatarAttach>>;
|
202
|
+
AvatarModifierArea: ComponentDefinition<EcsType<PBAvatarModifierArea>>;
|
203
|
+
AvatarShape: ComponentDefinition<EcsType<PBAvatarShape>>;
|
204
|
+
Billboard: ComponentDefinition<EcsType<PBBillboard>>;
|
191
205
|
BoxShape: ComponentDefinition<EcsType<PBBoxShape>>;
|
206
|
+
CameraModeArea: ComponentDefinition<EcsType<PBCameraModeArea>>;
|
192
207
|
CylinderShape: ComponentDefinition<EcsType<PBCylinderShape>>;
|
193
208
|
GLTFShape: ComponentDefinition<EcsType<PBGLTFShape>>;
|
194
209
|
NFTShape: ComponentDefinition<EcsType<PBNFTShape>>;
|
@@ -1138,18 +1153,65 @@ declare interface PBAudioStream {
|
|
1138
1153
|
url: string;
|
1139
1154
|
}
|
1140
1155
|
|
1156
|
+
declare interface PBAvatarAttach {
|
1157
|
+
avatarId: string;
|
1158
|
+
anchorPointId: number;
|
1159
|
+
}
|
1160
|
+
|
1161
|
+
declare interface PBAvatarModifierArea {
|
1162
|
+
area: Vector3_2 | undefined;
|
1163
|
+
excludeIds: string[];
|
1164
|
+
modifiers: PBAvatarModifierArea_Modifier[];
|
1165
|
+
}
|
1166
|
+
|
1167
|
+
declare enum PBAvatarModifierArea_Modifier {
|
1168
|
+
HIDE_AVATARS = 0,
|
1169
|
+
DISABLE_PASSPORTS = 1,
|
1170
|
+
UNRECOGNIZED = -1
|
1171
|
+
}
|
1172
|
+
|
1173
|
+
declare interface PBAvatarShape {
|
1174
|
+
id: string;
|
1175
|
+
name: string;
|
1176
|
+
bodyShape: string;
|
1177
|
+
skinColor: Color3 | undefined;
|
1178
|
+
hairColor: Color3 | undefined;
|
1179
|
+
eyeColor: Color3 | undefined;
|
1180
|
+
wearables: string[];
|
1181
|
+
expressionTriggerId: string;
|
1182
|
+
expressionTriggerTimestamp: number;
|
1183
|
+
stickerTriggerId: string;
|
1184
|
+
stickerTriggerTimestamp: number;
|
1185
|
+
talking: boolean;
|
1186
|
+
}
|
1187
|
+
|
1188
|
+
declare interface PBBillboard {
|
1189
|
+
x: boolean;
|
1190
|
+
y: boolean;
|
1191
|
+
z: boolean;
|
1192
|
+
}
|
1193
|
+
|
1141
1194
|
declare interface PBBoxShape {
|
1142
1195
|
withCollisions: boolean;
|
1143
1196
|
isPointerBlocker: boolean;
|
1144
|
-
/** TODO: should visible be another component? that maybe affects all the entities */
|
1145
1197
|
visible: boolean;
|
1146
1198
|
uvs: number[];
|
1147
1199
|
}
|
1148
1200
|
|
1201
|
+
declare interface PBCameraModeArea {
|
1202
|
+
area: Vector3_2 | undefined;
|
1203
|
+
mode: PBCameraModeArea_CameraMode;
|
1204
|
+
}
|
1205
|
+
|
1206
|
+
declare enum PBCameraModeArea_CameraMode {
|
1207
|
+
FIRST_PERSON = 0,
|
1208
|
+
THIRD_PERSON = 1,
|
1209
|
+
UNRECOGNIZED = -1
|
1210
|
+
}
|
1211
|
+
|
1149
1212
|
declare interface PBCylinderShape {
|
1150
1213
|
withCollisions: boolean;
|
1151
1214
|
isPointerBlocker: boolean;
|
1152
|
-
/** TODO: should visible be another component? that maybe affects all the entities */
|
1153
1215
|
visible: boolean;
|
1154
1216
|
radiusTop: number;
|
1155
1217
|
radiusBottom: number;
|
@@ -1165,7 +1227,6 @@ declare interface PBGLTFShape {
|
|
1165
1227
|
declare interface PBNFTShape {
|
1166
1228
|
withCollisions: boolean;
|
1167
1229
|
isPointerBlocker: boolean;
|
1168
|
-
/** TODO: should visible be another component? that maybe affects all the entities */
|
1169
1230
|
visible: boolean;
|
1170
1231
|
src: string;
|
1171
1232
|
assetId: string;
|
@@ -1212,9 +1273,7 @@ declare interface PBOnPointerUpResult {
|
|
1212
1273
|
declare interface PBPlaneShape {
|
1213
1274
|
withCollisions: boolean;
|
1214
1275
|
isPointerBlocker: boolean;
|
1215
|
-
/** TODO: should visible be another component? that maybe affects all the entities */
|
1216
1276
|
visible: boolean;
|
1217
|
-
/** TODO: this could be better serialized as u00 v00 u01 v01 u10 v10 u11 v11 for speed */
|
1218
1277
|
uvs: number[];
|
1219
1278
|
}
|
1220
1279
|
|
@@ -1226,7 +1285,6 @@ declare interface PBSphereShape {
|
|
1226
1285
|
|
1227
1286
|
declare interface PBTextShape {
|
1228
1287
|
text: string;
|
1229
|
-
/** this should be removed */
|
1230
1288
|
visible: boolean;
|
1231
1289
|
font: string;
|
1232
1290
|
opacity: number;
|