<?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_station_alpine_mill</name>
        <image></image>
        <price>96000</price>
        <canBeSold>true</canBeSold>
        <showInStore>false</showInStore>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>placeable</species>
        <category>placeableMisc</category>
        <vertexBufferMemoryUsage>0</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>0</indexBufferMemoryUsage>
        <textureMemoryUsage>0</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>$data/placeables/mapAlpine/sellingStations/productionPointMill.i3d</filename>
    </base>

    <placement useRandomYRotation="false" useManualYRotation="true" />

    <clearAreas></clearAreas>

    <leveling></leveling>

    <indoorAreas>
        <indoorArea startNode="indoorArea1Start" widthNode="indoorArea1Width" heightNode="indoorArea1Height" />
        <indoorArea startNode="indoorArea2Start" widthNode="indoorArea2Width" heightNode="indoorArea2Height" />
    </indoorAreas>

    <tipOcclusionUpdateAreas>
        <tipOcclusionUpdateArea startNode="tipOcclusionUpdateArea1Start" endNode="tipOcclusionUpdateArea1End" />
    </tipOcclusionUpdateAreas>

    <ai>
        <updateAreas>
            <updateArea startNode="tipOcclusionUpdateArea1Start" endNode="tipOcclusionUpdateArea1End" />
        </updateAreas>
    </ai>

    <triggerMarkers>
        <triggerMarker node="unloadTriggerMarker" filename="$data/shared/assets/marker/markerIcons.xml" id="UNLOAD" />
        <triggerMarker node="playerTriggerMarker" filename="$data/shared/assets/marker/markerIcons.xml" id="WRENCH" adjustToGround="true" />
        <triggerMarker node="warningStripes_palletSpawnArea" adjustToGround="true" />
    </triggerMarkers>

    <hotspots>
        <hotspot type="PRODUCTION_POINT" teleportNode="teleportNode" />
    </hotspots>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart filename="$data/placeables/mapAlpine/sellingStations/sellingStationGeneric.i3d" node="0" linkNode="unloadPitLinkNode" />
    </dynamicallyLoadedParts>

    <productionPoint>
        <productions sharedThroughputCapacity="false">
            <production id="flourWheat" name="%s %s" params="$l10n_fillType_wheat|$l10n_fillType_flour" cyclesPerHour="5" costsPerActiveHour="1">
                <inputs>
                    <input fillType="WHEAT" amount="150" />
                </inputs>
                <outputs>
                    <output fillType="FLOUR" amount="120" />
                </outputs>
            </production>
            <production id="flourBarley" name="%s %s" params="$l10n_fillType_barley|$l10n_fillType_flour" cyclesPerHour="5" costsPerActiveHour="1">
                <inputs>
                    <input fillType="BARLEY" amount="150" />
                </inputs>
                <outputs>
                    <output fillType="FLOUR" amount="113" />
                </outputs>
            </production>
            <production id="flourOat" name="%s %s"  params="$l10n_fillType_oat|$l10n_fillType_flour" cyclesPerHour="5" costsPerActiveHour="1">
                <inputs>
                    <input fillType="OAT" amount="150" />
                </inputs>
                <outputs>
                    <output fillType="FLOUR" amount="188" />
                </outputs>
            </production>
            <production id="flourSorghum" name="%s %s"  params="$l10n_fillType_sorghum|$l10n_fillType_flour" cyclesPerHour="5" costsPerActiveHour="1">
                <inputs>
                    <input fillType="SORGHUM" amount="150" />
                </inputs>
                <outputs>
                    <output fillType="FLOUR" amount="158" />
                </outputs>
            </production>
        </productions>

        <storage isExtension="false" fillLevelSyncThreshold="50">
            <capacity fillType="WHEAT"   capacity="270000" />
            <capacity fillType="BARLEY"  capacity="270000" />
            <capacity fillType="OAT"     capacity="270000" />
            <capacity fillType="SORGHUM" capacity="270000" />
            <capacity fillType="FLOUR"   capacity="30000" />
        </storage>

        <sellingStation node="sellingStation" supportsExtension="false">
            <unloadTrigger exactFillRootNode="unloadTrigger" fillTypes="WHEAT BARLEY OAT SORGHUM" aiNode="aiNode" />
        </sellingStation>

        <palletSpawner>
            <spawnPlaces>
                <spawnPlace startNode="spawnSpace1start" />
            </spawnPlaces>
        </palletSpawner>

        <playerTrigger node="playerTrigger" />

        <sounds>
            <idle   template="grainMillIdle" linkNode="soundNode" />
            <active template="grainMillWork" linkNode="soundNode" />
        </sounds>
    </productionPoint>

    <i3dMappings>
        <i3dMapping id="indoorArea1Start" node="0>0|0" />
        <i3dMapping id="indoorArea1Width" node="0>0|0|0" />
        <i3dMapping id="indoorArea1Height" node="0>0|0|1" />
        <i3dMapping id="indoorArea2Start" node="0>0|1" />
        <i3dMapping id="indoorArea2Width" node="0>0|1|0" />
        <i3dMapping id="indoorArea2Height" node="0>0|1|1" />
        <i3dMapping id="infoTrigger" node="0>1" />
        <i3dMapping id="tipOcclusionUpdateArea1Start" node="0>2|0" />
        <i3dMapping id="tipOcclusionUpdateArea1End" node="0>2|0|0" />
        <i3dMapping id="sellingStation" node="0>4" />
        <i3dMapping id="unloadPitLinkNode" node="0>4|0" />
        <i3dMapping id="unloadTrigger" node="0>4|1" />
        <i3dMapping id="grainGateLinkNode" node="0>4|1|0" />
        <i3dMapping id="unloadTriggerMarker" node="0>4|1|1" />
        <i3dMapping id="teleportNode" node="0>4|2" />
        <i3dMapping id="aiNode" node="0>4|3" />
        <i3dMapping id="playerTrigger" node="0>5|0" />
        <i3dMapping id="playerTriggerMarker" node="0>5|0|0" />
        <i3dMapping id="soundNode" node="0>5|1" />
        <i3dMapping id="spawnSpace1start" node="0>6|0" />
        <i3dMapping id="warningStripes_palletSpawnArea" node="0>6|1" />
    </i3dMappings>
</placeable>
