<?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_storeItem_milkStore</name>
        <functions>
            <function>$l10n_function_milkTank</function>
        </functions>
        <image>store_MilkExt.dds</image>
        <brand>NONE</brand>
        <price>25000</price>
        <dailyUpkeep>2</dailyUpkeep>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <species>placeable</species>
        <category>storages</category>
        <brush>
            <type>placeable</type>
            <category>buildings</category>
            <tab>silos</tab>
        </brush>
        <vertexBufferMemoryUsage>210944</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>33280</indexBufferMemoryUsage>
        <textureMemoryUsage>3407872</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>milkStore.i3d</filename>
        <canBeRenamed>true</canBeRenamed>
    </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/>

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

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

	<dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0" linkNode="milkContainer1" filename="$data/placeables/lely/nautilus/nautilus.i3d"/>
		<dynamicallyLoadedPart node="0" linkNode="milkContainer2" filename="$data/placeables/lely/nautilus/nautilus.i3d"/>
		<dynamicallyLoadedPart node="0" linkNode="milkContainer3" filename="$data/placeables/lely/nautilus/nautilus.i3d"/>
		<dynamicallyLoadedPart node="0" linkNode="milkContainer4" filename="$data/placeables/lely/nautilus/nautilus.i3d"/>
    </dynamicallyLoadedParts>

    <animatedObject saveId="gate">
		<controls triggerNode="7|3" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
          <sounds>
                <moving file="$data/sounds/animations/hinges/hingeMedium01.ogg" loops="0" volume="0.8" radius="25" innerRadius="3" fadeOu="0.25"/>
            </sounds>		
        <animation initialTime="0" duration="4">
	        <part node="7|0">
                <keyFrame time="0.00" rotation="0 0 0" />
                <keyFrame time="1" rotation="0 90 0"  />
            </part>
        </animation>
	</animatedObject>

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

    <infoTrigger triggerNode="infoTrigger"/>

    <silo>
        <loadingStation node="loadingTrigger" supportsExtension="true" storageRadius="70">
            <loadTrigger triggerNode="loadingTrigger" fillLitersPerSecond="2000" dischargeNode="dischargeNode" fillTypes="MILK" aiNode="aiLoadingNode" />
        </loadingStation>

        <unloadingStation supportsExtension="true" storageRadius="50" >
            <unloadTrigger exactFillRootNode="exactFillRootNode" fillTypes="MILK" aiNode="aiLoadingNode"/>
        </unloadingStation>

        <storages>
            <storage node="storage" fillTypes="MILK" capacity="500000" isExtension="true"/>
		</storages>
    </silo>

    <hotspots>
        <hotspot type="LOADING" linkNode="mapPosition" teleportNode="teleportNode" />
    </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>0|0" />
		<i3dMapping id="storage" node="0>0|1" />
		<i3dMapping id="loadingTrigger" node="0>0|2|0|0" />
		<i3dMapping id="dischargeNode" node="0>0|2|0|1" />
		<i3dMapping id="aiLoadingNode" node="0>0|2|1" />
		<i3dMapping id="aiSpline" node="0>0|2|2" />
		<i3dMapping id="exactFillRootNode" node="0>0|3|0" />
		<i3dMapping id="infoTrigger" node="0>0|4" />
        <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>2|0" />
        <i3dMapping id="levelArea1Width" node="0>2|0|0" />
        <i3dMapping id="levelArea1Height" node="0>2|0|1" />
        <i3dMapping id="indoorStart" node="0>3|0" />
        <i3dMapping id="indoorWidth" node="0>3|0|0" />
        <i3dMapping id="indoorHeight" node="0>3|0|1" />
        <i3dMapping id="testArea1Start" node="0>4|0" />
        <i3dMapping id="testArea1End" node="0>4|0|0" />
        <i3dMapping id="tipOcclusionUpdateArea1Start" node="0>5|0" />
        <i3dMapping id="tipOcclusionUpdateArea1End" node="0>5|0|0" />
		<i3dMapping id="milkContainer1" node="0>8|0" />
		<i3dMapping id="milkContainer2" node="0>8|1" />
		<i3dMapping id="milkContainer3" node="0>8|2" />
		<i3dMapping id="milkContainer4" node="0>8|3" />
		<i3dMapping id="markerUnloading" node="0>10" />
		<i3dMapping id="markerLoading" node="0>9" />
		<i3dMapping id="teleportNode" node="0>11" />
    </i3dMappings>
</placeable>