<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="silo">
    <storeData>
        <name>Forage Storage</name>
        <functions>
            <function>$l10n_function_Storage</function>
        </functions>
        <image>store_both.dds</image>
        <price>25000</price>
        <dailyUpkeep>1</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>123904</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>24832</indexBufferMemoryUsage>
        <textureMemoryUsage>4521984</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

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

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

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

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

    <indoorAreas>
        <indoorArea startNode="indoorAreaStart" widthNode="indoorAreaWidth" heightNode="indoorAreaHeight"/>
    </indoorAreas>

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

    <ai>
        <updateAreas>
            <updateArea startNode="tipOcclusionUpdateArea1Start" endNode="tipOcclusionUpdateArea1End" />
        </updateAreas>
        <splines>
            <spline node="aiSpline" />
        </splines>
    </ai>
    <infoTrigger triggerNode="infoTrigger"/>

    <silo>
        <loadingStation node="loadingTrigger" supportsExtension="true" storageRadius="50">
            <loadTrigger triggerNode="loadingTrigger" fillLitersPerSecond="2000" dischargeNode="dischargeNode" fillTypes="STRAW SILAGE DRYGRASS_WINDROW FORAGE" aiNode="aiLoadingNode">
            <effectNode effectClass="PipeEffect" effectNode="0>6|1|0|2|0" materialType="unloading" materialTypeId="1" fadeTime="0.5"/>
            <effectNode                          effectNode="0>6|1|0|2|1" materialType="smoke"     materialTypeId="1" fadeTime="0.5"/>
			<effectNode effectClass="PipeEffect" effectNode="0>6|1|0|2|2" materialType="unloading" materialTypeId="1" fadeTime="0.5"/>
			<effectNode effectClass="PipeEffect" effectNode="0>6|1|0|2|3" materialType="unloading" materialTypeId="1" fadeTime="0.5"/>
			<effectNode effectClass="PipeEffect" effectNode="0>6|1|0|2|4" materialType="unloading" materialTypeId="1" fadeTime="0.5"/>
            </loadTrigger>
        </loadingStation>

        <unloadingStation supportsExtension="true" storageRadius="10">
            <unloadTrigger exactFillRootNode="exactFillRootNode" fillTypes="STRAW SILAGE DRYGRASS_WINDROW FORAGE" aiNode="aiUnloadingNode"/>
        </unloadingStation>

        <storages>
            <storage node="storage" fillTypes="STRAW SILAGE DRYGRASS_WINDROW FORAGE" capacity="1000000" isExtension="true"/>
        </storages>
    </silo>

    <hotspots>
        <hotspot type="UNLOADING" linkNode="mapPosition" teleportNode="mapPosition"/>
    </hotspots>

    <triggerMarkers>
        <triggerMarker node="markerLoading"   filename="$data/shared/assets/marker/markerIcons.xml" id="LOAD" />
        <triggerMarker node="markerUnloading" filename="$data/shared/assets/marker/markerIcons.xml" id="UNLOAD" />
    </triggerMarkers>

    <i3dMappings>
        <i3dMapping id="mapPosition" node="0>6|3" />
        <i3dMapping id="storage" node="0>6|2" />
        <i3dMapping id="loadingTrigger" node="0>6|1|0|0" />
        <i3dMapping id="dischargeNode" node="0>6|1|0|1" />
        <i3dMapping id="aiLoadingNode" node="0>6|5" />
        <i3dMapping id="markerLoading" node="0>6|1|1" />
        <i3dMapping id="exactFillRootNode" node="0>6|0|0|0" />
        <i3dMapping id="aiUnloadingNode" node="0>6|6" />
        <i3dMapping id="markerUnloading" node="0>6|0|0|1" />
        <i3dMapping id="infoTrigger" node="0>6|4" />
        <i3dMapping id="aiSpline" node="0>6|7" />
        <i3dMapping id="clearArea1Start" node="0>1|0" />
        <i3dMapping id="clearArea1Width" node="0>1|0|0" />
        <i3dMapping id="clearArea1Height" node="0>1|0|1" />
        <i3dMapping id="levelArea1Start" node="0>1|0" />
        <i3dMapping id="levelArea1Width" node="0>1|0|0" />
        <i3dMapping id="levelArea1Height" node="0>1|1|1" />
        <i3dMapping id="indoorAreaStart" node="0>10|0" />
        <i3dMapping id="indoorAreaWidth" node="0>10|0|0" />
        <i3dMapping id="indoorAreaHeight" node="0>10|0|1" />
        <i3dMapping id="tipOcclusionUpdateArea1Start" node="0>8|0" />
        <i3dMapping id="tipOcclusionUpdateArea1End" node="0>8|0|0" />
        <i3dMapping id="testArea1Start" node="0>7|0" />
        <i3dMapping id="testArea1End" node="0>7|0|0" />
    </i3dMappings>
</placeable>