30 lines
878 B
C#
30 lines
878 B
C#
datablock fxDTSBrickData(LogicGate_NotUp_Data : LogicGate_DiodeUp_Data)
|
|
{
|
|
uiName = "Not Up";
|
|
iconName = $LuaLogic::Path @ "icons/Not Up";
|
|
|
|
logicUIName = "Not Up";
|
|
logicUIDesc = "B is the inverse of A";
|
|
|
|
logicForceColor = "RED";
|
|
logicForcePrint = "UPARROW";
|
|
|
|
logicUpdate = "return function(gate) gate.ports[2]:setstate(not gate.ports[1].state) end";
|
|
};
|
|
lualogic_registergatedefinition("LogicGate_NotUp_Data");
|
|
|
|
datablock fxDTSBrickData(LogicGate_NotDown_Data : LogicGate_DiodeDown_Data)
|
|
{
|
|
uiName = "Not Down";
|
|
iconName = $LuaLogic::Path @ "icons/Not Down";
|
|
|
|
logicUIName = "Not Down";
|
|
logicUIDesc = "B is the inverse of A";
|
|
|
|
logicForceColor = "RED";
|
|
logicForcePrint = "DOWNARROW";
|
|
|
|
logicUpdate = "return function(gate) gate.ports[2]:setstate(not gate.ports[1].state) end";
|
|
};
|
|
lualogic_registergatedefinition("LogicGate_NotDown_Data");
|