
datablock fxDtsBrickData(LogicGate_GateAnd4Vertical_Data){
	brickFile = $LuaLogic::Path @ "bricks/gen/newbricks/AND 4 Bit Vertical.blb";
	iconName = $LuaLogic::Path @ "bricks/gen/newicons/AND 4 Bit Vertical";
	
	category = "Logic Bricks";
	subCategory = "Gates";
	uiName = "AND 4 Bit Vertical";
	logicUIName = "AND 4 Bit Vertical";
	logicUIDesc = "";
	
	hasPrint = 1;
	printAspectRatio = "Logic";
	
	logicBrickSize = "1 1 4";
	orientationFix = 3;
	
	isLogic = true;
	isLogicGate = true;
	isLogicInput = false;
	
	logicInit = "";
	logicInput = "";
	logicUpdate = 
		"return function(gate) " @
		"	Gate.setportstate(gate, 5, (( " @
		"		(Gate.getportstate(gate, 1)~=0) and " @
		"		(Gate.getportstate(gate, 2)~=0) and " @
		"		(Gate.getportstate(gate, 3)~=0) and " @
		"		(Gate.getportstate(gate, 4)~=0) " @
		"	)) and 1 or 0) " @
		"end"
	;
	logicGlobal = "";
	
	numLogicPorts = 5;
	
	
	
	logicPortType[0] = 1;
	logicPortPos[0] = "0 0 3";
	logicPortDir[0] = 3;
	logicPortUIName[0] = "In0";
	logicPortCauseUpdate[0] = true;
	
	logicPortType[1] = 1;
	logicPortPos[1] = "0 0 1";
	logicPortDir[1] = 3;
	logicPortUIName[1] = "In1";
	logicPortCauseUpdate[1] = true;
	
	logicPortType[2] = 1;
	logicPortPos[2] = "0 0 -1";
	logicPortDir[2] = 3;
	logicPortUIName[2] = "In2";
	logicPortCauseUpdate[2] = true;
	
	logicPortType[3] = 1;
	logicPortPos[3] = "0 0 -3";
	logicPortDir[3] = 3;
	logicPortUIName[3] = "In3";
	logicPortCauseUpdate[3] = true;
	
	logicPortType[4] = 0;
	logicPortPos[4] = "0 0 -3";
	logicPortDir[4] = 1;
	logicPortUIName[4] = "Out";
	
};
