@woosh/meep-engine 2.44.3 → 2.44.5

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.
@@ -0,0 +1,8 @@
1
+ import {NodeInstancePortReference} from "./node/NodeInstancePortReference";
2
+
3
+ export class Connection {
4
+ readonly id: number
5
+
6
+ readonly source: NodeInstancePortReference
7
+ readonly target: NodeInstancePortReference
8
+ }
@@ -0,0 +1,3 @@
1
+ export class NodeDescription{
2
+
3
+ }
@@ -0,0 +1,14 @@
1
+ import {NodeDescription} from "./NodeDescription";
2
+ import {NodeInstancePortReference} from "./NodeInstancePortReference";
3
+ import List from "../../../collection/list/List";
4
+ import {Connection} from "../Connection";
5
+
6
+ export class NodeInstance {
7
+ readonly id: number
8
+
9
+ readonly description: NodeDescription
10
+
11
+ readonly endpoints: NodeInstancePortReference[]
12
+
13
+ readonly connections: List<Connection>
14
+ }
@@ -0,0 +1,3 @@
1
+ export class NodeInstancePortReference{
2
+
3
+ }
@@ -56,6 +56,14 @@ export class NodeInstancePortReference {
56
56
  return this.connections.filter(c => c.target === this);
57
57
  }
58
58
 
59
+ /**
60
+ *
61
+ * @return {boolean}
62
+ */
63
+ hasConnections() {
64
+ return this.connections.length > 0;
65
+ }
66
+
59
67
 
60
68
  /**
61
69
  *
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.44.3",
8
+ "version": "2.44.5",
9
9
  "dependencies": {
10
10
  "gl-matrix": "3.4.3",
11
11
  "fast-levenshtein": "2.0.6",