initial commit

This commit is contained in:
Redo
2020-05-19 02:22:30 -05:00
commit 1cdffd4e01
203 changed files with 108753 additions and 0 deletions

12
bricks/gates/XNOR.cs Normal file
View File

@@ -0,0 +1,12 @@
lualogic_require($LuaLogic::Path @ "bricks/gates/OR.cs");
datablock fxDTSBrickData(LogicGate_XNOR_Data : LogicGate_OR_Data)
{
uiName = "1x2f XNOR";
iconName = $LuaLogic::Path @ "icons/1x2f XNOR";
logicUIName = "XNOR";
logicUIDesc = "C is true if A and B are both true or both false";
logicUpdate = "return function(gate) gate.ports[3]:setstate((gate.ports[1].state and gate.ports[2].state) or (not gate.ports[1].state and not gate.ports[2].state)) end";
};
lualogic_registergatedefinition("LogicGate_XNOR_Data");