<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="chickenHusbandry" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/placeable.xsd">
    <storeData>
        <name>$l10n_storeItem_OldChickenCoop</name>
        <image>store_OldChickenCoop.png</image>
        <price>9500</price>
        <functions>
            <function>$l10n_function_animalPenChicken</function>
        </functions>
        <lifetime>1000</lifetime>
        <dailyUpkeep>10</dailyUpkeep>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>placeable</species>
        <category>animalpens</category>
        <brush>
            <type>placeable</type>
            <category>animals</category>
            <tab>chickens</tab>
        </brush>
        <storeIconRendering>
            <settings cameraXRot="-20" cameraYRot="50" advancedBoundingBox="true"/>
        </storeIconRendering>
        <audioMemoryUsage>0</audioMemoryUsage>
        <vertexBufferMemoryUsage>258560</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>40192</indexBufferMemoryUsage>
        <textureMemoryUsage>11796480</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

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

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

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

    <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" />
        <triggerMarker node="markerEggsDecal1" adjustToGround="true" />
        <triggerMarker node="markerEggsDecal2" adjustToGround="true" />
        <triggerMarker node="markerEggsDecal3" adjustToGround="true" />
        <triggerMarker node="markerEggsDecal4" adjustToGround="true" />
    </triggerMarkers>

    <tipOcclusionUpdateAreas>
        <tipOcclusionUpdateArea startNode="tipOcclusionUpdateArea1Start" endNode="tipOcclusionUpdateArea1End" />
    </tipOcclusionUpdateAreas>

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

    <hotspots>
        <hotspot type="CHICKEN" teleportNode="teleportNode" />
    </hotspots>
	
	<animatedObjects>
        <animatedObject saveId="door1" >
            <animation duration="3">
                <part node="doorRotate">
                    <keyFrame time="0" rotation="0 0 0"/>
                    <keyFrame time="1" rotation="0 -89.388 0"/>
                </part>
            </animation>
            <controls triggerNode="door1Trigger" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
            <sounds>
                <moving template="fenceLoop"  linkNode="doorRotate" />
                <posEnd template="fenceOpen"  linkNode="doorRotate" />
                <negEnd template="fenceClose" linkNode="doorRotate" />
            </sounds>
        </animatedObject>
    </animatedObjects>

    <infoTrigger triggerNode="infoTrigger" />

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

        <animals type="CHICKEN" maxNumAnimals="35" >
            <navigation rootNode="navigationRootNode" filename="navigationMesh.i3d" />
            <loadingTrigger node="loadingTrigger" />
        </animals>

        <food capacity="1000" >
            <foodPlane node="foodPlane" minY="0.042" maxY="0.165" changeVisibility="true" 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" />
            </spawnPlaces>
        </pallets>
    </husbandry>

    <i3dMappings>
        <i3dMapping id="teleportNode" node="0>0" />
        <i3dMapping id="foodPlane" node="0>1|0" />
        <i3dMapping id="exactFillRootNodeFood" node="0>1|1" />
        <i3dMapping id="foodPlace1" node="0>1|2|0" />
        <i3dMapping id="foodPlace2" node="0>1|2|1" />
        <i3dMapping id="storage" node="0>2" />
        <i3dMapping id="navigationRootNode" node="0>3" />
        <i3dMapping id="navigationMesh" node="0>3|0" />
        <i3dMapping id="palletTrigger" node="0>4|0" />
        <i3dMapping id="palletArea1Start" node="0>4|1" />
        <i3dMapping id="palletArea1End" node="0>4|1|0" />
        <i3dMapping id="palletArea2Start" node="0>4|2" />
        <i3dMapping id="palletArea2End" node="0>4|2|0" />
        <i3dMapping id="markerFood" node="0>5|0" />
        <i3dMapping id="markerEggsDecal1" node="0>5|1|0" />
        <i3dMapping id="markerEggsDecal2" node="0>5|1|1" />
        <i3dMapping id="markerEggsDecal3" node="0>5|1|2" />
        <i3dMapping id="markerEggsDecal4" node="0>5|1|3" />
        <i3dMapping id="markerAnimals" node="0>5|2" />
        <i3dMapping id="infoTrigger" node="0>7" />
        <i3dMapping id="loadingTrigger" node="0>8" />
        <i3dMapping id="clearArea1Start" node="0>9|0" />
        <i3dMapping id="clearArea1Width" node="0>9|0|0" />
        <i3dMapping id="clearArea1Height" node="0>9|0|1" />
        <i3dMapping id="levelArea1Start" node="0>11|0" />
        <i3dMapping id="levelArea1Width" node="0>11|0|0" />
        <i3dMapping id="levelArea1Height" node="0>11|0|1" />
        <i3dMapping id="testArea1Start" node="0>12|0" />
        <i3dMapping id="testArea1End" node="0>12|0|0" />
        <i3dMapping id="indoorArea1Start" node="0>13|0" />
        <i3dMapping id="indoorArea1Width" node="0>13|0|0" />
        <i3dMapping id="indoorArea1Height" node="0>13|0|1" />
        <i3dMapping id="tipOcclusionUpdateArea1Start" node="0>14|0" />
        <i3dMapping id="tipOcclusionUpdateArea1End" node="0>14|0|0" />
		<!-- doors -->
        <i3dMapping id="doorRotate" node="0>6|0|0" />
        <i3dMapping id="door1Trigger" node="0>6|0|1" />
    </i3dMappings>
</placeable>
