@woosh/meep-engine 2.36.5 → 2.36.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.
@@ -6,7 +6,7 @@ import {AssetLoader} from "./asset/loaders/AssetLoader";
6
6
  export class EngineConfiguration {
7
7
  addPlugin(plugin: EnginePlugin): boolean
8
8
 
9
- addSystem<T>(system: System<T>): boolean
9
+ addSystem<A, B, C, D, E>(system: System<A, B, C, D, E>): boolean
10
10
 
11
11
  addManySystems(...systems: System<any>[]): void
12
12
 
@@ -0,0 +1,3 @@
1
+ export default class GUIElement {
2
+
3
+ }
@@ -1,7 +1,8 @@
1
1
  import {System} from "../System";
2
2
  import Engine from "../../Engine";
3
3
  import View from "../../../view/View";
4
+ import {GUIElement} from "./GUIElement";
4
5
 
5
- export default class GUIElementSystem extends System {
6
+ export default class GUIElementSystem extends System<GUIElement> {
6
7
  constructor(container: View, engine: Engine)
7
8
  }
@@ -1,6 +1,7 @@
1
1
  import {System} from "../System";
2
2
  import {GraphicsEngine} from "../../graphics/GraphicsEngine";
3
+ import Renderable from "../components/Renderable";
3
4
 
4
- export default class RenderSystem extends System {
5
+ export default class RenderSystem extends System<Renderable> {
5
6
  constructor(graphics: GraphicsEngine)
6
7
  }
@@ -4,7 +4,7 @@ import {GraphicsEngine} from "../../GraphicsEngine";
4
4
  import {EntityComponentDataset} from "../../../ecs/EntityComponentDataset";
5
5
  import {Camera} from "./Camera";
6
6
 
7
- export class CameraSystem extends System {
7
+ export class CameraSystem extends System<Camera> {
8
8
  constructor(scene: Scene, graphics: GraphicsEngine)
9
9
 
10
10
  public static getFirstActiveCamera(ecd: EntityComponentDataset): { entity: number, component: Camera | undefined }
@@ -1,7 +1,8 @@
1
1
  import {System} from "../../../ecs/System";
2
2
  import Engine from "../../../Engine";
3
+ import {Light} from "./Light";
3
4
 
4
- export default class LightSystem extends System {
5
+ export default class LightSystem extends System<Light> {
5
6
  constructor(engine: Engine, {
6
7
  shadowResolution
7
8
  }: {
@@ -1,6 +1,7 @@
1
1
  import {System} from "../../../ecs/System";
2
2
  import Engine from "../../../Engine";
3
+ import Mesh from "./Mesh";
3
4
 
4
- export class MeshSystem extends System {
5
+ export class MeshSystem extends System<Mesh> {
5
6
  constructor(engine: Engine)
6
7
  }
@@ -0,0 +1,3 @@
1
+ export default class InputController {
2
+
3
+ }
@@ -1,5 +1,6 @@
1
1
  import {System} from "../../../ecs/System";
2
+ import {InputController} from "../components/InputController";
2
3
 
3
- export default class InputControllerSystem extends System {
4
+ export default class InputControllerSystem extends System<InputController> {
4
5
  constructor(devices: any)
5
- }
6
+ }
@@ -1,5 +1,6 @@
1
1
  import {System} from "../../../ecs/System";
2
+ import {Input} from "../components/Input";
2
3
 
3
- export class InputSystem extends System {
4
+ export class InputSystem extends System<Input> {
4
5
  constructor(devices: any)
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.36.5",
8
+ "version": "2.36.6",
9
9
  "dependencies": {
10
10
  "gl-matrix": "3.4.3",
11
11
  "fast-levenshtein": "2.0.6",