update logic functions to remove metatable OOP

This commit is contained in:
Redo
2020-09-10 12:58:25 -05:00
parent 4095d193ff
commit ab19de7333
206 changed files with 22726 additions and 3544 deletions

View File

@@ -23,13 +23,13 @@ datablock fxDtsBrickData(LogicGate_GateOr6_Data){
logicInput = "";
logicUpdate =
"return function(gate) " @
" gate.ports[7]:setstate(( " @
" gate.ports[1].state or " @
" gate.ports[2].state or " @
" gate.ports[3].state or " @
" gate.ports[4].state or " @
" gate.ports[5].state or " @
" gate.ports[6].state " @
" Gate.setportstate(gate, 7, ( " @
" Gate.getportstate(gate, 1) or " @
" Gate.getportstate(gate, 2) or " @
" Gate.getportstate(gate, 3) or " @
" Gate.getportstate(gate, 4) or " @
" Gate.getportstate(gate, 5) or " @
" Gate.getportstate(gate, 6) " @
" )) " @
"end"
;