<?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_PigFoodProduction</name>
        <functions>
            <function>$l10n_function_foodMixer</function>
        </functions>
        <image>store_production.png</image>
        <price>20000</price>
        <dailyUpkeep>20</dailyUpkeep>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
		<species>placeable</species>
        <category>productionPoints</category>
        <brush>
            <type>placeable</type>
            <category>production</category>
            <tab>factories</tab>
		</brush>     
        <vertexBufferMemoryUsage>183552</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>51456</indexBufferMemoryUsage>
        <textureMemoryUsage>1769472</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>production.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="1" 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>
        <splines>
            <spline node="aiSpline" />
        </splines>
    </ai>
	
	<dynamicallyLoadedParts>
        <dynamicallyLoadedPart filename="$data/placeables/shared/sellingStationGeneric/sellingStationGenericNoCover.i3d" node="0" linkNode="grainGutterLinkNode" />
    </dynamicallyLoadedParts>

    <infoTrigger triggerNode="infoTrigger"/>

    <productionPoint>
        <productions sharedThroughputCapacity="false">
            <production id="futtermischung" name="$l10n_fillType_forage_mixing" cyclesPerHour="2" costsPerActiveHour="2">
                <inputs>
            <input fillType="WHEAT" amount="250" />
		    <input fillType="POTATO"         amount="500" />
		    <input fillType="SUGARBEET"         amount="250" />
                </inputs>
                <outputs>
                    <output fillType="PIGFOOD" amount="1000" />
                </outputs>
            </production>
			
        </productions>

        <sellingStation node="sellingStation" appearsOnStats="true" supportsExtension="true">
            <unloadTrigger exactFillRootNode="exactFillRootNode" fillTypes="SUGARBEET WHEAT POTATO MINERAL_FEED" aiNode="aiUnloadingNode"/>
			<palletTrigger triggerNode="palletTrigger" aiNode="aiUnloadingNode" fillTypes="SUGARBEET WHEAT POTATO MINERAL_FEED" />
        </sellingStation>

        <loadingStation>
			<loadTrigger triggerNode="loadingTrigger" fillLitersPerSecond="2000" dischargeNode="dischargeNode" fillTypes="SUGARBEET CHAFF POTATO 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="100">
            <capacity fillType="SUGARBEET"            capacity="1000000" />
			<capacity fillType="POTATO"    capacity="1000000" />
			<capacity fillType="WHEAT"           capacity="1000000" />
			<capacity fillType="PIGFOOD" capacity="1000000" />
        </storage>
		
		<playerTrigger node="playerTrigger" />
		
	</productionPoint>

    <hotspots>
		<hotspot type="PRODUCTION_POINT" linkNode="mapPosition" teleportNode="markerLoading"/>
    </hotspots>

    <triggerMarkers>
        <triggerMarker node="markerLoading"   filename="$data/shared/assets/marker/markerIconLoad.i3d" />
        <triggerMarker node="markerUnloading" filename="$data/shared/assets/marker/markerIconUnload.i3d" />
		<triggerMarker node="playerTriggerMarker" filename="$data/shared/assets/marker/markerIconWrench.i3d" />
    </triggerMarkers>

    <i3dMappings>
        <i3dMapping id="mapPosition" node="0>9" />
        <i3dMapping id="storage" node="0>9" />
        <i3dMapping id="loadingTrigger" node="0>4|0|0" />
        <i3dMapping id="dischargeNode" node="0>4|0|1" />
        <i3dMapping id="dischargeEffect" node="0>4|0|2" />
        <i3dMapping id="pipeEffect" node="0>4|0|2|0" />
        <i3dMapping id="pipeEffectSmoke" node="0>4|0|2|1" />
        <i3dMapping id="aiLoadingNode" node="0>4|0|3" />
        <i3dMapping id="markerLoading" node="0>4|1" />
        <i3dMapping id="exactFillRootNode" node="0>3|1" />
        <i3dMapping id="aiUnloadingNode" node="0>3|0" />
        <i3dMapping id="markerUnloading" node="0>3|0" />
        <i3dMapping id="infoTrigger" node="0>11" />
        <i3dMapping id="aiSpline" node="0>3|1" />
        <i3dMapping id="clearArea1Start" node="0>6|0" />
        <i3dMapping id="clearArea1Width" node="0>6|0|1" />
        <i3dMapping id="clearArea1Height" node="0>6|0|0" />
        <i3dMapping id="levelAreaStart" node="0>7|0" />
        <i3dMapping id="levelAreaWidth" node="0>7|0|1" />
        <i3dMapping id="levelAreaHeight" node="0>7|0|0" />
		<i3dMapping id="indoorAreaStart" node="0>12|0" />
        <i3dMapping id="indoorAreaWidth" node="0>12|0|0" />
        <i3dMapping id="indoorAreaHeight" node="0>12|0|1" />
        <i3dMapping id="testArea1Start" node="0>5" />
        <i3dMapping id="testArea1End" node="0>5|0" />
        <i3dMapping id="tipOcclusionUpdateArea1Start" node="0>5" />
        <i3dMapping id="tipOcclusionUpdateArea1End" node="0>5|0" />
		<i3dMapping id="playerTrigger" node="0>10" />
        <i3dMapping id="playerTriggerMarker" node="0>10|0" />
		<i3dMapping id="grainGutterLinkNode" node="0>3" />
		<i3dMapping id="palletTrigger" node="0>3|4" />
    </i3dMappings>
</placeable>
