@woosh/meep-engine 2.91.3 → 2.91.6

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": "Fully featured ECS game engine written in JavaScript",
6
6
  "type": "module",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.91.3",
8
+ "version": "2.91.6",
9
9
  "main": "build/meep.module.js",
10
10
  "module": "build/meep.module.js",
11
11
  "exports": {
@@ -1,19 +1,20 @@
1
- export class TableRecord {
2
- /**
3
- *
4
- * @param {Object} schema
5
- */
6
- constructor(schema: any);
7
- set value(arg: this);
8
- get value(): this;
9
- get table_schema(): RowFirstTableSpec;
10
- /**
11
- *
12
- * @param {RowFirstTable} table
13
- * @param {number} row_index
14
- */
15
- bind(table: RowFirstTable, row_index: number): void;
16
- #private;
17
- }
18
- import { RowFirstTableSpec } from "../RowFirstTableSpec.js";
19
- //# sourceMappingURL=TableRecord.d.ts.map
1
+ import {BinaryDataType} from "../../../binary/type/BinaryDataType";
2
+
3
+ interface IBinarySchema {
4
+ [k: string]: BinaryDataType
5
+ }
6
+
7
+ export class TableRecord<T extends IBinarySchema> {
8
+ constructor(type: T)
9
+
10
+ readonly table_schema: RowFirstTableSpec
11
+
12
+ value: Partial<{ [prop in keyof T]: string }>
13
+
14
+ get(): { [prop in keyof T]: string }
15
+
16
+ set(v: Partial<{ [prop in keyof T]: string }>): void
17
+
18
+ bind(table: RowFirstTable, row_index: number): void
19
+
20
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"TableRecord.d.ts","sourceRoot":"","sources":["../../../../../../src/core/collection/table/bind/TableRecord.js"],"names":[],"mappings":"AAGA;IAsDI;;;OAGG;IACH,yBAUC;IApBD,qBAIC;IARD,kBAEC;IAwBD,sCAEC;IAED;;;;OAIG;IACH,sCAFW,MAAM,QAKhB;;CACJ;kCArFiC,yBAAyB"}
1
+ {"version":3,"file":"TableRecord.d.ts","sourceRoot":"","sources":["../../../../../../src/core/collection/table/bind/TableRecord.js"],"names":[],"mappings":"AAGA;IA+DI;;;OAGG;IACH,yBAUC;IA7BD,qBAEC;IAND,kBAEC;IAOD,uBAIC;IAED,YAEC;IAkBD,sCAEC;IAED;;;;OAIG;IACH,sCAFW,MAAM,QAKhB;;CACJ;kCA9FiC,yBAAyB"}
@@ -50,11 +50,20 @@ export class TableRecord {
50
50
  }
51
51
 
52
52
  set value(object) {
53
+ this.set(object)
54
+ }
55
+
56
+
57
+ set(object) {
53
58
  for (const key in object) {
54
59
  this.#value[key] = object[key];
55
60
  }
56
61
  }
57
62
 
63
+ get() {
64
+ return this.#value;
65
+ }
66
+
58
67
  /**
59
68
  *
60
69
  * @param {Object} schema