<?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>            
			<en>Barn With Cows 30 Cows</en>
			<de>Scheune Mit Kühen 30 Kühe</de>
        </name>
        <image>store_barn.dds</image>
        <price>40000</price>
        <functions>
            <function>$l10n_function_animalPenCow</function>
        </functions>
        <lifetime>1000</lifetime>
        <dailyUpkeep>30</dailyUpkeep>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>placeable</species>
        <category>animalpens</category>
        <canBeSold>true</canBeSold>
        <showInStore>true</showInStore>
		<brush>
            <type>placeable</type>
            <category>animals</category>
            <tab>cows</tab>
        </brush>
        <vertexBufferMemoryUsage>802304</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>169472</indexBufferMemoryUsage>
        <textureMemoryUsage>12582912</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>stodola.i3d</filename>
    </base>

    <placement useRandomYRotation="false" useManualYRotation="true">
        <testAreas>
            <testArea startNode="7|0" endNode="7|0|0" />
        </testAreas>

        <sounds>
            <place template="smallImp" />
        </sounds>
    </placement>

    <indoorAreas>
        <indoorArea startNode="5|0" widthNode="5|0|0" heightNode="5|0|1"/>
    </indoorAreas>

    <clearAreas>
        <clearArea startNode="3|0" widthNode="3|0|0" heightNode="3|0|1"/>
    </clearAreas>

    <leveling requireLeveling="true" maxSmoothDistance="10" maxSlope="75" maxEdgeAngle="30">
        <levelAreas>
            <levelArea startNode="4|0" widthNode="4|0|0" heightNode="4|0|1"/>
        </levelAreas>
    </leveling>
	
	<triggerMarkers>
        <triggerMarker node="0>14|0"    filename="$data/shared/assets/marker/markerIconMilk.i3d" id="LOAD" />
        <triggerMarker node="0>14|3"    filename="$data/shared/assets/marker/markerIconFood.i3d" id="UNLOAD" />
        <triggerMarker node="0>14|1"    filename="$data/shared/assets/marker/markerIconAnimals.i3d" id="ANIMALS" />
        <triggerMarker node="0>14|2" 	filename="$data/shared/assets/marker/markerIconSlurry.i3d" id="LOAD" />
		<triggerMarker node="0>14|4" 	filename="$data/shared/assets/marker/markerIconLoad.i3d" id="LOAD" />
	</triggerMarkers>


    <tipOcclusionUpdateAreas>
        <tipOcclusionUpdateArea startNode="6|0" endNode="6|0|0" />
    </tipOcclusionUpdateAreas>

    <ai>
        <updateAreas>
            <updateArea startNode="6|0" endNode="6|0|0" />
        </updateAreas>
    </ai>
	
	<hotspots>
        <hotspot type="COW" teleportNode="0>17" />
    </hotspots>
	
    <animatedObjects>
        <animatedObject saveId="Door1" >
            <animation duration="5">
                <part node="0>1|0|1|3">
                    <keyFrame time="0.0" translation="-2.012 -2.707 0.004" rotation="0 0 0"/>
                    <keyFrame time="0.1" translation="-2.012 -2.707 0.004" rotation="-60 0 0"/>
					<keyFrame time="0.2" translation="-1.958 -2.707 0.004" rotation="-60 0 0"/>
					<keyFrame time="0.3" translation="-1.958 -2.707 0.004" rotation="0 0 0"/>
                </part>
                <part node="0>1|0|1">
                    <keyFrame time="0.2" rotation="0 0 0"/>
                    <keyFrame time="0.6" rotation="0 95 0"/>
                </part>
                <part node="0>1|0|0">
                    <keyFrame time="0.6" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 -170 0"/>
                </part>
            </animation>
            <controls triggerNode="0>1|0|2" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="0>1|0" template="metalDoorsLoop" />
                <posEnd linkNode="0>1|0" template="metalDoorsOpen" />
                <negEnd linkNode="0>1|0" template="metalDoorsClose" />
            </sounds>
        </animatedObject>
        <animatedObject saveId="Door2" >
            <animation duration="5">
                <part node="0>1|1|1|3">
                    <keyFrame time="0.0" translation="-1.51 -1.406 0.004" rotation="0 0 0"/>
                    <keyFrame time="0.1" translation="-1.51 -1.406 0.004" rotation="-60 0 0"/>
					<keyFrame time="0.2" translation="-1.455 -1.406 0.004" rotation="-60 0 0"/>
					<keyFrame time="0.3" translation="-1.455 -1.406 0.004" rotation="0 0 0"/>
                </part>
                <part node="0>1|1|1">
                    <keyFrame time="0.2" rotation="0 0 0"/>
                    <keyFrame time="0.6" rotation="0 90 0"/>
                </part>
                <part node="0>1|1|0">
                    <keyFrame time="0.6" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 -95 0"/>
                </part>
            </animation>
            <controls triggerNode="0>1|1|2" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="0>1|1" template="metalDoorsLoop" />
                <posEnd linkNode="0>1|1" template="metalDoorsOpen" />
                <negEnd linkNode="0>1|1" template="metalDoorsClose" />
            </sounds>
        </animatedObject>
        <animatedObject saveId="Door3" >
            <animation duration="5">
                <part node="0>1|2|0|2">
                    <keyFrame time="0.0" translation="1.51 -1.406 0.004" rotation="0 0 0"/>
                    <keyFrame time="0.1" translation="1.51 -1.406 0.004" rotation="-60 0 0"/>
					<keyFrame time="0.2" translation="1.455 -1.406 0.004" rotation="-60 0 0"/>
					<keyFrame time="0.3" translation="1.455 -1.406 0.004" rotation="0 0 0"/>
                </part>
                <part node="0>1|2|0">
                    <keyFrame time="0.2" rotation="0 0 0"/>
                    <keyFrame time="0.6" rotation="0 -90 0"/>
                </part>
                <part node="0>1|2|1">
                    <keyFrame time="0.6" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 95 0"/>
                </part>
            </animation>
            <controls triggerNode="0>1|2|2" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="0>1|2" template="metalDoorsLoop" />
                <posEnd linkNode="0>1|2" template="metalDoorsOpen" />
                <negEnd linkNode="0>1|2" template="metalDoorsClose" />
            </sounds>
        </animatedObject>
        <animatedObject saveId="Door4" >
            <animation duration="5">
                <part node="0>1|3|0|3">
                    <keyFrame time="0.0" translation="2.012 -2.707 0.004" rotation="0 0 0"/>
                    <keyFrame time="0.1" translation="2.012 -2.707 0.004" rotation="-60 0 0"/>
					<keyFrame time="0.2" translation="1.958 -2.707 0.004" rotation="-60 0 0"/>
					<keyFrame time="0.3" translation="1.958 -2.707 0.004" rotation="0 0 0"/>
                </part>
                <part node="0>1|3|0">
                    <keyFrame time="0.2" rotation="0 0 0"/>
                    <keyFrame time="0.6" rotation="0 -95 0"/>
                </part>
                <part node="0>1|3|1">
                    <keyFrame time="0.6" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 170 0"/>
                </part>
            </animation>
            <controls triggerNode="0>1|3|2" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="0>1|3" template="metalDoorsLoop" />
                <posEnd linkNode="0>1|3" template="metalDoorsOpen" />
                <negEnd linkNode="0>1|3" template="metalDoorsClose" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="Door5" >
            <animation duration="5">
                <part node="0>1|4|0|3">
                    <keyFrame time="0.0" translation="-2.012 -2.707 -0.004" rotation="0 0 0"/>
                    <keyFrame time="0.1" translation="-2.012 -2.707 -0.004" rotation="60 0 0"/>
					<keyFrame time="0.2" translation="-1.958 -2.707 -0.004" rotation="60 0 0"/>
					<keyFrame time="0.3" translation="-1.958 -2.707 -0.004" rotation="0 0 0"/>
                </part>
                <part node="0>1|4|0">
                    <keyFrame time="0.2" rotation="0 0 0"/>
                    <keyFrame time="0.6" rotation="0 -170 0"/>
                </part>
                <part node="0>1|4|1">
                    <keyFrame time="0.6" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 170 0"/>
                </part>
            </animation>
            <controls triggerNode="0>1|4|2" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="0>1|4" template="metalDoorsLoop" />
                <posEnd linkNode="0>1|4" template="metalDoorsOpen" />
                <negEnd linkNode="0>1|4" template="metalDoorsClose" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="Door6" >
            <animation duration="5">
                <part node="0>1|5|1|3">
                    <keyFrame time="0.0" translation="2.012 -2.707 -0.004" rotation="0 0 0"/>
                    <keyFrame time="0.1" translation="2.012 -2.707 -0.004" rotation="60 0 0"/>
					<keyFrame time="0.2" translation="1.958 -2.707 -0.004" rotation="60 0 0"/>
					<keyFrame time="0.3" translation="1.958 -2.707 -0.004" rotation="0 0 0"/>
                </part>
                <part node="0>1|5|1">
                    <keyFrame time="0.2" rotation="0 0 0"/>
                    <keyFrame time="0.6" rotation="0 170 0"/>
                </part>
                <part node="0>1|5|0">
                    <keyFrame time="0.6" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 -170 0"/>
                </part>
            </animation>
            <controls triggerNode="0>1|5|2" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="0>1|5" template="metalDoorsLoop" />
                <posEnd linkNode="0>1|5" template="metalDoorsOpen" />
                <negEnd linkNode="0>1|5" template="metalDoorsClose" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="Door7" >
            <animation duration="5">
                <part node="0>1|6|0|1">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="0.1" rotation="50 0 0"/>
					<keyFrame time="0.2" rotation="50 0 0"/>
					<keyFrame time="0.3" rotation="0 0 0"/>
                </part>
                <part node="0>1|6|0">
                    <keyFrame time="0.2" rotation="0 0 0"/>
                    <keyFrame time="0.8" rotation="0 90 0"/>
                </part>
            </animation>
            <controls triggerNode="0>1|6|1" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="0>1|6" template="metalDoorsLoop" />
                <posEnd linkNode="0>1|6" template="metalDoorsOpen" />
                <negEnd linkNode="0>1|6" template="metalDoorsClose" />
            </sounds>
        </animatedObject>

<!-- Lights -->
        <animatedObject saveId="Lampy" >
            <animation duration="1">
                <part node="0>2|0|0">
                    <keyFrame time="0" visibility="false" />
                    <keyFrame time="0.1" visibility="true" />
                </part>
                <part node="0>2|1|0">
                    <keyFrame time="0" visibility="false" />
                    <keyFrame time="0.2" visibility="true" />
                </part>
				<part node="0>2|2|0">
                    <keyFrame time="0" visibility="false" />
                    <keyFrame time="0.3" visibility="true" />
                </part>
				<part node="0>2|3|0">
                    <keyFrame time="0" visibility="false" />
                    <keyFrame time="0.2" visibility="true" />
                </part>
            </animation>    
                 <controls triggerNode="2|6" posAction="ACTIVATE_HANDTOOL" posText="action_lightOn" negText="action_lightOut" />
				 <sounds>
					<moving linknode="0>2|5" template="lizardFloodLight" />
					<posEnd linknode="0>2|5" template="lizardFloodLight" />
					<negEnd linknode="0>2|5" template="lizardFloodLight" />
				 </sounds>
        </animatedObject>
        <animatedObject saveId="Lampy" >
            <animation duration="1">
                <part node="0>2|7|0">
                    <keyFrame time="0" visibility="false" />
                    <keyFrame time="0.1" visibility="true" />
                </part>
                <part node="0>2|8|0">
                    <keyFrame time="0" visibility="false" />
                    <keyFrame time="0.2" visibility="true" />
                </part>
            </animation>    
                 <controls triggerNode="2|11" posAction="ACTIVATE_HANDTOOL" posText="action_lightOn" negText="action_lightOut" />
				 <sounds>
					<moving linknode="0>2|10" template="lizardFloodLight" />
					<posEnd linknode="0>2|10" template="lizardFloodLight" />
					<negEnd linknode="0>2|10" template="lizardFloodLight" />
				 </sounds>
        </animatedObject>
		<animatedObject saveId="Lampy" >
            <animation duration="1">
                <part node="0>2|12|0|0">
                    <keyFrame time="0" visibility="false" />
                    <keyFrame time="0.4" visibility="true" />
                </part>
            </animation>    
                 <controls triggerNode="2|15" posAction="ACTIVATE_HANDTOOL" posText="action_lightOn" negText="action_lightOut" />
				 <sounds>
					<moving linknode="0>2|14" template="lizardFloodLight" />
					<posEnd linknode="0>2|14" template="lizardFloodLight" />
					<negEnd linknode="0>2|14" template="lizardFloodLight" />
				 </sounds>
        </animatedObject>
    </animatedObjects>
	
	<infoTrigger triggerNode="0>15" />

    <husbandry saveId="Animals_COW" hasStatistics="false">
        <storage node="0>18" fillTypes="LIQUIDMANURE MILK BUFFALOMILK STRAW MANURE" isExtension="false">
            <capacity fillType="LIQUIDMANURE" capacity="500000" />
            <capacity fillType="MILK" capacity="50000" />
			<capacity fillType="BUFFALOMILK" capacity="50000" />
            <capacity fillType="STRAW" capacity="30000" /> 
            <capacity fillType="MANURE" capacity="100000" />
        </storage>

        <unloadingStation supportsExtension="true" storageRadius="65" hideFromPricesMenu="true">
            <unloadTrigger exactFillRootNode="0>9|0" fillTypes="STRAW" />
            <baleTrigger triggerNode="0>9|2" fillTypes="STRAW"/>
            <unloadTrigger fillTypes="MANURE MILK BUFFALOMILK LIQUIDMANURE" />
        </unloadingStation>

        <loadingStation supportsExtension="true" storageRadius="50">
            <loadTrigger triggerNode="0>11|0" fillTypes="LIQUIDMANURE" fillLitersPerSecond="2000" aiNode="0>11|1" />
            <loadTrigger triggerNode="0>10|0" fillTypes="MILK BUFFALOMILK" fillLitersPerSecond="2000" aiNode="0>10|1"/>
			<loadTrigger triggerNode="0>19|0" fillTypes="MANURE" fillLitersPerSecond="2000" />
        </loadingStation>

        <animals type="COW" maxNumAnimals="30" maxNumVisualAnimals="15">
            <navigation rootNode="0>13" filename="navigationMesh.i3d" />
            <loadingTrigger node="0>16" />
        </animals>

        <straw>
            <manure factor="1.5" />
            <strawPlane node="0>9|1" minY="-0.045" maxY="0" colorChange="false" />
        </straw>

        <water automaticWaterSupply="true" />

        <liquidManure />

        <food capacity="30000">
            <foodPlaces>
                <foodPlace node="0>8|2|0" />
                <foodPlace node="0>8|2|1" />
                <foodPlace node="0>8|2|2" />
                <foodPlace node="0>8|2|3" />
                <foodPlace node="0>8|2|4" />
                <foodPlace node="0>8|2|5" />
            </foodPlaces>
             <foodPlane node="0>8|0" minY="-0.24" maxY="0.065" colorChange="false" defaultFillType="forage"/>
            <unloadTrigger exactFillRootNode="0>8|1" />
            <baleTrigger triggerNode="0>8|3"/>
        </food>

    </husbandry>

</placeable>
