<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="silo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/placeable.xsd">
    <storeData>
		<name>
			<en>Barn for potatoes</en>
		    <de>Scheune für kartoffeln</de>
		    <pl>Stodoła na ziemniaki</pl>				
		</name>
         <functions>
              <function>$l10n_function_Storage</function>
        </functions>
        <image>store_stodola.dds</image>
        <price>25000</price>
        <dailyUpkeep>15</dailyUpkeep>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>placeable</species>
        <category>silos</category>
        <brush>
            <type>placeable</type>
            <category>buildings</category>
            <tab>silos</tab>
        </brush>
        <storeIconRendering>
            <settings cameraXRot="-10" cameraYRot="-50" advancedBoundingBox="true"/>
        </storeIconRendering>		
        <vertexBufferMemoryUsage>2513920</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>593408</indexBufferMemoryUsage>
        <textureMemoryUsage>31522816</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>stodolaziemniak.i3d</filename>
        <boughtWithFarmland>true</boughtWithFarmland>
        <buysFarmland priceScale="1">false</buysFarmland>
        <canBeDeleted>true</canBeDeleted>
        <canBeRenamed>false</canBeRenamed>		
    </base>

    <placement useRandomYRotation="false" useManualYRotation="true">
        <testAreas>
            <testArea startNode="testArea1Start" endNode="testArea1End" />
        </testAreas>
		
		<sounds>
            <place template="smallImp" />
        </sounds>
    </placement>

    <clearAreas>
        <clearArea startNode="clearArea01Start" widthNode="clearArea01Width" heightNode="clearArea01Height"/>
    </clearAreas>

    <leveling requireLeveling="true" maxSmoothDistance="3" maxSlope="75" maxEdgeAngle="30">
        <levelAreas>
            <levelArea startNode="levelingArea01Start" widthNode="levelingArea01Width" heightNode="levelingArea01Height"/>
        </levelAreas>
    </leveling>

    <indoorAreas>
        <indoorArea startNode="indoorAreaStart" widthNode="indoorAreaWidth" heightNode="indoorAreaHeight"/>
    </indoorAreas>

    <tipOcclusionUpdateAreas>
        <tipOcclusionUpdateArea startNode="tipOcclusionUpdateArea1Start" endNode="tipOcclusionUpdateArea1End" />
    </tipOcclusionUpdateAreas>

    <ai>
        <updateAreas>
            <updateArea startNode="tipOcclusionUpdateArea1Start" endNode="tipOcclusionUpdateArea1End" />
        </updateAreas>
    </ai>
	
	
	<animatedObjects>
		
		
		<animatedObject saveId="drzwi" >
		<animation duration="3">  
		         <part node="0>0|2|0|0|0">
					<keyFrame time="0" translation="4.01410007 1.51411009 2.45810962"  rotation="90 0 0" /> 
					<keyFrame time="0.05" translation="4.01410007 1.51411009 2.45810962"  rotation="90 0 60" /> 
					<keyFrame time="0.10" translation="4.01399994 1.51411009 2.50969338"  rotation="90 0 60" />
					<keyFrame time="0.15" translation="4.01399994 1.51411009 2.50969338"  rotation="90 0 0" />
				</part>
				<part node="wrota1">
					<keyFrame time=" 0.12" rotation="-90 -90 180" />
					<keyFrame time="0.55" rotation="-90 65 180" />
				</part>
				<part node="wrota2">
					<keyFrame time=" 0.12" rotation="90 -90 0" />
					<keyFrame time="0.55" rotation="90 15 0" />
				</part>
            </animation>
            <controls triggerNode="doorTrigger01" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
			<sounds>
                <moving linkNode="doorTrigger01" template="fenceLoop" />
                <posEnd linkNode="doorTrigger01" template="fenceOpen" />
                <negEnd linkNode="doorTrigger01" template="fenceClose" />
            </sounds>
            
        </animatedObject>
		
		<animatedObject saveId="drzwi" >
		<animation duration="3">  
		        <part node="0>0|2|2|0|0">
					<keyFrame time="0" translation="4.01410007 1.52445996 -2.04192996"  rotation="90 0 0" />   
					<keyFrame time="0.05" translation="4.01410007 1.52445996 -2.04192996"  rotation="90 0 60" />
				    <keyFrame time="0.10" translation="4.01399994 1.52445996 -1.99055398"  rotation="90 0 60" />
					<keyFrame time="0.15" translation="4.01399994 1.52445996 -1.99055398"  rotation="90 0 0" />
				</part>
				<part node="wrota3">
					<keyFrame time=" 0.12" rotation="-90 -90 180" />
					<keyFrame time="0.55" rotation="-90 15 180" />
				</part>
				<part node="wrota4">
					<keyFrame time=" 0.12" rotation="90 -90 0" />
					<keyFrame time="0.55" rotation="90 65 0" />
				</part>
			
            </animation>
            <controls triggerNode="doorTrigger02" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
			<sounds>
                <moving linkNode="doorTrigger02" template="fenceLoop" />
                <posEnd linkNode="doorTrigger02" template="fenceOpen" />
                <negEnd linkNode="doorTrigger02" template="fenceClose" />
            </sounds>
            
        </animatedObject>
		
		<animatedObject saveId="drzwi" >
		<animation duration="3">  
		        <part node="0>0|2|5|0|0">
					<keyFrame time="0" translation="-3.85400009 0.55664569 2.456"  rotation="90 0 0" />   
					<keyFrame time="0.15" translation="-3.85400009 0.55664569 2.456"  rotation="90 -30 0" />
				    <keyFrame time="0.15" translation="-3.88499999 0.57926798 2.45475006"  rotation="87.70500946 0.88949502 137.98399353" />

					</part>
				<part node="wrota5">
					<keyFrame time=" 0.16" rotation="-90 -90 180" />
					<keyFrame time="0.55" rotation="-90 65 180" />
				</part>
				<part node="wrota6">
					<keyFrame time=" 0.12" rotation="90 -90 0" />
					<keyFrame time="0.55" rotation="90 15 0" />
				</part>
			
            </animation>
            <controls triggerNode="doorTrigger03" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
			<sounds>
                <moving linkNode="doorTrigger03" template="fenceLoop" />
                <posEnd linkNode="doorTrigger03" template="fenceOpen" />
                <negEnd linkNode="doorTrigger03" template="fenceClose" />
            </sounds>
            
        </animatedObject>
		
		<animatedObject saveId="drzwi" >
		<animation duration="3">  
		        <part node="0>0|2|7|0|0">
					<keyFrame time="0" translation="-3.85400009 0.55415201 2.45580006"  rotation="90 0 0" />   
					<keyFrame time="0.15" translation="-3.85400009 0.55415201 2.45580006"  rotation="90 -30 0" />
				    <keyFrame time="0.15" translation="-3.88456821 0.5792684 2.45475483"  rotation="87.70549011 0.88949543 137.98400879" />
					</part>
				<part node="wrota7">
					<keyFrame time=" 0.12" rotation="-90 -90 180" />
					<keyFrame time="0.55" rotation="-90 15 180" />
				</part>
				<part node="wrota8">
					<keyFrame time=" 0.12" rotation="90 -90 0" />
					<keyFrame time="0.55" rotation="90 65 0" />
				</part>
			
            </animation>
            <controls triggerNode="doorTrigger04" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
			<sounds>
                <moving linkNode="doorTrigger04" template="fenceLoop" />
                <posEnd linkNode="doorTrigger04" template="fenceOpen" />
                <negEnd linkNode="doorTrigger04" template="fenceClose" />
            </sounds>
            
        </animatedObject>
		
		
		
		<animatedObject index="0>0|3">
			<controls posAction="ACTIVATE_HANDTOOL" triggerNode="0>0|3|0" posText="action_turnOnLight" negText="action_turnOffLight" />
			<sounds>
               <moving linkNode="0>0|3|1|0|0" template="lizardFloodLight" />
            </sounds>	
			<animation initialTime="0" duration="0.1">
				<part node="0>0|3|1|0">
					<keyFrame time="0.0" visibility="false" />
					<keyFrame time="0.1" visibility="true" />
				</part>
				<part node="0>0|3|3|0">
					<keyFrame time="0.0" visibility="false" />
					<keyFrame time="0.1" visibility="true" />
				</part>
				<part node="0>0|3|4|0">
					<keyFrame time="0.0" visibility="false" />
					<keyFrame time="0.1" visibility="true" />
				</part>
					
			</animation>
		</animatedObject>
		
		<animatedObject saveId="0>0|3" >
            <animation duration="0.1">
               <part node="0>0|2|10">
					<keyFrame time="0.0" visibility="false"  translation="-12.53567886 -7.88601351 -29.837286"    /> 
					<keyFrame time="0.1" visibility="true"   translation="-18.89495468 0.27516639 -29.837286"  />  
				</part>
				<part node="0>0|2|9">
					<keyFrame time="0.0" visibility="true"  /> 
					<keyFrame time="0.1" visibility="false"  /> 
				</part>
				</animation>
            <controls triggerNode="0>0|2|8|4" posAction="ACTIVATE_HANDTOOL" posText="action_Setuptheladder" negText="action_Puttheladderaway" />
        </animatedObject>
		
		
		
		
		
		
		
    </animatedObjects>
	
	  <infoTrigger triggerNode="infoTrigger"/>

    <silo>
        <loadingStation node="loadingTrigger" supportsExtension="true" storageRadius="50">
            <loadTrigger triggerNode="loadingTrigger" fillLitersPerSecond="2000" dischargeNode="dischargeNode" fillTypes="potato" aiNode="aiLoadingNode">
            </loadTrigger>
        </loadingStation>

        <unloadingStation supportsExtension="true" storageRadius="10">
            <unloadTrigger exactFillRootNode="exactFillRootNode" fillTypes="potato" aiNode="aiUnloadingNode"/>
			<palletTrigger triggerNode="palletTrigger" aiNode="aiUnloadingNode" fillTypes="potato" />
        </unloadingStation>

        <storages>
            <storage node="storage" fillTypes="potato" capacity="50000" isExtension="no"/>
        </storages>
    </silo>

    <hotspots>
        <hotspot type="UNLOADING" linkNode="mapPosition" teleportNode="teleportNode"/>
    </hotspots>

    <triggerMarkers>
        <triggerMarker node="markerLoading"   filename="$data/shared/assets/marker/markerIconLoad.i3d" id="LOAD" adjustToGround="true" />
        <triggerMarker node="markerUnloading" filename="$data/shared/assets/marker/markerIconUnload.i3d" id="UNLOAD" adjustToGround="true" />
    </triggerMarkers>
	
	<i3dMappings>
        <i3dMapping id="clearArea01Start" node="0>1|0" />
        <i3dMapping id="clearArea01Width" node="0>1|0|0" />
        <i3dMapping id="clearArea01Height" node="0>1|0|1" /> 
        <i3dMapping id="levelingArea01Start" node="0>4|0" />
        <i3dMapping id="levelingArea01Width" node="0>4|0|0" />
        <i3dMapping id="levelingArea01Height" node="0>4|0|1" />
        <i3dMapping id="indoorAreaStart" node="0>3|0" />
        <i3dMapping id="indoorAreaWidth" node="0>3|0|0" />
        <i3dMapping id="indoorAreaHeight" node="0>3|0|1" />
        <i3dMapping id="testArea1Start" node="0>5|0" />
        <i3dMapping id="testArea1End" node="0>5|0|0" />
        <i3dMapping id="tipOcclusionUpdateArea1Start" node="0>2|0" />
        <i3dMapping id="tipOcclusionUpdateArea1End" node="0>2|0|0" />
		<i3dMapping id="doorTrigger01" node="0>0|2|8|0" />
	    <i3dMapping id="drzwi" node="0>0|2" />
		<i3dMapping id="wrota1" node="0>0|2|0" />
	    <i3dMapping id="wrota2" node="0>0|2|1" />
	    <i3dMapping id="doorTrigger02" node="0>0|2|8|1" />
		<i3dMapping id="wrota3" node="0>0|2|2" />
	    <i3dMapping id="wrota4" node="0>0|2|3" />
		<i3dMapping id="doorTrigger03" node="0>0|2|8|2" />
		<i3dMapping id="wrota5" node="0>0|2|4" />
	    <i3dMapping id="wrota6" node="0>0|2|5" />
		<i3dMapping id="doorTrigger04" node="0>0|2|8|3" />
		<i3dMapping id="wrota7" node="0>0|2|6" />
	    <i3dMapping id="wrota8" node="0>0|2|7" />
	    <i3dMapping id="unloadingStation"  node="0>6|0" />
		<i3dMapping id="exactFillRootNode" node="0>6|0|0" />
		<i3dMapping id="aiUnloadingNode" node="0>6|0|1" />
		<i3dMapping id="markerUnloading" node="0>6|0|2" />
		<i3dMapping id="palletTrigger" node="0>6|0|3" />
		<i3dMapping id="loadingStation" node="0>6|1" />
		<i3dMapping id="loadingTrigger" node="0>6|1|0" />
		<i3dMapping id="dischargeNode" node="0>6|1|1" />
		<i3dMapping id="aiLoadingNode" node="0>6|1|2" />
		<i3dMapping id="markerLoading" node="0>6|1|3" />
		<i3dMapping id="storage"  node="0>6|2" />
		<i3dMapping id="mapPosition"  node="0>6|3" />
		<i3dMapping id="infoTrigger"  node="0>6|4" />
		<i3dMapping id="aiSpline"  node="0>6|5" />
		<i3dMapping id="teleportNode" node="0>6|6" />

    </i3dMappings>
	
    
</placeable>
