update logic functions to remove metatable OOP
This commit is contained in:
@@ -23,104 +23,104 @@ datablock fxDtsBrickData(LogicGate_Enabler48_Data){
|
||||
logicInput = "";
|
||||
logicUpdate =
|
||||
"return function(gate) " @
|
||||
" if gate.ports[97].state then " @
|
||||
" gate.ports[49]:setstate(gate.ports[1].state) " @
|
||||
" gate.ports[50]:setstate(gate.ports[2].state) " @
|
||||
" gate.ports[51]:setstate(gate.ports[3].state) " @
|
||||
" gate.ports[52]:setstate(gate.ports[4].state) " @
|
||||
" gate.ports[53]:setstate(gate.ports[5].state) " @
|
||||
" gate.ports[54]:setstate(gate.ports[6].state) " @
|
||||
" gate.ports[55]:setstate(gate.ports[7].state) " @
|
||||
" gate.ports[56]:setstate(gate.ports[8].state) " @
|
||||
" gate.ports[57]:setstate(gate.ports[9].state) " @
|
||||
" gate.ports[58]:setstate(gate.ports[10].state) " @
|
||||
" gate.ports[59]:setstate(gate.ports[11].state) " @
|
||||
" gate.ports[60]:setstate(gate.ports[12].state) " @
|
||||
" gate.ports[61]:setstate(gate.ports[13].state) " @
|
||||
" gate.ports[62]:setstate(gate.ports[14].state) " @
|
||||
" gate.ports[63]:setstate(gate.ports[15].state) " @
|
||||
" gate.ports[64]:setstate(gate.ports[16].state) " @
|
||||
" gate.ports[65]:setstate(gate.ports[17].state) " @
|
||||
" gate.ports[66]:setstate(gate.ports[18].state) " @
|
||||
" gate.ports[67]:setstate(gate.ports[19].state) " @
|
||||
" gate.ports[68]:setstate(gate.ports[20].state) " @
|
||||
" gate.ports[69]:setstate(gate.ports[21].state) " @
|
||||
" gate.ports[70]:setstate(gate.ports[22].state) " @
|
||||
" gate.ports[71]:setstate(gate.ports[23].state) " @
|
||||
" gate.ports[72]:setstate(gate.ports[24].state) " @
|
||||
" gate.ports[73]:setstate(gate.ports[25].state) " @
|
||||
" gate.ports[74]:setstate(gate.ports[26].state) " @
|
||||
" gate.ports[75]:setstate(gate.ports[27].state) " @
|
||||
" gate.ports[76]:setstate(gate.ports[28].state) " @
|
||||
" gate.ports[77]:setstate(gate.ports[29].state) " @
|
||||
" gate.ports[78]:setstate(gate.ports[30].state) " @
|
||||
" gate.ports[79]:setstate(gate.ports[31].state) " @
|
||||
" gate.ports[80]:setstate(gate.ports[32].state) " @
|
||||
" gate.ports[81]:setstate(gate.ports[33].state) " @
|
||||
" gate.ports[82]:setstate(gate.ports[34].state) " @
|
||||
" gate.ports[83]:setstate(gate.ports[35].state) " @
|
||||
" gate.ports[84]:setstate(gate.ports[36].state) " @
|
||||
" gate.ports[85]:setstate(gate.ports[37].state) " @
|
||||
" gate.ports[86]:setstate(gate.ports[38].state) " @
|
||||
" gate.ports[87]:setstate(gate.ports[39].state) " @
|
||||
" gate.ports[88]:setstate(gate.ports[40].state) " @
|
||||
" gate.ports[89]:setstate(gate.ports[41].state) " @
|
||||
" gate.ports[90]:setstate(gate.ports[42].state) " @
|
||||
" gate.ports[91]:setstate(gate.ports[43].state) " @
|
||||
" gate.ports[92]:setstate(gate.ports[44].state) " @
|
||||
" gate.ports[93]:setstate(gate.ports[45].state) " @
|
||||
" gate.ports[94]:setstate(gate.ports[46].state) " @
|
||||
" gate.ports[95]:setstate(gate.ports[47].state) " @
|
||||
" gate.ports[96]:setstate(gate.ports[48].state) " @
|
||||
" if Gate.getportstate(gate, 97) then " @
|
||||
" Gate.setportstate(gate, 49, Gate.getportstate(gate, 1)) " @
|
||||
" Gate.setportstate(gate, 50, Gate.getportstate(gate, 2)) " @
|
||||
" Gate.setportstate(gate, 51, Gate.getportstate(gate, 3)) " @
|
||||
" Gate.setportstate(gate, 52, Gate.getportstate(gate, 4)) " @
|
||||
" Gate.setportstate(gate, 53, Gate.getportstate(gate, 5)) " @
|
||||
" Gate.setportstate(gate, 54, Gate.getportstate(gate, 6)) " @
|
||||
" Gate.setportstate(gate, 55, Gate.getportstate(gate, 7)) " @
|
||||
" Gate.setportstate(gate, 56, Gate.getportstate(gate, 8)) " @
|
||||
" Gate.setportstate(gate, 57, Gate.getportstate(gate, 9)) " @
|
||||
" Gate.setportstate(gate, 58, Gate.getportstate(gate, 10)) " @
|
||||
" Gate.setportstate(gate, 59, Gate.getportstate(gate, 11)) " @
|
||||
" Gate.setportstate(gate, 60, Gate.getportstate(gate, 12)) " @
|
||||
" Gate.setportstate(gate, 61, Gate.getportstate(gate, 13)) " @
|
||||
" Gate.setportstate(gate, 62, Gate.getportstate(gate, 14)) " @
|
||||
" Gate.setportstate(gate, 63, Gate.getportstate(gate, 15)) " @
|
||||
" Gate.setportstate(gate, 64, Gate.getportstate(gate, 16)) " @
|
||||
" Gate.setportstate(gate, 65, Gate.getportstate(gate, 17)) " @
|
||||
" Gate.setportstate(gate, 66, Gate.getportstate(gate, 18)) " @
|
||||
" Gate.setportstate(gate, 67, Gate.getportstate(gate, 19)) " @
|
||||
" Gate.setportstate(gate, 68, Gate.getportstate(gate, 20)) " @
|
||||
" Gate.setportstate(gate, 69, Gate.getportstate(gate, 21)) " @
|
||||
" Gate.setportstate(gate, 70, Gate.getportstate(gate, 22)) " @
|
||||
" Gate.setportstate(gate, 71, Gate.getportstate(gate, 23)) " @
|
||||
" Gate.setportstate(gate, 72, Gate.getportstate(gate, 24)) " @
|
||||
" Gate.setportstate(gate, 73, Gate.getportstate(gate, 25)) " @
|
||||
" Gate.setportstate(gate, 74, Gate.getportstate(gate, 26)) " @
|
||||
" Gate.setportstate(gate, 75, Gate.getportstate(gate, 27)) " @
|
||||
" Gate.setportstate(gate, 76, Gate.getportstate(gate, 28)) " @
|
||||
" Gate.setportstate(gate, 77, Gate.getportstate(gate, 29)) " @
|
||||
" Gate.setportstate(gate, 78, Gate.getportstate(gate, 30)) " @
|
||||
" Gate.setportstate(gate, 79, Gate.getportstate(gate, 31)) " @
|
||||
" Gate.setportstate(gate, 80, Gate.getportstate(gate, 32)) " @
|
||||
" Gate.setportstate(gate, 81, Gate.getportstate(gate, 33)) " @
|
||||
" Gate.setportstate(gate, 82, Gate.getportstate(gate, 34)) " @
|
||||
" Gate.setportstate(gate, 83, Gate.getportstate(gate, 35)) " @
|
||||
" Gate.setportstate(gate, 84, Gate.getportstate(gate, 36)) " @
|
||||
" Gate.setportstate(gate, 85, Gate.getportstate(gate, 37)) " @
|
||||
" Gate.setportstate(gate, 86, Gate.getportstate(gate, 38)) " @
|
||||
" Gate.setportstate(gate, 87, Gate.getportstate(gate, 39)) " @
|
||||
" Gate.setportstate(gate, 88, Gate.getportstate(gate, 40)) " @
|
||||
" Gate.setportstate(gate, 89, Gate.getportstate(gate, 41)) " @
|
||||
" Gate.setportstate(gate, 90, Gate.getportstate(gate, 42)) " @
|
||||
" Gate.setportstate(gate, 91, Gate.getportstate(gate, 43)) " @
|
||||
" Gate.setportstate(gate, 92, Gate.getportstate(gate, 44)) " @
|
||||
" Gate.setportstate(gate, 93, Gate.getportstate(gate, 45)) " @
|
||||
" Gate.setportstate(gate, 94, Gate.getportstate(gate, 46)) " @
|
||||
" Gate.setportstate(gate, 95, Gate.getportstate(gate, 47)) " @
|
||||
" Gate.setportstate(gate, 96, Gate.getportstate(gate, 48)) " @
|
||||
" else " @
|
||||
" 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.ports[65]:setstate(false) " @
|
||||
" gate.ports[66]:setstate(false) " @
|
||||
" gate.ports[67]:setstate(false) " @
|
||||
" gate.ports[68]:setstate(false) " @
|
||||
" gate.ports[69]:setstate(false) " @
|
||||
" gate.ports[70]:setstate(false) " @
|
||||
" gate.ports[71]:setstate(false) " @
|
||||
" gate.ports[72]:setstate(false) " @
|
||||
" gate.ports[73]:setstate(false) " @
|
||||
" gate.ports[74]:setstate(false) " @
|
||||
" gate.ports[75]:setstate(false) " @
|
||||
" gate.ports[76]:setstate(false) " @
|
||||
" gate.ports[77]:setstate(false) " @
|
||||
" gate.ports[78]:setstate(false) " @
|
||||
" gate.ports[79]:setstate(false) " @
|
||||
" gate.ports[80]:setstate(false) " @
|
||||
" gate.ports[81]:setstate(false) " @
|
||||
" gate.ports[82]:setstate(false) " @
|
||||
" gate.ports[83]:setstate(false) " @
|
||||
" gate.ports[84]:setstate(false) " @
|
||||
" gate.ports[85]:setstate(false) " @
|
||||
" gate.ports[86]:setstate(false) " @
|
||||
" gate.ports[87]:setstate(false) " @
|
||||
" gate.ports[88]:setstate(false) " @
|
||||
" gate.ports[89]:setstate(false) " @
|
||||
" gate.ports[90]:setstate(false) " @
|
||||
" gate.ports[91]:setstate(false) " @
|
||||
" gate.ports[92]:setstate(false) " @
|
||||
" gate.ports[93]:setstate(false) " @
|
||||
" gate.ports[94]:setstate(false) " @
|
||||
" gate.ports[95]:setstate(false) " @
|
||||
" gate.ports[96]:setstate(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) " @
|
||||
" Gate.setportstate(gate, 65, false) " @
|
||||
" Gate.setportstate(gate, 66, false) " @
|
||||
" Gate.setportstate(gate, 67, false) " @
|
||||
" Gate.setportstate(gate, 68, false) " @
|
||||
" Gate.setportstate(gate, 69, false) " @
|
||||
" Gate.setportstate(gate, 70, false) " @
|
||||
" Gate.setportstate(gate, 71, false) " @
|
||||
" Gate.setportstate(gate, 72, false) " @
|
||||
" Gate.setportstate(gate, 73, false) " @
|
||||
" Gate.setportstate(gate, 74, false) " @
|
||||
" Gate.setportstate(gate, 75, false) " @
|
||||
" Gate.setportstate(gate, 76, false) " @
|
||||
" Gate.setportstate(gate, 77, false) " @
|
||||
" Gate.setportstate(gate, 78, false) " @
|
||||
" Gate.setportstate(gate, 79, false) " @
|
||||
" Gate.setportstate(gate, 80, false) " @
|
||||
" Gate.setportstate(gate, 81, false) " @
|
||||
" Gate.setportstate(gate, 82, false) " @
|
||||
" Gate.setportstate(gate, 83, false) " @
|
||||
" Gate.setportstate(gate, 84, false) " @
|
||||
" Gate.setportstate(gate, 85, false) " @
|
||||
" Gate.setportstate(gate, 86, false) " @
|
||||
" Gate.setportstate(gate, 87, false) " @
|
||||
" Gate.setportstate(gate, 88, false) " @
|
||||
" Gate.setportstate(gate, 89, false) " @
|
||||
" Gate.setportstate(gate, 90, false) " @
|
||||
" Gate.setportstate(gate, 91, false) " @
|
||||
" Gate.setportstate(gate, 92, false) " @
|
||||
" Gate.setportstate(gate, 93, false) " @
|
||||
" Gate.setportstate(gate, 94, false) " @
|
||||
" Gate.setportstate(gate, 95, false) " @
|
||||
" Gate.setportstate(gate, 96, false) " @
|
||||
" end " @
|
||||
"end"
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user