13 lines
533 B
C#
13 lines
533 B
C#
|
|
lualogic_require($LuaLogic::Path @ "bricks/gates/OR.cs");
|
|
|
|
datablock fxDTSBrickData(LogicGate_XOR_Data : LogicGate_OR_Data)
|
|
{
|
|
uiName = "1x2f XOR";
|
|
iconName = $LuaLogic::Path @ "icons/1x2f XOR";
|
|
logicUIName = "XOR";
|
|
logicUIDesc = "C is true if A or B are true but false if A and B are true";
|
|
logicUpdate = "return function(gate) gate.ports[3]:setstate((gate.ports[1].state or gate.ports[2].state) and not (gate.ports[1].state and gate.ports[2].state)) end";
|
|
};
|
|
lualogic_registergatedefinition("LogicGate_XOR_Data");
|