<?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>$l10n_storeItem_animalBarnCowMedium</name>
        <image>store_cowshed1970s.png</image>
        <price>70000</price>
        <functions>
            <function>$l10n_function_animalPenCow</function>
            <function>$l10n_function_adjustableMeadow</function>
        </functions>
        <lifetime>1000</lifetime>
        <dailyUpkeep>70</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="-20" cameraYRot="-50" />
        </storeIconRendering>
        <vertexBufferMemoryUsage>1049088</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>205824</indexBufferMemoryUsage>
        <textureMemoryUsage>8388608</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>cowshed1970.i3d</filename>
        <canBeRenamed>true</canBeRenamed>
        <boughtWithFarmland>true</boughtWithFarmland>
    </base>
	
    <placement useRandomYRotation="false" useManualYRotation="true" >
        <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="asphalt"/>
        </levelAreas>

        <paintAreas>
            <paintArea startNode="levelArea1Start" widthNode="levelArea1Width" heightNode="levelArea1Height" groundType="grass" />
        </paintAreas>
    </leveling>

  
    <indoorAreas>
        <indoorArea startNode="indoorArea1Start" widthNode="indoorArea1Width" heightNode="indoorArea1Height"/>
    </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="tipOcclusionUpdateAreaStart" endNode="tipOcclusionUpdateAreaEnd" />
    </tipOcclusionUpdateAreas>

    <ai>
        <updateAreas>
            <updateArea startNode="tipOcclusionUpdateAreaStart" endNode="tipOcclusionUpdateAreaEnd" />
        </updateAreas>
    </ai>

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

    <animatedObjects>
        <animatedObject saveId="DoorBig" >
            <animation duration="1.5">
                <part node="DoorBig">
                    <keyFrame time="0.0" translation="0 0 -13.037"/>
                    <keyFrame time="1.0" translation="1.775 0 -13.037"/>
                </part>
                <part node="DoorBig2">
                    <keyFrame time="0.0" translation="0 0 -13.037"/>
                    <keyFrame time="1.0" translation="-1.775 0 -13.037"/>
                </part>
            </animation>
            <controls triggerNode="triggerDoorbig" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
            <sounds>
                <moving linkNode="triggerDoorbig" template="woodBigDoorLoop" />
                <posEnd linkNode="triggerDoorbig" template="metalDoorsOpen" />
                <negEnd linkNode="triggerDoorbig" template="metalDoorsClose" />
            </sounds>
        </animatedObject>
		 <animatedObject saveId="doorL" >
            <animation duration="1.5">
                <part node="doorOpenable">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 -90 0"/>
                </part>
                <part node="doorOpenable2">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 90 0"/>
                </part>
            </animation>
            <controls triggerNode="triggerDoorL" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
            <sounds>
                <moving linkNode="triggerDoorL" template="woodBigDoorLoop" />
                <posEnd linkNode="triggerDoorL" template="metalDoorsOpen" />
                <negEnd linkNode="triggerDoorL" template="metalDoorsClose" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="doorR" >
            <animation duration="1.5">
                <part node="doorOpenable.001">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 -90 0"/>
                </part>
                <part node="doorOpenable2.001">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 90 0"/>
                </part>
            </animation>
            <controls triggerNode="triggerDoorR" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
            <sounds>
                <moving linkNode="triggerDoorR" template="woodBigDoorLoop" />
                <posEnd linkNode="triggerDoorR" template="metalDoorsOpen" />
                <negEnd linkNode="triggerDoorR" template="metalDoorsClose" />
            </sounds>
        </animatedObject>
    </animatedObjects>

    <lights>
        <group weatherRequiredFlags="NIGHT" />

        <sharedLight filename="$data/shared/assets/lights/terraLed/fluorescentTube50W.xml" linkNode="light1" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/terraLed/fluorescentTube50W.xml" linkNode="light1.001" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/terraLed/fluorescentTube50W.xml" linkNode="light1.002" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/terraLed/fluorescentTube50W.xml" linkNode="light1.003" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/terraLed/fluorescentTube50W.xml" linkNode="light1.004" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/terraLed/fluorescentTube50W.xml" linkNode="light1.005" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/terraLed/fluorescentTube50W.xml" linkNode="light1.006" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/terraLed/fluorescentTube50W.xml" linkNode="light1.007" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/terraLed/fluorescentTube50W.xml" linkNode="light1.008" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/terraLed/fluorescentTube50W.xml" linkNode="light1.009" groupIndex="1"/>

        <realLights>
            <low>
                <light node="realLightsLow" groupIndex="1"/>
            </low>
            <high>
                <light node="realLightsHigh" groupIndex="1"/>
            </high>
        </realLights>
    </lights>

    <infoTrigger triggerNode="infoTrigger" />

    <husbandry saveId="Animals_COW" hasStatistics="false">
        <storage node="storage" fillTypes="LIQUIDMANURE MILK BUFFALOMILK 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="2000" aiNode="aiLoadingNodeLiquidManure" />
            <loadTrigger triggerNode="milkTrigger" fillTypes="MILK BUFFALOMILK" fillLitersPerSecond="2000" aiNode="aiLoadingNodeMilk"/>
        </loadingStation>

        <animals type="COW" maxNumAnimals="35" maxNumVisualAnimals="14">
            <navigation rootNode="navigationRootNode" filename="navmesh.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>
            <foodPlane node="fillVolumeFood" minY="-0.575" maxY="-0.1" colorChange="false" defaultFillType="forage"/>
            <unloadTrigger exactFillRootNode="exactFillRootNodeFood" />
            <baleTrigger triggerNode="baleTrigger"/>
        </food>

        <liquidManure />

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

        <water automaticWaterSupply="true" />

        <straw>
            <manure factor="1.5" />
            <strawPlane node="strawPlane" minY="-0.185" maxY="0.0" colorChange="false" />
        </straw>
<!--
        <fence xmlFilename="$data/placeables/brandless/fences/husbandries/cowFence/cowFence.xml">
            <sections>
                <section segmentId="SEGMENT" customizable="true">
                    <node node="fenceNode01" />
                    <node node="fenceNode02" />
                    <node node="fenceNode03" />
                    <node node="fenceNode04" />
                </section>
            </sections>
        </fence>

        <meadow>
            <fruitType name="GRASS" eatableStartGrowthState="greenMiddle" eatableEndGrowthState="harvestReady" eatenGrowthState="greenSmall" />
            <fruitType name="MEADOW" eatableStartGrowthState="greenMiddle" eatableEndGrowthState="harvestReady" eatenGrowthState="greenSmall" />

            <createTask weedState="0">
                <fruit type="MEADOW" growthState="greenSmall" />
                <ground type="NONE" />
                <terrainGroundType name="grass" />
            </createTask>
        </meadow> -->
    </husbandry>


<i3dMappings>
  <i3dMapping id="mainNode" node="0>" />
  <i3dMapping id="MainInterior" node="0>0" />
  <i3dMapping id="doors" node="0>0|0" />
  <i3dMapping id="DoorBig" node="0>0|0|0" />
  <i3dMapping id="DoorBig2" node="0>0|0|1" />
  <i3dMapping id="doorOpenable" node="0>0|0|2" />
  <i3dMapping id="doorOpenable.001" node="0>0|0|3" />
  <i3dMapping id="doorOpenable2" node="0>0|0|4" />
  <i3dMapping id="doorOpenable2.001" node="0>0|0|5" />
  <i3dMapping id="triggerDoorL" node="0>0|0|6" />
  <i3dMapping id="triggerDoorR" node="0>0|0|7" />
  <i3dMapping id="triggerDoorbig" node="0>0|0|8" />
  <i3dMapping id="roosters" node="0>0|1" />
  <i3dMapping id="windows_alpha" node="0>0|2" />
  <i3dMapping id="clearArea1Start" node="0>1" />
  <i3dMapping id="clearArea1Height" node="0>1|0" />
  <i3dMapping id="clearArea1Width" node="0>1|1" />
  <i3dMapping id="indoorAreas" node="0>2" />
  <i3dMapping id="indoorArea1Height" node="0>2|0" />
  <i3dMapping id="indoorArea1Start" node="0>2|1" />
  <i3dMapping id="indoorArea1Width" node="0>2|2" />
  <i3dMapping id="intiors" node="0>3" />
  <i3dMapping id="Boxeninterior" node="0>3|0" />
  <i3dMapping id="Collision" node="0>3|1" />
  <i3dMapping id="feedingGate" node="0>3|2" />
  <i3dMapping id="feedingGate.001" node="0>3|3" />
  <i3dMapping id="fenceBar4" node="0>3|4" />
  <i3dMapping id="fenceBar4.001" node="0>3|5" />
  <i3dMapping id="fenceG2" node="0>3|6" />
  <i3dMapping id="fenceG2.001" node="0>3|7" />
  <i3dMapping id="fenceG2.002" node="0>3|8" />
  <i3dMapping id="fenceG3" node="0>3|9" />
  <i3dMapping id="fenceG3.001" node="0>3|10" />
  <i3dMapping id="fenceG4" node="0>3|11" />
  <i3dMapping id="fenceG4.001" node="0>3|12" />
  <i3dMapping id="fenceG5" node="0>3|13" />
  <i3dMapping id="fenceG5.001" node="0>3|14" />
  <i3dMapping id="fenceG5.002" node="0>3|15" />
  <i3dMapping id="fenceG5.003" node="0>3|16" />
  <i3dMapping id="fenceG5.004" node="0>3|17" />
  <i3dMapping id="fenceG5.005" node="0>3|18" />
  <i3dMapping id="fenceG5.006" node="0>3|19" />
  <i3dMapping id="fenceG5.007" node="0>3|20" />
  <i3dMapping id="fenceG5.008" node="0>3|21" />
  <i3dMapping id="fenceG5.009" node="0>3|22" />
  <i3dMapping id="fenceG5.010" node="0>3|23" />
  <i3dMapping id="fenceG5.011" node="0>3|24" />
  <i3dMapping id="fenceG5.012" node="0>3|25" />
  <i3dMapping id="fenceG5.013" node="0>3|26" />
  <i3dMapping id="fenceG5.014" node="0>3|27" />
  <i3dMapping id="fenceG5.015" node="0>3|28" />
  <i3dMapping id="fenceG5.016" node="0>3|29" />
  <i3dMapping id="fenceG5.017" node="0>3|30" />
  <i3dMapping id="fenceG5.018" node="0>3|31" />
  <i3dMapping id="fenceG5.019" node="0>3|32" />
  <i3dMapping id="fenceG5.020" node="0>3|33" />
  <i3dMapping id="fenceG5.021" node="0>3|34" />
  <i3dMapping id="fenceG5.022" node="0>3|35" />
  <i3dMapping id="fenceG5.023" node="0>3|36" />
  <i3dMapping id="gateLargeA06" node="0>3|37" />
  <i3dMapping id="lightsLoad" node="0>3|38" />
  <i3dMapping id="light1" node="0>3|38|0" />
  <i3dMapping id="light1.001" node="0>3|38|1" />
  <i3dMapping id="light1.002" node="0>3|38|2" />
  <i3dMapping id="light1.003" node="0>3|38|3" />
  <i3dMapping id="light1.004" node="0>3|38|4" />
  <i3dMapping id="light1.005" node="0>3|38|5" />
  <i3dMapping id="light1.006" node="0>3|38|6" />
  <i3dMapping id="light1.007" node="0>3|38|7" />
  <i3dMapping id="light1.008" node="0>3|38|8" />
  <i3dMapping id="light1.009" node="0>3|38|9" />
  <i3dMapping id="occluder" node="0>3|39" />
  <i3dMapping id="tipCollision" node="0>3|40" />
  <i3dMapping id="visualWater" node="0>3|41" />
  <i3dMapping id="realLights" node="0>3|42" />
  <i3dMapping id="realLightsLow" node="0>3|42|0" />
  <i3dMapping id="pointLightAnimals1_0" node="0>3|42|0|0" />
  <i3dMapping id="pointLightAnimals1_1" node="0>3|42|0|1" />
  <i3dMapping id="realLightsHigh" node="0>3|42|1" />
  <i3dMapping id="levelArea1Start" node="0>4" />
  <i3dMapping id="levelArea1Height" node="0>4|0" />
  <i3dMapping id="levelArea1Width" node="0>4|1" />
  <i3dMapping id="stoneOutside" node="0>5" />
  <i3dMapping id="testArea1Start" node="0>6" />
  <i3dMapping id="testArea1End" node="0>6|0" />
  <i3dMapping id="testArea2Start" node="0>7" />
  <i3dMapping id="testArea2End" node="0>7|0" />
  <i3dMapping id="tipOcclusionUpdateAreaEnd" node="0>8" />
  <i3dMapping id="tipOcclusionUpdateAreaStart" node="0>9" />
  <i3dMapping id="teleportNode" node="0>10" />
  <i3dMapping id="food" node="0>11" />
  <i3dMapping id="fillVolumeFood" node="0>11|0" />
  <i3dMapping id="exactFillRootNodeFood" node="0>11|1" />
  <i3dMapping id="foodPlaces" node="0>11|2" />
  <i3dMapping id="foodPlace1" node="0>11|2|0" />
  <i3dMapping id="foodPlace2" node="0>11|2|1" />
  <i3dMapping id="foodPlace3" node="0>11|2|2" />
  <i3dMapping id="foodPlace4" node="0>11|2|3" />
  <i3dMapping id="foodPlace5" node="0>11|2|4" />
  <i3dMapping id="foodPlace6" node="0>11|2|5" />
  <i3dMapping id="foodPlace7" node="0>11|2|6" />
  <i3dMapping id="foodPlace8" node="0>11|2|7" />
  <i3dMapping id="foodPlace9" node="0>11|2|8" />
  <i3dMapping id="baleTrigger" node="0>11|3" />
  <i3dMapping id="storage" node="0>12" />
  <i3dMapping id="straw" node="0>13" />
  <i3dMapping id="strawPlane" node="0>13|0" />
  <i3dMapping id="exactFillRootNodeStraw" node="0>13|1" />
  <i3dMapping id="milkTank" node="0>14" />
  <i3dMapping id="milkTrigger" node="0>14|0" />
  <i3dMapping id="milkingRobot1" node="0>14|1" />
  <i3dMapping id="aiLoadingNodeMilk" node="0>14|2" />
  <i3dMapping id="milkContainer" node="0>14|3" />
  <i3dMapping id="liquidManureTank" node="0>15" />
  <i3dMapping id="liquidManureTrigger" node="0>15|0" />
  <i3dMapping id="aiLoadingNodeLiquidManure" node="0>15|1" />
  <i3dMapping id="waterPlaces" node="0>16" />
  <i3dMapping id="waterPlace1" node="0>16|0" />
  <i3dMapping id="navigationRootNode" node="0>17" />
  <i3dMapping id="walkiplane" node="0>17|0" />
  <i3dMapping id="warningStripes" node="0>18" />
  <i3dMapping id="markerMilk" node="0>18|0" />
  <i3dMapping id="markerAnimals" node="0>18|1" />
  <i3dMapping id="markerLiquidManure" node="0>18|2" />
  <i3dMapping id="markerFood" node="0>18|3" />
  <i3dMapping id="infoTrigger" node="0>19" />
  <i3dMapping id="loadingTrigger" node="0>20" />
  <i3dMapping id="fenceNode01" node="0>23|0" />
  <i3dMapping id="fenceNode02" node="0>23|1" />
  <i3dMapping id="fenceNode03" node="0>23|2" />
  <i3dMapping id="fenceNode04" node="0>23|3" />
  <i3dMapping id="fenceNode05" node="0>23|3" />
</i3dMappings>
</placeable>
