replaced a lot ofbricks with generated ones
This commit is contained in:
@ -1,12 +0,0 @@
|
||||
datablock fxDTSBrickData(LogicGate_AND_Data : LogicGate_OR_Data)
|
||||
{
|
||||
uiName = "1x2f AND";
|
||||
iconName = $LuaLogic::Path @ "icons/1x2f AND";
|
||||
logicUIName = "AND";
|
||||
logicUIDesc = "C is true if A and B are true";
|
||||
logicUpdate = "return function(gate) gate.ports[3]:setstate(gate.ports[1].state and gate.ports[2].state) end";
|
||||
|
||||
logicForceColor = "YELLOW";
|
||||
logicForcePrint = "ANDGATE";
|
||||
};
|
||||
lualogic_registergatedefinition("LogicGate_AND_Data");
|
@ -1,9 +0,0 @@
|
||||
datablock fxDTSBrickData(LogicGate_NAND_Data : LogicGate_OR_Data)
|
||||
{
|
||||
uiName = "1x2f NAND";
|
||||
iconName = $LuaLogic::Path @ "icons/1x2f NAND";
|
||||
logicUIName = "NAND";
|
||||
logicUIDesc = "C is false if A and B are true";
|
||||
logicUpdate = "return function(gate) gate.ports[3]:setstate(not (gate.ports[1].state and gate.ports[2].state)) end";
|
||||
};
|
||||
lualogic_registergatedefinition("LogicGate_NAND_Data");
|
@ -1,9 +0,0 @@
|
||||
datablock fxDTSBrickData(LogicGate_NOR_Data : LogicGate_OR_Data)
|
||||
{
|
||||
uiName = "1x2f NOR";
|
||||
iconName = $LuaLogic::Path @ "icons/1x2f NOR";
|
||||
logicUIName = "NOR";
|
||||
logicUIDesc = "C is false if A or B are true";
|
||||
logicUpdate = "return function(gate) gate.ports[3]:setstate(not (gate.ports[1].state or gate.ports[2].state)) end";
|
||||
};
|
||||
lualogic_registergatedefinition("LogicGate_NOR_Data");
|
@ -1,37 +0,0 @@
|
||||
datablock fxDTSBrickData(LogicGate_OR_Data)
|
||||
{
|
||||
category = "Logic Bricks";
|
||||
subCategory = "Gates";
|
||||
uiName = "1x2f OR";
|
||||
iconName = $LuaLogic::Path @ "icons/1x2f OR";
|
||||
brickFile = $LuaLogic::Path @ "bricks/blb/1x2f_2i_1o.blb";
|
||||
hasPrint = 1;
|
||||
printAspectRatio = "Logic";
|
||||
|
||||
isLogic = 1;
|
||||
isLogicGate = 1;
|
||||
logicUIName = "OR";
|
||||
logicUIDesc = "C is true if A or B are true";
|
||||
|
||||
logicUpdate = "return function(gate) gate.ports[3]:setstate(gate.ports[1].state or gate.ports[2].state) end";
|
||||
|
||||
numLogicPorts = 3;
|
||||
|
||||
logicPortType[0] = 1;
|
||||
logicPortPos[0] = "0 1 0";
|
||||
logicPortDir[0] = "0";
|
||||
logicPortCauseUpdate[0] = true;
|
||||
logicPortUIName[0] = "A";
|
||||
|
||||
logicPortType[1] = 1;
|
||||
logicPortPos[1] = "0 -1 0";
|
||||
logicPortDir[1] = "0";
|
||||
logicPortCauseUpdate[1] = true;
|
||||
logicPortUIName[1] = "B";
|
||||
|
||||
logicPortType[2] = 0;
|
||||
logicPortPos[2] = "0 -1 0";
|
||||
logicPortDir[2] = "2";
|
||||
logicPortUIName[2] = "C";
|
||||
};
|
||||
lualogic_registergatedefinition("LogicGate_OR_Data");
|
@ -1,12 +0,0 @@
|
||||
|
||||
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");
|
@ -1,12 +0,0 @@
|
||||
|
||||
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");
|
Reference in New Issue
Block a user