<?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>
			<en>Workshop</en>
			<de>Werkstatt</de>
			<pl>Warsztat</pl>
		</name>
        <image>store_warsztat.png</image>
        <price>30000</price>
        <functions>
            <function>$l10n_function_workshop</function>
        </functions>
        <lifetime>1000</lifetime>
        <dailyUpkeep>10</dailyUpkeep>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>PLACEABLE</species>
        <category>placeableMisc</category>
		<canBeSold>true</canBeSold>
        <showInStore>true</showInStore>
		<brush>
            <type>placeable</type>
            <category>buildings</category>
            <tab>tools</tab>
        </brush>
		<storeIconRendering>
            <settings cameraXRot="-3" cameraYRot="60" advancedBoundingBox="true"/>
        </storeIconRendering>
        <vertexBufferMemoryUsage>1188352</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>290304</indexBufferMemoryUsage>
        <textureMemoryUsage>17629184</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

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

    <placement useRandomYRotation="false" useManualYRotation="true" >
        <testAreas>
            <testArea startNode="testStart1" endNode="testEnd1" />
        </testAreas>

        <sounds>
            <place template="smallImp" />
        </sounds>
    </placement>
	
	<hotspots>
        <hotspot type="SHOP" teleportNode="hotspotNode" />
    </hotspots>	
	
	<triggerMarkers>
        <triggerMarker node="markerWrench" filename="$data/shared/assets/marker/markerIconWrench.i3d" id="WRENCH" />
    </triggerMarkers>

    <workshop>
        <sellingPoint playerTriggerNode="workshopTrigger" iconNode="markerWrench" sellTriggerNode="vehicleTrigger" ownWorkshop="false" />
    </workshop>

    <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="gravel"/>
            <levelArea startNode="levelArea2Start" widthNode="levelArea2Width" heightNode="levelArea2Height" groundType="gravel"/>
        </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="drzwiWarsztatMale">
            <animation duration="5">
				<part node="lewe1">
				    <keyFrame time="0" rotation="0 0 0"/>
                    <keyFrame time="0.5" rotation="0 -95 0"/>
                </part>
				<part node="prawe1">
				    <keyFrame time="0.5" rotation="0 0 0"/>
                    <keyFrame time="1" rotation="0 95 0"/>
                </part>
			</animation>	
				<controls triggerNode="wrota1Trigger" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
            <sounds>
                <moving file="sounds/opengate.wav" loops="0" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
            </sounds>
		</animatedObject>
		
		<animatedObject saveId="drzwiWarsztatDuze">
            <animation duration="5">
				<part node="lewe2">
				    <keyFrame time="0" rotation="0 0 0"/>
                    <keyFrame time="0.5" rotation="0 -95 0"/>
                </part>
				<part node="prawe2">
				    <keyFrame time="0.5" rotation="0 0 0"/>
                    <keyFrame time="1" rotation="0 95 0"/>
                </part>
			</animation>	
				<controls triggerNode="wrota2Trigger" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
            <sounds>
                <moving file="sounds/opengate.wav" loops="0" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
            </sounds>
		</animatedObject>
		
		<animatedObject saveId="drzwiWarsztatPojed">
            <animation duration="3">
				<part node="prawe3">
				    <keyFrame time="0" rotation="0 0 0"/>
                    <keyFrame time="1" rotation="0 95 0"/>
                </part>
			</animation>	
				<controls triggerNode="wrota3Trigger" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
            <sounds>
                <moving file="sounds/opengate.wav" loops="0" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
            </sounds>
		</animatedObject>
		
		<animatedObject saveId="Swiatlo" >
            <animation duration="0.8">
				<part node="lampa01">
                    <keyFrame time="0.0" visibility="false"/>
					<keyFrame time="1.0" visibility="true"/>
                </part>
				<part node="lampa02">
                    <keyFrame time="0.0" visibility="false"/>
					<keyFrame time="1.0" visibility="true"/>
                </part>			
            </animation>
            <controls triggerNode="SwiatloTrigger" posAction="ACTIVATE_HANDTOOL" 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>
        </animatedObject>
    </animatedObjects>
	
    <i3dMappings>
        <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="levelArea2Start" node="0>3|1" />
        <i3dMapping id="levelArea2Width" node="0>3|1|0" />
        <i3dMapping id="levelArea2Height" node="0>3|1|1" /> 
		
        <i3dMapping id="tipOcclusionUpdateArea1Start" node="0>4|0" />
        <i3dMapping id="tipOcclusionUpdateArea1End"   node="0>4|0|0" />
		
        <i3dMapping id="testStart1" node="0>5|0" />
        <i3dMapping id="testEnd1"   node="0>5|0|0" />		
		
        <i3dMapping id="indoorArea1Start"  node="0>6|0" />
        <i3dMapping id="indoorArea1Width"  node="0>6|0|0" />
        <i3dMapping id="indoorArea1Height" node="0>6|0|1" />

		<i3dMapping id="workshopTrigger" node="0>7|0" />
		<i3dMapping id="vehicleTrigger" node="0>7|1" />
		<i3dMapping id="markerWrench" node="0>7|2" />
		<i3dMapping id="hotspotNode" node="0>7|3" />
        <!--doors-->
        <i3dMapping id="lewe1"         node="0>0|0|1" />		
        <i3dMapping id="prawe1"        node="0>0|0|2" />
        <i3dMapping id="wrota1Trigger" node="0>0|0|0" />	

        <i3dMapping id="lewe2"         node="0>0|1|1" />		
        <i3dMapping id="prawe2"        node="0>0|1|2" />
        <i3dMapping id="wrota2Trigger" node="0>0|1|0" />
				
        <i3dMapping id="prawe3"        node="0>0|2|1" />
        <i3dMapping id="wrota3Trigger" node="0>0|2|0" />		
		<!--light-->
		<i3dMapping id="SwiatloTrigger" node="0>1|3" />
		<i3dMapping id="lampa01"        node="0>1|1|0" />
		<i3dMapping id="lampa02"        node="0>1|2|0" />
    </i3dMappings>
</placeable>
