@woosh/meep-engine 2.33.44 → 2.33.45

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.
@@ -6,9 +6,9 @@ export class EntityManager {
6
6
 
7
7
  getComponentTypeMap(): any[]
8
8
 
9
- addSystem(system: System): Promise<void>
9
+ addSystem<T>(system: System<T>): Promise<void>
10
10
 
11
- removeSystem(system: System): Promise<void>
11
+ removeSystem<T>(system: System<T>): Promise<void>
12
12
 
13
13
  attachDataSet(dataset: EntityComponentDataset): void
14
14
 
@@ -9,6 +9,8 @@ export class System<A, B = any, C = any, D = any, E = any> {
9
9
 
10
10
  dependencies: Type<any>[]
11
11
 
12
+ protected readonly entityManager: EntityManager
13
+
12
14
  startup(em: EntityManager, ready_callback: () => void, error_callback: () => void): void
13
15
 
14
16
  shutdown(em: EntityManager, ready_callback: () => void, error_callback: () => void): void
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "productName": "Meep",
6
6
  "description": "production-ready JavaScript game engine based on Entity Component System Architecture",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.33.44",
8
+ "version": "2.33.45",
9
9
  "dependencies": {
10
10
  "gl-matrix": "3.4.3",
11
11
  "fast-levenshtein": "2.0.6",