<?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_shopItem_farmSilo</name>
        <functions>
            <function>$l10n_function_farmSilo</function>
        </functions>
        <image>$data/placeables/mapAS/grainSilo/store_grainSiloSmallDouble.png</image>
        <price>50000</price>
        <dailyUpkeep>120</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>297728</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>82176</indexBufferMemoryUsage>
        <textureMemoryUsage>786432</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

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

    <placement useRandomYRotation="false" useManualYRotation="true" >
        <testAreas>
            <testArea startNode="testAreaStart01" endNode="testAreaEnd01" />
        </testAreas>
        <sounds>
            <place template="siloImp" />
        </sounds>
    </placement>

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

    <leveling requireLeveling="true" maxSmoothDistance="1" maxSlope="75" maxEdgeAngle="30">
        <levelAreas>
            <levelArea startNode="levelAreaStart01" widthNode="levelAreaWidth01" heightNode="levelAreaHeight01" groundType="asphalt"/>
        </levelAreas>
    </leveling>

    <indoorAreas>
        <indoorArea startNode="indoorAreaStart01" widthNode="indoorAreaWidth01" heightNode="indoorAreaHeight01" />
    </indoorAreas>

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

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

        <splines>
            <spline node="aiSpline" />
        </splines>
    </ai>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart filename="$data/placeables/shared/sellingStationGeneric/sellingStationGenericMedium.i3d" node="0" linkNode="grainGutterLinkNode" />
        <dynamicallyLoadedPart filename="$data/placeables/mapAS/grainSilo/grainSiloSmallDoubleProps.i3d" node="0" linkNode="props"/>
    </dynamicallyLoadedParts>

    <infoTrigger triggerNode="infoTrigger"/>

    <silo>
        <loadingStation node="loadingTrigger" supportsExtension="true" storageRadius="50">
            <loadTrigger triggerNode="loadingTrigger" fillLitersPerSecond="8000" dischargeNode="dischargeNode" fillTypeCategories="BULK" aiNode="aiLoadingNode">
                <effectNode effectClass="PipeEffect" effectNode="pipeEffect"      materialType="pipe"           fadeTime="0.5" maxBending="0" controlPoint="4.8 0 0 0" />
                <effectNode                          effectNode="pipeEffectSmoke" materialType="unloadingSmoke" fadeTime="0.5" />
                <sounds>
                    <loading template="silosActive" />
                </sounds>
            </loadTrigger>
        </loadingStation>

        <unloadingStation supportsExtension="true" storageRadius="50">
            <unloadTrigger exactFillRootNode="exactFillRootNode" fillTypeCategories="BULK" aiNode="aiUnloadingNode"/>
			<baleTrigger triggerNode="baleTrigger" fillTypes="WOODCHIPS STRAW GRASS_WINDROW DRYGRASS_WINDROW FORAGE CHAFF SILAGE SUGARBEET_CUT"/>
			<palletTrigger triggerNode="palletTrigger" fillTypeCategories="SELLINGSTATION_FIELDFRUITS" priceScale="1" />
        </unloadingStation>

        <storages>
            <storage node="storage" fillTypeCategories="BULK" capacity="1000000" isExtension="true"/>
        </storages>
    </silo>

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

    <triggerMarkers>
        <triggerMarker node="markerLoading"   filename="$data/shared/assets/marker/markerIconLoad.i3d" />
        <triggerMarker node="markerUnloading" filename="$data/shared/assets/marker/markerIconUnload.i3d" />
    </triggerMarkers>

    <i3dMappings>
        <i3dMapping id="clearAreaStart01" node="0>0|0" />
        <i3dMapping id="clearAreaWidth01" node="0>0|0|0" />
        <i3dMapping id="clearAreaHeight01" node="0>0|0|1" />
        <i3dMapping id="levelAreaStart01" node="0>1|0" />
        <i3dMapping id="levelAreaWidth01" node="0>1|0|0" />
        <i3dMapping id="levelAreaHeight01" node="0>1|0|1" />
        <i3dMapping id="indoorAreaStart01" node="0>2|0" />
        <i3dMapping id="indoorAreaWidth01" node="0>2|0|0" />
        <i3dMapping id="indoorAreaHeight01" node="0>2|0|1" />
        <i3dMapping id="testAreaStart01" node="0>3|0" />
        <i3dMapping id="testAreaEnd01" node="0>3|0|0" />
        <i3dMapping id="tipOcclusionUpdateAreaStart01" node="0>4|0" />
        <i3dMapping id="tipOcclusionUpdateAreaEnd01" node="0>4|0|0" />
        <i3dMapping id="infoTrigger" node="0>5" />
        <i3dMapping id="loadingTrigger" node="0>6|0|0|0" />
        <i3dMapping id="dischargeNode" node="0>6|0|0|1" />
        <i3dMapping id="dischargeEffect" node="0>6|0|0|2" />
        <i3dMapping id="pipeEffect" node="0>6|0|0|2|0" />
        <i3dMapping id="pipeEffectSmoke" node="0>6|0|0|2|1" />
        <i3dMapping id="aiLoadingNode" node="0>6|0|0|3" />
        <i3dMapping id="markerLoading" node="0>6|0|1" />
        <i3dMapping id="exactFillRootNode" node="0>6|1|0" />
        <i3dMapping id="grainGutterLinkNode" node="0>6|1|1" />
        <i3dMapping id="aiUnloadingNode" node="0>6|1|2" />
        <i3dMapping id="markerUnloading" node="0>6|1|3" />
		<i3dMapping id="baleTrigger" node="0>6|1|4" />
		<i3dMapping id="palletTrigger" node="0>6|1|5" />
        <i3dMapping id="mapPosition" node="0>6|2" />
        <i3dMapping id="storage" node="0>6|3" />
        <i3dMapping id="teleportNode" node="0>6|4" />
        <i3dMapping id="aiSpline" node="0>6|5" />
        <i3dMapping id="props" node="0>7|0" />
    </i3dMappings>
</placeable>
