initial commit
This commit is contained in:
19
bricks/gates/NOT.cs
Normal file
19
bricks/gates/NOT.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
lualogic_require($LuaLogic::Path @ "bricks/gates/diode.cs");
|
||||
|
||||
datablock fxDTSBrickData(LogicGate_NOT_Data : LogicGate_Diode_Data)
|
||||
{
|
||||
uiName = "1x1f NOT";
|
||||
iconName = $LuaLogic::Path @ "icons/1x1f NOT";
|
||||
|
||||
logicUIName = "NOT";
|
||||
logicUIDesc = "B is the opposite of A";
|
||||
|
||||
logicForceColor = "RED";
|
||||
logicForcePrint = "ARROW";
|
||||
|
||||
logicUpdate = "return function(gate) gate.ports[2]:setstate(not gate.ports[1].state) end";
|
||||
|
||||
numLogicPorts = 2;
|
||||
};
|
||||
lualogic_registergatedefinition("LogicGate_NOT_Data");
|
||||
Reference in New Issue
Block a user