<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="cowHusbandryBarnMilk" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/placeable.xsd">
    <storeData>
		<name>
			<en>Cowshed</en>
			<de>Kuhstall</de>
			<pl>Obora</pl>			
		</name>
        <functions>
            <function>$l10n_function_animalPenCow</function>
        </functions>
        <image>store_obora.dds</image>
        <price>25000</price>
        <dailyUpkeep>20</dailyUpkeep>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>placeable</species>
        <category>animalpens</category>
        <brush>
            <type>placeable</type>
            <category>animals</category>
            <tab>cows</tab>
        </brush>
        <storeIconRendering>
            <settings cameraXRot="-10" cameraYRot="-50" advancedBoundingBox="true"/>
        </storeIconRendering>
        <vertexBufferMemoryUsage>2263040</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>591360</indexBufferMemoryUsage>
        <textureMemoryUsage>44171264</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>obora.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" />
			 <placeLayered template="cowLayer" />
        </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>
	
	 <hotspots>
        <hotspot type="COW" teleportNode="teleportNode" />
    </hotspots>
	
	 <infoTrigger triggerNode="infoTrigger" />
	 
	 <triggerMarkers>
        <triggerMarker node="markerMilk"         filename="$data/shared/assets/marker/markerIconMilk.i3d" />
        <triggerMarker node="markerFood"         filename="$data/shared/assets/marker/markerIconFood.i3d" />
        <triggerMarker node="markerAnimals"      filename="$data/shared/assets/marker/markerIconAnimals.i3d" />
        <triggerMarker node="markerLiquidManure" filename="$data/shared/assets/marker/markerIconSlurry.i3d" />
    </triggerMarkers>
	
	<husbandry saveId="Animals_COW" hasStatistics="false">
        <storage node="storage" fillTypes="LIQUIDMANURE MILK BUFFALOMILK STRAW MANURE" isExtension="false">
            <capacity fillType="LIQUIDMANURE" capacity="25000" />
            <capacity fillType="MILK"         capacity="5000" />
            <capacity fillType="BUFFALOMILK"  capacity="5000" />
            <capacity fillType="STRAW"        capacity="10000" />
            <capacity fillType="MANURE"       capacity="0" />
        </storage>

        <unloadingStation supportsExtension="true" storageRadius="50" hideFromPricesMenu="true">
            <unloadTrigger exactFillRootNode="exactFillRootNodeStraw" fillTypes="STRAW" />
            <unloadTrigger fillTypes="MANURE MILK BUFFALOMILK LIQUIDMANURE" />
        </unloadingStation>

        <loadingStation supportsExtension="true" storageRadius="50">
            <loadTrigger triggerNode="liquidManureTrigger" fillTypes="LIQUIDMANURE" fillLitersPerSecond="2000" aiNode="aiLoadingNodeLiquidManure" />
            <loadTrigger triggerNode="milkTrigger" fillTypes="MILK BUFFALOMILK" fillLitersPerSecond="2000" aiNode="aiLoadingNodeMilk"/>
        </loadingStation>
		
		<animals type="COW" maxNumAnimals="15" maxNumVisualAnimals="7" >
            <navigation rootNode="navigationRootNode" filename="NavMesh.i3d" />
            <loadingTrigger node="loadingTrigger" />
        </animals>

        <food capacity="15000" >
            <foodPlaces>
                <foodPlace node="foodPlace1" />
                <foodPlace node="foodPlace2" />
                <foodPlace node="foodPlace3" />
                <foodPlace node="foodPlace4" />
            </foodPlaces>
            <dynamicFoodPlane node="fillVolumeFood" defaultFillType="forage" maxAllowedHeapAngle="60" maxSubDivEdgeLength="0.5" capacity="10000"/>
            <unloadTrigger exactFillRootNode="exactFillRootNodeFood" />
            <baleTrigger triggerNode="baleTrigger"/>
        </food>

        <liquidManure />

        <milk>
            <milkingRobots>
            </milkingRobots>
        </milk>

        <water automaticWaterSupply="true">
        </water>

        <straw>
            <manure factor="1.5" />
            <strawPlane node="strawPlane" minY="-0.339" maxY="-0.281" colorChange="false" />
        </straw>

        <fence>
        </fence>

        <meadow>
        </meadow>
    </husbandry>
	
	
	
	
	
  <animatedObjects>
	 <animatedObject saveId="drzwi" >
		<animation duration="5">  
				<part node="drzwizamek">
					<keyFrame time="0" translation="2.24499989 1.09512997 2.32387996"  rotation="90 0 0" /> 
					<keyFrame time="0.05" translation="2.24499989 1.09512997 2.32387996"  rotation="90 0 60" />
					<keyFrame time="0.10" translation="2.24499989 1.09512997 2.36961722"  rotation="90 0 60" />
					<keyFrame time="0.14" translation="2.24499989 1.09512997 2.36961722"  rotation="90 0 0" />
				</part>
				<part node="drzwi1">
					<keyFrame time="0.5" rotation="90 -90 0" />
					<keyFrame time="1" rotation="90 -190 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="5">  
				<part node="drzwizamek2">
					<keyFrame time="0" translation="2.24499989 1.09512997 2.3182652"  rotation="90 0 0" /> 
					<keyFrame time="0.05" translation="2.24499989 1.09512997 2.3182652"  rotation="90 0 60" />
					<keyFrame time="0.10" translation="2.24499989 1.09512997 2.36173105"  rotation="90 0 60" />
					<keyFrame time="0.14" translation="2.24499989 1.09512997 2.36173105"  rotation="90 0 0" />
				</part>
				<part node="drzwi2">
					<keyFrame time="0.5" rotation="90 -90 0" />
					<keyFrame time="1" rotation="90 -220 0" />
				</part>
            </animation>
            <controls triggerNode="doorTrigger06" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
			<sounds>
                <moving linkNode="doorTrigger06" template="fenceLoop" />
                <posEnd linkNode="doorTrigger06" template="fenceOpen" />
                <negEnd linkNode="doorTrigger06" template="fenceClose" />
            </sounds>
            
        </animatedObject>
		
		<animatedObject saveId="drzwi" >
		<animation duration="5">  
				<part node="wrota1.zamek">
					<keyFrame time="0" translation="2.24799991 1.53415 -1.56894565"  rotation="90 0 0" /> 
					<keyFrame time="0.05" translation="2.24799991 1.53415 -1.56894565"  rotation="90 0 60" />
					<keyFrame time="0.10" translation="2.24799991 1.53415 -1.52162731"  rotation="90 0 60" />
					<keyFrame time="0.14" translation="2.24799991 1.53415 -1.52162731"  rotation="90 0 0" />
				</part>
				<part node="wrota1">
					<keyFrame time="0.5" rotation="90 -90 0" />
					<keyFrame time="1" rotation="90 -200 0" />
				</part>
				<part node="wrota2">
					<keyFrame time="0.5" rotation="90 -90 0" />
					<keyFrame time="1" rotation="90 20 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="5">  
				<part node="wrota2.zamek">
					<keyFrame time="0" translation="2.24799991 1.53415 -1.56894565"  rotation="90 0 0" /> 
					<keyFrame time="0.05" translation="2.24799991 1.53415 -1.56894565"  rotation="90 0 60" />
					<keyFrame time="0.10" translation="2.24799991 1.53415 -1.52391839"  rotation="90 0 60" />
					<keyFrame time="0.14" translation="2.24799991 1.53415 -1.52391839"  rotation="90 0 0" />
				</part>
				<part node="wrota3">
					<keyFrame time="0.5" rotation="90 90 0" />
					<keyFrame time="1" rotation="90 200 0" />
				</part>
				<part node="wrota4">
					<keyFrame time="0.5" rotation="90 90 0" />
					<keyFrame time="1" rotation="90 -20 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="5">  
				<part node="wrota3.zamek">
					<keyFrame time="0" translation="2.248 1.534 -1.569"  rotation="90 0 0" /> 
					<keyFrame time="0.05" translation="2.248 1.534 -1.569"  rotation="90 0 60" />
					<keyFrame time="0.10" translation="2.248 1.534 -1.526"  rotation="90 0 60" />
					<keyFrame time="0.14" translation="2.248 1.534 -1.526"  rotation="90 0 0" />
				</part>
				<part node="wrota5">
					<keyFrame time="0.5" rotation="90 90 0" />
					<keyFrame time="1" rotation="90 200 0" />
				</part>
				<part node="wrota6">
					<keyFrame time="0.5" rotation="90 90 0" />
					<keyFrame time="1" rotation="90 -20 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 saveId="drzwi" >
            <animation duration="3">
				<part node="0>0|2|9">
					<keyFrame time="0" translation="4.55174255 4.25027752 1.7101444"  rotation="0 0 0" /> 
					<keyFrame time="1" translation="5.6965127 4.25027752 1.7101444"  rotation="0 0 0" />
					<keyFrame time="1" translation="5.69700003 4.25027752 2.67812991" rotation="0 0 0" />
					<keyFrame time="1" translation="5.69700003 4.73204708 3.04972649" rotation="-90.00003815 -24.74839211 90.00003815" />
				</part>
	        </animation>
            <controls triggerNode="0>0|2|8|5" posAction="ACTIVATE_HANDTOOL" posText="action_Openthehatch" negText="action_Closethehatch" />
            </animatedObject>
			
		<animatedObject index="0>0|3">
			<controls posAction="ACTIVATE_HANDTOOL" triggerNode="0>0|3|1" posText="action_turnOnLight" negText="action_turnOffLight" />
			<sounds>
               <moving linkNode="0>0|3|2|0|0" template="lizardFloodLight" />
            </sounds>	
			<animation initialTime="0" duration="0.1">
				<part node="0>0|3|2|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|8">
					<keyFrame time="0.0" visibility="false" />
					<keyFrame time="0.1" visibility="true" />
				</part>
			</animation>
		</animatedObject>
		
		<animatedObject index="0>0|3">
			<controls posAction="ACTIVATE_HANDTOOL" triggerNode="0>0|3|5" posText="action_turnOnLight" negText="action_turnOffLight" />
			<sounds>
               <moving linkNode="0>0|3|2|0|0" template="lizardFloodLight" />
            </sounds>	
			<animation initialTime="0" duration="0.1">
				<part node="0>0|3|7|0">
					<keyFrame time="0.0" visibility="false" />
					<keyFrame time="0.1" visibility="true" />
				</part>
				<part node="0>0|3|6|0">
					<keyFrame time="0.0" visibility="false" />
					<keyFrame time="0.1" visibility="true" />
				</part>
			</animation>
		</animatedObject>
		
		
  </animatedObjects>
	
	<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="drzwi" node="0>0|2" />
        <i3dMapping id="drzwi1" node="0>0|2|0" />
		<i3dMapping id="drzwizamek" node="0>0|2|0|0|0" />
        <i3dMapping id="doorTrigger01" node="0>0|2|8|0" /> 
		
        <i3dMapping id="drzwi2" node="0>0|2|3" />
		<i3dMapping id="drzwizamek2" node="0>0|2|3|0|0" />
        <i3dMapping id="doorTrigger06" node="0>0|2|8|4" /> 
		
		<i3dMapping id="wrota1" node="0>0|2|1" />
        <i3dMapping id="wrota2" node="0>0|2|2" />
		<i3dMapping id="wrota1.zamek" node="0>0|2|1|0|0" />
        <i3dMapping id="doorTrigger02" node="0>0|2|8|1" /> 
		<i3dMapping id="wrota4" node="0>0|2|5" />
        <i3dMapping id="wrota3" node="0>0|2|4" />
		<i3dMapping id="wrota2.zamek" node="0>0|2|5|0|0" />
        <i3dMapping id="doorTrigger03" node="0>0|2|8|2" /> 
		<i3dMapping id="wrota5" node="0>0|2|6" />
        <i3dMapping id="wrota6" node="0>0|2|7" />
		<i3dMapping id="wrota3.zamek" node="0>0|2|7|0|0" />
        <i3dMapping id="doorTrigger04" node="0>0|2|8|3" /> 
		
		
		<i3dMapping id="fillVolumeFood" node="0>6|0" />
        <i3dMapping id="exactFillRootNodeFood" node="0>6|1" />
        <i3dMapping id="foodPlace1" node="0>6|2|0" />
        <i3dMapping id="foodPlace2" node="0>6|2|1" />
        <i3dMapping id="foodPlace3" node="0>6|2|2" />
        <i3dMapping id="foodPlace4" node="0>6|2|3" />
        <i3dMapping id="baleTrigger" node="0>6|3" />
		<i3dMapping id="strawPlane" node="0>7|0" />
        <i3dMapping id="exactFillRootNodeStraw" node="0>7|1" />
        <i3dMapping id="milkTrigger" node="0>8|0" />
        <i3dMapping id="aiLoadingNodeMilk" node="0>8|1" />
        <i3dMapping id="liquidManureTank" node="0>9" />
        <i3dMapping id="liquidManureTrigger" node="0>9|0" />
        <i3dMapping id="aiLoadingNodeLiquidManure" node="0>9|1" />
		<i3dMapping id="navigationRootNode" node="0>10" />
		<i3dMapping id="navigationMeshShape" node="0>10|0" />
        <i3dMapping id="markerMilk" node="0>11|0" />
        <i3dMapping id="markerAnimals" node="0>11|1" />
        <i3dMapping id="markerLiquidManure" node="0>11|2" />
        <i3dMapping id="markerFood" node="0>11|3" />
		<i3dMapping id="teleportNode" node="0>12" />
        <i3dMapping id="storage" node="0>13" />
        <i3dMapping id="infoTrigger" node="0>14" />
        <i3dMapping id="loadingTrigger" node="0>15" />
    </i3dMappings>
	
    
</placeable>
