<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="simplePlaceable" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/placeable.xsd">
    <storeData>
		<name>
			<en>Shed</en>
			<de>Unterstand</de>
			<pl>Wiata</pl>
			<fr>Hangar</fr>
		</name>
        <functions>
            <function>$l10n_function_garage</function>
        </functions>
        <image>i3d/store_SFarm_garage.png</image>
        <price>25000</price>
        <dailyUpkeep>30</dailyUpkeep>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>None</brand>
        <species>placeable</species>
        <category>sheds</category>
        <canBeSold>true</canBeSold>
        <showInStore>true</showInStore>
        <vertexBufferMemoryUsage>863744</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>200192</indexBufferMemoryUsage>
        <textureMemoryUsage>21430272</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
	
	<base>
        <filename>i3d/SFarm_garage.i3d</filename>
		<boughtWithFarmland>true</boughtWithFarmland>
		<canBeRenamed>true</canBeRenamed>
    </base>

    <placement useRandomYRotation="false" useManualYRotation="true">
        <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="garage01Door" >
            <animation duration="4">
				<part node="hand01">
					<keyFrame time="0" translation="-0.003 -0.273 1.456" rotation="0 0 0" />
					<keyFrame time="0.05" translation="-0.003 -0.273 1.456" rotation="0 0 40" />
					<keyFrame time="0.1" translation="-0.003 -0.273 1.396" rotation="0 0 40" />
					<keyFrame time="0.15" translation="-0.003 -0.273 1.396" rotation="0 0 0" />				
				</part>
				<part node="garage01Door_left">
					<keyFrame time="0.15" rotation="0 0 0" />
					<keyFrame time="0.55" rotation="0 99 0" />
				</part>
				<part node="garage01Door_right">
					<keyFrame time="0.35" rotation="0 0 0" />
					<keyFrame time="1" rotation="0 -99 0" />
				</part>
            </animation>
            <controls triggerNode="garage01Door_trigger" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
            <sounds>
                <moving file="sounds/gate_loop.wav" loops="0" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd file="sounds/gate_opened.wav" volume="0.8" radius="25" innerRadius="3" />
                <negEnd file="sounds/gate_closed.wav" volume="0.8" radius="25" innerRadius="3" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="garage02Door" >
            <animation duration="4">
				<part node="hand02">
					<keyFrame time="0" translation="-0.003 -0.273 1.456" rotation="0 0 0" />
					<keyFrame time="0.05" translation="-0.003 -0.273 1.456" rotation="0 0 40" />
					<keyFrame time="0.1" translation="-0.003 -0.273 1.4" rotation="0 0 40" />
					<keyFrame time="0.15" translation="-0.003 -0.273 1.4" rotation="0 0 0" />				
				</part>
				<part node="garage02Door_left">
					<keyFrame time="0.15" rotation="0 0 0" />
					<keyFrame time="0.55" rotation="0 99 0" />
				</part>
				<part node="garage02Door_right">
					<keyFrame time="0.35" rotation="0 0 0" />
					<keyFrame time="1" rotation="0 -99 0" />
				</part>
            </animation>
            <controls triggerNode="garage02Door_trigger" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
            <sounds>
                <moving file="sounds/gate_loop.wav" loops="0" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd file="sounds/gate_opened.wav" volume="0.8" radius="25" innerRadius="3" />
                <negEnd file="sounds/gate_closed.wav" volume="0.8" radius="25" innerRadius="3" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="S_garageDoor1" >
            <animation duration="2">
				<part node="S_hand01">
					<keyFrame time="0" translation="0.001 -0.011 -0.994" rotation="0 0 0" />
					<keyFrame time="0.05" translation="0.001 -0.011 -0.994" rotation="0 0 40" />
					<keyFrame time="0.1" translation="0.001 -0.011 -0.941" rotation="0 0 40" />
					<keyFrame time="0.15" translation="0.001 -0.011 -0.941" rotation="0 0 0" />				
				</part>
				<part node="S_garage01Door">
					<keyFrame time="0.15" rotation="0 0 0" />
					<keyFrame time="1" rotation="0 -120 0" />
				</part>
            </animation>
            <controls triggerNode="S_garage01Door_trigger" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
            <sounds>
                <moving file="sounds/gate_loop.wav" loops="0" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd file="sounds/gate_opened.wav" volume="0.8" radius="25" innerRadius="3" />
                <negEnd file="sounds/gate_closed.wav" volume="0.8" radius="25" innerRadius="3" />
            </sounds>
        </animatedObject>
		<animatedObject index="swietlowka1">
			<controls posAction="ACTIVATE_HANDTOOL" triggerNode="lampaTrigger1" posText="action_turnOnLight" negText="action_turnOffLight" />
		    <sounds>
				<moving file="sounds/switch01_0.wav" loops="1" volume="1" radius="25" innerRadius="3" fadeOut="0.25"/>
			</sounds>
			<animation initialTime="0" duration="0.1">
				<part node="lever01">
					<keyFrame time="0.00" rotation="0 0 0" />
					<keyFrame time="1" rotation="10 0 0" />
				</part>
				<part node="lampa1_1">
					<keyFrame time="0.1" visibility="false" />
					<keyFrame time="0.2" visibility="true" />
				</part>
				<part node="lampa1_2">
					<keyFrame time="0.1" visibility="false" />
					<keyFrame time="0.2" visibility="true" />
				</part>
			</animation>
		</animatedObject>
	</animatedObjects>

    <i3dMappings>
        <i3dMapping id="clearArea01Start" node="0>0|0" />
        <i3dMapping id="clearArea01Width" node="0>0|0|0" />
        <i3dMapping id="clearArea01Height" node="0>0|0|1" />
        <i3dMapping id="levelingArea01Start" node="0>1|0" />
        <i3dMapping id="levelingArea01Width" node="0>1|0|0" />
        <i3dMapping id="levelingArea01Height" node="0>1|0|1" />
        <i3dMapping id="indoorArea01Start" node="0>2|0" />
        <i3dMapping id="indoorArea01Width" node="0>2|0|0" />
        <i3dMapping id="indoorArea01Height" node="0>2|0|1" />
        <i3dMapping id="tipOcclusionUpdateArea1Start" node="0>3|0" />
        <i3dMapping id="tipOcclusionUpdateArea1End" node="0>3|0|0" />
        <i3dMapping id="testArea1Start" node="0>4|0" />
        <i3dMapping id="testArea1End" node="0>4|0|0" />
		
		<i3dMapping id="garage01Door_trigger" node="0>5|1|1|0" />
		<i3dMapping id="garage01Door_left" node="0>5|1|1|1" />
		<i3dMapping id="garage01Door_right" node="0>5|1|1|2" />
		<i3dMapping id="hand01" node="0>5|1|1|1|1" />
		
		<i3dMapping id="garage02Door_trigger" node="0>5|1|2|0" />
		<i3dMapping id="garage02Door_left" node="0>5|1|2|1" />
		<i3dMapping id="garage02Door_right" node="0>5|1|2|2" />
		<i3dMapping id="hand02" node="0>5|1|2|1|1" />
		
		<i3dMapping id="S_garage01Door_trigger" node="0>5|1|0|0" />
		<i3dMapping id="S_garage01Door" node="0>5|1|0|1" />
		<i3dMapping id="S_hand01" node="0>5|1|0|1|1" />
		
		<i3dMapping id="lampaTrigger1" node="0>5|1|3|0" />
		<i3dMapping id="lever01" node="0>5|1|3|1|2" />
		<i3dMapping id="lampa1_1" node="0>5|1|3|2|1" />
		<i3dMapping id="lampa1_2" node="0>5|1|3|3|1" />
    </i3dMappings>
</placeable>
