<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="chickenHusbandry">
    <storeData>
        <name>$l10n_storeItem_animalBarnChickenBig</name>
        <image>store_pen.dds</image>
        <price>15000</price>
        <canBeSold>true</canBeSold>
        <lifetime>1000</lifetime>
        <dailyUpkeep>1</dailyUpkeep>
        <rotation>180</rotation>
        <brand>NONE</brand>
        <species>placeable</species>
        <category>animalpens</category>
        <brush>
            <type>placeable</type>
            <category>animals</category>
            <tab>chickens</tab>
        </brush>
        <vertexBufferMemoryUsage>276480</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>33280</indexBufferMemoryUsage>
        <textureMemoryUsage>5177344</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

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

	<placement useRandomYRotation="false" useManualYRotation="true" >
		<testAreas>
			<testArea startNode="testStart" endNode="testEnd" />
		</testAreas>

        <sounds>
            <place template="medImp" />
            <placeLayered template="chickenLayer" />
        </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"/>
        <indoorArea startNode="indoorArea2Start" widthNode="indoorArea2Width" heightNode="indoorArea2Height"/>
    </indoorAreas>

    <ai>
        <updateAreas>
            <updateArea startNode="tipOcclusionUpdateArea1Start" endNode="tipOcclusionUpdateArea1End" />
        </updateAreas>
    </ai>

    <triggerMarkers>
        <triggerMarker node="markerFood" filename="$data/shared/assets/marker/markerIcons.xml" id="UNLOAD" />
        <triggerMarker node="markerAnimals" filename="$data/shared/assets/marker/markerIcons.xml" id="ANIMALS" />
    </triggerMarkers>

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

    <infoTrigger triggerNode="infoTrigger" />

    <husbandry saveId="Animals_CHICKEN" hasStatistics="false">

        <animals type="CHICKEN" maxNumAnimals="350" maxNumVisualAnimals="75">
            <navigation rootNode="navigationRootNode" filename="navMesh.i3d" />
            <loadingTrigger node="loadingTrigger" />
        </animals>

        <food capacity="30000" >
            <foodPlane node="foodPlane" minY="-0.29" maxY="0" changeVisibility="false" defaultFillType="WHEAT"/>
            <feedingTrough exactFillRootNode="exactFillRootNodeFood" />
        </food>

        <pallets fillType="EGG" maxNumPallets="8" unitText="$l10n_unit_pieces">
            <palletTrigger node="palletTrigger" />
            <spawnPlaces>
                <spawnPlace startNode="palletArea1Start" endNode="palletArea1End" />
                <spawnPlace startNode="palletArea2Start" endNode="palletArea2End" />
                <spawnPlace startNode="palletArea3Start" endNode="palletArea3End" />
                <spawnPlace startNode="palletArea4Start" endNode="palletArea4End" />
                <spawnPlace startNode="palletArea5Start" endNode="palletArea5End" />
            </spawnPlaces>
        </pallets>
    </husbandry>

    <animatedObjects>
        <animatedObject saveId="gate" >
            <animation duration="3">
                <part node="0>15|1">
				    <keyFrame time="0" rotation="0 0 0" />
				    <keyFrame time="1" rotation="0 90 0" />
			    </part>
            </animation>
            <controls triggerNode="0>15|0" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving file="sounds/OpenGateDoorSound.ogg" loops="1" linkNode="0>15|0" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
            </sounds>
        </animatedObject>
    </animatedObjects>

    <i3dMappings>
        <i3dMapping id="teleportNode" node="0>4" />
        <i3dMapping id="foodPlane" node="0>2|1" />
        <i3dMapping id="exactFillRootNodeFood" node="0>2|0|0" />
        <i3dMapping id="foodPlace1" node="0>2|0|1|0" />
        <i3dMapping id="foodPlace2" node="0>2|0|1|1" />
        <i3dMapping id="foodPlace3" node="0>2|0|1|2" />
        <i3dMapping id="foodPlace4" node="0>2|0|1|3" />
        <i3dMapping id="storage" node="0>5" />
        <i3dMapping id="navigationRootNode" node="0>6" />
        <i3dMapping id="palletTrigger" node="0>7|0" />
        <i3dMapping id="palletArea1Start" node="0>7|1" />
        <i3dMapping id="palletArea1End" node="0>7|1|0" />
        <i3dMapping id="palletArea2Start" node="0>7|2" />
        <i3dMapping id="palletArea2End" node="0>7|2|0" />
        <i3dMapping id="palletArea3Start" node="0>7|3" />
        <i3dMapping id="palletArea3End" node="0>7|3|0" />
        <i3dMapping id="palletArea4Start" node="0>7|4" />
        <i3dMapping id="palletArea4End" node="0>7|4|0" />
        <i3dMapping id="palletArea5Start" node="0>7|5" />
        <i3dMapping id="palletArea5End" node="0>7|5|0" />
        <i3dMapping id="markerFood" node="0>13" />
        <i3dMapping id="markerAnimals" node="0>12" />
        <i3dMapping id="infoTrigger" node="0>8" />
        <i3dMapping id="loadingTrigger" node="0>9" />
        <i3dMapping id="clearArea1Start" node="0>14|0" />
        <i3dMapping id="clearArea1Width" node="0>14|0|0" />
        <i3dMapping id="clearArea1Height" node="0>14|0|1" />
        <i3dMapping id="levelArea1Start" node="0>14|1" />
        <i3dMapping id="levelArea1Width" node="0>14|1|0" />
        <i3dMapping id="levelArea1Height" node="0>14|1|1" />
        <i3dMapping id="indoorArea1Start" node="0>14|2" />
        <i3dMapping id="indoorArea1Width" node="0>14|2|0" />
        <i3dMapping id="indoorArea1Height" node="0>14|2|1" />
        <i3dMapping id="indoorArea2Start" node="0>14|3" />
        <i3dMapping id="indoorArea2Width" node="0>14|3|0" />
        <i3dMapping id="indoorArea2Height" node="0>14|3|1" />
        <i3dMapping id="tipOcclusionUpdateArea1Start" node="0>14|5|0" />
        <i3dMapping id="tipOcclusionUpdateArea1End" node="0>14|5|0|0" />
		<i3dMapping id="testStart" node="0>14|4|0" />
		<i3dMapping id="testEnd" node="0>14|4|0|0" />
    </i3dMappings>
</placeable>