<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="siloExtension" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/placeable.xsd">
    <storeData>
        <name>
            <en>Milk Tank Extension</en>
            <de>Erweiterung Des Milchtanks</de>
            <sw>Mjölkförlängning</sw>
		</name>
        <functions>
            <function>$l10n_function_milkTank</function>
        </functions>
        <image>store_MilkExt.dds</image>
        <brand>NONE</brand>
        <price>30000</price>
        <dailyUpkeep>2</dailyUpkeep>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <species>placeable</species>
        <category>siloExtensions</category>
        <brush>
            <type>placeable</type>
            <category>buildings</category>
            <tab>siloExtensions</tab>
        </brush>
        <vertexBufferMemoryUsage>203520</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>32512</indexBufferMemoryUsage>
        <textureMemoryUsage>3342336</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>milkExt.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>

    <siloExtension>
        <storage node="storage" fillTypes="MILK" capacity="500000" isExtension="true" storageRadius="75"/>
    </siloExtension>

    <i3dMappings>
        <i3dMapping id="storage" node="0>0|0" />
        <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" />
    </i3dMappings>
</placeable>
