<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="productionPoint" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../shared/xml/schema/placeable.xsd">
    <storeData>
		<name>$l10n_mediumRafinery</name>
        <functions>
			<function>$l10n_function_bigRafinery_production</function>
		</functions>
        <image>store_mediumRefinery.dds</image>
        <price>150000</price>
		<dailyUpkeep>200</dailyUpkeep>
		<canBeSold>true</canBeSold>
        <showInStore>true</showInStore>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>placeable</species>
        <category>productionPoints</category>
        <brush>
            <type>placeable</type>
            <category>production</category>
            <tab>factories</tab>
        </brush>
        <storeIconRendering>
            <settings cameraXRot="-25" advancedBoundingBox="true" />
        </storeIconRendering>
        <vertexBufferMemoryUsage>1939968</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>502528</indexBufferMemoryUsage>
        <textureMemoryUsage>30474240</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>mediumRefinery.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>

    <clearAreas>
        <clearArea startNode="clearAreaStart" widthNode="clearAreaWidth" heightNode="clearAreaHeight"/>
    </clearAreas>

    <leveling requireLeveling="true" maxSmoothDistance="10" maxSlope="75" maxEdgeAngle="30" >
        <levelAreas>
            <levelArea startNode="levelAreaStart" widthNode="levelAreaWidth" heightNode="levelAreaHeight" groundType="asphalt"/>
        </levelAreas>
    </leveling>

    <indoorAreas>
	    <indoorArea startNode="indoorAreaStart" widthNode="indoorAreaWidth" heightNode="indoorAreaHeight"/>
    </indoorAreas>

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

    <infoTrigger triggerNode="infoTrigger" />

    <productionPoint>
		<productions>
            <production id="parafine" name="$l10n_fillType_parafine"          cyclesPerHour="8" costsPerActiveHour="32">
                <inputs>
                    <input 	fillType="PETROLEUM" 		 	amount="318" />
                </inputs>
                <outputs>
                    <output fillType="PARAFINE"	 			amount="13" />
                </outputs>
            </production>
			<production id="kerosine" name="$l10n_fillType_kerosine"          cyclesPerHour="9" costsPerActiveHour="22">
                <inputs>
                    <input 	fillType="PETROLEUM" 		 	amount="318" />
                </inputs>
                <outputs>
                    <output fillType="KEROSINE"	 			amount="48" />
                </outputs>
            </production>
			<production id="motorOil" name="$l10n_fillType_motorOil" 		   cyclesPerHour="7" costsPerActiveHour="32">
                <inputs>
                    <input 	fillType="PETROLEUM" 		 	amount="318" />
                </inputs>
                <outputs>
                    <output fillType="MOTOROIL"	 			amount="5" />
                </outputs>
            </production>
			<production id="bearingGrease" name="$l10n_fillType_bearingGrease" cyclesPerHour="8" costsPerActiveHour="27">
                <inputs>
                    <input 	fillType="PETROLEUM" 		 	amount="318" />
                </inputs>
                <outputs>
                    <output fillType="BEARINGGREASE"	 	amount="6" />
                </outputs>
            </production>
			<production id="diesel" name="$l10n_fillType_diesel"  cyclesPerHour="7" costsPerActiveHour="22">
				<inputs>
					<input fillType="PETROLEUM" amount="318" />
				</inputs>
				<outputs>
					<output fillType="DIESEL" amount="100" />
				</outputs>
			</production>
		</productions>

        <storage isExtension="false" fillLevelSyncThreshold="50" >
            <capacity fillType="PETROLEUM"   	  capacity="80000" />
            <capacity fillType="PARAFINE"   	  capacity="50000" />
            <capacity fillType="KEROSINE"   	  capacity="50000" />
            <capacity fillType="MOTOROIL"   	  capacity="50000" />
            <capacity fillType="BEARINGGREASE"    capacity="50000" />
            <capacity fillType="DIESEL"    		  capacity="30000" />
        </storage>

        <sellingStation node="sellingStation" supportsExtension="false">
            <unloadTrigger exactFillRootNode="unloadTrigger" fillTypes="DIESEL PETROLEUM PARAFINE KEROSINE MOTOROIL BEARINGGREASE"/>
        </sellingStation>

		<loadingStation>
			<loadTrigger triggerNode="loadingTriggerDiesel" fillTypes="DIESEL" fillLitersPerSecond="250" aiNode="aiNodeLoadingDiesel" startFillText="$l10n_action_refuel" stopFillText="$l10n_action_stopRefuel"/>
		</loadingStation>

        <palletSpawner node="palletSpawner">
            <spawnPlaces>
                <spawnPlace startNode="spawnSpace1start" />
                <spawnPlace startNode="spawnSpace2start" />
                <spawnPlace startNode="spawnSpace3start" />
                <spawnPlace startNode="spawnSpace4start" />
            </spawnPlaces>
        </palletSpawner>
		
        <playerTrigger node="playerTrigger" />

        <sounds>
            <idle template="carpenterIdle" linkNode="0>4" />
			<active template="carpenterWork" linkNode="0>4" />
        </sounds>
	</productionPoint>
	
	<triggerMarkers>
        <triggerMarker node="playerTriggerMarker"         filename="$data/shared/assets/marker/markerIconWrench.i3d"           adjustToGround="true" />
        <triggerMarker node="unloadTriggerMarker"         filename="$data/shared/assets/marker/markerIconUnload.i3d"          adjustToGround="true" />
		<triggerMarker node="loadingTriggerMarkerDiesel"  filename="$data/shared/assets/marker/markerIconLoad.i3d" 		  adjustToGround="true" />
		<triggerMarker node="warningStripes"/>
   </triggerMarkers>
	
	<hotspots>
        <hotspot type="PRODUCTION_POINT" linkNode="0>0" teleportNode="teleportNode" />
    </hotspots>
	
	<i3dMappings>
		<i3dMapping id="infoTrigger" node="0>0" />
		<i3dMapping id="sellingStation" node="0>7" />
		<i3dMapping id="unloadTrigger" node="0>7|0" />
		<i3dMapping id="unloadTriggerMarker" node="0>7|3" />
		<i3dMapping id="playerTrigger" node="0>5|0" />
		<i3dMapping id="playerTriggerMarker" node="0>5|0|0" />
		<i3dMapping id="palletSpawner" node="0>8" />
		<i3dMapping id="spawnSpace1start" node="0>8|0" />
		<i3dMapping id="spawnSpace2start" node="0>8|1" />
		<i3dMapping id="spawnSpace3start" node="0>8|2" />
		<i3dMapping id="spawnSpace4start" node="0>8|3" />
		<i3dMapping id="clearAreaStart" node="0>1|0" />
		<i3dMapping id="clearAreaWidth" node="0>1|0|0" />
		<i3dMapping id="clearAreaHeight" node="0>1|0|1" />
		<i3dMapping id="levelAreaStart" node="0>2" />
		<i3dMapping id="levelAreaWidth" node="0>2|0" />
		<i3dMapping id="levelAreaHeight" node="0>2|1" />
		<i3dMapping id="indoorAreaStart" node="0>9" />
		<i3dMapping id="indoorAreaWidth" node="0>9|0" />
		<i3dMapping id="indoorAreaHeight" node="0>9|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="loadingTrigger" node="0>6|0" />
        <i3dMapping id="dischargeNode" node="0>6|1" />
        <i3dMapping id="teleportNode" node="0>7|2" />
        <i3dMapping id="loadingTriggerDiesel" node="0>6|2" />
        <i3dMapping id="aiNodeLoadingDiesel" node="0>6|3" />
        <i3dMapping id="loadingTriggerMarkerDiesel" node="0>6|4" />
        <i3dMapping id="warningStripes" node="0>10" />
  </i3dMappings>
</placeable>
