<?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>
        <functions>
            <function>$l10n_function_productionPoint</function>
        </functions>
        <image>$data/placeables/brandless/productionPointsGeneric/grainMill/store_grainMill.png</image>
        <price>300000</price>
        <canBeSold>true</canBeSold>
        <showInStore>true</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>1120768</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>280576</indexBufferMemoryUsage>
        <textureMemoryUsage>2752512</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <filename>$data/placeables/brandless/productionPointsGeneric/grainMill/grainMill.i3d</filename>
    </base>

    <placement useRandomYRotation="false" useManualYRotation="true" >
        <testAreas>
            <testArea startNode="testAreaStart01" endNode="testAreaEnd01" />
        </testAreas>
        <sounds>
            <place template="medImp"/>
        </sounds>
    </placement>

    <clearAreas>
        <clearArea startNode="clearAreaStart01" widthNode="clearAreaWidth01" heightNode="clearAreaHeight01"/>
    </clearAreas>

    <leveling requireLeveling="true" maxSmoothDistance="10" maxSlope="75" maxEdgeAngle="30" >
        <levelAreas>
            <levelArea startNode="levelAreaStart01" widthNode="levelAreaWidth01" heightNode="levelAreaHeight01" groundType="asphalt"/>
        </levelAreas>
        <paintAreas>
            <paintArea startNode="paintAreaStart01" widthNode="paintAreaWidth01" heightNode="paintAreaHeight01" groundType="asphalt"/>
        </paintAreas>
    </leveling>

    <indoorAreas>
        <indoorArea startNode="indoorAreaStart01" widthNode="indoorAreaWidth01" heightNode="indoorAreaHeight01" />
        <indoorArea startNode="indoorAreaStart02" widthNode="indoorAreaWidth02" heightNode="indoorAreaHeight02" />
    </indoorAreas>

    <tipOcclusionUpdateAreas>
        <tipOcclusionUpdateArea startNode="tipOcclusionUpdateAreaStart01" endNode="tipOcclusionUpdateAreaEnd01" />
    </tipOcclusionUpdateAreas>

    <ai>
        <updateAreas>
            <updateArea startNode="tipOcclusionUpdateAreaStart01" endNode="tipOcclusionUpdateAreaEnd01" />
        </updateAreas>
    </ai>

    <infoTrigger triggerNode="infoTrigger"/>

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

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart filename="$data/placeables/shared/sellingStationGeneric/sellingStationGenericNoCover.i3d"  linkNode="unloadTriggerLinkNode"/>
        <dynamicallyLoadedPart filename="$data/placeables/brandless/productionPointsGeneric/grainMill/grainMillProps.i3d" linkNode="props" node="0"/>
    </dynamicallyLoadedParts>

    <triggerMarkers>
        <triggerMarker node="warningStripes01"/>
        <triggerMarker node="unloadTriggerMarker" filename="$data/shared/assets/marker/markerIconUnload.i3d" adjustToGround="true"/>
        <triggerMarker node="playerTriggerMarker" filename="$data/shared/assets/marker/markerIconWrench.i3d"/>
    </triggerMarkers>

    <productionPoint>
        <productions sharedThroughputCapacity="false">
            <production id="flourWheat" name="%s %s" params="$l10n_fillType_wheat|$l10n_fillType_flour" cyclesPerHour="210" costsPerActiveHour="1">
                <inputs>
                    <input fillType="WHEAT" amount="10" />
                </inputs>
                <outputs>
                    <output fillType="FLOUR" amount="8" />
                </outputs>
            </production>
            <production id="flourBarley" name="%s %s" params="$l10n_fillType_barley|$l10n_fillType_flour" cyclesPerHour="40" costsPerActiveHour="1">
                <inputs>
                    <input fillType="BARLEY" amount="60" />
                </inputs>
                <outputs>
                    <output fillType="FLOUR" amount="44" />
                </outputs>
            </production>
            <production id="flourOat" name="%s %s"  params="$l10n_fillType_oat|$l10n_fillType_flour" cyclesPerHour="100" costsPerActiveHour="1">
                <inputs>
                    <input fillType="OAT" amount="30" />
                </inputs>
                <outputs>
                    <output fillType="FLOUR" amount="30" />
                </outputs>
            </production>
            <production id="flourSorghum" name="%s %s"  params="$l10n_fillType_sorghum|$l10n_fillType_flour" cyclesPerHour="100" costsPerActiveHour="1">
                <inputs>
                    <input fillType="SORGHUM" amount="30" />
                </inputs>
                <outputs>
                    <output fillType="FLOUR" amount="26" />
                </outputs>
            </production>
            <production id="flourRiceLongGrain" name="%s (%s)"  params="$l10n_fillType_riceFlour|$l10n_fillType_riceLongGrain" cyclesPerHour="60" costsPerActiveHour="2">
                <inputs>
                    <input fillType="RICELONGGRAIN" amount="30" />
                </inputs>
                <outputs>
                    <output fillType="RICEFLOUR" amount="26" />
                </outputs>
            </production>
            <production id="flourRice" name="%s (%s)"  params="$l10n_fillType_riceFlour|$l10n_fillType_rice" cyclesPerHour="60" costsPerActiveHour="1">
                <inputs>
                    <input fillType="RICE" amount="18" />
                </inputs>
                <outputs>
                    <output fillType="RICEFLOUR" amount="30" />
                </outputs>
            </production>
        </productions>

        <storage isExtension="false" fillLevelSyncThreshold="50">
            <capacity fillType="WHEAT"         capacity="1000000" />
            <capacity fillType="BARLEY"        capacity="1000000" />
            <capacity fillType="OAT"           capacity="1000000" />
            <capacity fillType="SORGHUM"       capacity="1000000" />
            <capacity fillType="RICELONGGRAIN" capacity="1000000" />
            <capacity fillType="RICE"          capacity="500000" />
            <capacity fillType="FLOUR"         capacity="500000" />
            <capacity fillType="RICEFLOUR"     capacity="500000" />
        </storage>

        <sellingStation node="sellingStationProduction" supportsExtension="false">
            <unloadTrigger exactFillRootNode="exactFillNode" aiNode="unloadTriggerAINode" fillTypes="WHEAT BARLEY OAT SORGHUM RICELONGGRAIN RICE"/>
        </sellingStation>

        <palletSpawner>
            <spawnPlaces>
                <spawnPlace startNode="palletAreaStart01" endNode="palletAreaEnd01"/>
                <spawnPlace startNode="palletAreaStart02" endNode="palletAreaEnd02"/>
                <spawnPlace startNode="palletAreaStart03" endNode="palletAreaEnd03"/>
            </spawnPlaces>
        </palletSpawner>

        <playerTrigger node="playerTrigger" />
        <sounds>
            <idle   template="grainMillIdle" linkNode="0>" pitchScale="1.0"/>
            <active template="grainMillWork" linkNode="0>" pitchScale="1.0"/>
        </sounds>
    </productionPoint>

    <i3dMappings>
        <i3dMapping id="clearAreaStart01" node="0>0|0" />
        <i3dMapping id="clearAreaWidth01" node="0>0|0|0" />
        <i3dMapping id="clearAreaHeight01" node="0>0|0|1" />
        <i3dMapping id="levelAreaStart01" node="0>1|0" />
        <i3dMapping id="levelAreaWidth01" node="0>1|0|0" />
        <i3dMapping id="levelAreaHeight01" node="0>1|0|1" />
        <i3dMapping id="paintAreaStart01" node="0>2|0" />
        <i3dMapping id="paintAreaWidth01" node="0>2|0|0" />
        <i3dMapping id="paintAreaHeight01" node="0>2|0|1" />
        <i3dMapping id="indoorAreaStart01" node="0>3|0" />
        <i3dMapping id="indoorAreaWidth01" node="0>3|0|0" />
        <i3dMapping id="indoorAreaHeight01" node="0>3|0|1" />
        <i3dMapping id="indoorAreaStart02" node="0>3|1" />
        <i3dMapping id="indoorAreaWidth02" node="0>3|1|0" />
        <i3dMapping id="indoorAreaHeight02" node="0>3|1|1" />
        <i3dMapping id="testAreaStart01" node="0>4|0" />
        <i3dMapping id="testAreaEnd01" node="0>4|0|0" />
        <i3dMapping id="tipOcclusionUpdateAreaStart01" node="0>5|0" />
        <i3dMapping id="tipOcclusionUpdateAreaEnd01" node="0>5|0|0" />
        <i3dMapping id="infoTrigger" node="0>7" />
        <i3dMapping id="sellingStation" node="0>8" />
        <i3dMapping id="exactFillNode" node="0>8|0" />
        <i3dMapping id="unloadTriggerMarker" node="0>8|1" />
        <i3dMapping id="unloadTriggerAINode" node="0>8|2" />
        <i3dMapping id="unloadTriggerLinkNode" node="0>8|3" />
        <i3dMapping id="playerTrigger" node="0>9|0" />
        <i3dMapping id="playerTriggerMarker" node="0>9|1" />
        <i3dMapping id="warningStripes01" node="0>10|0" />
        <i3dMapping id="palletSpawner" node="0>11" />
        <i3dMapping id="palletAreaStart01" node="0>11|0" />
        <i3dMapping id="palletAreaEnd01" node="0>11|0|0" />
        <i3dMapping id="palletAreaStart02" node="0>11|1" />
        <i3dMapping id="palletAreaEnd02" node="0>11|1|0" />
        <i3dMapping id="palletAreaStart03" node="0>11|2" />
        <i3dMapping id="palletAreaEnd03" node="0>11|2|0" />
        <i3dMapping id="props" node="0>12|1" />
    </i3dMappings>
</placeable>
