<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="windrower">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

	<storeData>
		<name>Windrower Flap</name>
		<specs>
			<combination>Dobilas3</combination>
		</specs>
		<functions>
			<function>$l10n_function_windrower</function>
		</functions>
		<image>store_WindrowerFlap.dds</image>
		<price>1</price>
		<lifetime>600</lifetime>
		<rotation>0</rotation>
		<brand>LIZARD</brand>
		<category>windrowers</category>
		<shopTranslationOffset>0 0 0</shopTranslationOffset>
		<shopHeight>0.5</shopHeight>
		<shopRotationOffset>0 0 18</shopRotationOffset>
        <vertexBufferMemoryUsage>19104</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>3900</indexBufferMemoryUsage>
        <textureMemoryUsage>5592560</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
	</storeData>

	<base>
		<typeDesc>$l10n_typeDesc_windrower</typeDesc>
		<filename>WindrowerFlap.i3d</filename>
		<size width="3" length="1.5" />
		<speedLimit value="12" />
		<components>
			<component centerOfMass="0 0.46 1.03" solverIterationCount="20" mass="50" />
		</components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT"/>
        <sounds volumeFactor="1.8"/>
	</base>

	<!-- no need for power as belt rake takes it away already -->
	<powerConsumer ptoRpm="0" neededMinPtoPower="0" neededMaxPtoPower="0" />

	<attachable>
		<inputAttacherJoints>
			<inputAttacherJoint node="0>0|0" jointType="windrowerFlap" fixedRotation="true" needsLowering="false" allowsLowering="false" upperRotationOffset="0" />
		</inputAttacherJoints>
	</attachable>
		
	<groundReferenceNodes>
		<groundReferenceNode node="0>2|0|3" threshold="0.3" />
	</groundReferenceNodes>

	<workAreas>
		<workArea type="windrower" functionName="processWindrowerArea" disableBackwards="false">
			<area startNode="0>2|0|0" widthNode="0>2|0|1" heightNode="0>2|0|2" />
			<groundReferenceNode index="1" />
			<windrower dropWindrowWorkAreaIndex="2" particleSystemIndex="1" />
		</workArea>
		<workArea type="auxiliary">
			<area startNode="0>3|0|0" widthNode="0>3|0|1" heightNode="0>3|0|2" />
		</workArea>
	</workAreas>

	<animations>
		<animation name="folding">
			<!-- disable work area by moving up when folded -->
			<part node="0>2|0"  startTime="0" endTime="0.4" startTrans="0 0 -0.171" endTrans="0 2 -0.171" />
		</animation>
	</animations>

	<windrower>
		<effects>
			<effect workAreaIndex="1">
				<effectNode effectClass="ParticleEffect" effectNode="0>5|0" particleType="WINDROWER" />
			</effect>
		</effects>
	</windrower>

	<turnOnVehicle turnOffIfNotAllowed="false" turnedOnByAttacherVehicle="true" />

	<ai>
		<needsLowering value="true" />
		<areaMarkers leftNode="0>4|0|0" rightNode="0>4|0|1" backNode="0>4|0|2" />
		<collisionTrigger node="0>4|1" />
	</ai>

	<wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
	<washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>
	
	<baseMaterial>
		<material name="Frame" baseNode="0>1|0">
            <shaderParameter name="colorMat0" value="0.8913 0.4368 0.0278 1"/>
            <shaderParameter name="colorMat1" value="0.0399 0.0399 0.0399 1"/>
        </material>
    </baseMaterial>

</vehicle>
