<?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_us_grainMill</name>
        <image>$data/store/store_empty.png</image>
        <price>96000</price>
        <showInStore>false</showInStore>
        <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>50000</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>10000</indexBufferMemoryUsage>
        <textureMemoryUsage>500000</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>$data/placeables/mapUS/productionPointGrainMill/productionPointGrainMill.i3d</filename>
        <canBeRenamed>true</canBeRenamed>
    </base>

    <placement useRandomYRotation="false" useManualYRotation="true" >
    </placement>

    <clearAreas>
        <clearArea startNode="clearArea1Start" widthNode="clearArea1Width" heightNode="clearArea1Height"/>
    </clearAreas>

    <leveling>
    </leveling>

    <indoorAreas>
        <indoorArea startNode="indoorArea1Start" widthNode="indoorArea1Width" heightNode="indoorArea1Height" />
    </indoorAreas>

    <tipOcclusionUpdateAreas>
        <tipOcclusionUpdateArea startNode="tipOcclusionUpdateArea1Start" endNode="tipOcclusionUpdateArea1End" />
        <tipOcclusionUpdateArea startNode="tipOcclusionUpdateArea2Start" endNode="tipOcclusionUpdateArea2End" />
    </tipOcclusionUpdateAreas>

    <ai>
        <updateAreas />
    </ai>

    <infoTrigger triggerNode="infoTrigger" />

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart filename="$data/placeables/sellingStationGeneric/sellingStationGenericNoCover.i3d" node="0" linkNode="grainGateLinkNode" />
    </dynamicallyLoadedParts>

    <hotspots>
        <hotspot type="PRODUCTION_POINT" linkNode="unloadTriggerMarker" teleportNode="teleportNode" />
    </hotspots>

    <triggerMarkers>
        <triggerMarker node="warningStripes_palletSpawnArea" adjustToGround="true" />
        <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" />
    </triggerMarkers>

    <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" />
                <spawnPlace startNode="spawnSpace2start" />
            </spawnPlaces>
        </palletSpawner>

        <playerTrigger node="playerTrigger" />

        <sounds>
            <idle template="grainMillIdle" linkNode="0>" />
            <active template="grainMillWork" linkNode="0>" />
        </sounds>
    </productionPoint>

    <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="levelAreaStart" node="0>1" />
        <i3dMapping id="levelAreaWidth" node="0>1|0" />
        <i3dMapping id="levelAreaHeight" node="0>1|1" />
        <i3dMapping id="indoorArea1Start" node="0>2" />
        <i3dMapping id="indoorArea1Width" node="0>2|0" />
        <i3dMapping id="indoorArea1Height" node="0>2|1" />
        <i3dMapping id="infoTrigger" node="0>3" />
        <i3dMapping id="tipOcclusionUpdateArea1Start" node="0>4|0" />
        <i3dMapping id="tipOcclusionUpdateArea1End" node="0>4|0|0" />
        <i3dMapping id="tipOcclusionUpdateArea2Start" node="0>4|1" />
        <i3dMapping id="tipOcclusionUpdateArea2End" node="0>4|1|0" />
        <i3dMapping id="effect1" node="0>6|0" />
        <i3dMapping id="effect2" node="0>6|1" />
        <i3dMapping id="effect3" node="0>6|2" />
        <i3dMapping id="sellingStation" node="0>7" />
        <i3dMapping id="unloadTrigger" node="0>7|0" />
        <i3dMapping id="grainGateLinkNode" node="0>7|0|0" />
        <i3dMapping id="unloadTriggerMarker" node="0>7|0|1" />
        <i3dMapping id="teleportNode" node="0>7|1" />
        <i3dMapping id="aiNode" node="0>7|2" />
        <i3dMapping id="playerTrigger" node="0>8|0" />
        <i3dMapping id="playerTriggerMarker" node="0>8|0|0" />
        <i3dMapping id="spawnSpace1start" node="0>9|0" />
        <i3dMapping id="spawnSpace2start" node="0>9|1" />
        <i3dMapping id="warningStripes" node="0>10" />
        <i3dMapping id="warningStripes_palletSpawnArea" node="0>10|0" />
    </i3dMappings>
</placeable>
