<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="objectStorage" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/placeable.xsd">
    <storeData>
        <name>$l10n_storeItem_VB_smallBaleStable</name>
        <functions>
            <function>$l10n_function_objectStorage</function>
        </functions>
        <image>store/store_VB_smallBaleStable.png</image>
        <price>19000</price>
        <dailyUpkeep>10</dailyUpkeep>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>placeable</species>
        <category>storages</category>
        <brush>
            <type>placeable</type>
            <category>buildings</category>
            <tab>silos</tab>
        </brush>
    </storeData>

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

    <dynamicallyLoadedParts>
    </dynamicallyLoadedParts>

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

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

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

    <leveling requireLeveling="true" maxSmoothDistance="10" maxSlope="75" maxEdgeAngle="30">
        <levelAreas>
            <levelArea startNode="levelArea1Start" widthNode="levelArea1Width" heightNode="levelArea1Height" groundType="asphalt"/>
        </levelAreas>
    </leveling>

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

    <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>

    <hotspots>
        <hotspot type="LOADING" />
    </hotspots>


	<animatedObjects>
		<animatedObject saveId="Lamp">
			<animation duration="0.25">
				<part node="0>0|9|0|0|1">	<!-- 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|9|0|0|1|1">	<!-- small light on lightswitch-->
					<keyFrame time="0.50" visibility="false" />
					<keyFrame time="0.50" visibility="true" />
				</part>
				<part node="0>0|9|0|1|0">	<!-- activate the lamp -->
					<keyFrame time="0.50" visibility="false" />
					<keyFrame time="0.50" visibility="true" />
				</part>
				<part node="0>0|9|0|1|1">	<!-- deactivate the default tube -->
					<keyFrame time="0.50" visibility="true" />
					<keyFrame time="0.50" visibility="false" />
				</part>
				<part node="0>0|9|0|2|0">	<!-- activate the lamp -->
					<keyFrame time="0.50" visibility="false" />
					<keyFrame time="0.50" visibility="true" />
				</part>
				<part node="0>0|9|0|2|1">	<!-- deactivate the default tube -->
					<keyFrame time="0.50" visibility="true" />
					<keyFrame time="0.50" visibility="false" />
				</part>
			</animation>
			<controls triggerNode="0>0|9|0|0|0" posAction="ACTIVATE_HANDTOOL" posText="action_lightOn" negText="action_lightOff" />
			<sounds>
				<moving file="sounds/click_1sec.ogg" loops="0" linkNode="0>0|9|0|0|1" volume="0.40" radius="25" innerRadius="3" fadeOut="0.25"/>
			</sounds>
		</animatedObject>
		<animatedObject saveId="openDoubleDoor1" >
            <animation duration="1.5">
                <part node="0>0|9|1|1">
					<keyFrame time="0" rotation="0 0 0" />
					<keyFrame time="0.2" rotation="0 0 0" />
					<keyFrame time="1.00" rotation="0 -160 0"/>
				</part>
                <part node="0>0|9|1|2">
					<keyFrame time="0" rotation="0 0 0" />
					<keyFrame time="0.2" rotation="0 0 0" />
					<keyFrame time="1.00" rotation="0 160 0"/>
				</part>
            </animation>
            <controls triggerNode="0>0|9|1|0" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
            <sounds>
                <moving file="sounds/LittleDoor_2sec.ogg" loops="0" linkNode="0>0|9|1|1" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd linkNode="0>0|9|1|1" template="slidingGateMetalOpen" />
                <negEnd linkNode="0>0|9|1|1" template="slidingGateMetalClose" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="openDoubleDoor2" >
            <animation duration="1.5">
                <part node="0>0|9|2|1">
					<keyFrame time="0" rotation="0 0 0" />
					<keyFrame time="0.2" rotation="0 0 0" />
					<keyFrame time="1.00" rotation="0 -160 0"/>
				</part>
                <part node="0>0|9|2|2">
					<keyFrame time="0" rotation="0 0 0" />
					<keyFrame time="0.2" rotation="0 0 0" />
					<keyFrame time="1.00" rotation="0 160 0"/>
				</part>
            </animation>
            <controls triggerNode="0>0|9|2|0" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
            <sounds>
                <moving file="sounds/LittleDoor_2sec.ogg" loops="0" linkNode="0>0|9|2|1" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd linkNode="0>0|9|2|1" template="slidingGateMetalOpen" />
                <negEnd linkNode="0>0|9|2|1" template="slidingGateMetalClose" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="openDoubleDoor3" >
            <animation duration="1.5">
                <part node="0>0|9|3|1">
					<keyFrame time="0" rotation="0 0 0" />
					<keyFrame time="0.2" rotation="0 0 0" />
					<keyFrame time="1.00" rotation="0 -160 0"/>
				</part>
                <part node="0>0|9|3|2">
					<keyFrame time="0" rotation="0 0 0" />
					<keyFrame time="0.2" rotation="0 0 0" />
					<keyFrame time="1.00" rotation="0 100 0"/>
				</part>
            </animation>
            <controls triggerNode="0>0|9|3|0" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
            <sounds>
                <moving file="sounds/LittleDoor_2sec.ogg" loops="0" linkNode="0>0|9|3|1" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd linkNode="0>0|9|3|1" template="slidingGateMetalOpen" />
                <negEnd linkNode="0>0|9|3|1" template="slidingGateMetalClose" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="openDoor1" >
            <animation duration="1.5">
                <part node="0>0|9|4|1">
					<keyFrame time="0" rotation="0 0 0" />
					<keyFrame time="0.2" rotation="0 0 0" />
					<keyFrame time="1.00" rotation="0 160 0"/>
				</part>
            </animation>
            <controls triggerNode="0>0|9|4|0" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
            <sounds>
                <moving file="sounds/LittleDoor_2sec.ogg" loops="0" linkNode="0>0|9|4|1" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd linkNode="0>0|9|4|1" template="slidingGateMetalOpen" />
                <negEnd linkNode="0>0|9|4|1" template="slidingGateMetalClose" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="openDoor2" >
            <animation duration="1.5">
                <part node="0>0|9|5|1">
					<keyFrame time="0" rotation="0 0 0" />
					<keyFrame time="0.2" rotation="0 0 0" />
					<keyFrame time="1.00" rotation="0 140 0"/>
				</part>
            </animation>
            <controls triggerNode="0>0|9|5|0" posAction="ACTIVATE_HANDTOOL" posText="action_openUpperDoor" negText="action_closeUpperDoor" />
            <sounds>
                <moving file="sounds/LittleDoor_2sec.ogg" loops="0" linkNode="0>0|9|5|1" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd linkNode="0>0|9|5|1" template="slidingGateMetalOpen" />
                <negEnd linkNode="0>0|9|5|1" template="slidingGateMetalClose" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="ladder" >
            <animation duration="1">
                <part node="0>0|9|6|1">
					<keyFrame time="0" visbility="true" />
					<keyFrame time="1" visbility="false" />
				</part>
                <part node="0>0|9|6|2">
					<keyFrame time="0" visbility="false" />
					<keyFrame time="1" visbility="true" />
				</part>
            </animation>
            <controls triggerNode="0>0|9|6|0" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
            <sounds>
                <moving file="sounds/LittleDoor_2sec.ogg" loops="0" linkNode="0>0|9|6|1" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd linkNode="0>0|9|6|1" template="slidingGateMetalOpen" />
                <negEnd linkNode="0>0|9|6|1" template="slidingGateMetalClose" />
            </sounds>
        </animatedObject>
    </animatedObjects>

    <infoTrigger triggerNode="infoTrigger"/>

    <objectStorage supportsBales="true" supportsPallets="false" maxLength="8.5" maxWidth="6" maxHeight="3">
        <playerTrigger node="playerTrigger" />
        <objectTrigger node="objectTrigger" />
        <spawnAreas>
            <spawnArea startNode="spawnArea1Start" endNode="spawnArea1End"/>
        </spawnAreas>
        <storageAreas>
            <storageArea startNode="storageArea1Start" endNode="storageArea1End" maxHeight="1.2"/>
            <storageArea startNode="storageArea2Start" endNode="storageArea2End" maxHeight="1.4"/>
            <storageArea startNode="storageArea3Start" endNode="storageArea3End" maxHeight="1.4"/>
            <storageArea startNode="storageArea4Start" endNode="storageArea4End" maxHeight="3"/>
        </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>

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

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

	<colorable>
        <nodes>
            <node node="0>0|9|1|1" />
            <node node="0>0|9|1|2" />
            <node node="0>0|9|2|1" />
            <node node="0>0|9|2|2" />
            <node node="0>0|9|3|1" />
            <node node="0>0|9|3|2" />
            <node node="0>0|9|4|1" />
            <node node="0>0|9|5|1" />
        </nodes>

        <colors>
            <color value="0.0 0.4 1.0 0.7" /> <!--HessianBlue-->
            <color value="RUDOLFHOERMANN_GREEN" />
            <color value="RUDOLFHOERMANN_BEIGE" />
            <color value="RUDOLFHOERMANN_RED" />
            <color value="RUDOLFHOERMANN_BLUE" />
            <color value="RUDOLFHOERMANN_DARKGREY" />
            <color value="RUDOLFHOERMANN_LIGHTGREY" />
            <color value="RUDOLFHOERMANN_WHITEALU" />
            <color value="RUDOLFHOERMANN_GREYALU" />
            <color value="RUDOLFHOERMANN_OXIDRED" />
            <color value="RUDOLFHOERMANN_WOODDARK" />
            <color value="RUDOLFHOERMANN_WOODBRIGHT" />
            <color value="RUDOLFHOERMANN_LIGHTGREEN" />
            <color value="RUDOLFHOERMANN_BROWN" />
            <color value="RUDOLFHOERMANN_DARKBEIGE" />
            <color value="0.439 0.439 0.321 1" />
            <color value="0.42 0.33 0.26 1" />
            <color value="0.48 0.42 0.35 1" />
            <color value="0.8 0.33 1 1" /> <!--lila-->
            <color value="0.8 0.33 0.05 1" /> <!--olive-->
            <color value="0.23 0.18 0.13 1" /> <!--braun-->
            <color value="0.22 0.09 0.06 1" /> <!--Falltuerbraun-->
            <color value="0.48 0.58 1 1.2" /> <!--blau-->
            <color value="0.0 0.5 0.05 0.6" /> <!--gruen-->
            <color value="0.15 0.5 0.0 0.5" /> 
        </colors>
    </colorable>

    <i3dMappings>
        <i3dMapping id="testArea1Start" node="0>0|0" />
        <i3dMapping id="testArea1End" node="0>0|0|0" />
        <i3dMapping id="clearArea1Start" node="0>0|1" />
        <i3dMapping id="clearArea1Width" node="0>0|1|0" />
        <i3dMapping id="clearArea1Height" node="0>0|1|1" />
        <i3dMapping id="levelArea1Start" node="0>0|2" />
        <i3dMapping id="levelArea1Width" node="0>0|2|0" />
        <i3dMapping id="levelArea1Height" node="0>0|2|1" />
        <i3dMapping id="indoorArea1Start" node="0>0|3" />
        <i3dMapping id="indoorArea1Width" node="0>0|3|0" />
        <i3dMapping id="indoorArea1Height" node="0>0|3|1" />
        <i3dMapping id="tipOcclusionUpdateArea1Start" node="0>0|4" />
        <i3dMapping id="tipOcclusionUpdateArea1End" node="0>0|4|0" />
        <i3dMapping id="spawnArea1Start" node="0>0|5|0|0" />
        <i3dMapping id="spawnArea1End" node="0>0|5|0|0|0" />
        <i3dMapping id="storageArea1Start" node="0>0|5|0|1" />
        <i3dMapping id="storageArea1End" node="0>0|5|0|1|0" />
        <i3dMapping id="storageArea2Start" node="0>0|5|0|2" />
        <i3dMapping id="storageArea2End" node="0>0|5|0|2|0" />
        <i3dMapping id="storageArea3Start" node="0>0|5|0|3" />
        <i3dMapping id="storageArea3End" node="0>0|5|0|3|0" />
        <i3dMapping id="storageArea4Start" node="0>0|5|0|4" />
        <i3dMapping id="storageArea4End" node="0>0|5|0|4|0" />
        <i3dMapping id="objectTrigger" node="0>0|5|1" />
        <i3dMapping id="objectTriggerMarker" node="0>0|5|1|0" />
        <i3dMapping id="warningStripes" node="0>0|5|1|1" />
        <i3dMapping id="playerTrigger" node="0>0|5|2" />
        <i3dMapping id="playerTriggerMarker" node="0>0|5|2|0" />
        <i3dMapping id="infoTrigger" node="0>0|5|3" />
        <i3dMapping id="stopCrossing01" node="0>0|7|2" />
        <i3dMapping id="stopCrossing02" node="0>0|7|3" />
        <i3dMapping id="stopCrossing03" node="0>0|7|4" />
    </i3dMappings>
</placeable>
