@colyseus/schema 3.0.0-alpha.6 → 3.0.0-alpha.7
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/build/cjs/index.js +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.mjs +2 -2
- package/build/esm/index.mjs.map +1 -1
- package/build/umd/index.js +2 -2
- package/lib/encoder/Encoder.d.ts +1 -1
- package/lib/encoder/Encoder.js +2 -2
- package/lib/encoder/Encoder.js.map +1 -1
- package/package.json +1 -1
- package/src/encoder/Encoder.ts +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -3457,12 +3457,12 @@ class Encoder {
|
|
|
3457
3457
|
return buffer.slice(0, it.offset);
|
|
3458
3458
|
}
|
|
3459
3459
|
}
|
|
3460
|
-
encodeAll(it = { offset: 0 }) {
|
|
3460
|
+
encodeAll(it = { offset: 0 }, buffer = this.sharedBuffer) {
|
|
3461
3461
|
// console.log(`encodeAll(), this.$root.allChanges (${this.$root.allChanges.size})`);
|
|
3462
3462
|
// Array.from(this.$root.allChanges.entries()).map((item) => {
|
|
3463
3463
|
// console.log("->", item[0].refId, item[0].ref.toJSON());
|
|
3464
3464
|
// });
|
|
3465
|
-
return this.encode(it, undefined,
|
|
3465
|
+
return this.encode(it, undefined, buffer, this.root.allChanges);
|
|
3466
3466
|
}
|
|
3467
3467
|
encodeAllView(view, sharedOffset, it, bytes = this.sharedBuffer) {
|
|
3468
3468
|
const viewOffset = it.offset;
|