<?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>Stabulation MA7</name>
        <image>Stabulation.dds</image>
        <price>300000</price>
        <functions>
            <function>$l10n_function_animalPenCow</function>
        </functions>
        <lifetime>1000</lifetime>
        <dailyUpkeep>150</dailyUpkeep>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>placeable</species>
        <category>animalpens</category>
        <brush>
            <type>placeable</type>
            <category>animals</category>
            <tab>cows</tab>
        </brush>
        <vertexBufferMemoryUsage>2978048</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>392704</indexBufferMemoryUsage>
        <textureMemoryUsage>10223616</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>

        <storeIconRendering>
            <settings cameraXRot="-20" cameraYRot="50" advancedBoundingBox="true"/>
        </storeIconRendering>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

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

    <placement useRandomYRotation="false" useManualYRotation="true" >
        <testAreas>
            <testArea startNode="testArea1Start" endNode="testArea1End" />
            <testArea startNode="testArea2Start" endNode="testArea2End" />
            <testArea startNode="testArea3Start" endNode="testArea3End" />
        </testAreas>

        <sounds>
            <place template="medImp" />
            <placeLayered template="cowLayer" />
        </sounds>
    </placement>

    <clearAreas>
        <clearArea startNode="clearArea1Start" widthNode="clearArea1Width" heightNode="clearArea1Height"/>
        <clearArea startNode="clearArea2Start" widthNode="clearArea2Width" heightNode="clearArea2Height"/>
        <clearArea startNode="clearArea3Start" widthNode="clearArea3Width" heightNode="clearArea3Height"/>
        <clearArea startNode="clearArea4Start" widthNode="clearArea4Width" heightNode="clearArea4Height"/>
        <clearArea startNode="clearArea5Start" widthNode="clearArea5Width" heightNode="clearArea5Height"/>
    </clearAreas>

    <leveling requireLeveling="true" maxSmoothDistance="10" maxSlope="75" maxEdgeAngle="30">
        <levelAreas>
            <levelArea startNode="levelArea1Start" widthNode="levelArea1Width" heightNode="levelArea1Height" groundType="asphalt"/>
            <levelArea startNode="levelArea2Start" widthNode="levelArea2Width" heightNode="levelArea2Height" groundType="asphalt"/>
            <levelArea startNode="levelArea3Start" widthNode="levelArea3Width" heightNode="levelArea3Height" groundType="asphalt"/>
            <levelArea startNode="foliageArea1Start" widthNode="foliageArea1Width" heightNode="foliageArea1Height" groundType="grass"/>
            <levelArea startNode="foliageArea2Start" widthNode="foliageArea2Width" heightNode="foliageArea2Height" groundType="grass"/>
        </levelAreas>

        <paintAreas>
            <paintArea startNode="paintArea1Start" widthNode="paintArea1Width" heightNode="paintArea1Height" groundType="grass" />
            <paintArea startNode="paintArea2Start" widthNode="paintArea2Width" heightNode="paintArea2Height" groundType="grass" />
        </paintAreas>
    </leveling>

    <foliageAreas>
        <foliageArea startNode="foliageArea1Start" widthNode="foliageArea1Width" heightNode="foliageArea1Height" decoFoliage="grassShort" />
        <foliageArea startNode="foliageArea2Start" widthNode="foliageArea2Width" heightNode="foliageArea2Height" decoFoliage="grassShort" />
    </foliageAreas>

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

    <triggerMarkers>
        <triggerMarker node="0>11|0" filename="$data/shared/assets/marker/markerIcons.xml" id="LOAD" />
        <triggerMarker node="0>11|3" filename="$data/shared/assets/marker/markerIcons.xml" id="UNLOAD" />
        <triggerMarker node="0>11|1" filename="$data/shared/assets/marker/markerIcons.xml" id="ANIMALS" />
        <triggerMarker node="0>11|2" filename="$data/shared/assets/marker/markerIcons.xml" id="LOAD" />
    </triggerMarkers>

    <tipOcclusionUpdateAreas>
        <tipOcclusionUpdateArea startNode="tipOcclusionUpdateArea1Start" endNode="tipOcclusionUpdateArea1End" />
        <tipOcclusionUpdateArea startNode="tipOcclusionUpdateArea2Start" endNode="tipOcclusionUpdateArea2End" />
        <tipOcclusionUpdateArea startNode="tipOcclusionUpdateArea3Start" endNode="tipOcclusionUpdateArea3End" />
    </tipOcclusionUpdateAreas>

    <ai>
        <updateAreas>
            <updateArea startNode="tipOcclusionUpdateArea1Start" endNode="tipOcclusionUpdateArea1End" />
            <updateArea startNode="tipOcclusionUpdateArea2Start" endNode="tipOcclusionUpdateArea2End" />
            <updateArea startNode="tipOcclusionUpdateArea3Start" endNode="tipOcclusionUpdateArea3End" />
        </updateAreas>
    </ai>

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

    <animatedObjects>
        <animatedObject saveId="porte01">
            <animation duration="3">
                <part node="0>0|0|10|1">
                    <keyFrame time="0.05" translation="0 0 0"/>
                    <keyFrame time="1.0" translation="0 0 -3.5"/>
                </part>
            </animation>
            <controls triggerNode="0>0|0|10|0" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate"/>
            
        </animatedObject>
        <animatedObject saveId="porte02">
            <animation duration="3">
                <part node="0>0|0|11|1">
                    <keyFrame time="0.05" translation="0 0 0"/>
                    <keyFrame time="1.0" translation="0 0 3.5"/>
                </part>
            </animation>
            <controls triggerNode="0>0|0|11|0" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate"/>
            
        </animatedObject>
        <animatedObject saveId="porte03">
            <animation duration="3">
                <part node="0>0|0|12|1">
                    <keyFrame time="0.05" translation="0 0 0"/>
                    <keyFrame time="1.0" translation="0 0 1.2"/>
                </part>
            </animation>
            <controls triggerNode="0>0|0|12|0" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate"/>

        </animatedObject>
        <animatedObject saveId="porte04">
            <animation duration="3">
                <part node="0>0|0|13|1">
                    <keyFrame time="0.05" translation="0 0 0"/>
                    <keyFrame time="1.0" translation="0 0 5.3"/>
                </part>
            </animation>
            <controls triggerNode="0>0|0|13|0" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate"/>
            
        </animatedObject>
    </animatedObjects>

    <infoTrigger triggerNode="0>8" />

    <husbandry saveId="Animals_COW" hasStatistics="false">
        <storage node="0>4|0" fillTypes="LIQUIDMANURE MILK STRAW MANURE WATER" isExtension="false">
            <capacity fillType="LIQUIDMANURE" capacity="150000" />
            <capacity fillType="MILK" capacity="50000" />
            <capacity fillType="STRAW" capacity="140000²" />
            <capacity fillType="MANURE" capacity="0" />
        </storage>

        <unloadingStation supportsExtension="true" storageRadius="50" hideFromPricesMenu="true">
            <unloadTrigger exactFillRootNode="0>3|1" fillTypes="STRAW" />
            <unloadTrigger fillTypes="MANURE MILK LIQUIDMANURE" />
        </unloadingStation>

        <loadingStation supportsExtension="true" storageRadius="50">
            <loadTrigger triggerNode="0>5|0" fillTypes="LIQUIDMANURE" fillLitersPerSecond="4000" />
            <loadTrigger triggerNode="0>6|0" fillTypes="MILK" fillLitersPerSecond="4000" />
        </loadingStation>

        <animals type="COW" maxNumAnimals="150" maxNumVisualAnimals="60">
            <navigation rootNode="0>10" filename="navigationMesh.i3d" />
            <loadingTrigger node="0>9" />
        </animals>

        <food capacity="140000" >
            <foodPlaces>
                <foodPlace node="0>2|2|0" />
                <foodPlace node="0>2|2|1" />
                <foodPlace node="0>2|2|2" />
                <foodPlace node="0>2|2|3" />
                <foodPlace node="0>2|2|4" />
                <foodPlace node="0>2|2|5" />
                <foodPlace node="0>2|2|6" />
                <foodPlace node="0>2|2|7" />
                <foodPlace node="0>2|2|8" />
            </foodPlaces>
            <dynamicFoodPlane node="0>2|0"  minY="-0.019" maxY="0.365" changeVisibility="true" defaultFillType="forage"/>
            <feedingTrough exactFillRootNode="0>2|1">
                <baleTrigger triggerNode="0>2|3"/>
            </feedingTrough>
        </food>

        <liquidManure />

        <milk>
            <milkingRobots>
                <milkingRobot linkNode="0>6|2" class="MilkingRobot" filename="$data/placeables/lely/astronautA5/astronautA5.xml" />
            </milkingRobots>
        </milk>

        <fences>
            <fence filename="$data/placeables/lizard/fencesFarm/cowFence/cowFenceSingleton.xml" hasStartPole="true" hasEndPole="true">
                <node node="fence1Node1" />
                <node node="fence1Node2" />
                <node node="fence1Node3" />
                <node node="fence1Node4" />
            </fence>
        </fences>

        <water automaticWaterSupply="true" />

        <straw>
            <manure factor="1.0" />
            <strawPlane node="0>3|0" minY="-0.259" maxY="0" colorChange="false" />
        </straw>

    </husbandry>

    <i3dMappings>
        <i3dMapping id="teleportNode" node="0>1" />
        <i3dMapping id="fillVolumeFood" node="0>2|0" />
        <i3dMapping id="exactFillRootNodeFood" node="0>2|1" />
        <i3dMapping id="foodPlace1" node="0>2|2|0" />
        <i3dMapping id="foodPlace2" node="0>2|2|1" />
        <i3dMapping id="foodPlace3" node="0>2|2|2" />
        <i3dMapping id="foodPlace4" node="0>2|2|3" />
        <i3dMapping id="foodPlace5" node="0>2|2|4" />
        <i3dMapping id="foodPlace6" node="0>2|2|5" />
        <i3dMapping id="foodPlace7" node="0>2|2|6" />
        <i3dMapping id="foodPlace8" node="0>2|2|7" />
        <i3dMapping id="foodPlace9" node="0>2|2|8" />
        <i3dMapping id="baleTrigger" node="0>2|3" />
        <i3dMapping id="storage" node="0>4|0" />
        <i3dMapping id="navigationRootNode" node="0>10" />
        <i3dMapping id="markerAnimals" node="0>11|1" />
        <i3dMapping id="markerFood" node="0>11|3" />
        <i3dMapping id="markerMilk" node="0>11|0" />
        <i3dMapping id="markerLiquidManure" node="0>11|2" />
        <i3dMapping id="infoTrigger" node="0>8" />
        <i3dMapping id="loadingTrigger" node="0>9" />
        <i3dMapping id="clearArea1Start" node="0>12|0" />
        <i3dMapping id="clearArea1Width" node="0>12|0|0" />
        <i3dMapping id="clearArea1Height" node="0>12|0|1" />
        <i3dMapping id="clearArea2Start" node="0>12|1" />
        <i3dMapping id="clearArea2Width" node="0>12|1|0" />
        <i3dMapping id="clearArea2Height" node="0>12|1|1" />
        <i3dMapping id="clearArea3Start" node="0>12|2" />
        <i3dMapping id="clearArea3Width" node="0>12|2|0" />
        <i3dMapping id="clearArea3Height" node="0>12|2|1" />
        <i3dMapping id="clearArea4Start" node="0>12|3" />
        <i3dMapping id="clearArea4Width" node="0>12|3|0" />
        <i3dMapping id="clearArea4Height" node="0>12|3|1" />
        <i3dMapping id="clearArea5Start" node="0>12|4" />
        <i3dMapping id="clearArea5Width" node="0>12|4|0" />
        <i3dMapping id="clearArea5Height" node="0>12|4|1" />
        <i3dMapping id="levelArea1Start" node="0>13|0" />
        <i3dMapping id="levelArea1Width" node="0>13|0|0" />
        <i3dMapping id="levelArea1Height" node="0>13|0|1" />
        <i3dMapping id="levelArea2Start" node="0>13|1" />
        <i3dMapping id="levelArea2Width" node="0>13|1|0" />
        <i3dMapping id="levelArea2Height" node="0>13|1|1" />
        <i3dMapping id="levelArea3Start" node="0>13|2" />
        <i3dMapping id="levelArea3Width" node="0>13|2|0" />
        <i3dMapping id="levelArea3Height" node="0>13|2|1" />
        <i3dMapping id="paintArea1Start" node="0>18|0" />
        <i3dMapping id="paintArea1Width" node="0>18|0|0" />
        <i3dMapping id="paintArea1Height" node="0>18|0|1" />
        <i3dMapping id="paintArea2Start" node="0>18|1" />
        <i3dMapping id="paintArea2Width" node="0>18|1|0" />
        <i3dMapping id="paintArea2Height" node="0>18|1|1" />
        <i3dMapping id="foliageArea1Start" node="0>17|0" />
        <i3dMapping id="foliageArea1Width" node="0>17|0|0" />
        <i3dMapping id="foliageArea1Height" node="0>17|0|1" />
        <i3dMapping id="foliageArea2Start" node="0>17|1" />
        <i3dMapping id="foliageArea2Width" node="0>17|1|0" />
        <i3dMapping id="foliageArea2Height" node="0>17|1|1" />
        <i3dMapping id="indoorArea1Start" node="0>15|0" />
        <i3dMapping id="indoorArea1Width" node="0>15|0|0" />
        <i3dMapping id="indoorArea1Height" node="0>15|0|1" />
        <i3dMapping id="indoorArea2Start" node="0>15|1" />
        <i3dMapping id="indoorArea2Width" node="0>15|1|0" />
        <i3dMapping id="indoorArea2Height" node="0>15|1|1" />
        <i3dMapping id="indoorArea3Start" node="0>15|2" />
        <i3dMapping id="indoorArea3Width" node="0>15|2|0" />
        <i3dMapping id="indoorArea3Height" node="0>15|2|1" />
        <i3dMapping id="testArea1Start" node="0>14|0" />
        <i3dMapping id="testArea1End" node="0>14|0|0" />
        <i3dMapping id="testArea2Start" node="0>14|1" />
        <i3dMapping id="testArea2End" node="0>14|1|0" />
        <i3dMapping id="testArea3Start" node="0>14|2" />
        <i3dMapping id="testArea3End" node="0>14|2|0" />
        <i3dMapping id="tipOcclusionUpdateArea1Start" node="0>16|0" />
        <i3dMapping id="tipOcclusionUpdateArea1End" node="0>16|0|0" />
        <i3dMapping id="tipOcclusionUpdateArea2Start" node="0>16|1" />
        <i3dMapping id="tipOcclusionUpdateArea2End" node="0>16|1|0" />
        <i3dMapping id="tipOcclusionUpdateArea3Start" node="0>16|2" />
        <i3dMapping id="tipOcclusionUpdateArea3End" node="0>16|2|0" />
        <i3dMapping id="fence1Node1" node="0>19|0|0" />
        <i3dMapping id="fence1Node2" node="0>19|0|1" />
        <i3dMapping id="fence1Node3" node="0>19|0|2" />
        <i3dMapping id="fence1Node4" node="0>19|0|3" />
    </i3dMappings>
</placeable>
