<?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_shopItem_debrisCrusher</name>
        <functions>
            <function>$l10n_function_productionPoint</function>
        </functions>
        <image>icons/store_debrisCrusher.dds</image>
        <price>10000</price>
        <dailyUpkeep>10</dailyUpkeep>
        <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>
        <canBeSold>true</canBeSold>
        
        <vertexBufferMemoryUsage>424704</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>98560</indexBufferMemoryUsage>
        <textureMemoryUsage>3211264</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
    <base>
        <filename>placeables/debrisCrusher/debrisCrusher.i3d</filename>
        <canBeRenamed>true</canBeRenamed>
		<canBeDeleted>true</canBeDeleted>
        <boughtWithFarmland>false</boughtWithFarmland>
	</base>

    <placement useRandomYRotation="false" useManualYRotation="true" >
        <testAreas>
            <testArea startNode="testAreaStart01" endNode="testAreaEnd01" />
			<testArea startNode="testAreaStart02" endNode="testAreaEnd02"/>
        </testAreas>

        <sounds>
            <place template="smallImp" />
        </sounds>
    </placement>

    <clearAreas>
        <clearArea startNode="clearAreaStart01" widthNode="clearAreaWidth01" heightNode="clearAreaHeight01"/>
          </clearAreas>

    <leveling requireLeveling="true" maxSmoothDistance="10" maxSlope="75" maxEdgeAngle="30" >
        <levelAreas>
            <levelArea startNode="levelAreaStart01" widthNode="levelAreaWidth01" heightNode="levelAreaHeight01"/>
        </levelAreas>

        <paintAreas>
             <paintArea startNode="levelAreaStart01" widthNode="levelAreaWidth01" heightNode="levelAreaHeight01" groundType="asphalt"/>
        </paintAreas>
    </leveling>

    <indoorAreas>
        <indoorArea startNode="indoorAreaStart01" widthNode="indoorAreaWidth01" heightNode="indoorAreaHeight01"/>
		<indoorArea startNode="indoorAreaStart02" widthNode="indoorAreaWidth02" heightNode="indoorAreaHeight02"/>
    </indoorAreas>

    <tipOcclusionUpdateAreas>
        <tipOcclusionUpdateArea startNode="tipOcclusionUpdateAreaStart01" endNode="tipOcclusionUpdateAreaEnd01"/>
		<tipOcclusionUpdateArea startNode="tipOcclusionUpdateAreaStart02" endNode="tipOcclusionUpdateAreaEnd02"/>
    </tipOcclusionUpdateAreas>

    <ai>
        <updateAreas>
            <updateArea startNode="tipOcclusionUpdateAreaStart01" endNode="tipOcclusionUpdateAreaEnd01"/>
			<updateArea startNode="tipOcclusionUpdateAreaStart02" endNode="tipOcclusionUpdateAreaEnd02"/>
        </updateAreas>
    </ai>
	
    <infoTrigger triggerNode="infoTrigger" />
    
	<productionPoint>
         <productions sharedThroughputCapacity="false">
            <production id="lime" name="%s (%s)" params="$l10n_fillType_lime|$l10n_fillType_stone" cyclesPerHour="5" costsPerActiveHour=".5">
             <inputs>
                  <input fillType="STONE" amount="1000" />
              </inputs>
              <outputs>
                  <output fillType="LIME"    amount="750" />
              </outputs>
            </production>
        </productions>

        <storage isExtension="false" fillLevelSyncThreshold="50" >
            <capacity fillType="STONE"       capacity="2000000" />
            <capacity fillType="LIME"     capacity="2000000" />
        </storage>

        <effectNodes>
			<effectNode effectNode="effectSmoke" materialType="unloadingSmoke"/>
			<effectNode effectNode="effectExhaust" materialType="unloadingSmoke"/>
        </effectNodes>

		<sellingStation appearsOnStats="true" node="sellingStation" supportsExtension="false">
			<unloadTrigger exactFillRootNode="unloadTriggerUpper" fillTypes="STONE" priceScale="2"/>
			<!-- give players a bonus for using upper trigger -->
			<unloadTrigger exactFillRootNode="unloadTriggerLower" fillTypes="STONE LIME" aiNode="unloadTriggerLowerAINode"/>
			<fillType name="STONE" priceScale="1" disablePriceDrop="false"/>
			<fillType name="LIME" priceScale="1" disablePriceDrop="false"/>
			<sounds>
				<active template="debrisCrusherWork" linkNode="roll"/>
			</sounds>
			<effectNodes>
				<effectNode effectNode="effectSmoke" materialType="unloadingSmoke"/>
				<effectNode effectNode="effectExhaust" materialType="unloadingSmoke"/>
			</effectNodes>
			<animationNodes>
				<animationNode node="roll" type="productionPoint" rotSpeed="-40" rotAxis="1" turnOnFadeTime="0.5" turnOffFadeTime="2"/>
			</animationNodes>
			<!-- <storage isExtension="false" fillLevelSyncThreshold="100"> -->
			<!-- <capacity fillType="STONE" capacity="5000" /> -->
			<!-- <dynamicFillPlane node="fillvolume" allSidePlanes="false" maxAllowedHeapAngle="10" maxDelta="0.3" defaultFillType="STONE" /> -->
			<!-- </storage> -->
		</sellingStation>

        <loadingStation node="loadingStation" supportsExtension="true">
            <loadTrigger triggerNode="loadingTrigger" fillTypes="LIME STONE" fillLitersPerSecond="10000" dischargeNode="dischargeNode" infiniteCapacity="true" aiNode="aiNodeLoading">
				<effectNode effectClass="PipeEffect" effectNode="pipeEffect"      materialType="pipe"           fadeTime="0.5" maxBending="0" shapeScaleSpread="0.8 0.8 1 0" controlPoint="3 0 0 0"/>
				<effectNode                          effectNode="pipeEffectSmoke" materialType="unloadingSmoke" fadeTime="0.5" />
			</loadTrigger>
        </loadingStation>

        <playerTrigger node="playerTrigger" />
		
		<sounds>
            <active template="debrisCrusherWork" linkNode="roll" innerRadius="5" outerRadius="25">
                <volume indoor="0.6" outdoor="1.2"/>
                <lowpassCutoffFrequency indoor="1000" outdoor="20000" />
                <lowpassGain indoor="0.5" outdoor="1" />
            </active>
        </sounds>
		<animationNodes>
            <animationNode node="roll"    rotSpeed="40" rotAxis="1" />
        </animationNodes>
		
    </productionPoint>

    <triggerMarkers>
        <triggerMarker node="playerTriggerMarker"         adjustToGround="true"  filename="$data/shared/assets/marker/markerIconWrench.i3d" />
		<triggerMarker node="unloadTriggerUpperMarker" filename="$data/shared/assets/marker/markerIconUnload.i3d"/>
        <triggerMarker node="unloadTriggerLowerMarker" filename="$data/shared/assets/marker/markerIconUnload.i3d" adjustToGround="true"/>
		<triggerMarker node="iconLoad" filename="$data/shared/assets/marker/markerIconLoad.i3d" adjustToGround="true"/>
    </triggerMarkers>

    <hotspots>
        <hotspot type="PRODUCTION_POINT" linkNode="sellingStation" teleportNode="teleportNode" />
    </hotspots>
    <placement useRandomYRotation="false" useManualYRotation="true">
        <sounds>
            <place template="smallImp"/>
        </sounds>
        <testAreas>
            <testArea startNode="testAreaStart01" endNode="testAreaEnd01"/>
			<testArea startNode="testAreaStart02" endNode="testAreaEnd02"/>
        </testAreas>
    </placement>
    <clearAreas>        <clearArea startNode="clearAreaStart01" widthNode="clearAreaWidth01" heightNode="clearAreaHeight01"/></clearAreas>
    <leveling requireLeveling="false" maxSmoothDistance="10" maxSlope="75" maxEdgeAngle="30">        <levelAreas>            <levelArea startNode="levelAreaStart01" widthNode="levelAreaWidth01" heightNode="levelAreaHeight01" groundType="asphalt"/></levelAreas></leveling>
    <indoorAreas>        <indoorArea startNode="indoorAreaStart01" widthNode="indoorAreaWidth01" heightNode="indoorAreaHeight01"/></indoorAreas>
    <tipOcclusionUpdateAreas>
        <tipOcclusionUpdateArea startNode="tipOcclusionUpdateAreaStart01" endNode="tipOcclusionUpdateAreaEnd01"/>
		<tipOcclusionUpdateArea startNode="tipOcclusionUpdateAreaStart02" endNode="tipOcclusionUpdateAreaEnd02"/>
    </tipOcclusionUpdateAreas>
    <ai>
        <updateAreas>
			<updateArea startNode="tipOcclusionUpdateAreaStart01" endNode="tipOcclusionUpdateAreaEnd01"/>
			<updateArea startNode="tipOcclusionUpdateAreaStart02" endNode="tipOcclusionUpdateAreaEnd02"/></updateAreas>
    </ai>
	<infoTrigger triggerNode="infoTrigger"/>
    <hotspots>
        <hotspot type="PRODUCTION_POINT" linkNode="sellingStation" teleportNode="teleportNode"/>
    </hotspots>
    <sellingStation appearsOnStats="true" node="sellingStation" supportsExtension="false">
        <unloadTrigger exactFillRootNode="unloadTriggerUpper" fillTypes="STONE" priceScale="2"/>
        <!-- give players a bonus for using upper trigger -->
        <unloadTrigger exactFillRootNode="unloadTriggerLower" fillTypes="STONE" aiNode="unloadTriggerLowerAINode"/>
        <fillType name="STONE" priceScale="1" disablePriceDrop="false"/>
	</sellingStation>
        <sounds>
            <active template="debrisCrusherWork" linkNode="roll"/>
        </sounds>
	    
    <i3dMappings>
		<i3dMapping id="clearAreaStart01" node="0>0|0"/>
		<i3dMapping id="clearAreaWidth01" node="0>0|0|0"/>
		<i3dMapping id="clearAreaHeight01" node="0>0|0|1"/>
		<i3dMapping id="levelAreaStart01" node="0>1|0"/>
		<i3dMapping id="levelAreaWidth01" node="0>1|0|0"/>
		<i3dMapping id="levelAreaHeight01" node="0>1|0|1"/>
		<i3dMapping id="indoorAreaStart01" node="0>2|0"/>
		<i3dMapping id="indoorAreaWidth01" node="0>2|0|0"/>
		<i3dMapping id="indoorAreaHeight01" node="0>2|0|1"/>
		<i3dMapping id="indoorAreaStart02" node="0>2|1"/>
		<i3dMapping id="indoorAreaWidth02" node="0>2|1|0"/>
		<i3dMapping id="indoorAreaHeight02" node="0>2|1|1"/>
		<i3dMapping id="testAreaStart01" node="0>3|0"/>
		<i3dMapping id="testAreaEnd01" node="0>3|0|0"/>
		<i3dMapping id="testAreaStart02" node="0>3|1"/>
		<i3dMapping id="testAreaEnd02" node="0>3|1|0"/>
		<i3dMapping id="testAreaStart03" node="0>3|2"/>
		<i3dMapping id="testAreaEnd03" node="0>3|2|0"/>
		<i3dMapping id="tipOcclusionUpdateAreaStart01" node="0>4|0"/>
		<i3dMapping id="tipOcclusionUpdateAreaEnd01" node="0>4|0|0"/>
		<i3dMapping id="tipOcclusionUpdateAreaStart02" node="0>4|1"/>
		<i3dMapping id="tipOcclusionUpdateAreaEnd02" node="0>4|1|0"/>
		<i3dMapping id="infoTrigger" node="0>5"/>
		<i3dMapping id="warningStripes" node="0>6"/>
		<i3dMapping id="warningStripes01" node="0>6|0"/>
		<i3dMapping id="sellingStation" node="0>7"/>
		<i3dMapping id="unloadTriggerUpper" node="0>7|0"/>
		<i3dMapping id="unloadTriggerLower" node="0>7|1"/>
		<i3dMapping id="unloadTriggerLowerMarker" node="0>7|2"/>
		<i3dMapping id="unloadTriggerUpperMarker" node="0>7|3"/>
		<i3dMapping id="unloadTriggerLowerAINode" node="0>7|4"/>
		<i3dMapping id="unloadTriggerLowerAINode_rotated" node="0>7|5"/>
		<i3dMapping id="fillvolume" node="0>7|6"/>
		<i3dMapping id="productionPoint" node="0>8"/>
		<i3dMapping id="playerTrigger" node="0>8|0"/>
		<i3dMapping id="playerTriggerMarker" node="0>8|1"/>
		<i3dMapping id="loadingStation" node="0>8|2"/>
		<i3dMapping id="loadingTrigger" node="0>8|2|0"/>
		<i3dMapping id="dischargeNode" node="0>8|2|1"/>
		<i3dMapping id="aiNodeLoading" node="0>8|2|2"/>
		<i3dMapping id="dischargeEffect1" node="0>8|2|3"/>
		<i3dMapping id="pipeEffect" node="0>8|2|3|0"/>
		<i3dMapping id="pipeEffectSmoke" node="0>8|2|3|1"/>
		<i3dMapping id="unloadingStation" node="0>8|3"/>
		<i3dMapping id="exactFillRootNode" node="0>8|3|0"/>
		<i3dMapping id="unloadingStationAINode" node="0>8|3|1"/>
		<i3dMapping id="effects" node="0>9"/>
		<i3dMapping id="effectSmoke" node="0>9|0"/>
		<i3dMapping id="effectExhaust" node="0>9|1"/>
		<i3dMapping id="visuals" node="0>10"/>
		<i3dMapping id="visuals_lod" node="0>10|0"/>
		<i3dMapping id="LOD0" node="0>10|0|0"/>
		<i3dMapping id="door2" node="0>10|0|0|0"/>
		<i3dMapping id="door1" node="0>10|0|0|1"/>
		<i3dMapping id="decals" node="0>10|0|0|2"/>
		<i3dMapping id="roll" node="0>10|0|0|3"/>
		<i3dMapping id="LOD1" node="0>10|0|1"/>
		<i3dMapping id="limeStation" node="0>10|0|2"/>
		<i3dMapping id="teleportNode" node="0>10|1"/>
		<i3dMapping id="collisions" node="0>11"/>
		<i3dMapping id="collision01" node="0>11|0"/>
		<i3dMapping id="collision02" node="0>11|1"/>
		<i3dMapping id="tipCollision01" node="0>11|2"/>
		<i3dMapping id="tipCollision02" node="0>11|3"/>
		<i3dMapping id="iconLoad" node="0>8|2|4|0"/>
	</i3dMappings>
</placeable>
