Added EventGate

Added EventGate which is designed for logic signals to interface with events
This commit is contained in:
2019-04-16 22:59:11 -04:00
parent b0c376bd37
commit 500eff70a9
4 changed files with 74 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
return function(gate)
gate.ports[2]:setstate(gate.ports[1].state)
gate:cb(bool_to_int[gate.ports[1].state])
end