<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="farmhouseHuhn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="$data/../shared/xml/schema/placeable.xsd">
    <storeData>
        <name>$l10n_storeItem_VB_farmhouse</name>
        <functions>
            <function>$l10n_function_VB_farmhouse</function>
        </functions>
        <image>store/store_VB_farmhouse.png</image>
        <price>50000</price>
        <dailyUpkeep>30</dailyUpkeep>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>placeable</species>
        <category>farmhouses</category>
        <brush>
            <type>placeable</type>
            <category>buildings</category>
            <tab>farmhouses</tab>
        </brush>
    </storeData>

    <base>
		<filename>VB_farmhouse.i3d</filename>
        <canBeRenamed>true</canBeRenamed>
        <boughtWithFarmland>true</boughtWithFarmland>
	</base>
     <placement useRandomYRotation="false" useManualYRotation="true" >
        <testAreas>
            <testArea startNode="testArea1Start" endNode="testArea1End"/>
        </testAreas>
		<sounds>
            <place template="smallImp" />
        </sounds>
    </placement>

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

    <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>
		<paintAreas>
             <paintArea startNode="paintArea1Start" widthNode="paintArea1Width" heightNode="paintArea1Height" groundType="grass"/>
        </paintAreas>
    </leveling>

    <indoorAreas>
		<indoorArea startNode="levelArea1Start" widthNode="levelArea1Width" heightNode="levelArea1Height"/>
   </indoorAreas>
   
    <foliageAreas>
        <foliageArea startNode="paintArea1Start" widthNode="paintArea1Width" heightNode="paintArea1Height" decoFoliage="grassShort" />
    </foliageAreas>   
    <ai>
        <updateAreas></updateAreas>
    </ai>

    <hotspots>
        <hotspot type="FARM" linkNode="hotspotNode" teleportNode="teleportNode" />
    </hotspots>

    <triggerMarkers>
        <triggerMarker node="sleepingTriggerMarker" filename="$data/shared/assets/marker/markerIcons.xml" id="EXCLAMATION_MARK" adjustToGround="false" />
        <triggerMarker node="markerAnimals" filename="$data/shared/assets/marker/markerIcons.xml" id="ANIMALS" adjustToGround="false" />
        <triggerMarker node="markerFood" filename="$data/shared/assets/marker/markerIcons.xml" id="UNLOAD" adjustToGround="false" />
        <!--triggerMarker node="markerManure" filename="$data/shared/assets/marker/markerIcons.xml" id="LOAD" adjustToGround="false" /-->
    </triggerMarkers>

    <farmhouse spawnNode="playerSpawnLocation">
        <sleeping triggerNode="sleepingTrigger" cameraNode="sleepingCamera"/>
    </farmhouse>
	
	<animatedObjects>
		<animatedObject saveId="Lamp">
			<animation duration="0.25">
				<part node="0>0|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>0|0|4|0|1|1">	<!-- small light on lightswitch-->
					<keyFrame time="0.50" visibility="false" />
					<keyFrame time="0.50" visibility="true" />
				</part>
				<part node="0>0|0|4|0|1|0">	<!-- activate the lamp -->
					<keyFrame time="0.50" visibility="false" />
					<keyFrame time="0.50" visibility="true" />
				</part>
				<part node="0>0|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>0|0|4|0|2|0">	<!-- activate the lamp -->
					<keyFrame time="0.50" visibility="false" />
					<keyFrame time="0.50" visibility="true" />
				</part>
				<part node="0>0|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>0|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>0|0|4|0|0|1" volume="0.40" radius="25" innerRadius="3" fadeOut="0.25"/>
			</sounds>
		</animatedObject>
		<!--animatedObject saveId="openDoor1" >
            <animation duration="1.5">
                <part node="0>0|0|4|1|1">
					<keyFrame time="0" rotation="0 0 0" />
					<keyFrame time="1.00" rotation="0 160 0"/>
				</part>
            </animation>
            <controls triggerNode="0>0|0|4|1|0" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
            <sounds>
                <moving file="sounds/LittleDoor_2sec.ogg" loops="0" linkNode="0>0|0|4|1|1" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd linkNode="0>0|0|4|1|1" template="slidingGateMetalOpen" />
                <negEnd linkNode="0>0|0|4|1|1" template="slidingGateMetalClose" />
            </sounds>
        </animatedObject-->
		<animatedObject saveId="openDoor2" >
            <animation duration="1.5">
                <part node="0>0|0|4|2|1">
					<keyFrame time="0" rotation="0 0 0" />
					<keyFrame time="1.00" rotation="0 90 0"/>
				</part>
            </animation>
            <controls triggerNode="0>0|0|4|2|0" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
            <sounds>
                <moving file="sounds/LittleDoor_2sec.ogg" loops="0" linkNode="0>0|0|4|2|1" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd linkNode="0>0|0|4|2|1" template="slidingGateMetalOpen" />
                <negEnd linkNode="0>0|0|4|2|1" template="slidingGateMetalClose" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="openchickenDoor" >
            <animation duration="1.5">
                <part node="0>0|0|4|3|1">
					<keyFrame time="0" rotation="0 -90 0" />
					<keyFrame time="1.00" rotation="0 159 0"/>
				</part>
            </animation>
            <controls triggerNode="0>0|0|4|3|0" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
            <sounds>
                <moving file="sounds/LittleDoor_2sec.ogg" loops="0" linkNode="0>0|0|4|3|1" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd linkNode="0>0|0|4|3|1" template="slidingGateMetalOpen" />
                <negEnd linkNode="0>0|0|4|3|1" template="slidingGateMetalClose" />
            </sounds>
        </animatedObject>
    </animatedObjects>

<colorable>
        <nodes>
            <node node="0>0|0|4|1|1" />
            <node node="0>0|0|4|2|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>

 <infoTrigger triggerNode="infoTrigger" />

    <husbandry saveId="Animals_CHICKEN" hasStatistics="false" cleaningAreasFilename="VB_cleaningAreas.i3d">
        <storage node="storage" fillTypes="WATER" isExtension="false">
            <capacity fillType="WATER" capacity="0" />
            <!--capacity fillType="STRAW" capacity="4200" />
            <capacity fillType="MANURE"       capacity="10000" /-->
        </storage>

        <unloadingStation supportsExtension="true" storageRadius="65" hideFromPricesMenu="true" >
			<!--unloadTrigger exactFillRootNode="exactFillRootNodeStraw" fillTypes="STRAW" >
                <baleTrigger triggerNode="baleTriggerStraw"/>
            </unloadTrigger>
            <unloadTrigger fillTypes="MANURE" /-->
		 </unloadingStation>
         
        <loadingStation supportsExtension="true" storageRadius="50" fillTypes="MANURE">
        </loadingStation>

        <animals type="CHICKEN" maxNumAnimals="30" >
            <navigation rootNode="navigationRootNode" filename="navigationMesh_chicken.i3d" />
            <loadingTrigger node="loadingTrigger" />
        </animals>

        <food capacity="3000" >
             <feedingTrough exactFillRootNode="exactFillRootNodeFood" />
            <foodPlane node="foodPlane" minY="0.64" maxY="0.783" changeVisibility="false" defaultFillType="WHEAT"/>
        </food>

		<!--straw>
            <manure factor="1.5" />
            <strawPlane node="strawPlane" minY="-0.16" maxY="0" changeVisibility="false" />
        </straw-->
		
        <pallets fillType="EGG" maxNumPallets="6" unitText="$l10n_unit_pieces">
            <palletTrigger node="palletTrigger" />
            <spawnPlaces >
                <spawnPlace startNode="palletArea1Start" endNode="palletArea1End" />
            </spawnPlaces>
        </pallets>
		
        <water automaticWaterSupply="true" />

        <fences>
            <fence filename="$data/placeables/lizard/fencesFarm/chickenNetFence/chickenNetFenceSingleton.xml" hasStartPole="true" hasEndPole="true">
                <node node="fence1Node1" />
                <node node="fence1Node2" />
                <node node="fence1Node3" />
                <node node="fence1Node4" />
                <node node="fence1Node5" />
                <node node="fence1Node6" />
            </fence>
        </fences>
    </husbandry>

<!--manureHeap node="manureHeap" capacity="10000" isExtension="false" >
        <area startNode="tipAreaStart" widthNode="tipAreaWidth" heightNode="tipAreaHeight" activationTriggerNode="activationTrigger" />
        <clearArea startNode="clearAreaManureStart" widthNode="clearAreaManureWidth" heightNode="clearAreaManureHeight" />

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

    <i3dMappings>
        <i3dMapping id="sleepingTrigger" node="0>1|0" />
        <i3dMapping id="sleepingCamera" node="0>1|1" />
        <i3dMapping id="playerSpawnLocation" node="0>1|2" />
        <i3dMapping id="wardrobeTrigger" node="0>1|3" />
        <i3dMapping id="wardrobeTriggerMarker" node="0>1|4" />
        <i3dMapping id="sleepingTriggerMarker" node="0>1|5" />
        <i3dMapping id="hotspotNode" node="0>1|6" />
        <i3dMapping id="teleportNode" node="0>1|7" />
        <i3dMapping id="clearArea1Start" node="0>2|0" />
        <i3dMapping id="clearArea1Width" node="0>2|0|0" />
        <i3dMapping id="clearArea1Height" node="0>2|0|1" />
        <i3dMapping id="levelArea1Start" node="0>3|0" />
        <i3dMapping id="levelArea1Width" node="0>3|0|0" />
        <i3dMapping id="levelArea1Height" node="0>3|0|1" />
        <i3dMapping id="paintArea1Start" node="0>4|0" />
        <i3dMapping id="paintArea1Width" node="0>4|0|0" />
        <i3dMapping id="paintArea1Height" node="0>4|0|1" />
        <i3dMapping id="testArea1Start" node="0>6|0" />
        <i3dMapping id="testArea1End" node="0>6|0|0" />
        <i3dMapping id="tipOcclusionUpdateArea1Start" node="0>7|0" />
        <i3dMapping id="tipOcclusionUpdateArea1End" node="0>7|0|0" />		
		<!--Stall-->
        <i3dMapping id="teleportNode" node="0>9|0" />
        <i3dMapping id="exactFillRootNodeFood" node="0>9|1|0" />
        <i3dMapping id="foodPlane" node="0>9|1|3" />
        <i3dMapping id="storage" node="0>9|2" />
        <i3dMapping id="palletTrigger" node="0>9|3|0" />
        <i3dMapping id="palletArea1Start" node="0>9|3|1" />
        <i3dMapping id="palletArea1End" node="0>9|3|1|0" />
        <i3dMapping id="navigationRootNode" node="0>10" />
        <i3dMapping id="fence1Node1" node="0>9|5|0|0" />
        <i3dMapping id="fence1Node2" node="0>9|5|0|1" />
        <i3dMapping id="fence1Node3" node="0>9|5|0|2" />
        <i3dMapping id="fence1Node4" node="0>9|5|0|3" />
        <i3dMapping id="fence1Node5" node="0>9|5|0|4" />
        <i3dMapping id="fence1Node6" node="0>9|5|0|5" />
        <i3dMapping id="markerEggsDecal1" node="0>9|6|0|0" />
        <i3dMapping id="markerEggsDecal2" node="0>9|6|0|1" />
        <i3dMapping id="markerEggsDecal3" node="0>9|6|0|2" />
        <i3dMapping id="markerEggsDecal4" node="0>9|6|0|3" />
        <i3dMapping id="markerAnimals" node="0>9|6|1" />
        <i3dMapping id="markerFood" node="0>9|6|2" />
        <i3dMapping id="infoTrigger" node="0>9|7" />
        <i3dMapping id="loadingTrigger" node="0>9|8" />
        <!--i3dMapping id="strawPlane" node="0>9|9|0" />
        <i3dMapping id="exactFillRootNodeStraw" node="0>9|9|1" />
        <i3dMapping id="baleTriggerStraw" node="0>9|9|2" /-->
		
		<!--manure>		
        <i3dMapping id="markerManure" node="0>9|10|1" />
        <i3dMapping id="manureHeap" node="0>9|10" />
        <i3dMapping id="loadingTriggerManure" node="0>9|10|0" />
        <i3dMapping id="loadingTriggerAINodeManure" node="0>9|10|1" />
        <i3dMapping id="tipArea" node="0>9|10|2" />
        <i3dMapping id="tipAreaStart" node="0>9|10|2|0" />
        <i3dMapping id="tipAreaWidth" node="0>9|10|2|0|0" />
        <i3dMapping id="tipAreaHeight" node="0>9|10|2|0|1" />
        <i3dMapping id="activationTrigger" node="0>9|10|3" />
        <i3dMapping id="clearAreaManureStart" node="0>9|10|4" />
        <i3dMapping id="clearAreaManureWidth" node="0>9|10|4|0" />
        <i3dMapping id="clearAreaManureHeight" node="0>9|10|4|1" /-->
    </i3dMappings>
</placeable>