update logic functions to remove metatable OOP
This commit is contained in:
@@ -23,40 +23,40 @@ datablock fxDtsBrickData(LogicGate_BufferAl16_Data){
|
||||
logicInput = "";
|
||||
logicUpdate =
|
||||
"return function(gate) " @
|
||||
" if not gate.ports[33].state then " @
|
||||
" gate.ports[17]:setstate(gate.ports[1].state) " @
|
||||
" gate.ports[18]:setstate(gate.ports[2].state) " @
|
||||
" gate.ports[19]:setstate(gate.ports[3].state) " @
|
||||
" gate.ports[20]:setstate(gate.ports[4].state) " @
|
||||
" gate.ports[21]:setstate(gate.ports[5].state) " @
|
||||
" gate.ports[22]:setstate(gate.ports[6].state) " @
|
||||
" gate.ports[23]:setstate(gate.ports[7].state) " @
|
||||
" gate.ports[24]:setstate(gate.ports[8].state) " @
|
||||
" gate.ports[25]:setstate(gate.ports[9].state) " @
|
||||
" gate.ports[26]:setstate(gate.ports[10].state) " @
|
||||
" gate.ports[27]:setstate(gate.ports[11].state) " @
|
||||
" gate.ports[28]:setstate(gate.ports[12].state) " @
|
||||
" gate.ports[29]:setstate(gate.ports[13].state) " @
|
||||
" gate.ports[30]:setstate(gate.ports[14].state) " @
|
||||
" gate.ports[31]:setstate(gate.ports[15].state) " @
|
||||
" gate.ports[32]:setstate(gate.ports[16].state) " @
|
||||
" if not Gate.getportstate(gate, 33) then " @
|
||||
" Gate.setportstate(gate, 17, Gate.getportstate(gate, 1)) " @
|
||||
" Gate.setportstate(gate, 18, Gate.getportstate(gate, 2)) " @
|
||||
" Gate.setportstate(gate, 19, Gate.getportstate(gate, 3)) " @
|
||||
" Gate.setportstate(gate, 20, Gate.getportstate(gate, 4)) " @
|
||||
" Gate.setportstate(gate, 21, Gate.getportstate(gate, 5)) " @
|
||||
" Gate.setportstate(gate, 22, Gate.getportstate(gate, 6)) " @
|
||||
" Gate.setportstate(gate, 23, Gate.getportstate(gate, 7)) " @
|
||||
" Gate.setportstate(gate, 24, Gate.getportstate(gate, 8)) " @
|
||||
" Gate.setportstate(gate, 25, Gate.getportstate(gate, 9)) " @
|
||||
" Gate.setportstate(gate, 26, Gate.getportstate(gate, 10)) " @
|
||||
" Gate.setportstate(gate, 27, Gate.getportstate(gate, 11)) " @
|
||||
" Gate.setportstate(gate, 28, Gate.getportstate(gate, 12)) " @
|
||||
" Gate.setportstate(gate, 29, Gate.getportstate(gate, 13)) " @
|
||||
" Gate.setportstate(gate, 30, Gate.getportstate(gate, 14)) " @
|
||||
" Gate.setportstate(gate, 31, Gate.getportstate(gate, 15)) " @
|
||||
" Gate.setportstate(gate, 32, Gate.getportstate(gate, 16)) " @
|
||||
" else " @
|
||||
" gate.ports[17]:setstate(false) " @
|
||||
" gate.ports[18]:setstate(false) " @
|
||||
" gate.ports[19]:setstate(false) " @
|
||||
" gate.ports[20]:setstate(false) " @
|
||||
" gate.ports[21]:setstate(false) " @
|
||||
" gate.ports[22]:setstate(false) " @
|
||||
" gate.ports[23]:setstate(false) " @
|
||||
" gate.ports[24]:setstate(false) " @
|
||||
" gate.ports[25]:setstate(false) " @
|
||||
" gate.ports[26]:setstate(false) " @
|
||||
" gate.ports[27]:setstate(false) " @
|
||||
" gate.ports[28]:setstate(false) " @
|
||||
" gate.ports[29]:setstate(false) " @
|
||||
" gate.ports[30]:setstate(false) " @
|
||||
" gate.ports[31]:setstate(false) " @
|
||||
" gate.ports[32]:setstate(false) " @
|
||||
" Gate.setportstate(gate, 17, false) " @
|
||||
" Gate.setportstate(gate, 18, false) " @
|
||||
" Gate.setportstate(gate, 19, false) " @
|
||||
" Gate.setportstate(gate, 20, false) " @
|
||||
" Gate.setportstate(gate, 21, false) " @
|
||||
" Gate.setportstate(gate, 22, false) " @
|
||||
" Gate.setportstate(gate, 23, false) " @
|
||||
" Gate.setportstate(gate, 24, false) " @
|
||||
" Gate.setportstate(gate, 25, false) " @
|
||||
" Gate.setportstate(gate, 26, false) " @
|
||||
" Gate.setportstate(gate, 27, false) " @
|
||||
" Gate.setportstate(gate, 28, false) " @
|
||||
" Gate.setportstate(gate, 29, false) " @
|
||||
" Gate.setportstate(gate, 30, false) " @
|
||||
" Gate.setportstate(gate, 31, false) " @
|
||||
" Gate.setportstate(gate, 32, false) " @
|
||||
" end " @
|
||||
"end"
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user