update logic functions to remove metatable OOP
This commit is contained in:
@ -24,12 +24,12 @@ datablock fxDtsBrickData(LogicGate_GateXnor5_Data){
|
||||
logicUpdate =
|
||||
"return function(gate) " @
|
||||
" local v = true " @
|
||||
" if gate.ports[1].state then v = not v end " @
|
||||
" if gate.ports[2].state then v = not v end " @
|
||||
" if gate.ports[3].state then v = not v end " @
|
||||
" if gate.ports[4].state then v = not v end " @
|
||||
" if gate.ports[5].state then v = not v end " @
|
||||
" gate.ports[6]:setstate(v) " @
|
||||
" if Gate.getportstate(gate, 1) then v = not v end " @
|
||||
" if Gate.getportstate(gate, 2) then v = not v end " @
|
||||
" if Gate.getportstate(gate, 3) then v = not v end " @
|
||||
" if Gate.getportstate(gate, 4) then v = not v end " @
|
||||
" if Gate.getportstate(gate, 5) then v = not v end " @
|
||||
" Gate.setportstate(gate, 6, v) " @
|
||||
"end"
|
||||
;
|
||||
logicGlobal = "";
|
||||
|
Reference in New Issue
Block a user