<?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_sugarbeetPiler</name>
		<functions>
            <function>$l10n_function_sugarbeetPiler</function>			
        </functions>
		<image>store_sugarbeetPiler.dds</image>
		<price>50000</price>
		<dailyUpkeep>50</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>        
        <vertexBufferMemoryUsage>4025856</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>421120</indexBufferMemoryUsage>
        <textureMemoryUsage>6750208</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>sugarbeetPiler.i3d</filename>
        <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="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"/>
        </levelAreas>
    </leveling>
	
	<indoorAreas>
        <indoorArea startNode="indoorArea1Start" widthNode="indoorArea1Width" heightNode="indoorArea1Height" />
		<indoorArea startNode="indoorArea2Start" widthNode="indoorArea2Width" heightNode="indoorArea2Height" />
		<indoorArea startNode="indoorArea3Start" widthNode="indoorArea3Width" heightNode="indoorArea3Height" />
    </indoorAreas>

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

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

    <infoTrigger triggerNode="infoTrigger"/>
	
	<lights>
        <group weatherRequiredFlags="NIGHT" />

        <sharedLight filename="$data/shared/assets/lights/terraLed/fluorescentTube50W.xml"          linkNode="linkedLight1" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/lizard/buildings/industrialWallLight.xml" linkNode="linkedLight2" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/lizard/buildings/industrialWallLight.xml" linkNode="linkedLight3" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/lizard/buildings/industrialWallLight.xml" linkNode="linkedLight4" groupIndex="1"/>  
		<sharedLight filename="$data/shared/assets/lights/lizard/buildings/industrialWallLight.xml" linkNode="linkedLight5" groupIndex="1"/>
		<sharedLight filename="$data/shared/assets/lights/lizard/buildings/industrialWallLight.xml" linkNode="linkedLight6" groupIndex="1"/>
		<sharedLight filename="$data/shared/assets/lights/lizard/buildings/industrialWallLight.xml" linkNode="linkedLight7" groupIndex="1"/>
		
        <realLights>
            <low>
                <light node="realLightsLow" groupIndex="1"/>
            </low>
            <high>
                <light node="realLightsHigh" groupIndex="1"/>
            </high>
        </realLights>
    </lights>
	
	<productionPoint>
		<productions sharedThroughputCapacity="false"> 
			<production id="sugarBeetPiler"  name="$l10n_fillType_tareDirt" params="$l10n_fillType_tareDirt" cyclesPerHour="25" costsPerActiveHour="1">			
                <inputs>
                    <input fillType="SUGARBEET" amount="10000" />
                </inputs>
                <outputs>   						
                    <output fillType="TAREDIRT" amount="400" />
					<output fillType="SUGARBEET" amount="10000" sellDirectly="true"/>
                </outputs>
            </production>
		</productions>
		
		<storage isExtension="false" fillLevelSyncThreshold="50">            
			<capacity fillType="SUGARBEET"           capacity="80000" />
			<capacity fillType="TAREDIRT"            capacity="4500" />
		</storage>
		
		<sellingStation appearsOnStats="true" node="sellingStation" supportsExtension="true" >
			<unloadTrigger exactFillRootNode="unloadTrigger" fillTypes="SUGARBEET" aiNode="unloadTriggerAINode"/>
			<fillType name="SUGARBEET"  priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
			
			<effectNodes>
				<effectNode effectClass="MorphPositionEffect" effectNode="effectBeltFront01" materialType="belt" delay="0" fadeTime="1" speed="0.9" scrollLength="8" scrollSpeed="1"/>
				<effectNode effectClass="MorphPositionEffect" effectNode="effectBelt02" materialType="belt" delay=".5" fadeTime="1" speed="0.9" scrollLength="8" scrollSpeed=".4"/>
				<effectNode effectClass="MorphPositionEffect" effectNode="effectBelt03" materialType="belt" delay="1.30" fadeTime="1" speed="0.9" scrollLength="8" scrollSpeed=".4"/>
				<effectNode effectClass="MorphPositionEffect" effectNode="effectBelt04" materialType="belt" delay="2.25" fadeTime="1" speed="0.9" scrollLength="8" scrollSpeed=".4"/>
				<effectNode effectClass="ParticleEffect" effectNode="effectParticleEmitter1" materialType="unloadingParticle" particleType="unloading" emitCountScale="12" delay=".45" lifespan="0.25"/>
				<effectNode effectClass="ParticleEffect" effectNode="effectParticleEmitter2" materialType="unloadingParticle" particleType="unloading" emitCountScale="12" delay="1.5" lifespan="0.5" worldSpace="false"/>
				<effectNode effectClass="ParticleEffect" effectNode="effectParticleEmitter3" materialType="unloadingParticle" particleType="unloading" emitCountScale="12" delay="3.15" lifespan="1"/>
			</effectNodes>

			<animationNodes>
				<animationNode node="grabRoller" rotSpeed="1000"  rotAxis="1" />
				<animationNode node="smoothRoller" rotSpeed="-500" rotAxis="1" />
				<animationNode node="grabRoller2" rotSpeed="1000"  rotAxis="1" />
				<animationNode node="smoothRoller2" rotSpeed="-500" rotAxis="1" />
				<animationNode node="grabRoller3" rotSpeed="1000"  rotAxis="1" />
				<animationNode node="smoothRoller3" rotSpeed="-500" rotAxis="1" />
				<animationNode node="grabRoller4" rotSpeed="1000"  rotAxis="1" />
				<animationNode node="smoothRoller4" rotSpeed="-500" rotAxis="1" />
				<animationNode node="grabRoller5" rotSpeed="1000"  rotAxis="1" />
				<animationNode node="smoothRoller5" rotSpeed="-500" rotAxis="1" />					
				<animationNode class="ScrollingAnimation" node="belt2" shaderParameterComponent="2" scrollSpeed="0.3" turnOnFadeTime="0.1" turnOffFadeTime="0.1"/>
				<animationNode class="ScrollingAnimation" node="belt3" shaderParameterComponent="2" scrollSpeed="0.3" turnOnFadeTime="0.1" turnOffFadeTime="0.1"/>
				<animationNode class="ScrollingAnimation" node="belt4" shaderParameterComponent="2" scrollSpeed="0.3" turnOnFadeTime="0.1" turnOffFadeTime="0.1"/>
			</animationNodes>		
		</sellingStation>
	  
		<loadingStation>
			<loadTrigger triggerNode="loadTrigger" fillTypes="TAREDIRT" fillLitersPerSecond="325" dischargeNode="dischargeNode" aiNode="loadTriggerAINode" >
				<effectNode effectNode="effectParticleEmitter" materialType="smoke"     materialTypeId="1" fadeTime="0.5" />
				<effectNode effectClass="MorphPositionEffect" effectNode="effectBelt" materialType="belt" delay="0" fadeTime="1" speed="0.9" scrollLength="8" scrollSpeed="1"/>
				<effectNode effectClass="ParticleEffect" effectNode="effectParticleEmitter" materialType="unloadingParticle" particleType="unloading" emitCountScale="8" delay=".75" lifespan=".75"/>
			</loadTrigger>	
			
			<animationNodes>		
				
			</animationNodes>
		</loadingStation>
		
		<playerTrigger node="playerTrigger" />
	  
		<sounds>
			<idle template="sugarMillIdle" linkNode="0>" />
			<active template="sugarMillWork" linkNode="0>" />
		</sounds>		
	</productionPoint>	
	
	<triggerMarkers>
        <triggerMarker node="unloadTriggerMarker"   filename="$data/shared/assets/marker/markerIcons.xml" id="UNLOAD" adjustToGround="true" />		
        <triggerMarker node="loadTriggerMarker"   	filename="$data/shared/assets/marker/markerIcons.xml" id="LOAD"  adjustToGround="true" />
		<triggerMarker node="playerTriggerMarker" 	filename="$data/shared/assets/marker/markerIcons.xml" id="WRENCH" adjustToGround="true" />
    </triggerMarkers>
	
	<hotspots>
        <hotspot type="PRODUCTION_POINT" linkNode="playerTrigger" teleportNode="playerTrigger" />
    </hotspots>
	
	<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="indoorArea2Start" node="0>2|1" />
        <i3dMapping id="indoorArea2Width" node="0>2|1|0" />
        <i3dMapping id="indoorArea2Height" node="0>2|1|1" />		
		<i3dMapping id="indoorArea3Start" node="0>2|2" />
        <i3dMapping id="indoorArea3Width" node="0>2|2|0" />
        <i3dMapping id="indoorArea3Height" node="0>2|2|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="belt1" node="0>6|0|0" />
		<i3dMapping id="belt2" node="0>6|0|1" />
		<i3dMapping id="belt3" node="0>6|0|2" />
		<i3dMapping id="belt4" node="0>6|0|3" />
		<i3dMapping id="grabRoller" node="0>6|0|5" />
		<i3dMapping id="smoothRoller" node="0>6|0|6" />
		<i3dMapping id="grabRoller2" node="0>6|0|7" />
		<i3dMapping id="smoothRoller2" node="0>6|0|8" />
		<i3dMapping id="grabRoller3" node="0>6|0|9" />
		<i3dMapping id="smoothRoller3" node="0>6|0|10" />
		<i3dMapping id="grabRoller4" node="0>6|0|11" />
		<i3dMapping id="smoothRoller4" node="0>6|0|12" />
		<i3dMapping id="grabRoller5" node="0>6|0|13" />
		<i3dMapping id="smoothRoller5" node="0>6|0|14" />		
		<i3dMapping id="dirtConveyorBelt" node="0>6|0|15" />		
        <i3dMapping id="sellingStation" node="0>7" />
        <i3dMapping id="unloadTrigger" node="0>7|0" />
        <i3dMapping id="unloadTriggerMarker" node="0>7|0|0" />
        <i3dMapping id="unloadTriggerAINode" node="0>7|1" />		
		<i3dMapping id="loadTrigger" node="0>8|0" />
		<i3dMapping id="loadTriggerMarker" node="0>8|0|0" />
		<i3dMapping id="dischargeNode" node="0>8|1" />
		<i3dMapping id="loadTriggerAINode" node="0>8|2" />
		<i3dMapping id="effectParticleEmitter" node="0>8|3|1" />
		<i3dMapping id="effectBelt" node="0>8|3|2" />		
        <i3dMapping id="playerTrigger" node="0>9|0" />
        <i3dMapping id="playerTriggerMarker" node="0>9|0|0" />		
		<i3dMapping id="infoTrigger" node="0>10" /> 		
		<i3dMapping id="effectBeltFront01" node="0>11|0" />
		<i3dMapping id="effectBelt02" node="0>11|1" />
		<i3dMapping id="effectBelt03" node="0>11|2" />
		<i3dMapping id="effectBelt04" node="0>11|3" />
		<i3dMapping id="effectParticleEmitter1" node="0>11|4" />
		<i3dMapping id="effectParticleEmitter2" node="0>11|5" />
		<i3dMapping id="effectParticleEmitter3" node="0>11|6" />		
		<i3dMapping id="realLightsLow" node="0>12|0|0" />
        <i3dMapping id="realLightsHigh" node="0>12|0|1" />
        <i3dMapping id="linkedLight1" node="0>12|1|0" />
        <i3dMapping id="linkedLight2" node="0>12|1|1" />
        <i3dMapping id="linkedLight3" node="0>12|1|2" />
        <i3dMapping id="linkedLight4" node="0>12|1|3" />
		<i3dMapping id="linkedLight5" node="0>12|1|4" />
		<i3dMapping id="linkedLight6" node="0>12|1|5" />
		<i3dMapping id="linkedLight7" node="0>12|1|6" />		
    </i3dMappings>

</placeable>
