update logic functions to remove metatable OOP
This commit is contained in:
@@ -23,72 +23,72 @@ datablock fxDtsBrickData(LogicGate_Buffer32_Data){
|
||||
logicInput = "";
|
||||
logicUpdate =
|
||||
"return function(gate) " @
|
||||
" if gate.ports[65].state then " @
|
||||
" gate.ports[33]:setstate(gate.ports[1].state) " @
|
||||
" gate.ports[34]:setstate(gate.ports[2].state) " @
|
||||
" gate.ports[35]:setstate(gate.ports[3].state) " @
|
||||
" gate.ports[36]:setstate(gate.ports[4].state) " @
|
||||
" gate.ports[37]:setstate(gate.ports[5].state) " @
|
||||
" gate.ports[38]:setstate(gate.ports[6].state) " @
|
||||
" gate.ports[39]:setstate(gate.ports[7].state) " @
|
||||
" gate.ports[40]:setstate(gate.ports[8].state) " @
|
||||
" gate.ports[41]:setstate(gate.ports[9].state) " @
|
||||
" gate.ports[42]:setstate(gate.ports[10].state) " @
|
||||
" gate.ports[43]:setstate(gate.ports[11].state) " @
|
||||
" gate.ports[44]:setstate(gate.ports[12].state) " @
|
||||
" gate.ports[45]:setstate(gate.ports[13].state) " @
|
||||
" gate.ports[46]:setstate(gate.ports[14].state) " @
|
||||
" gate.ports[47]:setstate(gate.ports[15].state) " @
|
||||
" gate.ports[48]:setstate(gate.ports[16].state) " @
|
||||
" gate.ports[49]:setstate(gate.ports[17].state) " @
|
||||
" gate.ports[50]:setstate(gate.ports[18].state) " @
|
||||
" gate.ports[51]:setstate(gate.ports[19].state) " @
|
||||
" gate.ports[52]:setstate(gate.ports[20].state) " @
|
||||
" gate.ports[53]:setstate(gate.ports[21].state) " @
|
||||
" gate.ports[54]:setstate(gate.ports[22].state) " @
|
||||
" gate.ports[55]:setstate(gate.ports[23].state) " @
|
||||
" gate.ports[56]:setstate(gate.ports[24].state) " @
|
||||
" gate.ports[57]:setstate(gate.ports[25].state) " @
|
||||
" gate.ports[58]:setstate(gate.ports[26].state) " @
|
||||
" gate.ports[59]:setstate(gate.ports[27].state) " @
|
||||
" gate.ports[60]:setstate(gate.ports[28].state) " @
|
||||
" gate.ports[61]:setstate(gate.ports[29].state) " @
|
||||
" gate.ports[62]:setstate(gate.ports[30].state) " @
|
||||
" gate.ports[63]:setstate(gate.ports[31].state) " @
|
||||
" gate.ports[64]:setstate(gate.ports[32].state) " @
|
||||
" if Gate.getportstate(gate, 65) then " @
|
||||
" Gate.setportstate(gate, 33, Gate.getportstate(gate, 1)) " @
|
||||
" Gate.setportstate(gate, 34, Gate.getportstate(gate, 2)) " @
|
||||
" Gate.setportstate(gate, 35, Gate.getportstate(gate, 3)) " @
|
||||
" Gate.setportstate(gate, 36, Gate.getportstate(gate, 4)) " @
|
||||
" Gate.setportstate(gate, 37, Gate.getportstate(gate, 5)) " @
|
||||
" Gate.setportstate(gate, 38, Gate.getportstate(gate, 6)) " @
|
||||
" Gate.setportstate(gate, 39, Gate.getportstate(gate, 7)) " @
|
||||
" Gate.setportstate(gate, 40, Gate.getportstate(gate, 8)) " @
|
||||
" Gate.setportstate(gate, 41, Gate.getportstate(gate, 9)) " @
|
||||
" Gate.setportstate(gate, 42, Gate.getportstate(gate, 10)) " @
|
||||
" Gate.setportstate(gate, 43, Gate.getportstate(gate, 11)) " @
|
||||
" Gate.setportstate(gate, 44, Gate.getportstate(gate, 12)) " @
|
||||
" Gate.setportstate(gate, 45, Gate.getportstate(gate, 13)) " @
|
||||
" Gate.setportstate(gate, 46, Gate.getportstate(gate, 14)) " @
|
||||
" Gate.setportstate(gate, 47, Gate.getportstate(gate, 15)) " @
|
||||
" Gate.setportstate(gate, 48, Gate.getportstate(gate, 16)) " @
|
||||
" Gate.setportstate(gate, 49, Gate.getportstate(gate, 17)) " @
|
||||
" Gate.setportstate(gate, 50, Gate.getportstate(gate, 18)) " @
|
||||
" Gate.setportstate(gate, 51, Gate.getportstate(gate, 19)) " @
|
||||
" Gate.setportstate(gate, 52, Gate.getportstate(gate, 20)) " @
|
||||
" Gate.setportstate(gate, 53, Gate.getportstate(gate, 21)) " @
|
||||
" Gate.setportstate(gate, 54, Gate.getportstate(gate, 22)) " @
|
||||
" Gate.setportstate(gate, 55, Gate.getportstate(gate, 23)) " @
|
||||
" Gate.setportstate(gate, 56, Gate.getportstate(gate, 24)) " @
|
||||
" Gate.setportstate(gate, 57, Gate.getportstate(gate, 25)) " @
|
||||
" Gate.setportstate(gate, 58, Gate.getportstate(gate, 26)) " @
|
||||
" Gate.setportstate(gate, 59, Gate.getportstate(gate, 27)) " @
|
||||
" Gate.setportstate(gate, 60, Gate.getportstate(gate, 28)) " @
|
||||
" Gate.setportstate(gate, 61, Gate.getportstate(gate, 29)) " @
|
||||
" Gate.setportstate(gate, 62, Gate.getportstate(gate, 30)) " @
|
||||
" Gate.setportstate(gate, 63, Gate.getportstate(gate, 31)) " @
|
||||
" Gate.setportstate(gate, 64, Gate.getportstate(gate, 32)) " @
|
||||
" else " @
|
||||
" gate.ports[33]:setstate(false) " @
|
||||
" gate.ports[34]:setstate(false) " @
|
||||
" gate.ports[35]:setstate(false) " @
|
||||
" gate.ports[36]:setstate(false) " @
|
||||
" gate.ports[37]:setstate(false) " @
|
||||
" gate.ports[38]:setstate(false) " @
|
||||
" gate.ports[39]:setstate(false) " @
|
||||
" gate.ports[40]:setstate(false) " @
|
||||
" gate.ports[41]:setstate(false) " @
|
||||
" gate.ports[42]:setstate(false) " @
|
||||
" gate.ports[43]:setstate(false) " @
|
||||
" gate.ports[44]:setstate(false) " @
|
||||
" gate.ports[45]:setstate(false) " @
|
||||
" gate.ports[46]:setstate(false) " @
|
||||
" gate.ports[47]:setstate(false) " @
|
||||
" gate.ports[48]:setstate(false) " @
|
||||
" gate.ports[49]:setstate(false) " @
|
||||
" gate.ports[50]:setstate(false) " @
|
||||
" gate.ports[51]:setstate(false) " @
|
||||
" gate.ports[52]:setstate(false) " @
|
||||
" gate.ports[53]:setstate(false) " @
|
||||
" gate.ports[54]:setstate(false) " @
|
||||
" gate.ports[55]:setstate(false) " @
|
||||
" gate.ports[56]:setstate(false) " @
|
||||
" gate.ports[57]:setstate(false) " @
|
||||
" gate.ports[58]:setstate(false) " @
|
||||
" gate.ports[59]:setstate(false) " @
|
||||
" gate.ports[60]:setstate(false) " @
|
||||
" gate.ports[61]:setstate(false) " @
|
||||
" gate.ports[62]:setstate(false) " @
|
||||
" gate.ports[63]:setstate(false) " @
|
||||
" gate.ports[64]:setstate(false) " @
|
||||
" Gate.setportstate(gate, 33, false) " @
|
||||
" Gate.setportstate(gate, 34, false) " @
|
||||
" Gate.setportstate(gate, 35, false) " @
|
||||
" Gate.setportstate(gate, 36, false) " @
|
||||
" Gate.setportstate(gate, 37, false) " @
|
||||
" Gate.setportstate(gate, 38, false) " @
|
||||
" Gate.setportstate(gate, 39, false) " @
|
||||
" Gate.setportstate(gate, 40, false) " @
|
||||
" Gate.setportstate(gate, 41, false) " @
|
||||
" Gate.setportstate(gate, 42, false) " @
|
||||
" Gate.setportstate(gate, 43, false) " @
|
||||
" Gate.setportstate(gate, 44, false) " @
|
||||
" Gate.setportstate(gate, 45, false) " @
|
||||
" Gate.setportstate(gate, 46, false) " @
|
||||
" Gate.setportstate(gate, 47, false) " @
|
||||
" Gate.setportstate(gate, 48, false) " @
|
||||
" Gate.setportstate(gate, 49, false) " @
|
||||
" Gate.setportstate(gate, 50, false) " @
|
||||
" Gate.setportstate(gate, 51, false) " @
|
||||
" Gate.setportstate(gate, 52, false) " @
|
||||
" Gate.setportstate(gate, 53, false) " @
|
||||
" Gate.setportstate(gate, 54, false) " @
|
||||
" Gate.setportstate(gate, 55, false) " @
|
||||
" Gate.setportstate(gate, 56, false) " @
|
||||
" Gate.setportstate(gate, 57, false) " @
|
||||
" Gate.setportstate(gate, 58, false) " @
|
||||
" Gate.setportstate(gate, 59, false) " @
|
||||
" Gate.setportstate(gate, 60, false) " @
|
||||
" Gate.setportstate(gate, 61, false) " @
|
||||
" Gate.setportstate(gate, 62, false) " @
|
||||
" Gate.setportstate(gate, 63, false) " @
|
||||
" Gate.setportstate(gate, 64, false) " @
|
||||
" end " @
|
||||
"end"
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user