<?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>Concrete Block Garage With Calfbox</en>
			<de>Betonsteingarage mit Kälberbox</de>
		</name>
        <image>store_garage2.dds</image>
        <price>40000</price>
        <functions>
            <function>$l10n_function_animalPenCow</function>
        </functions>
        <lifetime>1000</lifetime>
        <dailyUpkeep>20</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>627712</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>156160</indexBufferMemoryUsage>
        <textureMemoryUsage>17367040</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>garage2.i3d</filename>
		<canBeRenamed>true</canBeRenamed>
    </base>

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

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

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

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

    <leveling requireLeveling="true" maxSmoothDistance="10" maxSlope="75" maxEdgeAngle="30">
        <levelAreas>
            <levelArea startNode="0>4|0" widthNode="0>4|0|0" heightNode="0>4|0|1"/>
        </levelAreas>
		<levelAreas>
            <levelArea startNode="0>4|1" widthNode="0>4|1|0" heightNode="0>4|1|1"/>
        </levelAreas>
    </leveling>

	<triggerMarkers>
        <triggerMarker node="0>18|0"    filename="$data/shared/assets/marker/markerIconMilk.i3d" id="LOAD" />
        <triggerMarker node="0>18|3"    filename="$data/shared/assets/marker/markerIconFood.i3d" id="UNLOAD" />
        <triggerMarker node="0>18|1"    filename="$data/shared/assets/marker/markerIconAnimals.i3d" id="ANIMALS" />
        <triggerMarker node="0>18|2" 	filename="$data/shared/assets/marker/markerIconSlurry.i3d" id="LOAD" />
	</triggerMarkers>

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

    <ai>
        <updateAreas>
            <updateArea startNode="0>6|0" endNode="0>6|0|0" />
			<updateArea startNode="0>6|1" endNode="0>6|1|0" />
        </updateAreas>
    </ai>
	
	<hotspots>
        <hotspot type="COW" teleportNode="0>21" />
    </hotspots>

    <animatedObjects>
        <animatedObject saveId="Door1" >
            <animation duration="5">
                <part node="0>1|0|1|4">
                    <keyFrame time="0.0" translation="-0.009 -1.021 1.14" rotation="0 0 0"/>
                    <keyFrame time="0.1" translation="-0.009 -1.021 1.14" rotation="0 0 60"/>
					<keyFrame time="0.15" translation="-0.009 -1.021 1.106" rotation="0 0 60"/>
					<keyFrame time="0.2" translation="-0.009 -1.021 1.106" 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 120 0"/>
                </part>
                <part node="0>1|0|0">
                    <keyFrame time="0.6" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 -140 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="-0.005 -1.143 1.383" rotation="0 0 0"/>
                    <keyFrame time="0.1" translation="-0.005 -1.143 1.383" rotation="0 0 60"/>
					<keyFrame time="0.15" translation="-0.005 -1.143 1.35" rotation="0 0 60"/>
					<keyFrame time="0.2" translation="-0.005 -1.143 1.35" 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 120 0"/>
                </part>
                <part node="0>1|1|0">
                    <keyFrame time="0.6" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 -160 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="1.2">
                <part node="0>1|2|0">
                    <keyFrame time="0.0" translation="4.101 -0.1 9.007"/>
                    <keyFrame time="1.0" translation="4.101 -0.1 14.037"/>
                </part>
            </animation>
            <controls triggerNode="0>1|2|1" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linknode="0>1|2" template="slidingGateMetalLoop" />
                <posEnd linknode="0>1|2" template="slidingGateMetalOpen" />
                <negEnd linknode="0>1|2" template="slidingGateMetalClose" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="Door4" >
            <animation duration="1.2">
                <part node="0>1|3|0">
                    <keyFrame time="0.0" translation="4.034 -0.1 3.625"/>
                    <keyFrame time="1.0" translation="4.034 -0.1 8.485"/>
                </part>
            </animation>
            <controls triggerNode="0>1|3|1" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linknode="0>1|3" template="slidingGateMetalLoop" />
                <posEnd linknode="0>1|3" template="slidingGateMetalOpen" />
                <negEnd linknode="0>1|3" template="slidingGateMetalClose" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="Door5" >
            <animation duration="1.2">
                <part node="0>1|4|0">
                    <keyFrame time="0.0" translation="4.101 -0.1 -1.625"/>
                    <keyFrame time="1.0" translation="4.101 -0.1 3.22"/>
                </part>
            </animation>
            <controls triggerNode="0>1|4|1" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linknode="0>1|4" template="slidingGateMetalLoop" />
                <posEnd linknode="0>1|4" template="slidingGateMetalOpen" />
                <negEnd linknode="0>1|4" template="slidingGateMetalClose" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="Door6" >
            <animation duration="5">
                <part node="0>1|5|1|3">
                    <keyFrame time="0.0" translation="-0.01 -1.122 1.416" rotation="0 0 0"/>
                    <keyFrame time="0.1" translation="-0.01 -1.122 1.416" rotation="0 0 60"/>
					<keyFrame time="0.15" translation="-0.01 -1.122 1.385" rotation="0 0 60"/>
					<keyFrame time="0.2" translation="-0.01 -1.122 1.385" 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 -100 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="1.2">
                <part node="0>1|6|0">
                    <keyFrame time="0.2" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 90 0"/>
                </part>
				<part node="0>1|6|0|1">
                    <keyFrame time="0.0" translation="0.042 -0.294 -2.676"/>
                    <keyFrame time="0.1" translation="0.042 -0.2 -2.676"/>
                    <keyFrame time="0.2" translation="0.042 -0.2 -2.676"/>
                    <keyFrame time="0.3" translation="0.042 -0.294 -2.676"/>
                </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.4" visibility="true" />
                </part>
                <part node="0>2|1|0">
                    <keyFrame time="0" visibility="false" />
                    <keyFrame time="0.4" visibility="true" />
                </part>
				<part node="0>2|2|0">
                    <keyFrame time="0" visibility="false" />
                    <keyFrame time="0.4" visibility="true" />
                </part>
				<part node="0>2|3|0">
                    <keyFrame time="0" visibility="false" />
                    <keyFrame time="0.4" visibility="true" />
                </part>
				<part node="0>2|4|0">
                    <keyFrame time="0" visibility="false" />
                    <keyFrame time="0.4" visibility="true" />
                </part>
            </animation>    
                <controls triggerNode="0>2|7" posAction="ACTIVATE_HANDTOOL" posText="action_lightOn" negText="action_lightOut" />
                <posEnd linkNode="0>2|6" template="plasticDoorsOpen" />
                <negEnd linkNode="0>2|6" template="plasticDoorsClose" />
        </animatedObject>
		<animatedObject saveId="Lampy" >
            <animation duration="1">
				<part node="0>2|8|0|0">
                    <keyFrame time="0" visibility="false" />
                    <keyFrame time="0.4" visibility="true" />
                </part>
            </animation>    
                <controls triggerNode="0>2|11" posAction="ACTIVATE_HANDTOOL" posText="action_lightOn" negText="action_lightOut" />
                <posEnd linkNode="0>2|10" template="plasticDoorsOpen" />
                <negEnd linkNode="0>2|10" template="plasticDoorsClose" />
        </animatedObject>
		<animatedObject saveId="Lampy" >
            <animation duration="1">
				<part node="0>2|12|0">
                    <keyFrame time="0" visibility="false" />
                    <keyFrame time="0.4" visibility="true" />
                </part>
                <part node="0>2|13|0">
                    <keyFrame time="0" visibility="false" />
                    <keyFrame time="0.4" visibility="true" />
                </part>
            </animation>    
                <controls triggerNode="0>2|16" posAction="ACTIVATE_HANDTOOL" posText="action_lightOn" negText="action_lightOut" />
                <posEnd linkNode="0>2|15" template="plasticDoorsOpen" />
                <negEnd linkNode="0>2|15" template="plasticDoorsClose" />
        </animatedObject>
    </animatedObjects>
	
	<infoTrigger triggerNode="0>19" />

    <husbandry saveId="Animals_COW" hasStatistics="false">
        <storage node="0>22" fillTypes="LIQUIDMANURE MILK STRAW MANURE" isExtension="false">
            <capacity fillType="LIQUIDMANURE" capacity="50000" />
            <capacity fillType="MILK" capacity="50000" />
			<capacity fillType="BUFFALOMILK"  capacity="50000" />
            <capacity fillType="STRAW" capacity="15000" /> 
            <capacity fillType="MANURE" capacity="0" />
        </storage>

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

        <loadingStation supportsExtension="true" storageRadius="50">
            <loadTrigger triggerNode="0>15|0" fillTypes="LIQUIDMANURE" fillLitersPerSecond="2000" aiNode="0>15|1" />
            <loadTrigger triggerNode="0>14|0" fillTypes="MILK BUFFALOMILK" fillLitersPerSecond="2000" aiNode="0>14|1"/>
        </loadingStation>

        <animals type="COW" maxNumAnimals="10" maxNumVisualAnimals="5">
            <navigation rootNode="0>17" filename="navigationMesh.i3d" />
            <loadingTrigger node="0>20" />
        </animals>

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

        <water automaticWaterSupply="true" />

        <liquidManure />

		<food capacity="20000">
            <foodPlaces>
                <foodPlace node="0>12|2|0" />
                <foodPlace node="0>12|2|1" />
                <foodPlace node="0>12|2|2" />
            </foodPlaces>
            <dynamicFoodPlane node="0>12|0" defaultFillType="forage" maxAllowedHeapAngle="60" maxSubDivEdgeLength="0.5" capacity="10000"/>
            <unloadTrigger exactFillRootNode="0>12|1" />
            <baleTrigger triggerNode="0>12|3"/>
        </food>

    </husbandry>

</placeable>
