datablock fxDtsBrickData(LogicGate_GateXor3_Data){ brickFile = $LuaLogic::Path @ "bricks/gen/newbricks/XOR 3 Bit.blb"; iconName = $LuaLogic::Path @ "bricks/gen/newicons/XOR 3 Bit"; category = "Logic Bricks"; subCategory = "Gates"; uiName = "XOR 3 Bit"; logicUIName = "XOR 3 Bit"; logicUIDesc = ""; hasPrint = 1; printAspectRatio = "Logic"; logicBrickSize = "3 1 1"; orientationFix = 3; isLogic = true; isLogicGate = true; isLogicInput = false; logicInit = ""; logicInput = ""; logicUpdate = "return function(gate) " @ " local v = false " @ " 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 " @ " gate.ports[4]:setstate(v) " @ "end" ; logicGlobal = ""; numLogicPorts = 4; logicPortType[0] = 1; logicPortPos[0] = "2 0 0"; logicPortDir[0] = 3; logicPortUIName[0] = "In0"; logicPortCauseUpdate[0] = true; logicPortType[1] = 1; logicPortPos[1] = "0 0 0"; logicPortDir[1] = 3; logicPortUIName[1] = "In1"; logicPortCauseUpdate[1] = true; logicPortType[2] = 1; logicPortPos[2] = "-2 0 0"; logicPortDir[2] = 3; logicPortUIName[2] = "In2"; logicPortCauseUpdate[2] = true; logicPortType[3] = 0; logicPortPos[3] = "2 0 0"; logicPortDir[3] = 1; logicPortUIName[3] = "Out"; };