<?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_name</name>
        <image>store_Ivoy_Cereal.png</image>
        <price>80000</price>
        <functions>
            <function>$l10n_description</function>
        </functions>
        <lifetime>1000</lifetime>
        <canBeSold>true</canBeSold>
        <dailyUpkeep>30</dailyUpkeep>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>placeable</species>
        <category>silos</category>
        <brush>
            <type>placeable</type>
            <category>buildings</category>
            <tab>silos</tab>
        </brush>
        <vertexBufferMemoryUsage>3094784</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>589568</indexBufferMemoryUsage>
        <textureMemoryUsage>4915200</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>ivoyCereal.i3d</filename>
        <canBeRenamed>true</canBeRenamed>
        <boughtWithFarmland>true</boughtWithFarmland>
    </base>
    
    <placement useRandomYRotation="false" useManualYRotation="true" >
        <testAreas>
            <testArea startNode="testArea1Start" endNode="testArea1End" />
        </testAreas>
        <sounds>
            <place template="siloImp" />
        </sounds>
    </placement>

    <clearAreas>
        <clearArea startNode="clearArea1Start" widthNode="clearArea1Width" heightNode="clearArea1Height"/>
        <clearArea startNode="0>0|1" widthNode="0>0|1|0" heightNode="0>0|1|1"/>
    </clearAreas>

    <leveling requireLeveling="true" maxSmoothDistance="10" maxSlope="75" maxEdgeAngle="30">
        <levelAreas>
            <levelArea startNode="levelArea1Start" widthNode="levelArea1Width" heightNode="levelArea1Height" groundType="gravel"/>
            <levelArea startNode="0>1|1" widthNode="0>1|1|0" heightNode="0>1|1|1" groundType="gravel"/>
        </levelAreas>
    </leveling>

    <indoorAreas>
        <indoorArea startNode="indoorArea1Start" widthNode="indoorArea1Width" heightNode="indoorArea1Height" />
        <indoorArea startNode="0>2|1" widthNode="0>2|1|0" heightNode="0>2|1|1" />
    </indoorAreas>

    <ai>
        <updateAreas>
            <updateArea startNode="0>14|0" endNode="0>14|0|0" />
        </updateAreas>
        <splines>
            <spline node="0>11|5" />
        </splines>
    </ai>

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

    <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="indoorArea1Start" node="0>2|0" />
        <i3dMapping id="indoorArea1Width" node="0>2|0|0" />
        <i3dMapping id="indoorArea1Height" node="0>2|0|1" />
        <i3dMapping id="testArea1Start" node="0>3|0" />
        <i3dMapping id="testArea1End" node="0>3|0|0" />
        <i3dMapping id="tipOcclusionUpdateArea1Start" node="0>4|0" />
        <i3dMapping id="tipOcclusionUpdateArea1End" node="0>4|0|0" />
    </i3dMappings>

    <animatedObjects>
        <animatedObject saveId="light" >
            <animation duration="0.1">
                <part node="0>7|0|2">
                    <keyFrame time="0.0" visibility="true"/>
                    <keyFrame time="1" visibility="false"/>
                </part>
                <part node="0>7|0|1">
                    <keyFrame time="0.0" visibility="false"/>
                    <keyFrame time="1" visibility="true"/>
                </part>
            </animation>
            <controls triggerNode="0>7|0|0" posAction="ACTIVATE_HANDTOOL" posText="On" negText="Off" />
        </animatedObject>
    </animatedObjects>

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

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

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

        <storages>
            <storage node="0>11|1" fillTypeCategories="farmSilo" capacity="500000" isExtension="true"/>
        </storages>
    </silo>

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

    <triggerMarkers>
        <triggerMarker node="0>12"   filename="$data/shared/assets/marker/markerIconLoad.i3d" />
        <triggerMarker node="0>13" filename="$data/shared/assets/marker/markerIconUnload.i3d" />
    </triggerMarkers>
    
</placeable>
