update logic functions to remove metatable OOP
This commit is contained in:
@@ -23,20 +23,20 @@ datablock fxDtsBrickData(LogicGate_Enabler6_Data){
|
||||
logicInput = "";
|
||||
logicUpdate =
|
||||
"return function(gate) " @
|
||||
" if gate.ports[13].state then " @
|
||||
" gate.ports[7]:setstate(gate.ports[1].state) " @
|
||||
" gate.ports[8]:setstate(gate.ports[2].state) " @
|
||||
" gate.ports[9]:setstate(gate.ports[3].state) " @
|
||||
" gate.ports[10]:setstate(gate.ports[4].state) " @
|
||||
" gate.ports[11]:setstate(gate.ports[5].state) " @
|
||||
" gate.ports[12]:setstate(gate.ports[6].state) " @
|
||||
" if Gate.getportstate(gate, 13) then " @
|
||||
" Gate.setportstate(gate, 7, Gate.getportstate(gate, 1)) " @
|
||||
" Gate.setportstate(gate, 8, Gate.getportstate(gate, 2)) " @
|
||||
" Gate.setportstate(gate, 9, Gate.getportstate(gate, 3)) " @
|
||||
" Gate.setportstate(gate, 10, Gate.getportstate(gate, 4)) " @
|
||||
" Gate.setportstate(gate, 11, Gate.getportstate(gate, 5)) " @
|
||||
" Gate.setportstate(gate, 12, Gate.getportstate(gate, 6)) " @
|
||||
" else " @
|
||||
" gate.ports[7]:setstate(false) " @
|
||||
" gate.ports[8]:setstate(false) " @
|
||||
" gate.ports[9]:setstate(false) " @
|
||||
" gate.ports[10]:setstate(false) " @
|
||||
" gate.ports[11]:setstate(false) " @
|
||||
" gate.ports[12]:setstate(false) " @
|
||||
" Gate.setportstate(gate, 7, false) " @
|
||||
" Gate.setportstate(gate, 8, false) " @
|
||||
" Gate.setportstate(gate, 9, false) " @
|
||||
" Gate.setportstate(gate, 10, false) " @
|
||||
" Gate.setportstate(gate, 11, false) " @
|
||||
" Gate.setportstate(gate, 12, false) " @
|
||||
" end " @
|
||||
"end"
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user