<?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_schacht_wasser</name>
        <image>store_Guelleschacht.png</image>
        <functions>
            <function>$l10n_function_schacht_water</function>
        </functions>
        <price>30000</price>
        <dailyUpkeep>5</dailyUpkeep>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>placeable</species>
        <category>fillableTanks</category>
        <brush>
            <type>placeable</type>
            <category>buildings</category>
            <tab>containers</tab>
        </brush>

        <storeIconRendering>
            <settings cameraXRot="-25" advancedBoundingBox="true" />
        </storeIconRendering>
        <vertexBufferMemoryUsage>46080</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>12288</indexBufferMemoryUsage>
        <textureMemoryUsage>2752512</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>Guelleschacht_water.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" pitchScale="1.2"/>
        </sounds>
    </placement>

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

    <leveling requireLeveling="true" maxSmoothDistance="10" maxSlope="75" maxEdgeAngle="30">
        <levelAreas>
            <levelArea startNode="clearArea1Start" widthNode="clearArea1Width" heightNode="clearArea1Height" groundType="dirt"/>
        </levelAreas>
    </leveling>

    <indoorAreas/>

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

    <ai>
        <updateAreas>
            <updateArea startNode="tipOcclusionUpdateArea1Start" endNode="tipOcclusionUpdateArea1End" />
        </updateAreas>
    </ai>

    <infoTrigger triggerNode="infoTrigger"/>

    <silo playerActionTrigger="refillPlayerTrigger">
        <loadingStation node="loadingTrigger" supportsExtension="false" >
            <loadTrigger triggerNode="loadingTrigger" aiNode="loadingTriggerAINode" fillLitersPerSecond="2000" fillTypes="Water"/>
        </loadingStation>

        <unloadingStation supportsExtension="false" >
            <unloadTrigger exactFillRootNode="exactFillRootNode" aiNode="unloadingStationAINode" fillTypes="Water"/>
        </unloadingStation>

        <storages>
            <storage node="storage" fillTypes="Water" capacity="500000" isExtension="false">
                <startFillLevel fillType="Water" fillLevel="5000" />
            </storage>
        </storages>
    </silo>

    <hotspots>
        <hotspot type="LOADING" linkNode="mapPosition"  teleportNode="refillMarker" />
    </hotspots>

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

	<animatedObjects>
        <animatedObject saveId="gate1"> <!-- Deckel -->
            <animation duration="2">
                <part node="manHoleDE02">
                    <keyFrame time="0.0" translation="0 1.277 -0.146" rotation="0 0 0" />
                    <keyFrame time="0.3" translation="0 1.35 -0.146" rotation="0 0 0" />
                    <keyFrame time="0.6" translation="-0.397 1.35 0.015" rotation="0 0 0" />
                    <keyFrame time="0.8" translation="-0.439 1.275 0.09" rotation="21.572 0 55.015" />
                    <keyFrame time="1" translation="-0.53 0.732 0.145" rotation="26.248 -5.299 68.044" />
                </part>
            </animation>
            <controls triggerNode="gate1_trigger" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving template="fenceMetalLoop" linkNode="slidingmanHoleLoop" />
                <posEnd template="fenceMetalOpen" linkNode="slidingmanHoleLoop" />
                <negEnd template="fenceMetalClose" linkNode="slidingmanHoleLoop" />
            </sounds>
        </animatedObject>
	</animatedObjects>
	
    <i3dMappings>
        <i3dMapping id="gate1" node="0>4" />
        <i3dMapping id="manHoleDE02" node="0>4|1" />
        <i3dMapping id="gate1_trigger" node="0>4|0" />
        <i3dMapping id="slidingmanHoleLoop" node="0>4|2" />
        <i3dMapping id="Schacht" node="0>0" />
        <i3dMapping id="Warnbalken" node="0>1" />
        <i3dMapping id="Colli1" node="0>2" />
        <i3dMapping id="Rohr" node="0>4" />
        <i3dMapping id="refillMarker" node="1>0|3" />
        <i3dMapping id="refillPlayerTrigger" node="1>0|2" />
        <i3dMapping id="mapPosition" node="1>0|5" />
        <i3dMapping id="teleportNode" node="1>0|5" />
        <i3dMapping id="storage" node="1>0|4" />
        <i3dMapping id="loadingStation" node="1>0|1" />
        <i3dMapping id="loadingTrigger" node="1>0|1|0" />
        <i3dMapping id="loadingTriggerAINode" node="1>0|1|1" />
        <i3dMapping id="unloadingStationAINode" node="1>0|0|1" />
        <i3dMapping id="unloadingStation" node="1>0|0" />
        <i3dMapping id="exactFillRootNode" node="1>0|0|0" />
        <i3dMapping id="infoTrigger" node="1>0|7" />
        <i3dMapping id="clearArea1Start" node="1>1|0" />
        <i3dMapping id="clearArea1Width" node="1>1|0|0" />
        <i3dMapping id="clearArea1Height" node="1>1|0|1" />
        <i3dMapping id="testArea1Start" node="1>2|0" />
        <i3dMapping id="testArea1End" node="1>2|0|0" />
        <i3dMapping id="tipOcclusionUpdateArea1Start" node="1>3|0" />
        <i3dMapping id="tipOcclusionUpdateArea1End" node="1>3|0|0" />
        <i3dMapping id="markerUnloading" node="1>4" />
        <i3dMapping id="markerLoading" node="1>0|6" />
    </i3dMappings>
</placeable>
