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,26 +23,26 @@ datablock fxDtsBrickData(LogicGate_Buffer9_Data){
logicInput = "";
logicUpdate =
"return function(gate) " @
" if gate.ports[19].state then " @
" gate.ports[10]:setstate(gate.ports[1].state) " @
" gate.ports[11]:setstate(gate.ports[2].state) " @
" gate.ports[12]:setstate(gate.ports[3].state) " @
" gate.ports[13]:setstate(gate.ports[4].state) " @
" gate.ports[14]:setstate(gate.ports[5].state) " @
" gate.ports[15]:setstate(gate.ports[6].state) " @
" gate.ports[16]:setstate(gate.ports[7].state) " @
" gate.ports[17]:setstate(gate.ports[8].state) " @
" gate.ports[18]:setstate(gate.ports[9].state) " @
" if Gate.getportstate(gate, 19) then " @
" Gate.setportstate(gate, 10, Gate.getportstate(gate, 1)) " @
" Gate.setportstate(gate, 11, Gate.getportstate(gate, 2)) " @
" Gate.setportstate(gate, 12, Gate.getportstate(gate, 3)) " @
" Gate.setportstate(gate, 13, Gate.getportstate(gate, 4)) " @
" Gate.setportstate(gate, 14, Gate.getportstate(gate, 5)) " @
" Gate.setportstate(gate, 15, Gate.getportstate(gate, 6)) " @
" Gate.setportstate(gate, 16, Gate.getportstate(gate, 7)) " @
" Gate.setportstate(gate, 17, Gate.getportstate(gate, 8)) " @
" Gate.setportstate(gate, 18, Gate.getportstate(gate, 9)) " @
" else " @
" gate.ports[10]:setstate(false) " @
" gate.ports[11]:setstate(false) " @
" gate.ports[12]:setstate(false) " @
" gate.ports[13]:setstate(false) " @
" gate.ports[14]:setstate(false) " @
" gate.ports[15]:setstate(false) " @
" gate.ports[16]:setstate(false) " @
" gate.ports[17]:setstate(false) " @
" gate.ports[18]:setstate(false) " @
" Gate.setportstate(gate, 10, false) " @
" Gate.setportstate(gate, 11, false) " @
" Gate.setportstate(gate, 12, false) " @
" Gate.setportstate(gate, 13, false) " @
" Gate.setportstate(gate, 14, false) " @
" Gate.setportstate(gate, 15, false) " @
" Gate.setportstate(gate, 16, false) " @
" Gate.setportstate(gate, 17, false) " @
" Gate.setportstate(gate, 18, false) " @
" end " @
"end"
;