<?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>
			<de>Schweine-Futtermischer</de>
			<en>Pig-Feedmixer</en>
		</name>
        <functions>
			<function>$l10n_function_productionPoint</function>
		</functions>
        <image>maps/placeables/Haupthof/store_schweinefuttermischer.png</image>
        <price>5000</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>
    </storeData>

    <base>
        <filename>maps/placeables/Haupthof/Mixer.i3d</filename>
        <canBeRenamed>true</canBeRenamed>
		<boughtWithFarmland>true</boughtWithFarmland>
    </base>

    <placement useRandomYRotation="false" useManualYRotation="true" >
        <testAreas>
            <testArea startNode="testArea1Start" endNode="testArea1End" />
        </testAreas>
		
		<sounds>
            <place template="siloImp" />
        </sounds>
    </placement>

    <clearAreas>
        <clearArea startNode="clearArea1Start" widthNode="clearArea1Width" heightNode="clearArea1Height"/>
    </clearAreas>

    <leveling requireLeveling="true" maxSmoothDistance="10" maxSlope="75" maxEdgeAngle="30" >
        <levelAreas>
            <levelArea startNode="clearArea1Start" widthNode="clearArea1Width" heightNode="clearArea1Height" 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>
	


    <infoTrigger triggerNode="infoTrigger"/>

    <triggerMarkers>
        <triggerMarker node="playerTriggerMarker"       filename="$data/shared/assets/marker/markerIconWrench.i3d" 	adjustToGround="true" />
		<triggerMarker node="markerLoading"       		filename="$data/shared/assets/marker/markerIconLoad.i3d"	adjustToGround="true" />
    </triggerMarkers>

    <hotspots>
        <hotspot type="PRODUCTION_POINT" linkNode="hotspotMarker" teleportNode="teleportNode"/>
    </hotspots>


    <productionPoint>
        <productions sharedThroughputCapacity="false">
			<production id="Mischfuttermischer" 	name="$l10n_fillType_pigFood" 				cyclesPerHour="1" costsPerActiveHour="2" mixMode="most">
                <inputs>
					<input amount="250" 	fillType="POTATO" />
					<input amount="100" 	fillType="MAIZE"/>
					<input amount="100" 	fillType="WHEAT"/>
					<input amount="50"		fillType="CANOLA" />
                </inputs>
                <outputs>
                    <output amount="500" 	fillType="PIGFOOD"/>
                </outputs>
            </production>
			<production id="Mischfuttermischer2" 	name="$l10n_fillType_pigFood" 				cyclesPerHour="1" costsPerActiveHour="2" mixMode="most">
                <inputs>
					<input amount="250" 	fillType="CARROT" />
					<input amount="100" 	fillType="MAIZE"/>
					<input amount="100" 	fillType="GRAIN_DRY"/>
					<input amount="50"		fillType="CANOLA" />
                </inputs>
                <outputs>
                    <output amount="500" 	fillType="PIGFOOD"/>
                </outputs>
            </production>
			<production id="Mischfuttermischer3" 	name="$l10n_fillType_pigFood" 				cyclesPerHour="1" costsPerActiveHour="2" mixMode="most">
                <inputs>
					<input amount="250" 	fillType="SUGARBEET" />
					<input amount="100" 	fillType="MAIZE"/>
					<input amount="100" 	fillType="GRAIN_DRY"/>
					<input amount="50"		fillType="MINERAL_FEED" />
                </inputs>
                <outputs>
                    <output amount="500" 	fillType="PIGFOOD"/>
                </outputs>
            </production>
        </productions>

        <sellingStation node="sellingStation" allowMissions="false" appearsOnStats="true" hideFromPricesMenu="true" supportsExtension="true">

            <unloadTrigger exactFillRootNode="unloadTriggerMixer"        fillTypes="POTATO MAIZE WHEAT CANOLA CARROT GRAIN_DRY SUGARBEET MINERAL_FEED" />
           

			<palletTrigger triggerNode="palletTrigger" fillTypes="POTATO MAIZE WHEAT CANOLA CARROT GRAIN_DRY SUGARBEET MINERAL_FEED"/>			
			
            <animationNodes>
				<animationNode node="mixingDrum" rotAxis="2" rotSpeed="180" />
				<animationNode node="mixingDrum2" rotAxis="2" rotSpeed="-180" />
            </animationNodes>
        </sellingStation>

        <loadingStation>
			<loadTrigger triggerNode="loadingTrigger" fillLitersPerSecond="500" dischargeNode="dischargeNode" fillTypes="PIGFOOD" aiNode="aiLoadingNode">
                <effectNode effectClass="PipeEffect" effectNode="pipeEffect"      materialType="pipe"           fadeTime="0.5" maxBending="0" controlPoint="4.8 0 0 0" />
                <effectNode                          effectNode="pipeEffectSmoke" materialType="unloadingSmoke" fadeTime="0.5" />
			</loadTrigger>
        </loadingStation>

        <storage isExtension="false" fillLevelSyncThreshold="15">
			<capacity fillType="POTATO"   				capacity="50000" />
			<capacity fillType="MAIZE"   							capacity="50000" />
			<capacity fillType="WHEAT"   							capacity="50000" />
			<capacity fillType="CANOLA" 						capacity="50000"  />
			<capacity fillType="CARROT" 						capacity="50000"  />
			<capacity fillType="SUGARBEET"   							capacity="50000" />
			<capacity fillType="GRAIN_DRY"   							capacity="50000" />
			<capacity fillType="MINERAL_FEED"   							capacity="50000" />
			<capacity fillType="PIGFOOD"   							capacity="50000" />
            

            <dynamicFillPlane node="FillVolumen3" allSidePlanes="false" maxAllowedHeapAngle="10" maxDelta="0.2" defaultFillType="PIGFOOD"/>
        </storage>

        <playerTrigger node="playerTrigger" />

        <sounds>
            <idle template="dairyIdle" linkNode="0>" outerRadius="10" volumeScale="0.4"/>
            <active template="dairyWork" linkNode="0>" outerRadius="10" volumeScale="0.4"/>
        </sounds>
		
	
    </productionPoint>

    <animatedObjects>
	
		<animatedObject saveId="unloadingAnimation" >
            <animation duration="3">
				<part node="0>11|1|3"> 
                    <keyFrame time="0.0" visibility="true"/>
					<keyFrame time="0.7" visibility="false" />
                </part>				
				<part node="0>11|1|4"> 
                    <keyFrame time="0.0" visibility="false"/>
					<keyFrame time="0.7" visibility="true" />
                </part>	
                <part node="0>11|1|2">
                    <keyFrame time="0.0" rotation="0 -90 0"/> 
                    <keyFrame time="0.7" rotation="-90 -90 0"/> <!-- oben -->
                </part>
            </animation>
            <controls triggerNode="unlodingStationAnimationTrigger" posAction="ACTIVATE_HANDTOOL" posText="action_activateFlap" negText="action_deactivateFlap" />
			<sounds>
                <moving linkNode="unlodingStationAnimationTrigger" file="$data/sounds/player/flashlight/plyrFlashlightOn_01.ogg" volume="2" radius="2" innerRadius="1" fadeOut="0.25"/>
                <moving linkNode="unlodingStationAnimationTrigger" file="$data/sounds/doors/woodDoorSqueakBig_03.ogg" volume="4" radius="2" innerRadius="1" fadeOut="0.25"/>
			</sounds>					
        </animatedObject>
		
    </animatedObjects>

    <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="indoorArea1Start" node="0>1|0" />
        <i3dMapping id="indoorArea1Width" node="0>1|0|0" />
        <i3dMapping id="indoorArea1Height" node="0>1|0|1" />
        <i3dMapping id="testArea1Start" node="0>2|0" />
        <i3dMapping id="testArea1End" node="0>2|0|0" />
        <i3dMapping id="tipOcclusionUpdateArea1Start" node="0>3|0" />
        <i3dMapping id="tipOcclusionUpdateArea1End" node="0>3|0|0" />
        <i3dMapping id="infoTrigger" node="0>4" />
        <i3dMapping id="mixingDrum" node="0>11|2" />
        <i3dMapping id="mixingDrum2" node="0>11|6" />
        <i3dMapping id="hotspotMarker" node="0>8" />
        <i3dMapping id="teleportNode" node="0>9" />
        <i3dMapping id="FillVolumen3" node="0>10|2|0" />
        <i3dMapping id="playerTrigger" node="0>10|1" />
        <i3dMapping id="playerTriggerMarker" node="0>10|1|0" />		
		<i3dMapping id="loadingTrigger" node="0>10|0|0|0" />
        <i3dMapping id="dischargeNode" node="0>10|0|0|1" />
        <i3dMapping id="dischargeEffect" node="0>10|0|0|2" />
        <i3dMapping id="pipeEffect" node="0>10|0|0|2|0" />
        <i3dMapping id="pipeEffectSmoke" node="0>10|0|0|2|1" />
        <i3dMapping id="aiLoadingNode" node="0>10|0|0|3" />
        <i3dMapping id="markerLoading" node="0>10|2|3" />		
	
        <i3dMapping id="unloadTriggerMixer" node="0>10|2|2" />

        <i3dMapping id="palletTrigger" 		node="0>10|2|4" />					
        <i3dMapping id="unlodingStationAnimationTrigger" 		node="0>11|1|1" />		
        <i3dMapping id="cap" 				node="0>11|1|2" />	
        <i3dMapping id="rot" 		node="0>11|1|3" />	
        <i3dMapping id="gruen" 		node="0>11|1|4" />			
    </i3dMappings>
</placeable>
