@dcl/sdk 7.0.0-2637795719.commit-7dd5361 → 7.0.0-2652177259.commit-d1b36b1

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.
@@ -198,7 +198,12 @@ declare function defineSdkComponents(engine: Pick<IEngine, 'defineComponent'>):
198
198
  Animator: ComponentDefinition<EcsType<PBAnimator>>;
199
199
  AudioSource: ComponentDefinition<EcsType<PBAudioSource>>;
200
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>>;
201
205
  BoxShape: ComponentDefinition<EcsType<PBBoxShape>>;
206
+ CameraModeArea: ComponentDefinition<EcsType<PBCameraModeArea>>;
202
207
  CylinderShape: ComponentDefinition<EcsType<PBCylinderShape>>;
203
208
  GLTFShape: ComponentDefinition<EcsType<PBGLTFShape>>;
204
209
  NFTShape: ComponentDefinition<EcsType<PBNFTShape>>;
@@ -1148,18 +1153,65 @@ declare interface PBAudioStream {
1148
1153
  url: string;
1149
1154
  }
1150
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
+
1151
1194
  declare interface PBBoxShape {
1152
1195
  withCollisions: boolean;
1153
1196
  isPointerBlocker: boolean;
1154
- /** TODO: should visible be another component? that maybe affects all the entities */
1155
1197
  visible: boolean;
1156
1198
  uvs: number[];
1157
1199
  }
1158
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
+
1159
1212
  declare interface PBCylinderShape {
1160
1213
  withCollisions: boolean;
1161
1214
  isPointerBlocker: boolean;
1162
- /** TODO: should visible be another component? that maybe affects all the entities */
1163
1215
  visible: boolean;
1164
1216
  radiusTop: number;
1165
1217
  radiusBottom: number;
@@ -1175,7 +1227,6 @@ declare interface PBGLTFShape {
1175
1227
  declare interface PBNFTShape {
1176
1228
  withCollisions: boolean;
1177
1229
  isPointerBlocker: boolean;
1178
- /** TODO: should visible be another component? that maybe affects all the entities */
1179
1230
  visible: boolean;
1180
1231
  src: string;
1181
1232
  assetId: string;
@@ -1222,9 +1273,7 @@ declare interface PBOnPointerUpResult {
1222
1273
  declare interface PBPlaneShape {
1223
1274
  withCollisions: boolean;
1224
1275
  isPointerBlocker: boolean;
1225
- /** TODO: should visible be another component? that maybe affects all the entities */
1226
1276
  visible: boolean;
1227
- /** TODO: this could be better serialized as u00 v00 u01 v01 u10 v10 u11 v11 for speed */
1228
1277
  uvs: number[];
1229
1278
  }
1230
1279
 
@@ -1236,7 +1285,6 @@ declare interface PBSphereShape {
1236
1285
 
1237
1286
  declare interface PBTextShape {
1238
1287
  text: string;
1239
- /** this should be removed */
1240
1288
  visible: boolean;
1241
1289
  font: string;
1242
1290
  opacity: number;