<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="cowHusbandryBarnMilk" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://validation.gdn.giants-software.com/xml/fs25/placeable.xsd">
    <storeData>
        <name>$l10n_storeItem_animalBarnCowSmall</name>
        <image>store/store_cow01.png</image>
        <price>5000</price>
        <functions>
            <function>$l10n_function_animalPenCow</function>
            <function>$l10n_function_manualwater</function>
            <function>$l10n_function_adjustableMeadow</function>
        </functions>
        <lifetime>1000</lifetime>
        <dailyUpkeep>1</dailyUpkeep>
        <rotation>0</rotation>
        <brand>FARMING</brand>
        <species>PLACEABLE</species>
        <category>animalpens</category>
        <brush>
            <type>husbandry</type>
            <category>animals</category>
            <tab>cows</tab>
        </brush>
        <vertexBufferMemoryUsage>158464</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>52224</indexBufferMemoryUsage>
        <textureMemoryUsage>2097152</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

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

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

        <sounds>
            <place template="smallImp" />
            <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" />
    </indoorAreas>

    <foliageAreas />

    <triggerMarkers>
        <triggerMarker node="markerWater"   filename="$data/shared/assets/marker/markerIconWater.i3d" />
        <triggerMarker node="markerFood"    filename="$data/shared/assets/marker/markerIconFood.i3d" />
        <triggerMarker node="markerAnimals" filename="$data/shared/assets/marker/markerIconAnimals.i3d" />
        <triggerMarker node="markerMilk"    filename="$data/shared/assets/marker/markerIconMilk.i3d" />
        <triggerMarker node="markerBales"   filename="$data/shared/assets/marker/markerIconBales.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>

    <infoTrigger triggerNode="infoTrigger" />

    <husbandry saveId="Animals_COW" hasStatistics="false">
         <animals type="COW" sqmPerAnimal="100" maxNumAnimals="7">
            <navigation rootNode="navigationRootNode" />
            <loadingTrigger node="loadingTrigger" />
        </animals>
        <food capacity="50000" >
            <foodPlaces>
                <foodPlace node="foodPlace1" />
            </foodPlaces>
            <foodPlane node="foodPlane" minY="0.511" maxY="0.680" changeVisibility="true" defaultFillType="FORAGE"/>
            <unloadTrigger exactFillRootNode="exactFillRootNodeFood" aiNode="foodAINode"/>
            <baleTrigger triggerNode="baleTrigger" deleteLitersPerSecond="200"/>
        </food>
        <water automaticWaterSupply="false" >
            <waterPlane node="waterPlane" minY="0.03" maxY="0.175" />
            <waterPlaces>
                <waterPlace node="waterPlace1" />
            </waterPlaces>
        </water>

        <storage node="storage" fillTypes="WATER MILK BUFFALOMILK LIQUIDMANURE STRAW" isExtension="false">
            <capacity fillType="WATER" capacity="20000" />
            <capacity fillType="MILK" capacity="10000" />
            <capacity fillType="BUFFALOMILK" capacity="10000" />
            <capacity fillType="LIQUIDMANURE" capacity="0" />
            <capacity fillType="STRAW" capacity="0" />
        </storage>

        <unloadingStation supportsExtension="true" storageRadius="25" hideFromPricesMenu="true">
            <unloadTrigger exactFillRootNode="exactFillRootNodeWater" fillTypes="WATER" aiNode="waterAINode"/>
            <unloadTrigger fillTypes="MILK BUFFALOMILK LIQUIDMANURE STRAW" />
        </unloadingStation>

        <loadingStation supportsExtension="true" storageRadius="25" fillTypes="MILK BUFFALOMILK">
            <loadTrigger triggerNode="milkTrigger" fillTypes="MILK BUFFALOMILK" fillLitersPerSecond="2000" aiNode="aiLoadingNodeMilk"/>
        </loadingStation>

        <fence xmlFilename="xml/grass.xml">
            <sections>
                <section segmentId="SEGMENT" customizable="true">
                    <node node="fence1Node1" />
                    <node node="fence1Node2" />
                    <node node="fence1Node3" />
                    <node node="fence1Node4" />
                    <node node="fence1Node5" />
                    <node node="fence1Node6" />
                </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>

            <clearTask>
                <fruit type="UNKNOWN" growthState="0" />
                <ground type="NONE" />
                <terrainGroundType name="gravel" />
                <polygon>
                    <node node="clearAreaPoint1" />
                    <node node="clearAreaPoint2" />
                    <node node="clearAreaPoint3" />
                    <node node="clearAreaPoint4" />
                    <node node="clearAreaPoint5" />
                    <node node="clearAreaPoint6" />
                </polygon>
            </clearTask>
        </meadow>
    </husbandry>

    <i3dMappings>
        <i3dMapping id="clearArea1Start" node="0>0|0" />
        <i3dMapping id="clearArea1Width" node="0>0|0|0" />
        <i3dMapping id="clearArea1Height" node="0>0|0|1" />
        <i3dMapping id="levelArea1Start" node="0>1|0" />
        <i3dMapping id="levelArea1Width" node="0>1|0|0" />
        <i3dMapping id="levelArea1Height" node="0>1|0|1" />
        <i3dMapping id="testArea1Start" node="0>2|0" />
        <i3dMapping id="testArea1End" node="0>2|0|0" />
        <i3dMapping id="indoorArea1Start" node="0>3|0" />
        <i3dMapping id="indoorArea1Width" node="0>3|0|0" />
        <i3dMapping id="indoorArea1Height" node="0>3|0|1" />
        <i3dMapping id="tipOcclusionUpdateArea1Start" node="0>4|0" />
        <i3dMapping id="tipOcclusionUpdateArea1End" node="0>4|0|0" />
        <i3dMapping id="exactFillRootNodeFood" node="0>5|1" />
        <i3dMapping id="foodPlane" node="0>5|2" />
        <i3dMapping id="baleTrigger" node="0>5|3" />
        <i3dMapping id="foodPlace1" node="0>5|4|0" />
        <i3dMapping id="foodAINode" node="0>5|5" />
        <i3dMapping id="teleportNode" node="0>6" />
        <i3dMapping id="storage" node="0>7" />
        <i3dMapping id="clearAreaPoint1" node="0>8|0|0" />
        <i3dMapping id="clearAreaPoint2" node="0>8|0|1" />
        <i3dMapping id="clearAreaPoint3" node="0>8|0|2" />
        <i3dMapping id="clearAreaPoint4" node="0>8|0|3" />
        <i3dMapping id="clearAreaPoint5" node="0>8|0|4" />
        <i3dMapping id="clearAreaPoint6" node="0>8|0|5" />
        <i3dMapping id="navigationRootNode" node="0>9" />
        <i3dMapping id="navmeshBlockingNode" node="0>9|0" />
        <i3dMapping id="exactFillRootNodeWater" node="0>10|0" />
        <i3dMapping id="waterPlace1" node="0>10|1|0" />
        <i3dMapping id="waterAINode" node="0>10|2" />
        <i3dMapping id="waterPlane" node="0>10|3" />
        <i3dMapping id="infoTrigger" node="0>11" />
        <i3dMapping id="loadingTrigger" node="0>12" />
        <i3dMapping id="fence1Node1" node="0>13|0|0|0" />
        <i3dMapping id="fence1Node2" node="0>13|0|0|1" />
        <i3dMapping id="fence1Node3" node="0>13|0|0|2" />
        <i3dMapping id="fence1Node4" node="0>13|0|0|3" />
        <i3dMapping id="fence1Node5" node="0>13|0|0|4" />
        <i3dMapping id="fence1Node6" node="0>13|0|0|5" />
        <i3dMapping id="markerAnimals" node="0>13|1|0" />
        <i3dMapping id="markerFood" node="0>13|1|1" />
        <i3dMapping id="markerWater" node="0>13|1|2" />
        <i3dMapping id="markerBales" node="0>13|1|3" />
        <i3dMapping id="markerMilk" node="0>13|1|4" />
        <i3dMapping id="milkTrigger" node="0>15|0" />
        <i3dMapping id="aiLoadingNodeMilk" node="0>15|1" />
    </i3dMappings>
</placeable>
