<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="sheepHusbandryManure" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/placeable.xsd">
    <storeData>
        <name>$l10n_storeItem_VB_sheepBarn</name>
        <image>store/store_VB_sheepBarn.png</image>
        <price>16000</price>
        <functions>
            <function>$l10n_function_animalPenSheep</function>
        </functions>
        <lifetime>1000</lifetime>
        <dailyUpkeep>20</dailyUpkeep>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>placeable</species>
        <category>animalpens</category>
        <brush>
            <type>placeable</type>
            <category>animals</category>
            <tab>sheeps</tab>
        </brush>
    </storeData>

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

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

        <sounds>
            <place template="largeImp" />
            <placeLayered template="sheepLayer" />
        </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="dirt"/>
        </levelAreas>
	</leveling>

    <foliageAreas>
        <foliageArea startNode="foliageArea1Start" widthNode="foliageArea1Width" heightNode="foliageArea1Height" decoFoliage="grassShort" />
    </foliageAreas>

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

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

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

    <triggerMarkers>
        <triggerMarker node="markerFood" filename="$data/shared/assets/marker/markerIcons.xml" id="UNLOAD" />
        <triggerMarker node="markerStraw" filename="$data/shared/assets/marker/markerIcons.xml" id="UNLOAD" />
        <triggerMarker node="markerManure" filename="$data/shared/assets/marker/markerIcons.xml" id="UNLOAD" />
        <triggerMarker node="markerAnimals" filename="$data/shared/assets/marker/markerIcons.xml" id="ANIMALS" />
        <triggerMarker node="markerWoolDecal1" adjustToGround="true" />
        <triggerMarker node="markerWoolDecal2" adjustToGround="true" />
        <triggerMarker node="markerWoolDecal3" adjustToGround="true" />
        <triggerMarker node="markerWoolDecal4" adjustToGround="true" />
    </triggerMarkers>

    <hotspots>
         <hotspot type="SHEEP" teleportNode="teleportNode" />
    </hotspots>

<animatedObjects>
		<animatedObject saveId="Lamp">
			<animation duration="0.25">
				<part node="0>19|0|4|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>19|0|4|0|0|1|1">	<!-- small light on lightswitch-->
					<keyFrame time="0.50" visibility="false" />
					<keyFrame time="0.50" visibility="true" />
				</part>
				<part node="0>19|0|4|0|1|0">	<!-- activate the lamp -->
					<keyFrame time="0.50" visibility="false" />
					<keyFrame time="0.50" visibility="true" />
				</part>
				<part node="0>19|0|4|0|1|1">	<!-- deactivate the default tube -->
					<keyFrame time="0.50" visibility="true" />
					<keyFrame time="0.50" visibility="false" />
				</part>
				<part node="0>19|0|4|0|2|0">	<!-- activate the lamp -->
					<keyFrame time="0.50" visibility="false" />
					<keyFrame time="0.50" visibility="true" />
				</part>
				<part node="0>19|0|4|0|2|1">	<!-- deactivate the default tube -->
					<keyFrame time="0.50" visibility="true" />
					<keyFrame time="0.50" visibility="false" />
				</part>
			</animation>
			<controls triggerNode="0>19|0|4|0|0|0" posAction="ACTIVATE_HANDTOOL" posText="action_lightOn" negText="action_lightOff" />
			<sounds>
				<moving file="sounds/click_1sec.ogg" loops="0" linkNode="0>19|0|4|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>19|0|4|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>19|0|4|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>19|0|4|1|0" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
            <sounds>
                <moving file="sounds/LittleDoor_2sec.ogg" loops="0" linkNode="0>19|0|4|1|1" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd linkNode="0>19|0|4|1|1" template="slidingGateMetalOpen" />
                <negEnd linkNode="0>19|0|4|1|1" template="slidingGateMetalClose" />
            </sounds>
        </animatedObject>
    </animatedObjects>

    <infoTrigger triggerNode="infoTrigger" />

    <husbandry saveId="Animals_SHEEP" hasStatistics="false">
	    <storage node="storage" fillTypes="STRAW MANURE" isExtension="false">
            <capacity fillType="STRAW" capacity="15000" />
            <capacity fillType="MANURE" capacity="10500" />
        </storage>
        <animals type="SHEEP" maxNumAnimals="20" maxNumVisualAnimals="20">
            <navigation rootNode="navigationRootNode" filename="navigationMesh.i3d" />
            <loadingTrigger node="loadingTrigger" />
        </animals>

        <food capacity="10000" >
            <foodPlane node="foodPlane" minY="0.151" maxY="0.342" changeVisibility="true" defaultFillType="DRYGRASS_WINDROW" />
            <foodPlaces>
                 <foodPlace node="foodPlace1" />
                 <foodPlace node="foodPlace2" />
            </foodPlaces>
             <feedingTrough exactFillRootNode="exactFillRootNodeFood">
                <baleTrigger triggerNode="baleTrigger"/>
             </feedingTrough>
        </food>
		     <unloadingStation supportsExtension="true" storageRadius="65" hideFromPricesMenu="true">
            <unloadTrigger exactFillRootNode="exactFillRootNodeStraw" fillTypes="STRAW" >
                <baleTrigger triggerNode="baleTriggerStraw"/>
            </unloadTrigger>
        </unloadingStation>
		<straw>
            <manure factor="1.5" />
            <strawPlane node="strawPlane" minY="-0.107" maxY="0" changeVisibility="false" />
        </straw>

        <water automaticWaterSupply="true" />

		<liquidManure />
		
        <pallets fillType="WOOL" maxNumPallets="6">
            <palletTrigger node="palletTrigger" />
            <spawnPlaces>
                <spawnPlace startNode="palletArea1Start" endNode="palletArea1End" />
            </spawnPlaces>
        </pallets>

        <fences>
            <fence filename="$data/placeables/lizard/fencesFarm/sheepNetFence/sheepNetFenceSingleton.xml" hasStartPole="true" hasEndPole="true">
                <node node="fence1Node1" />
                <node node="fence1Node2" />
                <node node="fence1Node3" />
                <node node="fence1Node4" />
                <node node="fence1Node5" />
            </fence>
			<fence filename="$data/placeables/lizard/fencesFarm/level02/fencesFarmLevel02Singleton.xml" hasStartPole="true" hasEndPole="true">
                <node node="fence2Node1" />
                <node node="fence2Node2" />
            </fence>
			<gate node="gateNode" filename="$data/placeables/lizard/fencesFarm/level02/fencesFarmLevel02Singleton.xml" gateIndex="1"/>
          </fences>
    </husbandry>
	
   <manureHeap node="manureHeap" capacity="100000" isExtension="false" >
        <area startNode="tipAreaStart" widthNode="tipAreaWidth" heightNode="tipAreaHeight" activationTriggerNode="activationTrigger" />
        <clearArea startNode="clearAreaStart" widthNode="clearAreaWidth" heightNode="clearAreaHeight" />

        <loadingStation storageRadius="10" supportsExtension="false">
            <loadTrigger triggerNode="loadingTriggerManure" aiNode="loadingTriggerAINodeManure" fillTypes="MANURE" fillLitersPerSecond="2000" />
        </loadingStation>
    </manureHeap>

	<colorable>
        <nodes>
            <node node="0>19|0|4|1|1" />
            <node node="0>19|0|4|1|2" />
        </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="teleportNode" node="0>0" />
        <i3dMapping id="baleTrigger" node="0>1|0" />
        <i3dMapping id="exactFillRootNodeFood" node="0>1|1" />
        <i3dMapping id="foodPlane" node="0>1|2" />
        <i3dMapping id="foodPlace1" node="0>1|3" />
        <i3dMapping id="foodPlace2" node="0>1|4" />
        <i3dMapping id="storage" node="0>2" />
        <i3dMapping id="waterPlane" node="0>3|1" />
        <i3dMapping id="palletTrigger" node="0>4|0" />
        <i3dMapping id="palletArea1Start" node="0>4|1" />
        <i3dMapping id="palletArea1End" node="0>4|1|0" />
        <i3dMapping id="navigationRootNode" node="0>5" />
        <i3dMapping id="fence1Node1" node="0>6|0|0" />
        <i3dMapping id="fence1Node2" node="0>6|0|1" />
        <i3dMapping id="fence1Node3" node="0>6|0|2" />
        <i3dMapping id="fence1Node4" node="0>6|0|3" />
        <i3dMapping id="fence1Node5" node="0>6|0|4" />
        <i3dMapping id="fence2Node1" node="0>6|1|0" />
        <i3dMapping id="fence2Node2" node="0>6|1|1" />
        <i3dMapping id="gateNode" node="0>6|1|2" />
        <i3dMapping id="markerWoolDecal1" node="0>7|0|0" />
        <i3dMapping id="markerWoolDecal2" node="0>7|0|1" />
        <i3dMapping id="markerWoolDecal3" node="0>7|0|2" />
        <i3dMapping id="markerWoolDecal4" node="0>7|0|3" />
        <i3dMapping id="markerAnimals" node="0>7|1" />
        <i3dMapping id="markerFood" node="0>7|2" />
        <i3dMapping id="markerStraw" node="0>7|3" />
        <i3dMapping id="markerManure" node="0>7|4" />
        <i3dMapping id="strawPlane" node="0>8|0" />
        <i3dMapping id="exactFillRootNodeStraw" node="0>8|1" />
        <i3dMapping id="baleTriggerStraw" node="0>8|2" />
        <i3dMapping id="loadingTrigger" node="0>10" />
        <i3dMapping id="infoTrigger" node="0>11" />
        <i3dMapping id="clearArea1Start" node="0>12|0" />
        <i3dMapping id="clearArea1Width" node="0>12|0|0" />
        <i3dMapping id="clearArea1Height" node="0>12|0|1" />
        <i3dMapping id="levelArea1Start" node="0>13|0" />
        <i3dMapping id="levelArea1Width" node="0>13|0|0" />
        <i3dMapping id="levelArea1Height" node="0>13|0|1" />
        <i3dMapping id="foliageArea1Start" node="0>14|0" />
        <i3dMapping id="foliageArea1Width" node="0>14|0|0" />
        <i3dMapping id="foliageArea1Height" node="0>14|0|1" />
        <i3dMapping id="indoorArea1Start" node="0>15|0" />
        <i3dMapping id="indoorArea1Width" node="0>15|0|0" />
        <i3dMapping id="indoorArea1Height" node="0>15|0|1" />
        <i3dMapping id="indoorArea2Start" node="0>15|1" />
        <i3dMapping id="indoorArea2Width" node="0>15|1|0" />
        <i3dMapping id="indoorArea2Height" node="0>15|1|1" />
        <i3dMapping id="testArea1Start" node="0>16|0" />
        <i3dMapping id="testArea1End" node="0>16|0|0" />
        <i3dMapping id="tipOcclusionUpdateArea1Start" node="0>17|0" />
        <i3dMapping id="tipOcclusionUpdateArea1End" node="0>17|0|0" />
		
        <i3dMapping id="manureHeap" node="0>21" />
        <i3dMapping id="loadingTriggerManure" node="0>21|0" />
        <i3dMapping id="loadingTriggerAINodeManure" node="0>21|1" />
        <i3dMapping id="tipArea" node="0>21|2" />
        <i3dMapping id="tipAreaStart" node="0>21|2|0" />
        <i3dMapping id="tipAreaWidth" node="0>21|2|0|0" />
        <i3dMapping id="tipAreaHeight" node="0>21|2|0|1" />
        <i3dMapping id="activationTrigger" node="0>21|3" />
        <i3dMapping id="clearAreaStart" node="0>21|4" />
        <i3dMapping id="clearAreaWidth" node="0>21|4|0" />
        <i3dMapping id="clearAreaHeight" node="0>21|4|1" />
    </i3dMappings>
</placeable>
