<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="cowHusbandry" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/placeable.xsd">
    <storeData>
        <name>$l10n_CowShed</name>
        <image>store_Selfmade_CowShed.png</image>
        <price>36500</price>
        <functions>
            <function>$l10n_function_animalPenCow</function>
        </functions>
        <lifetime>1000</lifetime>
        <dailyUpkeep>25</dailyUpkeep>
        <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="-15" cameraYRot="40" advancedBoundingBox="false"/>
        </storeIconRendering>
        <vertexBufferMemoryUsage>532480</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>113920</indexBufferMemoryUsage>
        <textureMemoryUsage>10747904</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>Selfmade_CowShed.i3d</filename>
        <canBeRenamed>true</canBeRenamed>
		<boughtWithFarmland>true</boughtWithFarmland>
    </base>

    <placement useRandomYRotation="false" useManualYRotation="true" placementPositionSnapSize="0.5" placementRotationSnapAngle="5" >
        <testAreas>
            <testArea startNode="testArea1Start" endNode="testArea1End" />
        </testAreas>

        <sounds>
            <place template="medImp" />
            <placeLayered template="cowLayer" />
        </sounds>
    </placement>
	
    <clearAreas>
        <clearArea startNode="clearArea1Start" widthNode="clearArea1Width" heightNode="clearArea1Height"/>
    </clearAreas>

    <leveling requireLeveling="true" maxSmoothDistance="10" maxSlope="75" maxEdgeAngle="30">
	 <levelAreas>
            <levelArea startNode="levelArea1Start" widthNode="levelArea1Width" heightNode="levelArea1Height" groundType="dirt"/>
        </levelAreas>
    </leveling>

    <indoorAreas>
        <indoorArea startNode="indoorArea1Start" widthNode="indoorArea1Width" heightNode="indoorArea1Height"/>
		 <indoorArea startNode="indoorArea2Start" widthNode="indoorArea2Width" heightNode="indoorArea2Height"/>
    </indoorAreas>

    <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>

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

    <ai>
        <updateAreas>
            <updateArea startNode="tipOcclusionUpdateArea1Start" endNode="tipOcclusionUpdateArea1End" />
        </updateAreas>
    </ai>

    <hotspots>
        <hotspot type="COW" teleportNode="teleportNode" />
    </hotspots>

    <animatedObjects>
        <animatedObject saveId="Door">
            <animation duration="1.7">
			    <part node="Szufryga">
                    <keyFrame time="0.0" translation="-0.051 -0.32 4.195"/>
                    <keyFrame time="0.2" translation="-0.051 -0.32 4.147"/>
                </part>
                <part node="Furtka">
                    <keyFrame time="0.5" translation="-11.842 1.02 -4.68" rotation="0 0 0"/>
                    <keyFrame time="1.0" translation="-11.842 1.02 -4.68"  rotation="0 -85 0"/>
                </part>
            </animation>
            <controls triggerNode="DoorTrigger" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
            <sounds>
                <moving linkNode="Furtka" template="fenceMetalLoop" />
                <negEnd linkNode="Furtka" template="fenceMetalClose" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="Door_1">
            <animation duration="1.7">
			    <part node="Szufryga_1">
                    <keyFrame time="0.0" translation="0.051 -0.32 4.195"/>
                    <keyFrame time="0.2" translation="0.051 -0.32 4.147"/>
                </part>
                <part node="Furtka_1">
                    <keyFrame time="0.5" translation="11.833 1.02 -4.68" rotation="0 0 0"/>
                    <keyFrame time="1.0" translation="11.833 1.02 -4.68"  rotation="0 85 0"/>
                </part>
            </animation>
            <controls triggerNode="DoorTrigger_1" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
            <sounds>
                <moving linkNode="Furtka_1" template="fenceMetalLoop" />
                <negEnd linkNode="Furtka_1" template="fenceMetalClose" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="Deski">
            <animation duration="0.6">
			    <part node="Deski_1">
                    <keyFrame time="0.0" translation="0 0 0" visibility="true"/>
                    <keyFrame time="0.2" translation="0 -3 0" visibility="false"/>
                </part>
                <part node="Deski_2">
                    <keyFrame time="0.1" translation="0.834 -0.007 0.019" visibility="false"/>
                    <keyFrame time="0.3"  translation="0.834 -0.007 0.019"  visibility="true"/>
                </part>
            </animation>
            <controls triggerNode="Trigger_1" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
        </animatedObject>
    </animatedObjects>

    <infoTrigger triggerNode="infoTrigger" />

    <husbandry saveId="Animals_COW" hasStatistics="false">
        <storage node="storage" fillTypes="LIQUIDMANURE BUFFALOMILK MILK STRAW MANURE" isExtension="false">
            <capacity fillType="LIQUIDMANURE" capacity="56250" />
            <capacity fillType="MILK" capacity="33750" />
			<capacity fillType="BUFFALOMILK"  capacity="33750" />
            <capacity fillType="STRAW" capacity="21375" />
            <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="300" aiNode="aiLoadingNodeLiquidManure" />
            <loadTrigger triggerNode="milkTrigger" fillTypes="MILK BUFFALOMILK" fillLitersPerSecond="300" aiNode="aiLoadingNodeMilk"/>
        </loadingStation>

        <animals type="COW" maxNumAnimals="45" maxNumVisualAnimals="15">
            <navigation rootNode="navigationRootNode" filename="navigationMesh.i3d" />
            <loadingTrigger node="loadingTrigger" />
        </animals>

        <food capacity="33750" >
            <foodPlaces>
                <foodPlace node="foodPlace1" />
                <foodPlace node="foodPlace2" />
                <foodPlace node="foodPlace3" />
                <foodPlace node="foodPlace4" />
                <foodPlace node="foodPlace5" />
                <foodPlace node="foodPlace6" />
                <foodPlace node="foodPlace7" />
                <foodPlace node="foodPlace8" />
                <foodPlace node="foodPlace9" />
            </foodPlaces>
            <dynamicFoodPlane node="fillVolumeFood" defaultFillType="forage"/>
            <unloadTrigger exactFillRootNode="exactFillRootNodeFood" />
            <baleTrigger triggerNode="baleTrigger"/>
        </food>

        <liquidManure/>

        <water automaticWaterSupply="true" />

        <straw>
            <manure factor="1.5" />
            <strawPlane node="Straw" minY="-0.465" maxY="-0.322" colorChange="false" />
        </straw>
    </husbandry>

    <i3dMappings>
        <i3dMapping id="teleportNode" node="0>2" />
        <i3dMapping id="fillVolumeFood" node="0>1|0" />
        <i3dMapping id="exactFillRootNodeFood" node="0>1|1" />
        <i3dMapping id="foodPlace1" node="0>1|2|0" />
        <i3dMapping id="foodPlace2" node="0>1|2|1" />
        <i3dMapping id="foodPlace3" node="0>1|2|2" />
        <i3dMapping id="foodPlace4" node="0>1|2|3" />
        <i3dMapping id="foodPlace5" node="0>1|2|4" />
        <i3dMapping id="foodPlace6" node="0>1|2|5" />
        <i3dMapping id="foodPlace7" node="0>1|2|6" />
        <i3dMapping id="foodPlace8" node="0>1|2|7" />
        <i3dMapping id="foodPlace9" node="0>1|2|8" />
        <i3dMapping id="baleTrigger" node="0>1|3" />
		
        <i3dMapping id="Door" node="0>0|1" />
		<i3dMapping id="Furtka" node="0>0|1|0" />
		<i3dMapping id="Szufryga" node="0>0|1|0|0" />
        <i3dMapping id="DoorTrigger" node="0>0|1|1" />
		
        <i3dMapping id="Door_1" node="0>0|2" />
		<i3dMapping id="Furtka_1" node="0>0|2|0" />
		<i3dMapping id="Szufryga_1" node="0>0|2|0|0" />
        <i3dMapping id="DoorTrigger_1" node="0>0|2|1" />
		
		<i3dMapping id="Deski" node="0>0|3|0|1" />
		<i3dMapping id="Deski_1" node="0>0|3|0|1|0" />
		<i3dMapping id="Deski_2" node="0>0|3|0|1|1" />
		<i3dMapping id="Trigger_1" node="0>0|3|0|1|2" />
		
        <i3dMapping id="storage" node="0>3" />
        <i3dMapping id="Straw" node="0>4|0" />
        <i3dMapping id="exactFillRootNodeStraw" node="0>4|1" />
        <i3dMapping id="milkTrigger" node="0>5|0" />
        <i3dMapping id="aiLoadingNodeMilk" node="0>5|1" />
		
        <i3dMapping id="liquidManureTank" node="0>6" />
        <i3dMapping id="liquidManureTrigger" node="0>6|0" />
        <i3dMapping id="aiLoadingNodeLiquidManure" node="0>6|1" />
		
        <i3dMapping id="navigationRootNode" node="0>8" />
        <i3dMapping id="markerMilk" node="0>7|0" />
        <i3dMapping id="markerAnimals" node="0>7|1" />
        <i3dMapping id="markerLiquidManure" node="0>7|2" />
        <i3dMapping id="markerFood" node="0>7|3" />

        <i3dMapping id="infoTrigger" node="0>9" />
        <i3dMapping id="loadingTrigger" node="0>10" />
		
        <i3dMapping id="clearArea1Start" node="0>11|0" />
        <i3dMapping id="clearArea1Width" node="0>11|0|0" />
        <i3dMapping id="clearArea1Height" node="0>11|0|1" />
       
        <i3dMapping id="levelArea1Start" node="0>12|0" />
        <i3dMapping id="levelArea1Width" node="0>12|0|0" />
        <i3dMapping id="levelArea1Height" node="0>12|0|1" />
		
        <i3dMapping id="indoorArea1Start" node="0>13|0" />
        <i3dMapping id="indoorArea1Width" node="0>13|0|0" />
        <i3dMapping id="indoorArea1Height" node="0>13|0|1" />
		
		<i3dMapping id="indoorArea2Start" node="0>13|1" />
        <i3dMapping id="indoorArea2Width" node="0>13|1|0" />
        <i3dMapping id="indoorArea2Height" node="0>13|1|1" />
		
        <i3dMapping id="testArea1Start" node="0>14|0" />
        <i3dMapping id="testArea1End" node="0>14|0|0" />
       
        <i3dMapping id="tipOcclusionUpdateArea1Start" node="0>15|0" />
        <i3dMapping id="tipOcclusionUpdateArea1End" node="0>15|0|0" />
    </i3dMappings>
</placeable>
