@woosh/meep-engine 2.33.42 → 2.33.43

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.
@@ -5,6 +5,8 @@ interface Type<T> extends Function {
5
5
  }
6
6
 
7
7
  export class System<A, B = any, C = any, D = any, E = any> {
8
+ constructor()
9
+
8
10
  dependencies: Type<any>[]
9
11
 
10
12
  startup(em: EntityManager, ready_callback: () => void, error_callback: () => void): void
@@ -1,10 +1,11 @@
1
1
  import {System} from "../System";
2
2
  import {EntityComponentDataset} from "../EntityComponentDataset";
3
+ import {ParentEntity} from "./ParentEntity";
3
4
 
4
- export class ParentEntitySystem extends System {
5
+ export class ParentEntitySystem extends System<ParentEntity> {
5
6
  static findRoot(ecd: EntityComponentDataset, entity: number): number
6
7
 
7
8
  static isAncestorOf(ecd: EntityComponentDataset, child_entity: number, ancestor_entity: number): boolean
8
9
 
9
10
  static findParentEntity(ecd: EntityComponentDataset, entity: number): number
10
- }
11
+ }
@@ -1,4 +1,5 @@
1
1
  import {System} from "../../../../ecs/System";
2
+ import TopDownCameraController from "./TopDownCameraController";
2
3
 
3
- export default class TopDownCameraControllerSystem extends System {
4
+ export default class TopDownCameraControllerSystem extends System<TopDownCameraController> {
4
5
  }
@@ -1,5 +1,6 @@
1
1
  import {System} from "../../../ecs/System";
2
+ import PathFollower from "./PathFollower";
2
3
 
3
- export default class PathFollowingSystem extends System {
4
+ export default class PathFollowingSystem extends System<PathFollower> {
4
5
 
5
6
  }
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.42",
8
+ "version": "2.33.43",
9
9
  "dependencies": {
10
10
  "gl-matrix": "3.4.3",
11
11
  "fast-levenshtein": "2.0.6",