<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="placeableManhole" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../shared/xml/schema/placeable.xsd">
    <storeData>
        <name>$l10n_storeItem_manhole</name>
        <functions>
            <function>$l10n_function_manhole</function>
        </functions>
        <image>store/store_manhole.png</image>
        <price>100</price>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>LSFMINNOVATIONS</brand>
        <species>placeable</species>
        <category>placeableMisc</category>
        <brush>
            <type>placeable</type>
            <category>buildings</category>
            <tab>tools</tab>
        </brush>
        <canBeSold>true</canBeSold>
        <showInStore>true</showInStore>
    </storeData>

    <base>
        <filename>placeables/manhole.i3d</filename>
    </base>

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

        <sounds>
            <place template="smallImp" />
        </sounds>
    </placement>

	<indoorAreas>
        <indoorArea startNode="indoorArea1Start" widthNode="indoorArea1Width" heightNode="indoorArea1Height"/>
    </indoorAreas>

	<triggerMarkers>
       <!--  <triggerMarker node="unloadTriggerMarker" filename="$data/shared/assets/marker/markerIconUnload.i3d" adjustToGround="true" /> -->
    </triggerMarkers>

    <hotspots>
        <hotspot type="UNLOADING" linkNode="unloadTriggerMarker" />
    </hotspots>

    <sellingStation appearsOnStats="false" supportsExtension="false" hasDynamic="false" hideFromPricesMenu="true" allowMissions="false" litersForFullPriceDrop="200000" fullPriceRecoverHours="48">
        <unloadTrigger exactFillRootNode="exactFillRootNode"  fillTypes="MILK BUFFALOMILK GOATMILK WATER DIESEL DEF LIQUIDFERTILIZER HERBICIDE" priceScale="-0.5"/>
        <palletTrigger triggerNode="palletTrigger" deleteLitersPerSecond="10000" fillTypes="MILK BUFFALOMILK GOATMILK" priceScale="-0.5"/>
		
		<fillType name="milk" 				priceScale="1" 		supportsGreatDemand="false" disablePriceDrop="false" />
        <fillType name="buffaloMilk" 		priceScale="1" 		supportsGreatDemand="false" disablePriceDrop="false" />
        <fillType name="goatMilk" 			priceScale="1" 		supportsGreatDemand="false" disablePriceDrop="false" />
        <fillType name="water" 				priceScale="1" 		supportsGreatDemand="false" disablePriceDrop="false" />
        <fillType name="diesel" 			priceScale="1" 		supportsGreatDemand="false" disablePriceDrop="false" />
        <fillType name="def" 				priceScale="1" 		supportsGreatDemand="false" disablePriceDrop="false" />
        <fillType name="liquidFertilizer" 	priceScale="1" 		supportsGreatDemand="false" disablePriceDrop="false" />
        <fillType name="herbicide" 			priceScale="1" 		supportsGreatDemand="false" disablePriceDrop="false" />
    </sellingStation>

    <animatedObjects>
        <animatedObject saveId="manholeCover" >
            <animation duration="1.5">
                <part node="manholeCover">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 0 182"/>
                </part>
				
				<part node="exactFillRootNode">
                    <keyFrame time="0.0" translation="0 -100 0"/>
                    <keyFrame time="1.0" translation="0 0 0"/>
                </part>
				
				<part node="palletTrigger">
                    <keyFrame time="0.0" translation="0 -100 0"/>
                    <keyFrame time="1.0" translation="0 0 0"/>
                </part>
            </animation>
            <controls triggerNode="playerTrigger" posAction="ACTIVATE_HANDTOOL" posText="action_openHatch" negText="action_closeHatch" />
			
			<sounds>
                <moving file="sounds/gateMetal_large.wav" 	loops="0" linkNode="manholeCover" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
				<posEnd file="sounds/foldStartMedVar01.wav" loops="1" linkNode="manholeCover" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25" />
				<negEnd file="sounds/foldStopMedVar01.wav" 	loops="1" linkNode="manholeCover" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25" />
            </sounds>
        </animatedObject>
    </animatedObjects>

    <i3dMappings>
		<i3dMapping id="manholeCover" node="0>0|0|0" />
		<i3dMapping id="testAreas" node="0>1" />
		<i3dMapping id="testArea1Start" node="0>1|0" />
		<i3dMapping id="testArea1End" node="0>1|0|0" />
		<i3dMapping id="indoorAreas" node="0>2" />
		<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="playerTrigger" node="0>3" />
		<i3dMapping id="exactFillRootNode" node="0>4" />
		<i3dMapping id="unloadTriggerMarker" node="0>5" />
		<i3dMapping id="palletTrigger" node="0>6" />
    </i3dMappings>
</placeable>
