<?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>
            <en>Silo Facility</en>
            <de>Siloanlage</de>
		</name>
        <functions>
            <function>$l10n_function_farmSilo</function>
        </functions>
        <image>store/store_silo.dds</image>
        <price>250000</price>
        <dailyUpkeep>0</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>511232</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>89088</indexBufferMemoryUsage>
        <textureMemoryUsage>7274496</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>i3d/siloComplex.i3d</filename>
        <canBeRenamed>true</canBeRenamed>
        <boughtWithFarmland>false</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"/>
    </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="indoorArea1Start" widthNode="indoorArea1Width" heightNode="indoorArea1Height" />
    </indoorAreas>

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

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

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

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

    <infoTrigger triggerNode="infoTrigger"/>

    <silo>
        <loadingStation node="loadingTrigger" supportsExtension="true" storageRadius="50">
            <loadTrigger triggerNode="loadingTrigger" fillLitersPerSecond="2000" dischargeNode="dischargeNode" fillTypeCategories="FARMSILO ROOT_CROPS HAYLOFT" 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" />
            </loadTrigger>
        </loadingStation>

        <unloadingStation supportsExtension="true" storageRadius="50">
            <unloadTrigger exactFillRootNode="exactFillRootNode" fillTypeCategories="FARMSILO ROOT_CROPS HAYLOFT" aiNode="aiUnloadingNode"/>
				<baleTrigger triggerNode="baleTrigger" deleteLitersPerSecond="10000" fillTypeCategories="HAYLOFT"/>
                <palletTrigger triggerNode="palletTrigger" fillTypeCategories="ROOT_CROPS"/>
        </unloadingStation>

        <storages>
            <storage node="storage" fillTypeCategories="FARMSILO ROOT_CROPS HAYLOFT" capacity="15000000" isExtension="true"/>
        </storages>
    </silo>

    <i3dMappings>
        <i3dMapping id="mapPosition" node="0>7|0" />
        <i3dMapping id="storage" node="0>7|1" />
        <i3dMapping id="loadingTrigger" node="0>7|2|0" />
        <i3dMapping id="dischargeNode" node="0>7|2|1" />
        <i3dMapping id="pipeEffect" node="0>7|2|2|0" />
        <i3dMapping id="pipeEffectSmoke" node="0>7|2|2|1" />
        <i3dMapping id="aiLoadingNode" node="0>7|2|3" />
        <i3dMapping id="exactFillRootNode" node="0>7|3|0" />
        <i3dMapping id="aiUnloadingNode" node="0>7|3|1" />
        <i3dMapping id="infoTrigger" node="0>7|4" />
        <i3dMapping id="aiSpline" node="0>7|5" />
        <i3dMapping id="aiSpline1" node="0>7|6" />
        <i3dMapping id="baleTrigger" node="0>7|3|2" />
		<i3dMapping id="palletTrigger" node="0>7|3|3" />
        <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" />
        <i3dMapping id="markerLoading" node="0>8" />
        <i3dMapping id="markerUnloading" node="0>9" />
        <i3dMapping id="drop" node="0>10" />
    </i3dMappings>
</placeable>
