update logic functions to remove metatable OOP
This commit is contained in:
@ -23,14 +23,14 @@ datablock fxDtsBrickData(LogicGate_GateNand7_Data){
|
||||
logicInput = "";
|
||||
logicUpdate =
|
||||
"return function(gate) " @
|
||||
" gate.ports[8]:setstate(not ( " @
|
||||
" gate.ports[1].state and " @
|
||||
" gate.ports[2].state and " @
|
||||
" gate.ports[3].state and " @
|
||||
" gate.ports[4].state and " @
|
||||
" gate.ports[5].state and " @
|
||||
" gate.ports[6].state and " @
|
||||
" gate.ports[7].state " @
|
||||
" Gate.setportstate(gate, 8, not ( " @
|
||||
" Gate.getportstate(gate, 1) and " @
|
||||
" Gate.getportstate(gate, 2) and " @
|
||||
" Gate.getportstate(gate, 3) and " @
|
||||
" Gate.getportstate(gate, 4) and " @
|
||||
" Gate.getportstate(gate, 5) and " @
|
||||
" Gate.getportstate(gate, 6) and " @
|
||||
" Gate.getportstate(gate, 7) " @
|
||||
" )) " @
|
||||
"end"
|
||||
;
|
||||
|
Reference in New Issue
Block a user