<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="workshop" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/placeable.xsd">
    <storeData>
        <name>$l10n_shopItem_workshop</name>
        <functions>
            <function>$l10n_function_workshop</function>
        </functions>
        <image>stores/store_woodShedWorkshop.png</image>
        <price>10000</price>
        <dailyUpkeep>10</dailyUpkeep>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>PLACEABLE</species>
        <category>sheds</category>
        <brush>
            <type>placeable</type>
            <category>buildings</category>
            <tab>sheds</tab>
        </brush>
        <vertexBufferMemoryUsage>1471488</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>467200</indexBufferMemoryUsage>
        <textureMemoryUsage>5308416</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

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

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

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

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

    <animatedObjects>
		<animatedObject saveId="lights">
			<controls posAction="ACTIVATE_HANDTOOL" triggerNode="triggerlight" posText="action_lightOn" negText="action_lightOut"/>
			<animation duration="0.1"> 
				<part node="0>9|0|1|1">
					<keyFrame time="0" visibility="false"/>
					<keyFrame time="1" visibility="true"/>
				</part>
				<part node="0>9|0|2|1">
					<keyFrame time="0" visibility="false"/>
					<keyFrame time="1" visibility="true"/>
				</part>
				<part node="0>9|0|3|1">
					<keyFrame time="0" visibility="false"/>
					<keyFrame time="1" visibility="true"/>
				</part>
			    <part node="0>9|0|4|1">
					<keyFrame time="0" visibility="false"/>
					<keyFrame time="1" visibility="true"/>
				</part>
				<part node="0>9|0|5|1">
					<keyFrame time="0" visibility="false"/>
					<keyFrame time="1" visibility="true"/>
				</part>
				<part node="0>9|0|6|1">
					<keyFrame time="0" visibility="false"/>
					<keyFrame time="1" visibility="true"/>
				</part>
				<part node="0>9|0|7|1">
					<keyFrame time="0" visibility="false"/>
					<keyFrame time="1" visibility="true"/>
				</part>
				<part node="0>9|0|8|1">
					<keyFrame time="0" visibility="false"/>
					<keyFrame time="1" visibility="true"/>
				</part>
				<part node="0>9|0|9|1">
					<keyFrame time="0" visibility="false"/>
					<keyFrame time="1" visibility="true"/>
				</part>
				<part node="0>9|0|10|1">
					<keyFrame time="0" visibility="false"/>
					<keyFrame time="1" visibility="true"/>
				</part>
				<part node="0>9|0|11|1">
					<keyFrame time="0" visibility="false"/>
					<keyFrame time="1" visibility="true"/>
				</part>
				<part node="0>9|0|12|1">
					<keyFrame time="0" visibility="false"/>
					<keyFrame time="1" visibility="true"/>
				</part>
				<part node="0>9|0|13|1">
					<keyFrame time="0" visibility="false"/>
					<keyFrame time="1" visibility="true"/>
				</part>
				<part node="0>9|0|14|1">
					<keyFrame time="0" visibility="false"/>
					<keyFrame time="1" visibility="true"/>
				</part>
				<part node="0>9|0|16|1">
					<keyFrame time="0" visibility="false"/>
					<keyFrame time="1" visibility="true"/>
				</part>
			</animation>
			<sounds>
                <moving file="sounds/switch_01.ogg"   loops="0" linkNode="triggerlight" volume="1" radius="25" innerRadius="3" fadeOu="0.25"/>
			</sounds>
		</animatedObject>
    </animatedObjects>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0" linkNode="lightSwitch" filename="$data/shared/assets/lights/rudolfHormann/powerSwitch.i3d" />
    </dynamicallyLoadedParts>

    <triggerMarkers>
        <triggerMarker node="markerWrench" filename="$data/shared/assets/marker/markerIconWrench.i3d" />
    </triggerMarkers>

    <hotspots>
        <hotspot type="SHOP" linkNode="vehicleTrigger" />
    </hotspots>

    <workshop>
        <sellingPoint playerTriggerNode="playerTrigger" iconNode="markerWrench" sellTriggerNode="vehicleTrigger" ownWorkshop="true" mobileWorkshop="false" />
    </workshop>

    <i3dMappings>
        <i3dMapping id="clearArea1Start" node="0>0|0" />
        <i3dMapping id="clearArea1Width" node="0>0|0|0" />
        <i3dMapping id="clearArea1Height" node="0>0|0|1" />
        <i3dMapping id="levelArea1Start" node="0>1|0" />
        <i3dMapping id="levelArea1Width" node="0>1|0|0" />
        <i3dMapping id="levelArea1Height" node="0>1|0|1" />
        <i3dMapping id="indoorArea1Start" node="0>2|0" />
        <i3dMapping id="indoorArea1Width" node="0>2|0|0" />
        <i3dMapping id="indoorArea1Height" node="0>2|0|1" />
        <i3dMapping id="testArea1Start" node="0>3|0" />
        <i3dMapping id="testArea1End" node="0>3|0|0" />
        <i3dMapping id="tipOcclusionUpdateArea1Start" node="0>4|0" />
        <i3dMapping id="tipOcclusionUpdateArea1End" node="0>4|0|0" />
		
        <i3dMapping id="markerWrench" node="0>8|0" />
        <i3dMapping id="vehicleTrigger" node="0>8|3" />
        <i3dMapping id="playerTrigger" node="0>8|4" />
		
		<i3dMapping id="lights" node="0>9|0" />
		<i3dMapping id="lightSwitch" node="0>9|0|0" />
		<i3dMapping id="triggerlight" node="0>9|0|15" />

    </i3dMappings>
</placeable>