<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable>
    <storeData>
        <name>vineyard</name>
        <image>store.dds</image>
        <price>25000</price>
        <dailyUpkeep>1500</dailyUpkeep>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>SUSI_WINGI</brand>
        <specs>
            <capacity></capacity>
            <fillTypes>manure water</fillTypes>
        </specs>
		<functions>
			<function>$l10n_function_vineyard</function>
        </functions>
        <species>placeable</species>
        <category>placeableMisc</category>
    </storeData>

    <placeableType>GC_ProductionFactoryPlaceable</placeableType>
    <filename>weinreben.i3d</filename>
    <placement testSizeX="20" testSizeZ="20" sizeX="30" sizeZ="30" useRandomYRotation="false" useManualYRotation="true" />
	
	<tipOcclusionUpdateArea sizeX="30" sizeZ="30" />	
	
	<clearAreas>
        <clearArea startIndex="6|0" widthIndex="6|1" heightIndex="6|2"/>
    </clearAreas>
	
	<leveling requireLeveling="true" maxSmoothDistance="5" maxSlope="30" maxEdgeAngle="20" >
        <levelAreas>
            <levelArea startNode="5" widthNode="5|0" heightNode="5|1" groundType="grass"/>
			<levelArea startNode="9" widthNode="9|0" heightNode="9|1" groundType="dirt"/>
			<levelArea startNode="10" widthNode="10|0" heightNode="10|1" groundType="dirt"/>
			<levelArea startNode="11" widthNode="11|0" heightNode="11|1" groundType="dirt"/>
			<levelArea startNode="15" widthNode="15|0" heightNode="15|1" groundType="dirt"/>
        </levelAreas>
    </leveling>
	  <foliageAreas>
        <foliageArea fruitType="grass" rootNode="12|0" />
		
    </foliageAreas>
    <triggerMarkers>
        <triggerMarker node="2|1" />
    </triggerMarkers>
	
	<productionFactories>
		<productionFactory indexName="vineyard" saveId="s_w_vinyard">
			<guiInformation title="s_w_vineyard_FactoryName" imageFilename="store.dds" description="s_w_vineyard_FactoryDescription" cameraFeed="gui_camera"/>
			
			<operation updateDelayMinutes="0.01" showInGlobalGUI="true" />
			
			<playerTrigger playerTriggerNode="PlayerTriggerConsole"/>	<!-- Open to Overview -->
			
			<registerUnloadingTriggers>				
				<unloadingTrigger name="UnloadingTrigger_1" exactFillRootNode="exactFillRootNode1"/>
				<unloadingTrigger name="UnloadingTrigger_2" exactFillRootNode="exactFillRootNode2"/>
			</registerUnloadingTriggers>
		
			
		<registerInputProducts>
				<inputProduct name="IP_MANURE" capacity="15000" >
					<fillTypes>
						<fillType name="MANURE" title="s_w_vineyard_productLine_1"/>
						
					</fillTypes>
				
					<inputMethods>
						   <unloadingTrigger name="UnloadingTrigger_1" />
					</inputMethods>
					<visibilityNodes>
				<nodeGroup hasChildCollisions="false" fillType="animation" node="VisNodes" type="VISIBILITY" />		
                   					 
					</visibilityNodes>
					
					<purchase fixedPricePerLitre="1.6" />
					
				
					<movers>
						<mover node="manurePlane">
							<translation  maximum="-0.329 -0.156 2.507" />
						</mover>
					</movers>		

					<fillVolumes>
					
					</fillVolumes>
				</inputProduct>
				<inputProduct name="IP_WATER" capacity="15000" >
					<fillTypes>
						<fillType name="WATER" title="s_w_vineyard_productLine_2"/>
						
					</fillTypes>
				
					<inputMethods>
						 <unloadingTrigger name="UnloadingTrigger_2" />
					</inputMethods>
					<visibilityNodes>
				    <nodeGroup hasChildCollisions="false" fillType="animation" node="VisNodes1" type="VISIBILITY" />		
                   					 
					</visibilityNodes>
					
					<purchase fixedPricePerLitre="1.6" />
					
				
				

					<fillVolumes>
					
					</fillVolumes>
				</inputProduct>
			</registerInputProducts>
			
			<registerOutputProducts>
					<outputProduct name="OP_GRAPE" fillType="grape" capacity="4000" >
					<outputMethods>
						<palletCreators fillType="grape" palletCapacity="2000" xmlFilename="grapePallet/grapePallet.xml" activateDebugDraw="false">
							<palletCreator node="palletSpawnerPlaceNode1" palletInteractionTrigger="interactionTriggerPallet1"/>
							<palletCreator node="palletSpawnerPlaceNode2" palletInteractionTrigger="interactionTriggerPallet2"/>
						
						</palletCreators>
				
					</outputMethods>
					
				</outputProduct>
				
			
				
			
			</registerOutputProducts>
			
			<productLines>							
			<productLine autoLineStart="true" outputPerHour="500" title="s_w_vineyard_productLine_1" showInGUI="true">
					<inputs>
						<inputProduct name="IP_MANURE" percent="100">
							<income pricePerLiter="0.5" />
						</inputProduct>
						<inputProduct name="IP_WATER" percent="100">
							<income pricePerLiter="0.5" />
						</inputProduct>
					</inputs>					
							
					<outputs>
						<outputProduct name="OP_GRAPE" percent="100" />
					
					</outputs>					
					
					<playerTrigger playerTriggerNode="PlayerTriggerLine1" showPopupUI="true"/>					
					
					<operatingParts>	

						<animationClips>
							<animationClip node="ErnteSusi" name="susi1Source" animSpeedScale="1" resetOnStop="true" hideWhenOff="true" nodeToHide="0|5" animTrackLoop="true"/>															
						</animationClips>
						
								<effectTypes>
							<particleSystems>
								<particleEffect node="watercan" file="texturen/water.i3d" operatingSequence="11.000 176.458" startDelay="170.400" resetOnStop="true"/>
								
							</particleSystems>
						</effectTypes>			
									
						
							<shaders>
										
					    	</shaders>
					     <sounds>
					     <sound geSoundNode="watercanSound" operatingSequence="11.000 176.458" startDelay="170.400" resetOnStop="true" />	
						   <sound geSoundNode="waterpump" operatingSequence="6.009 181.359" startDelay="161.379" resetOnStop="true" />	
						</sounds>

						<operateSounds>
											
						</operateSounds>
					</operatingParts>
				</productLine>

				
			</productLines>	
			
		
			
			<i3dMappings>  
			
			
				
		<!--		<i3dMapping id="exactFillRootNode1" node="0|3|0|0" />
				 
				<i3dMapping id="manureTrigger" node="0|3|0|0"/>-->
				<i3dMapping id="waterTrigger" node="0|3|0|0"/>
			     <i3dMapping id="exactFillRootNode1" node="2|3|0|1|0|0" />
				 <i3dMapping id="exactFillRootNode2" node="2|3|1|0|0|0" />
			    <i3dMapping id="VisNodes" node="14" /> 
			    <i3dMapping id="VisNodes1" node="16" />
				<i3dMapping id="PlayerTriggerConsole" node="2|6"/>
				<i3dMapping id="gui_camera" node="6" />  
                <i3dMapping id="manurePlane" node="13"/>
				<i3dMapping id="watercan" node="0|3|1"/>
                <i3dMapping id="watercanSound" node="0|3|2"/>
			     <i3dMapping id="waterpump" node="17"/>
                <i3dMapping id="PlayerTriggerLine1" node="2|5" />
              
           	<i3dMapping id="interactionTriggerPallet1" node="4|0"/>
			<i3dMapping id="palletSpawnerPlaceNode1" node="4|1"/>
				<i3dMapping id="interactionTriggerPallet2" node="8|0"/>
			<i3dMapping id="palletSpawnerPlaceNode2" node="8|1"/>
 				
	    <!--     	<i3dMapping id="spawn1" node="4|2|0" />
				<i3dMapping id="spawnend1" node="4|2|0|0" />-->
			

				
				<i3dMapping id="ErnteSusi" node="0|4|2"/>
			
				
	   		  <!--	<i3dMapping id="audio1" node="0|3|0|2" />-->
    			
			</i3dMappings>				
		</productionFactory>
	</productionFactories>
	
    
		
	<animatedObjects>
		
    </animatedObjects>
	<seasons>
        <maskAreas>
            <maskArea startNode="7" widthNode="7|0" heightNode="7|1" /> 
        </maskAreas>
    </seasons>
</placeable>