<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="silo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/placeable.xsd">
    <storeData>
        <name>$l10n_storeItem_silo</name>
        <functions>
            <function>$l10n_function_farmSilo</function>
        </functions>
        <image>store/store_silo.dds</image>
        <price>35000</price>
        <dailyUpkeep>50</dailyUpkeep>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>placeable</species>
        <category>silos</category>
        <brush>
            <type>placeable</type>
            <category>buildings</category>
            <tab>silos</tab>
        </brush>
        <vertexBufferMemoryUsage>748288</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>166912</indexBufferMemoryUsage>
        <textureMemoryUsage>4456448</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

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

    <placement useRandomYRotation="false" useManualYRotation="true" >
        <testAreas>
            <testArea startNode="0>5|0" endNode="0>5|0|0" />
        </testAreas>

        <sounds>
            <place template="siloImp" />
        </sounds>
    </placement>

    <clearAreas>
        <clearArea startNode="0>3|0" widthNode="0>3|0|0" heightNode="0>3|0|1"/>
    </clearAreas>

    <leveling requireLeveling="true" maxSmoothDistance="3" maxSlope="75" maxEdgeAngle="30">
        <levelAreas>
            <levelArea startNode="0>4|0" widthNode="0>4|0|0" heightNode="0>4|0|1" groundType="dirt"/>
        </levelAreas>
    </leveling>

     <indoorAreas>
        <indoorArea startNode="0>9|0" widthNode="0>9|0|0" heightNode="0>9|0|1" />
    </indoorAreas>

    <tipOcclusionUpdateAreas>
        <tipOcclusionUpdateArea startNode="0>6|0" endNode="0>6|0|0" />
    </tipOcclusionUpdateAreas>

    <ai>
        <updateAreas>
            <updateArea startNode="0>6|0" endNode="0>6|0|0" />
        </updateAreas>
        <splines>
            <spline node="0>0|2|1"   maxWidth="4.2"/>
            <spline node="0>0|2|0|4" maxWidth="4.2"/>
        </splines>
    </ai>

    <infoTrigger triggerNode="0>0|4"/>

    <silo>
        <loadingStation node="0>0|2|0|0" supportsExtension="true" storageRadius="50">
            <loadTrigger triggerNode="0>0|2|0|0" fillLitersPerSecond="2000" dischargeNode="0>0|2|0|1" fillTypeCategories="farmSilo" aiNode="0>0|2|0|3">
                <effectNode effectClass="PipeEffect" effectNode="0>0|2|0|2|0"      materialType="pipe"           fadeTime="0.5" maxBending="0" controlPoint="4.8 0 0 0"/>
                <effectNode                          effectNode="0>0|2|0|2|1" materialType="unloadingSmoke" fadeTime="0.5" />
            </loadTrigger>
        </loadingStation>

        <unloadingStation supportsExtension="true" storageRadius="50">
            <unloadTrigger exactFillRootNode="0>0|3|0" fillTypeCategories="farmSilo" aiNode="0>0|3|1"/>
        </unloadingStation>

        <storages>
            <storage node="0>0|1" fillTypeCategories="farmSilo" capacity="550000" isExtension="false"/>
        </storages>
    </silo>

    <hotspots>
        <hotspot type="UNLOADING" linkNode="0>0|0" teleportNode="0>10"/>
    </hotspots>

     <triggerMarkers>
        <triggerMarker node="0>2|0"   filename="$data/shared/assets/marker/markerIconLoad.i3d" id="LOAD"/>
        <triggerMarker node="0>2|1" filename="$data/shared/assets/marker/markerIconUnload.i3d" id="UNLOAD"/>
    </triggerMarkers>

      <animatedObjects>
        <animatedObject saveId="luz" >
           <animation duration="0.01">
               <part node="0>8|1|3|0">
                  <keyFrame time="0.0" visibility="false" />
				  <keyFrame time="0.001" visibility="true" />
               </part>
                <part node="0>8|1|4|0">
				  <keyFrame time="0.0" visibility="true" />
				  <keyFrame time="0.001" visibility="false" />
               </part>
               <part node="0>8|1|1|0">
                  <keyFrame time="0.0" rotation="0 0 0"/>
                  <keyFrame time="0.001" rotation="0 0 30"/>  
               </part>
           </animation>
           <controls triggerNode="0>8|1|3|2" posAction="ACTIVATE_HANDTOOL" posText="action_turnOnLight" negText="action_turnOffLight" />
           <sounds>
                <moving linkNode="0>8|1|1|0" template="lizardFloodLight" innerRadius="1" outerRadius="1" volumeScale="0.2" pitchScale="2"/>
            </sounds>
       </animatedObject>

       <animatedObject saveId="luz" >
           <animation duration="0.01">
               <part node="0>8|1|3|1">
                  <keyFrame time="0.0" visibility="false" />
				  <keyFrame time="0.001" visibility="true" />
               </part>
                <part node="0>8|1|4|1">
				  <keyFrame time="0.0" visibility="true" />
				  <keyFrame time="0.001" visibility="false" />
               </part>
                <part node="0>8|1|2|0">
                  <keyFrame time="0.0" rotation="0 0 0"/>
                  <keyFrame time="0.001" rotation="0 0 30"/>  
               </part>
           </animation>
           <controls triggerNode="0>8|1|3|3" posAction="ACTIVATE_HANDTOOL" posText="action_turnOnLight" negText="action_turnOffLight" />
           <sounds>
                <moving linkNode="0>8|1|2|0" template="lizardFloodLight" innerRadius="1" outerRadius="1" volumeScale="0.2" pitchScale="2"/>
            </sounds>
       </animatedObject>
    </animatedObjects>
     
</placeable>
