<?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>
	    <en>Farm Productions</en>
	    <de>Landwirtschaftliche Produktionen</de>
	</name>
        <functions>
            <function>$l10n_function_productionPoint</function>
        </functions>
        <image>store_farmproductions.png</image>
        <price>30000</price>
        <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>743936</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>133376</indexBufferMemoryUsage>
        <textureMemoryUsage>4849664</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>farmproductions.i3d</filename>
        <canBeRenamed>true</canBeRenamed>
    </base>

    <placement useRandomYRotation="false" useManualYRotation="true" >
        <testAreas>
            <testArea startNode="testArea1Start" endNode="testArea1End" />
        </testAreas>

        <sounds>
            <place template="smallImp" />
        </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="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>
        <splines>
            <spline node="aiLoadingSpline1"   maxWidth="4.2"/>
            <spline node="aiUnloadingSpline" maxWidth="4.2"/>
        </splines>
    </ai>

    <infoTrigger triggerNode="infoTrigger" />

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart filename="$data/placeables/sellingStationGeneric/sellingStationGenericNoCover.i3d" node="0" linkNode="grainGateLinkNode" />
    </dynamicallyLoadedParts>

    <triggerMarkers>
        <triggerMarker node="playerTriggerMarker" filename="$data/shared/assets/marker/markerIcons.xml" id="WRENCH" adjustToGround="true" />
        <triggerMarker node="unloadTriggerMarker" filename="$data/shared/assets/marker/markerIcons.xml" id="UNLOAD" adjustToGround="true" />
        <triggerMarker node="markerLoading1"   filename="$data/shared/assets/marker/markerIcons.xml" id="LOAD" />
        <triggerMarker node="markerLoading2"       filename="$data/shared/assets/marker/markerIcons.xml" id="LOAD" />
    </triggerMarkers>

    <hotspots>
        <hotspot type="PRODUCTION_POINT" linkNode="unloadTriggerMarker" teleportNode="teleportNode" />
    </hotspots>

    <productionPoint>
        <productions sharedThroughputCapacity="false">
			      <!-- In sostituzione all'impianto biogas, partendo direttamente dall'erba -->
			      <production id="biogasgrass" name="$l10n_fillType_silage"  cyclesPerHour="1000" costsPerActiveHour="250">
                <inputs>
                    <input fillType="GRASS_WINDROW" amount="8484" />
                </inputs>
                <outputs>
                    <output fillType="ELECTRICCHARGE" amount="1"       sellDirectly="true"/>
                    <output fillType="METHANE"        amount="5884" sellDirectly="true" />
                    <output fillType="DIGESTATE"      amount="2545" />
                </outputs>
            </production>
            <!-- In sostituzione all'impianto biogas, partendo direttamente dalla pula -->
             <production id="biogaschaff" name="$l10n_fillType_silage" cyclesPerHour="1000" costsPerActiveHour="250">
                <inputs>
                    <input fillType="CHAFF" amount="8484" />
                </inputs>
                <outputs>
                    <output fillType="ELECTRICCHARGE" amount="1"       sellDirectly="true"/>
                    <output fillType="METHANE"        amount="5884"   sellDirectly="true"/>
                    <output fillType="DIGESTATE"      amount="2545" />
                </outputs>          
            </production>
            <!-- In sostituzione all'impianto biogas, partendo direttamente dalla canna da zucchero. Riflette le proporzioni reali partendo dal calcolo base dell'insilato del biogas del gioco-->
            <production id="sugarcaneEnergy" name="$l10n_fillType_sugarcane" cyclesPerHour="1500" costsPerActiveHour="4000">
              <inputs>
                <input fillType="SUGARCANE" amount="450" />
              </inputs>
              <outputs>
                <output fillType="ELECTRICCHARGE" amount="150" sellDirectly="true"/>
              </outputs>
            </production>
          <!-- La paglia viene fatta fermentare grazie all'aggiunta di acqua in modo da produrre metano ed energia-->
            <production id="strawMethane" name="Straw Methane Plant" cyclesPerHour="50" costsPerActiveHour="80">
              <inputs>
                <input fillType="STRAW" amount="100" />
                <input fillType="WATER" amount="40" />
              </inputs>
              <outputs>
                <output fillType="ELECTRICCHARGE" amount="1"       sellDirectly="true"/>
                <output fillType="METHANE" amount="80" sellDirectly="true"/>
                <output fillType="DIGESTATE" amount="50"/>
              </outputs>
            </production>
            <!-- Pompa l'acqua dal sottosuolo tipo pozzo -->
            <production id="woodchipspower" name="$l10n_fillType_woodChips" cyclesPerHour="1000" costsPerActiveHour="250">
              <inputs>
                <input fillType="WOODCHIPS" amount="212" />
              </inputs>
              <outputs>
                <output fillType="ELECTRICCHARGE" amount="131" sellDirectly="true"/>
              </outputs>
            </production>
            <!-- Pompa l'acqua dal sottosuolo tipo pozzo -->
            <production id="waterPump" name="$l10n_fillType_water" cyclesPerHour="10000" costsPerActiveHour="100">
              <inputs>
                <input fillType="DIESEL" amount="2" />
              </inputs>
              <outputs>
                <output fillType="WATER" amount="200" />
              </outputs>
            </production>
            <!-- Biodiesel tecnicamente, prendo direttamente la materia prima senza prima lavorarla -->
            <production id="diesel" name="$l10n_fillType_diesel" cyclesPerHour="100" costsPerActiveHour="1500">
                <inputs>
                  <input fillType="CANOLA" amount="200" />
                </inputs>
                <outputs>
                  <output fillType="DIESEL" amount="10"/>
                </outputs>           
            </production>
            <!-- Semi, partendo dal frumento (tanto è un seme per tutti) -->
            <production id="seeds" name="$l10n_fillType_wheat" cyclesPerHour="100" costsPerActiveHour="600">
              <inputs>
                <input fillType="WHEAT" amount="100" />
                <input fillType="WATER" amount="5" />
              </inputs>
              <outputs>
                <output fillType="SEEDS" amount="150" />
              </outputs>
            </production>
            <!-- Additivo per insilato, migliora il rendimento quindi come se fosse un fertilizzante -->
            <production id="silageAdditivePlant" name="$l10n_fillType_silageadditive" cyclesPerHour="500" costsPerActiveHour="350">
              <inputs>
                <input fillType="POTATO" amount="40" />
                <input fillType="WATER" amount="5" />
              </inputs>
              <outputs>
                <output fillType="SILAGE_ADDITIVE" amount="5" />
              </outputs>
            </production>
            <!-- Praticamente basta tritare le pietre, serve un pochino d'acqua per "raffreddare i macchinari e diesel per farli funzionare" -->
            <production id="lime" name="Lime Production Plant" cyclesPerHour="50" costsPerActiveHour="800">
              <inputs>
                <input fillType="STONE" amount="200" />
                <input fillType="DIESEL" amount="5" />
              </inputs>
              <outputs>
                <output fillType="LIME" amount="150" />
              </outputs>
            </production>
            <!-- Migliora il rendimento come il digestato, e il lime per "addensare". L'acqua serve sempre -->
            <production id="solidFertilizerPlant" name="Solid Fertilizer Plant" cyclesPerHour="200" costsPerActiveHour="1200">
              <inputs>
                <input fillType="DIGESTATE" amount="180" />
                <input fillType="LIME" amount="30" />
              </inputs>
              <outputs>
                <output fillType="FERTILIZER" amount="180" />
              </outputs>
            </production>
            <!-- Praticamente il fertilizzante solido ma in forma liquida, ottenuto aggiundo acqua al fertilizzante solido -->
            <production id="liquidFertilizerPlant" name="Liquid Fertilizer Plant" cyclesPerHour="200" costsPerActiveHour="500">
              <inputs>
                <input fillType="FERTILIZER" amount="10" />
                <input fillType="WATER" amount="90" />
              </inputs>
              <outputs>
                <output fillType="LIQUIDFERTILIZER" amount="100" />
              </outputs>
            </production>
            <!-- Come se fosse una variante del fertilizzante liquido, inserita la paglia dal momento che è uno scarto -->
            <production id="herbicidePlant" name="Herbicide Production Plant" cyclesPerHour="150" costsPerActiveHour="800">
              <inputs>
                <input fillType="CANOLA" amount="30" />
                <input fillType="WATER" amount="5" />
              </inputs>
              <outputs>
                <output fillType="HERBICIDE" amount="20" />
              </outputs>
            </production>
       </productions>

        <storage isExtension="false" fillLevelSyncThreshold="50">
            <capacity fillType="DIGESTATE"     capacity="1000000000" />
            <capacity fillType="WATER"     capacity="1000000000" />
            <capacity fillType="WHEAT"     capacity="1000000000" />
            <capacity fillType="SUNFLOWER"     capacity="1000000000" />
            <capacity fillType="CANOLA"     capacity="1000000000" />
            <capacity fillType="DIESEL"    capacity="1000000000" />
            <capacity fillType="STONE"    capacity="1000000000" />
            <capacity fillType="LIME"     capacity="1000000000" />
            <capacity fillType="LIQUIDFERTILIZER"     capacity="1000000000" />
            <capacity fillType="FERTILIZER"     capacity="1000000000" />
            <capacity fillType="HERBICIDE"     capacity="1000000000" />
            <capacity fillType="SEEDS"     capacity="1000000000" />
            <capacity fillType="GRASS_WINDROW"     capacity="1000000000" />
            <capacity fillType="CHAFF"     capacity="1000000000" />
            <capacity fillType="STRAW"     capacity="1000000000" />
            <capacity fillType="SILAGE_ADDITIVE"     capacity="1000000000" />
            <capacity fillType="LIQUIDLIME"     capacity="1000000000" />
            <capacity fillType="SUGARCANE"     capacity="1000000000" />
            <capacity fillType="WOODCHIPS"     capacity="1000000000" />
            <capacity fillType="METHANE"     capacity="1000000000" />
        </storage>

        <sellingStation node="sellingStation" supportsExtension="false">
            <unloadTrigger exactFillRootNode="unloadTrigger" aiNode="unloadTriggerAINode" fillTypes="DIGESTATE WHEAT STONE DIESEL WATER CANOLA SUNFLOWER LIME CHAFF GRASS_WINDROW STRAW HERBICIDE SUGARCANE WOODCHIPS">
	    <baleTrigger triggerNode="baleTrigger" deleteLitersPerSecond="8000" />
	</unloadTrigger>
        </sellingStation>

        <loadingStation>
	<loadTrigger triggerNode="loadingTrigger1" fillLitersPerSecond="2000" dischargeNode="dischargeNode1" fillTypes="SUGARBEET_CUT MINERAL_FEED LIME ROADSALT FERTILIZER SEEDS DRYGRASS_WINDROW STRAW SILAGE FORAGE PIGFOOD STONE MANURE" aiNode="aiLoadingNode1">
                <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>
	<loadTrigger triggerNode="loadingTrigger2" fillLitersPerSecond="2000" dischargeNode="dischargeNode2" fillTypes="WATER LIQUIDFERTILIZER HERBICIDE SILAGE_ADDITIVE DIESEL DIGESTATE LIQUIDLIME" aiNode="aiLoadingNode2">
            </loadTrigger>
        </loadingStation>

        <playerTrigger node="playerTrigger" />

        <sounds>
            <idle template="oilPlantIdle" linkNode="0>" />
            <active template="oilPlantWork" linkNode="0>" />
        </sounds>
    </productionPoint>

    <i3dMappings>
        <i3dMapping id="mapPosition" node="0>0|0" />

        <i3dMapping id="productionPoint" node="0>0|1" />
        <i3dMapping id="playerTrigger" node="0>0|1|0" />
        <i3dMapping id="playerTriggerMarker" node="0>0|1|0|0" />
        <i3dMapping id="teleportNode" node="0>0|1|1" />

        <i3dMapping id="storage" node="0>0|2" />

        <i3dMapping id="loadingStation" node="0>0|3" />
        <i3dMapping id="loadingTrigger1" node="0>0|3|0|0" />
        <i3dMapping id="dischargeNode1" node="0>0|3|0|1" />
        <i3dMapping id="pipeEffect" node="0>0|3|0|2|0" />
        <i3dMapping id="pipeEffectSmoke" node="0>0|3|0|2|1" />
        <i3dMapping id="aiLoadingNode1" node="0>0|3|0|3" />
        <i3dMapping id="aiLoadingSpline1" node="0>0|3|0|4" />
        <i3dMapping id="markerLoading1" node="0>0|3|0|5" />

        <i3dMapping id="loadingTrigger2" node="0>0|3|1|0" />
        <i3dMapping id="dischargeNode2" node="0>0|3|1|1" />
        <i3dMapping id="aiLoadingNode2" node="0>0|3|1|2" />
        <i3dMapping id="markerLoading2" node="0>0|3|1|3" />

        <i3dMapping id="sellingStation" node="0>0|4" />
        <i3dMapping id="grainGateLinkNode" node="0>0|4|0" />
        <i3dMapping id="unloadTrigger" node="0>0|4|0|0" />
        <i3dMapping id="unloadTriggerMarker" node="0>0|4|0|0|0" />
        <i3dMapping id="baleTrigger" node="0>0|4|0|1" />
        <i3dMapping id="unloadTriggerAINode" node="0>0|4|1" />
        <i3dMapping id="aiUnloadingSpline" node="0>0|4|2" />

        <i3dMapping id="levelArea1Start" node="0>0|5|0" />
        <i3dMapping id="levelArea1Width" node="0>0|5|0|0" />
        <i3dMapping id="levelArea1Height" node="0>0|5|0|1" />

        <i3dMapping id="clearArea1Start" node="0>0|6|0" />
        <i3dMapping id="clearArea1Width" node="0>0|6|0|0" />
        <i3dMapping id="clearArea1Height" node="0>0|6|0|1" />

        <i3dMapping id="indoorArea1Start" node="0>0|7|0" />
        <i3dMapping id="indoorArea1Width" node="0>0|7|0|0" />
        <i3dMapping id="indoorArea1Height" node="0>0|7|0|1" />

        <i3dMapping id="testArea1Start" node="0>0|8|0" />
        <i3dMapping id="testArea1End" node="0>0|8|0|0" />

        <i3dMapping id="tipOcclusionUpdateArea1Start" node="0>0|9|0" />
        <i3dMapping id="tipOcclusionUpdateArea1End" node="0>0|9|0|0" />

        <i3dMapping id="infoTrigger" node="0>0|10" />
    </i3dMappings>
</placeable>
