behave-graph
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -782,11 +782,11 @@ import { promises } from 'fs'; | ||
], [ | ||
new FlowSocket('a'), | ||
new FlowSocket('b'), | ||
new BooleanSocket('isA'), | ||
new FlowSocket('on'), | ||
new FlowSocket('off'), | ||
new BooleanSocket('isOn'), | ||
], (context) => { | ||
context.setOutputValue('isA', this.isA); | ||
context.commit(this.isA ? 'a' : 'b'); | ||
this.isA = !this.isA; | ||
context.setOutputValue('isOn', this.isOn); | ||
context.commit(this.isOn ? 'on' : 'off'); | ||
this.isOn = !this.isOn; | ||
}); | ||
this.isA = true; | ||
this.isOn = true; | ||
} | ||
@@ -793,0 +793,0 @@ } |
@@ -290,11 +290,11 @@ import { promises } from 'fs'; | ||
], [ | ||
new FlowSocket('a'), | ||
new FlowSocket('b'), | ||
new BooleanSocket('isA'), | ||
new FlowSocket('on'), | ||
new FlowSocket('off'), | ||
new BooleanSocket('isOn'), | ||
], (context) => { | ||
context.setOutputValue('isA', this.isA); | ||
context.commit(this.isA ? 'a' : 'b'); | ||
this.isA = !this.isA; | ||
context.setOutputValue('isOn', this.isOn); | ||
context.commit(this.isOn ? 'on' : 'off'); | ||
this.isOn = !this.isOn; | ||
}); | ||
this.isA = true; | ||
this.isOn = true; | ||
} | ||
@@ -301,0 +301,0 @@ } |
@@ -780,11 +780,11 @@ /*! ***************************************************************************** | ||
], [ | ||
new FlowSocket('a'), | ||
new FlowSocket('b'), | ||
new BooleanSocket('isA'), | ||
new FlowSocket('on'), | ||
new FlowSocket('off'), | ||
new BooleanSocket('isOn'), | ||
], (context) => { | ||
context.setOutputValue('isA', this.isA); | ||
context.commit(this.isA ? 'a' : 'b'); | ||
this.isA = !this.isA; | ||
context.setOutputValue('isOn', this.isOn); | ||
context.commit(this.isOn ? 'on' : 'off'); | ||
this.isOn = !this.isOn; | ||
}); | ||
this.isA = true; | ||
this.isOn = true; | ||
} | ||
@@ -791,0 +791,0 @@ } |
@@ -847,11 +847,11 @@ class Debug { | ||
], [ | ||
new FlowSocket('a'), | ||
new FlowSocket('b'), | ||
new BooleanSocket('isA'), | ||
new FlowSocket('on'), | ||
new FlowSocket('off'), | ||
new BooleanSocket('isOn'), | ||
], (context) => { | ||
context.setOutputValue('isA', this.isA); | ||
context.commit(this.isA ? 'a' : 'b'); | ||
this.isA = !this.isA; | ||
context.setOutputValue('isOn', this.isOn); | ||
context.commit(this.isOn ? 'on' : 'off'); | ||
this.isOn = !this.isOn; | ||
}); | ||
this.isA = true; | ||
this.isOn = true; | ||
} | ||
@@ -858,0 +858,0 @@ } |
@@ -81,11 +81,11 @@ [ | ||
{ | ||
"name": "a", | ||
"name": "on", | ||
"valueType": "flow" | ||
}, | ||
{ | ||
"name": "b", | ||
"name": "off", | ||
"valueType": "flow" | ||
}, | ||
{ | ||
"name": "isA", | ||
"name": "isOn", | ||
"valueType": "boolean" | ||
@@ -92,0 +92,0 @@ } |
{ | ||
"name": "behave-graph", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "Simple, extensible behavior graph engine", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -17,4 +17,3 @@ # Behave-Graph | ||
https://discord.gg/kWSWtVg6 | ||
https://discord.gg/mrags8WyuH | ||
## Feature Overview | ||
@@ -36,3 +35,3 @@ | ||
* **Flow Control** Control execution flow using familiar structures: Branches, delays, if-then, sequences and for-loops. | ||
* **State** You can set and load state arbitrarily: Exists, Set, Get. | ||
* **State** You can set and load state arbitrarily: Set, Get. | ||
* **Time** Time nodes allow you to wait: Delay. | ||
@@ -170,3 +169,3 @@ ### Designed for Integration into Other Systems | ||
```zsh | ||
> npm run exec-graph -- ./examples/basics/State.json | ||
> npm run exec-graph -- ./examples/variables/GetSet.json | ||
@@ -173,0 +172,0 @@ 1000 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
251921
29
6005
551