@dcl/sdk 7.0.0-2598240213.commit-e7b25e0 → 7.0.0-2649664321.commit-63b4b53

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.
@@ -113,9 +113,19 @@ declare function createByteBuffer(options?: CreateByteBufferOptions): {
113
113
  */
114
114
  size(): number;
115
115
  /**
116
- * @returns The subarray from 0 to offset.
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;
@@ -1141,7 +1151,6 @@ declare interface PBAudioStream {
1141
1151
  declare interface PBBoxShape {
1142
1152
  withCollisions: boolean;
1143
1153
  isPointerBlocker: boolean;
1144
- /** TODO: should visible be another component? that maybe affects all the entities */
1145
1154
  visible: boolean;
1146
1155
  uvs: number[];
1147
1156
  }
@@ -1149,7 +1158,6 @@ declare interface PBBoxShape {
1149
1158
  declare interface PBCylinderShape {
1150
1159
  withCollisions: boolean;
1151
1160
  isPointerBlocker: boolean;
1152
- /** TODO: should visible be another component? that maybe affects all the entities */
1153
1161
  visible: boolean;
1154
1162
  radiusTop: number;
1155
1163
  radiusBottom: number;
@@ -1165,7 +1173,6 @@ declare interface PBGLTFShape {
1165
1173
  declare interface PBNFTShape {
1166
1174
  withCollisions: boolean;
1167
1175
  isPointerBlocker: boolean;
1168
- /** TODO: should visible be another component? that maybe affects all the entities */
1169
1176
  visible: boolean;
1170
1177
  src: string;
1171
1178
  assetId: string;
@@ -1212,9 +1219,7 @@ declare interface PBOnPointerUpResult {
1212
1219
  declare interface PBPlaneShape {
1213
1220
  withCollisions: boolean;
1214
1221
  isPointerBlocker: boolean;
1215
- /** TODO: should visible be another component? that maybe affects all the entities */
1216
1222
  visible: boolean;
1217
- /** TODO: this could be better serialized as u00 v00 u01 v01 u10 v10 u11 v11 for speed */
1218
1223
  uvs: number[];
1219
1224
  }
1220
1225
 
@@ -1226,7 +1231,6 @@ declare interface PBSphereShape {
1226
1231
 
1227
1232
  declare interface PBTextShape {
1228
1233
  text: string;
1229
- /** this should be removed */
1230
1234
  visible: boolean;
1231
1235
  font: string;
1232
1236
  opacity: number;