@woosh/meep-engine 2.126.6 → 2.126.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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "description": "Pure JavaScript game engine. Fully featured and production ready.",
6
6
  "type": "module",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.126.6",
8
+ "version": "2.126.7",
9
9
  "main": "build/meep.module.js",
10
10
  "module": "build/meep.module.js",
11
11
  "exports": {
@@ -1 +1 @@
1
- {"version":3,"file":"BinaryBufferDeSerializer.d.ts","sourceRoot":"","sources":["../../../../../src/engine/ecs/storage/BinaryBufferDeSerializer.js"],"names":[],"mappings":";AAQA;;GAEG;AACH,uCAFa,GAAG;IAGZ;;;OAGG;IACH,UAFU,2BAA2B,CAErB;IAEhB;;;;;;OAMG;IACH,gBALW,YAAY,WACZ,GAAG,WACH,sBAAsB,GACpB,IAAI,CA8BhB;CACJ;iBApDgB,oCAAoC"}
1
+ {"version":3,"file":"BinaryBufferDeSerializer.d.ts","sourceRoot":"","sources":["../../../../../src/engine/ecs/storage/BinaryBufferDeSerializer.js"],"names":[],"mappings":";AAQA;;GAEG;AACH,uCAFa,GAAG;IAGZ;;;OAGG;IACH,UAFU,2BAA2B,CAErB;IAEhB;;;;;;OAMG;IACH,gBALW,YAAY,WACZ,GAAG,WACH,sBAAsB,GACpB,IAAI,CA+BhB;CACJ;iBArDgB,oCAAoC"}
@@ -30,6 +30,7 @@ class BinaryBufferDeSerializer {
30
30
 
31
31
  const entity_count_before = dataset.entityCount;
32
32
 
33
+ // Not currently handled, intended for format version control
33
34
  const version = buffer.readUint16();
34
35
  const numSerializedTypes = buffer.readUint16();
35
36
 
@@ -1 +1 @@
1
- {"version":3,"file":"BinaryBufferSerializer.d.ts","sourceRoot":"","sources":["../../../../../src/engine/ecs/storage/BinaryBufferSerializer.js"],"names":[],"mappings":";AAmDA;IACI;;;OAGG;IACH,UAFU,2BAA2B,CAErB;IAEhB;;;OAGG;IACH,QAFU,MAAM,GAAC,IAAI,CAEP;IAEd;;;;OAIG;IACH,gBAFW,YAAY,WADZ,sBAAsB,QA0HhC;CACJ"}
1
+ {"version":3,"file":"BinaryBufferSerializer.d.ts","sourceRoot":"","sources":["../../../../../src/engine/ecs/storage/BinaryBufferSerializer.js"],"names":[],"mappings":";AAmDA;IACI;;;OAGG;IACH,UAFU,2BAA2B,CAErB;IAEhB;;;OAGG;IACH,QAFU,MAAM,GAAC,IAAI,CAEP;IAEd;;;;OAIG;IACH,gBAFW,YAAY,WADZ,sBAAsB,QA6HhC;CACJ"}
@@ -55,7 +55,7 @@ class BinaryBufferSerializer {
55
55
  * @type {BinarySerializationRegistry}
56
56
  */
57
57
  registry = null;
58
-
58
+
59
59
  /**
60
60
  *
61
61
  * @type {Engine|null}
@@ -81,7 +81,10 @@ class BinaryBufferSerializer {
81
81
 
82
82
  const typeCountAddress = buffer.position;
83
83
 
84
- buffer.writeUint32(numSerializableTypes);
84
+ const FORMAT_VERSION = 0;
85
+
86
+ buffer.writeUint16(FORMAT_VERSION)
87
+ buffer.writeUint16(numSerializableTypes);
85
88
 
86
89
  const collectionSerializer = new BinaryCollectionSerializer();
87
90