<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable>
    <storeData>
        <name>
		    <en>Potatowasher</en>
			<de>Kartoffelwaschanlage</de>
		</name>
        <image>store.dds</image>
        <price>18000</price>
        <dailyUpkeep>10</dailyUpkeep>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>GCPLACEABLE</brand>
        <specs>
            <capacity>15000</capacity>
            <fillTypes>potato</fillTypes>
        </specs>
		<functions>
			<function>$l10n_function_potatowasher</function>
        </functions>
        <species>placeable</species>
        <category>globalCompanyPlaceable</category>
    </storeData>

    <placeableType>GC_ProductionFactoryPlaceable</placeableType>
    <filename>potatowasher3.i3d</filename>
    <placement testSizeX="10" testSizeZ="15" sizeX="10" sizeZ="15" useRandomYRotation="false" useManualYRotation="true" />
	
	<tipOcclusionUpdateArea sizeX="10" sizeZ="15" />
	
    <clearAreas>
        <clearArea startNode="1|0" widthNode="1|1" heightNode="1|2"/>
    </clearAreas>

    <leveling requireLeveling="true" maxSmoothDistance="10" maxSlope="75" maxEdgeAngle="30">
        <levelAreas>
            <levelArea startNode="2|0" widthNode="2|1" heightNode="2|2" groundType="concrete"/>
        </levelAreas>
    </leveling>
	
    <triggerMarkers>
        <triggerMarker node="11" />
    </triggerMarkers>
	
	<productionFactories>
		<productionFactory indexName="POTATOWASHER" saveId="globalCompany_potatowasher">
			<guiInformation title="GlobalCompanyPlaceable_PW_FactoryName" imageFilename="store.dds" description="GlobalCompanyPlaceable_Mill_FactoryDescription" cameraFeed="gui_camera"/>
			
			<operation updateDelayMinutes="5" showInGlobalGUI="true" />
			
			<registerUnloadingTriggers>
				<unloadingTrigger name="UnloadingTriggerP" exactFillRootNode="exactFillRootNodeP" />
				<unloadingTrigger name="UnloadingTriggerWater" exactFillRootNode="exactFillRootNodeW" />
			</registerUnloadingTriggers>

			<registerLoadingTriggers>
				<loadingTrigger name="LoadingTrigger" triggerNode="trigger" fillLitersPerSecond="1200" autoStart="true">
					<dischargeInfo dischargeNode="dischargeNode" />
					<sounds fillSoundIdentifier="fillSound01" />
					<effectNode 							effectNode="unloadingEffectLeft"  	materialType="unloading" materialTypeId="1" fadeTime="0.7" delay="0.25" />
					<effectNode effectClass="MorphPositionEffect" effectNode="effectBeltFront"  materialType="belt" delay="0.5"   fadeTime="0" speed="-0.7" scrollLength="1"  scrollSpeed="2" />
					<effectNode effectClass="MorphPositionEffect" effectNode="effectBeltBottom" materialType="belt" delay="0" fadeTime="0.5"   speed="0.7" scrollLength="10" scrollSpeed="2" />
				</loadingTrigger>
			</registerLoadingTriggers>
			
			<registerInputProducts>				
				<inputProduct name="IP_POTATO1" capacity="15000" title="GlobalCompanyPlaceable_PW_Input1" > 
					<fillTypes>
						<fillType name="potato" />
					</fillTypes>
					
					<inputMethods>
						<unloadingTrigger name="UnloadingTriggerP"/>
					</inputMethods>

					<fillVolumes>
						<volume node="fillVolume_In" />
					</fillVolumes>					
				</inputProduct>							
				<inputProduct name="IP_WATER" capacity="10000" title="GlobalCompanyPlaceable_PW_Input2" > 
					<fillTypes>
						<fillType name="water" />
					</fillTypes>
					
					<inputMethods>
						<unloadingTrigger name="UnloadingTriggerWater"/>
					</inputMethods>

					<movers>
						<mover node="waterplane">
							<translation minimum="0 0 0" maximum="0 0.2 0" />
						</mover>
					</movers>					
				</inputProduct>
			</registerInputProducts>
			
			<registerOutputProducts>
				<outputProduct name="OP_POTATOWASH" fillType="potatoWashed" capacity="15000" title="GlobalCompanyPlaceable_PW_Output1" >
					<outputMethods>
						<loadingTrigger name="LoadingTrigger" />
					</outputMethods>
					<fillVolumes>
						<volume node="fillVolume_Out" />
					</fillVolumes>					
				</outputProduct>
			</registerOutputProducts>
			
			<productLines>
				<productLine autoLineStart="true" outputPerHour="30000" title="GlobalCompanyPlaceable_PW_productLine_PW" showInGUI="true">
					<inputs>
						<inputProduct name="IP_POTATO1" percent="100" />
						<inputProduct name="IP_WATER" percent="5" />
					</inputs>					
					<outputs>
						<outputProduct name="OP_POTATOWASH" percent="100" />
					</outputs>					
					<playerTrigger playerTriggerNode="PlayerTrigger" showPopupUI="true"/>
					
					<operatingParts>												
						<operateSounds>
							<start template="HARVESTER_TOOL_ROPA_START" linkNode="washer_vis" />							
							<stop template="HARVESTER_TOOL_ROPA_STOP" linkNode="washer_vis" />
							<run template="HARVESTER_TOOL_ROPA_WORK" linkNode="washer_vis" />
						</operateSounds>
						
						<effectTypes>			
							<particleSystems>
								<particleEffect node="potatoEmitter_In" file="PS/potatoEmitter_In.i3d" worldSpace="false"/>
								<particleEffect node="potatoEmitter_Out" file="PS/potatoEmitter_Out.i3d" delay="4.2" worldSpace="false"/>
								<particleEffect node="potatoEmitter_Out2" file="PS/potatoEmitter_Out2.i3d" delay="4" worldSpace="false"/>
								<particleEffect node="potatoEmitter_drum1" file="PS/potatoEmitter_drum1.i3d" delay="1" worldSpace="false"/>
								<particleEffect node="potatoEmitter_drum2" file="PS/potatoEmitter_drum2.i3d" delay="1" worldSpace="false"/>
								<particleEffect node="potatoEmitter_drum3" file="PS/potatoEmitter_drum3.i3d" delay="1" worldSpace="false"/>
								<particleEffect node="potatoEmitter_drum4" file="PS/potatoEmitter_drum4.i3d" delay="1" worldSpace="false"/>
							</particleSystems>		
						</effectTypes>
						
						<animationNodeGroups>
							<animationNodes>
								<animationNode node="barrelRollB" rotAxis="1" rotSpeed="2000" />
								<animationNode node="barrelRollB1" rotAxis="1" rotSpeed="-2000" />
								<animationNode node="barrelRollB2" rotAxis="1" rotSpeed="-2000" />
								<animationNode node="barrelRollB3" rotAxis="1" rotSpeed="2000" />
								<animationNode node="barrelRollA" rotAxis="3" rotSpeed="900" />
								<animationNode node="barrelRollA1" rotAxis="3" rotSpeed="900" />
								<animationNode node="barrelRollA2" rotAxis="3" rotSpeed="900" />
								<animationNode node="barrelRollA3" rotAxis="3" rotSpeed="900" />
								<animationNode node="barrel" rotAxis="3" rotSpeed="70" />
								<animationNode node="enginePulley" rotAxis="3" rotSpeed="900" />
								<animationNode class="ScrollingAnimation" node="beltBarrelIn" scrollSpeed="-1.6" scrollLength="3.84" shaderParameterName="offsetUV" shaderParameterComponent="1"/>
								<animationNode class="ScrollingAnimation" node="beltBarreEx" scrollSpeed="-1.6" scrollLength="3.84" shaderParameterName="offsetUV" shaderParameterComponent="2"/>
								<animationNode class="ScrollingAnimation" node="beltUnload" scrollSpeed="0.8" scrollLength="3.84" shaderParameterName="offsetUV" shaderParameterComponent="2"/>
							</animationNodes>						
						</animationNodeGroups>
					</operatingParts>
				</productLine>
			</productLines>
<i3dMappings>
  <i3dMapping id="mapPosition" node="0" />
  <i3dMapping id="clearArea" node="1" />
  <i3dMapping id="start1_0" node="1|0" />
  <i3dMapping id="width1_0" node="1|1" />
  <i3dMapping id="height1_0" node="1|2" />
  <i3dMapping id="levelArea" node="2" />
  <i3dMapping id="start1_1" node="2|0" />
  <i3dMapping id="width1_1" node="2|1" />
  <i3dMapping id="height1_1" node="2|2" />
  <i3dMapping id="triggers" node="3" />
  <i3dMapping id="dischargeNode" node="3|0" />
  <i3dMapping id="trigger" node="3|1" />
  <i3dMapping id="exactFillRootNodeP" node="3|2" />
  <i3dMapping id="waterTroughTrigger" node="3|3" />
  <i3dMapping id="exactFillRootNodeW" node="3|3|0" />
  <i3dMapping id="exactFillRootNodeGround" node="3|4" />
  <i3dMapping id="washer_vis" node="4" />
  <i3dMapping id="grid" node="5" />
  <i3dMapping id="movingParts" node="6" />
  <i3dMapping id="barrelRollb" node="6|0" />
  <i3dMapping id="barrelRollB" node="6|0|0" />
  <i3dMapping id="barrelRollB1" node="6|0|1" />
  <i3dMapping id="barrelRollB2" node="6|0|2" />
  <i3dMapping id="barrelRollB3" node="6|0|3" />
  <i3dMapping id="barrelRolla" node="6|1" />
  <i3dMapping id="barrelRollA" node="6|1|0" />
  <i3dMapping id="barrelRollA1" node="6|1|1" />
  <i3dMapping id="barrelRollA2" node="6|1|2" />
  <i3dMapping id="barrelRollA3" node="6|1|3" />
  <i3dMapping id="unloadRolls" node="6|2" />
  <i3dMapping id="unloadRoll" node="6|2|0" />
  <i3dMapping id="unloadRoll1" node="6|2|1" />
  <i3dMapping id="unloadRoll2" node="6|2|2" />
  <i3dMapping id="unloadRoll3" node="6|2|3" />
  <i3dMapping id="enginePulley" node="6|3" />
  <i3dMapping id="barrel" node="6|4" />
  <i3dMapping id="barrelMesh" node="6|4|0" />
  <i3dMapping id="UVScroll" node="6|5" />
  <i3dMapping id="beltBarrelIn" node="6|5|0" />
  <i3dMapping id="beltBarreEx" node="6|5|1" />
  <i3dMapping id="beltUnload" node="6|5|2" />
  <i3dMapping id="col" node="7" />
  <i3dMapping id="col11" node="7|0" />
  <i3dMapping id="col1" node="7|1" />
  <i3dMapping id="col12" node="7|2" />
  <i3dMapping id="col13" node="7|3" />
  <i3dMapping id="col14" node="7|4" />
  <i3dMapping id="col15" node="7|5" />
  <i3dMapping id="col16" node="7|6" />
  <i3dMapping id="col17" node="7|7" />
  <i3dMapping id="col18" node="7|8" />
  <i3dMapping id="col19" node="7|9" />
  <i3dMapping id="col20" node="7|10" />
  <i3dMapping id="fillVolume_In" node="8" />
  <i3dMapping id="fillVolume_Out" node="9" />
  <i3dMapping id="waterplane" node="10" />
  <i3dMapping id="warningStripsG" node="11" />
  <i3dMapping id="warningStripes_0" node="11|0" />
  <i3dMapping id="warningStripesCorner1_0" node="11|0|0" />
  <i3dMapping id="warningStripesCorner2_0" node="11|0|1" />
  <i3dMapping id="warningStripesCorner3_0" node="11|0|2" />
  <i3dMapping id="warningStripesCorner4_0" node="11|0|3" />
  <i3dMapping id="warningStripes_1" node="11|1" />
  <i3dMapping id="warningStripesCorner1_1" node="11|1|0" />
  <i3dMapping id="warningStripesCorner2_1" node="11|1|1" />
  <i3dMapping id="warningStripesCorner3_1" node="11|1|2" />
  <i3dMapping id="warningStripesCorner4_1" node="11|1|3" />
  <i3dMapping id="warningStripes_2" node="11|2" />
  <i3dMapping id="warningStripesCorner1_2" node="11|2|0" />
  <i3dMapping id="warningStripesCorner2_2" node="11|2|1" />
  <i3dMapping id="warningStripesCorner3_2" node="11|2|2" />
  <i3dMapping id="warningStripesCorner4_2" node="11|2|3" />
  <i3dMapping id="decals" node="12" />
  <i3dMapping id="gui_camera" node="13" />
  <i3dMapping id="audio" node="14" />
  <i3dMapping id="PlayerTrigger" node="15" />
  <i3dMapping id="effects" node="16" />
  <i3dMapping id="unloadingEffectLeft" node="16|0" />
  <i3dMapping id="front" node="16|1" />
  <i3dMapping id="effectBeltFront" node="16|1|0" />
  <i3dMapping id="effectBeltFront_target" node="16|1|1" />
  <i3dMapping id="bottom" node="16|2" />
  <i3dMapping id="effectBeltBottom" node="16|2|0" />
  <i3dMapping id="effectBeltBottom_target" node="16|2|1" />
  <i3dMapping id="PS" node="17" />
  <i3dMapping id="potatoEmitter_In" node="17|0" />
  <i3dMapping id="emitShape" node="17|0|0" />
  <i3dMapping id="potatoEmitter_Out" node="17|1" />
  <i3dMapping id="emitShapeOut" node="17|1|0" />
  <i3dMapping id="potatoEmitter_drum2" node="17|2" />
  <i3dMapping id="emitShape_drum2" node="17|2|0" />
  <i3dMapping id="potatoEmitter_drum3" node="17|3" />
  <i3dMapping id="emitShape_drum3" node="17|3|0" />
  <i3dMapping id="potatoEmitter_drum1" node="17|4" />
  <i3dMapping id="emitShape_drum1" node="17|4|0" />
  <i3dMapping id="potatoEmitter_drum4" node="17|5" />
  <i3dMapping id="emitShape_drum4" node="17|5|0" />
  <i3dMapping id="potatoEmitter_Out2" node="17|6" />
  <i3dMapping id="emitShapeOut2" node="17|6|0" />
</i3dMappings>
		</productionFactory>
	</productionFactories>

</placeable>