<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="objectStorage" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="$data/../shared/xml/schema/placeable.xsd">
    <storeData>
        <name>$l10n_shopItem_silohalleKuhlungInvert</name>
        <functions>
            <function>$l10n_function_silohalleKuhlung</function>
        </functions>
        <image>store/store_silohalleKuhlungInvert.dds</image>
        <price>40000</price>
        <dailyUpkeep>100</dailyUpkeep>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>placeable</species>
        <category>sheds</category>
        <canBeSold>true</canBeSold>
        <showInStore>true</showInStore>
        <vertexBufferMemoryUsage>1371904</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>219904</indexBufferMemoryUsage>
        <textureMemoryUsage>21954560</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>silohalleKuhlungInvert.i3d</filename>
        <canBeRenamed>true</canBeRenamed>
        <boughtWithFarmland>true</boughtWithFarmland>
    </base>

    <placement useRandomYRotation="false" useManualYRotation="true" placementPositionSnapSize="0.5" placementRotationSnapAngle="90">
        <testAreas>
            <testArea startNode="testArea1Start" endNode="testArea1End" />
        </testAreas>
		
        <sounds>
            <place template="medImp" />
        </sounds>
    </placement>

    <clearAreas>
        <clearArea startNode="clearArea01Start" widthNode="clearArea01Width" heightNode="clearArea01Height"/>
    </clearAreas>

    <leveling requireLeveling="true" maxSmoothDistance="3" maxSlope="75" maxEdgeAngle="30">
        <levelAreas>
            <levelArea startNode="levelingArea01Start" widthNode="levelingArea01Width" heightNode="levelingArea01Height" groundType="asphalt"/>
        </levelAreas>
    </leveling>

    <indoorAreas>
        <indoorArea startNode="indoorArea01Start" widthNode="indoorArea01Width" heightNode="indoorArea01Height"/>
    </indoorAreas>

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

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

	

    <animatedObjects>
		<animatedObject saveId="LampHalle">
			<animation duration="0.25">
				<part node="0>0|2|0|0|1|0">	<!-- rotate the switch -->
					<keyFrame time="0.00" rotation="0 0 7.5" />
					<keyFrame time="1.00" rotation="0 0 0" />
				</part>
				<part node="0>0|2|0|0|1|0|1">	<!-- small light on lightswitch-->
					<keyFrame time="0.50" visibility="false" />
					<keyFrame time="0.51" visibility="true" />
				</part>
				<part node="0>0|2|0|0|2|0">	<!-- activate the lamp -->
					<keyFrame time="0.50" visibility="false" />
					<keyFrame time="0.51" visibility="true" />
				</part>
				<part node="0>0|2|0|0|3|0">	<!-- activate the lamp 2 -->
					<keyFrame time="0.50" visibility="false" />
					<keyFrame time="0.51" visibility="true" />
				</part>
				<part node="0>0|2|0|0|4|0">	<!-- activate the lamp 3 -->
					<keyFrame time="0.50" visibility="false" />
					<keyFrame time="0.51" visibility="true" />
				</part>
			</animation>
			<controls triggerNode="0>0|2|0|0|0" posAction="ACTIVATE_HANDTOOL" posText="action_LIGHTSWITCH_On" negText="action_LIGHTSWITCH_Off" />
			<sounds>
				<moving file="sounds/switch_1sec.ogg" loops="0" linkNode="0>0|2|0|0|1|0" volume="0.40" radius="25" innerRadius="3" fadeOut="0.25"/>
			</sounds>
		</animatedObject>
		<animatedObject saveId="openRollTorInvert" >
            <animation duration="3">
                <part node="0>0|2|1|1|0"> <!--door1-->
					<keyFrame time="0.1" translation="0 0 -3.5" />
					<keyFrame time="0.5" translation="0 0 2.2"/>
					<keyFrame time="1.0" translation="0 0 2.2"/>
				</part>
				<part node="0>0|2|1|1|0|0">	<!-- door1 halter-->
					<keyFrame time="0.0" rotation="0 0 0"/>
					<keyFrame time="0.1" rotation="90 0 0"/>
					<keyFrame time="1.0" rotation="90 0 0"/>
				</part>
				<part node="0>0|2|1|1|0|0|0">	<!-- door1 griff-->
					<keyFrame time="0.0" rotation="0 0 0"/>
					<keyFrame time="0.1" rotation="0 0 34"/>
					<keyFrame time="0.4" rotation="0 0 34"/>
					<keyFrame time="0.5" rotation="0 0 0"/>
					<keyFrame time="1.0" rotation="0 0 0"/>
				</part>
                <part node="0>0|2|1|1|1"> <!--door1.5-->
					<keyFrame time="0.1" translation="-0.065 0 -1.12" />
					<keyFrame time="0.5" translation="-0.065 0 1.88"/>
					<keyFrame time="1.0" translation="-0.065 0 1.88"/>
				</part>
                <part node="0>0|2|1|1|2"> <!--door2-->
					<keyFrame time="0.0" translation="0 0 -10.5" />
					<keyFrame time="0.6" translation="0 0 -10.5" />
					<keyFrame time="1.0" translation="0 0 -14.5"/>
				</part>
				<part node="0>0|2|1|1|2|0">	<!-- door2 halter-->
					<keyFrame time="0.00" rotation="0 0 0"/>
					<keyFrame time="0.5" rotation="0 0 0"/>
					<keyFrame time="0.6" rotation="90 0 0"/>
					<keyFrame time="1.0" rotation="90 0 0"/>
				</part>
				<part node="0>0|2|1|1|2|0|0">	<!-- door2 griff-->
					<keyFrame time="0.0" rotation="0 0 0"/>
					<keyFrame time="0.5" rotation="0 0 0"/>
					<keyFrame time="0.6" rotation="0 0 34"/>
					<keyFrame time="0.9" rotation="0 0 34"/>
					<keyFrame time="1.0" rotation="0 0 0"/>
				</part>
                <part node="0>0|2|1|1|3"> <!--door2.5-->
					<keyFrame time="0.0" translation="-0.065 0 -12.82" />
					<keyFrame time="0.6" translation="-0.065 0 -12.82" />
					<keyFrame time="1.0" translation="-0.065 0 -14"/>
				</part>
            </animation>
            <controls triggerNode="0>0|2|1|0" posAction="ACTIVATE_HANDTOOL" posText="action_openRollingGate" negText="action_closeRollingGate" />
            <sounds>
                <moving file="sounds/LargeGate_5sec.ogg" loops="2" linkNode="0>0|2|1|1" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd file="$data/sounds/prefab/gate/gateOpened.ogg" linkNode="0>0|2|1|1" volume="0.8" radius="25" innerRadius="3" />
                <negEnd file="$data/sounds/prefab/gate/gateClosed.ogg" linkNode="0>0|2|1|1" volume="0.8" radius="25" innerRadius="3" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="openTor_Kuhlung" >
            <animation duration="1.4">
                <part node="0>0|2|3|1">
					<keyFrame time="0" translation="-2 0 0" />
					<keyFrame time="1.0" translation="-6.2 0 0"/>
				</part>
                <part node="0>0|2|3|2">
					<keyFrame time="0" translation="9.8 0 0" />
					<keyFrame time="0.6" translation="11.8 0 0"/>
					<keyFrame time="1.0" translation="11.8 0 0"/>
				</part>
            </animation>
            <controls triggerNode="0>0|2|3|0" posAction="ACTIVATE_HANDTOOL" posText="action_openKuhlung" negText="action_closeKuhlung" />
            <sounds>
                <moving file="sounds/LargeGate_5sec.ogg" loops="0" linkNode="0>0|2|3|1" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd file="$data/sounds/prefab/gate/gateOpened.ogg" linkNode="0>0|2|3|1" volume="0.8" radius="25" innerRadius="3" />
                <negEnd file="$data/sounds/prefab/gate/gateClosed.ogg" linkNode="0>0|2|3|1" volume="0.8" radius="25" innerRadius="3" />
            </sounds>
        </animatedObject>
	 </animatedObjects>
	 <objectStorage supportsBales="true" supportsPallets="true" maxLength="8.5" maxWidth="6" maxHeight="3.5">
        <playerTrigger node="playerTrigger" />
        <objectTrigger node="objectTrigger" />
        <spawnAreas>
            <spawnArea startNode="spawnArea1Start" endNode="spawnArea1End"/>
        </spawnAreas>
        <storageAreas>
            <storageArea startNode="storageArea1Start" endNode="storageArea1End"/>
        </storageAreas>
    </objectStorage>

    <pointOfInterest>
        <point triggerNode="objectTrigger" text="$l10n_poi_objectStorageUnload" showOwner="true"  showEveryone="false"/>
        <point triggerNode="playerTrigger" text="$l10n_poi_objectStorageLoad"   showOwner="true"  showEveryone="false" />
    </pointOfInterest> 	
	
	<triggerMarkers>
        <triggerMarker node="warningStripes" />
        <triggerMarker node="playerTriggerMarker" filename="$data/shared/assets/marker/markerIcons.xml" id="LOAD"   adjustToGround="true" />
        <triggerMarker node="objectTriggerMarker" filename="$data/shared/assets/marker/markerIcons.xml" id="UNLOAD" adjustToGround="true" />
    </triggerMarkers>
	
    <i3dMappings>
        <i3dMapping id="testArea1Start" node="0>1|0" />
        <i3dMapping id="testArea1End" node="0>1|0|0" />
		
        <i3dMapping id="clearArea01Start" node="0>2|0" />
        <i3dMapping id="clearArea01Width" node="0>2|0|0" />
        <i3dMapping id="clearArea01Height" node="0>2|0|1" />
		
        <i3dMapping id="levelingArea01Start" node="0>3|0" />
        <i3dMapping id="levelingArea01Width" node="0>3|0|0" />
        <i3dMapping id="levelingArea01Height" node="0>3|0|1" />
		
        <i3dMapping id="indoorArea01Start" node="0>4|0" />
        <i3dMapping id="indoorArea01Width" node="0>4|0|0" />
        <i3dMapping id="indoorArea01Height" node="0>4|0|1" />
		
        <i3dMapping id="tipOcclusionUpdateArea1Start" node="0>6|0" />
        <i3dMapping id="tipOcclusionUpdateArea1End" node="0>6|0|0" />
		
		<i3dMapping id="spawnArea1Start" node="0>8|0|0" />
        <i3dMapping id="spawnArea1End" node="0>8|0|0|0" />
        <i3dMapping id="storageArea1Start" node="0>8|0|1" />
        <i3dMapping id="storageArea1End" node="0>8|0|1|0" />
        <i3dMapping id="objectTrigger" node="0>8|1" />
        <i3dMapping id="objectTriggerMarker" node="0>8|1|0" />
        <i3dMapping id="warningStripes" node="0>8|1|1" />
        <i3dMapping id="playerTrigger" node="0>8|2" />
        <i3dMapping id="playerTriggerMarker" node="0>8|2|0" />
        <i3dMapping id="infoTrigger" node="0>8|3" />
    </i3dMappings>
</placeable>
