Added EventGate
Added EventGate which is designed for logic signals to interface with events
This commit is contained in:
4
bricks/special/EventGate-update.lua
Normal file
4
bricks/special/EventGate-update.lua
Normal 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
|
||||
Reference in New Issue
Block a user