<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="simplePlaceable" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../shared/xml/schema/placeable.xsd">
    <storeData>
        <name>$l10n_shopItem_fenceGate</name>
        <functions>
            <function>$l10n_function_decoration</function>
        </functions>
        <image>store_cowFenceGate.dds</image>
        <price>750</price>
        <dailyUpkeep>0</dailyUpkeep>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <canBeSold>true</canBeSold>
        <showInStore>true</showInStore>
        <species>PLACEABLE</species>
        <category>fences</category>
        <brush>
            <type>placeable</type>
            <category>decoration</category>
            <tab>newFences</tab>
        </brush>
        <vertexBufferMemoryUsage>27904</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>5376</indexBufferMemoryUsage>
        <textureMemoryUsage>2097152</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>cowFenceGate.i3d</filename>
        <canBeRenamed>true</canBeRenamed>
        <boughtWithFarmland>true</boughtWithFarmland>
    </base>

    <placement useRandomYRotation="false" useManualYRotation="true" >
        <testAreas>
            <testArea startNode="testAreaStart01" endNode="testAreaEnd01" />
        </testAreas>
        <sounds>
            <place template="fenceMetalImp" />
            <destroy template="destroyFence" />
        </sounds>
    </placement>
    
    <animatedObjects>
        <animatedObject saveId="door" >
            <animation duration="1.5">
                <part node="0>0|2">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 90 0"/>
                </part>
            </animation>
            <controls triggerNode="0>0|3" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="0>0|4" template="fenceLoop" />
                <posEnd linkNode="0>0|4" template="fenceOpen" />
                <negEnd linkNode="0>0|4" template="fenceClose" />
            </sounds>
        </animatedObject>
    </animatedObjects>

    <clearAreas>
        <clearArea startNode="clearAreaStart01" widthNode="clearAreaWidth01" heightNode="clearAreaHeight01"/>
    </clearAreas>

    <leveling requireLeveling="true" maxSmoothDistance="10" maxSlope="75" maxEdgeAngle="30">
        <levelAreas>
            <levelArea startNode="clearAreaStart01" widthNode="clearAreaWidth01" heightNode="clearAreaHeight01" groundType="dirt"/>
        </levelAreas>
    </leveling>

    <indoorAreas/>

    <tipOcclusionUpdateAreas>
        <tipOcclusionUpdateArea startNode="tipOcclusionUpdateAreaStart01" endNode="tipOcclusionUpdateAreaEnd01" />
    </tipOcclusionUpdateAreas>

    <ai>
        <updateAreas>
            <updateArea startNode="tipOcclusionUpdateAreaStart01" endNode="tipOcclusionUpdateAreaEnd01" />
        </updateAreas>
    </ai>

    <i3dMappings>
        <i3dMapping id="testAreaStart01" node="0>1" />
        <i3dMapping id="testAreaEnd01" node="0>1|0" />
        <i3dMapping id="tipOcclusionUpdateAreaStart01" node="0>1" />
        <i3dMapping id="tipOcclusionUpdateAreaEnd01" node="0>1|0" />
        <i3dMapping id="clearAreaStart01" node="0>2" />
        <i3dMapping id="clearAreaWidth01" node="0>2|0" />
        <i3dMapping id="clearAreaHeight01" node="0>2|1" />
    </i3dMappings>
</placeable>
