<?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_cerealFactory</name>
        <functions>
            <function>$l10n_function_productionPoint</function>
        </functions>
        <image>$data/placeables/brandless/productionPointsGeneric/cerealFactory/store_cerealFactory.png</image>
        <price>260000</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>746496</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>161536</indexBufferMemoryUsage>
        <textureMemoryUsage>3145728</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>$data/placeables/brandless/productionPointsGeneric/cerealFactory/cerealFactory.i3d</filename>
        <canBeRenamed>true</canBeRenamed>
    </base>

    <placement useRandomYRotation="false" useManualYRotation="true" >
        <testAreas>
            <testArea startNode="testAreaStart01" endNode="testAreaEnd01" />
            <testArea startNode="testAreaStart02" endNode="testAreaEnd02" />
        </testAreas>

        <sounds>
            <place template="largeImp" />
        </sounds>
    </placement>

    <clearAreas>
        <clearArea startNode="clearAreaStart01" widthNode="clearAreaWidth01" heightNode="clearArea1Height"/>
        <clearArea startNode="clearAreaStart02" widthNode="clearAreaWidth02" heightNode="clearArea2Height"/>
    </clearAreas>

    <leveling requireLeveling="true" maxSmoothDistance="10" maxSlope="75" maxEdgeAngle="30" >
        <levelAreas>
            <levelArea startNode="levelAreaStart01" widthNode="levelArea1Width" heightNode="levelArea01Height" />
            <levelArea startNode="levelArea2Start" widthNode="levelAreaWidth02" heightNode="levelArea2Height" />
        </levelAreas>

        <paintAreas>
            <paintArea startNode="paintAreaStart01" widthNode="paintAreaWidth01" heightNode="paintAreaHeight01" groundType="asphalt"/>
            <paintArea startNode="paintArea2Start" widthNode="paintAreaWidth02" heightNode="paintAreaHeight02" groundType="asphalt"/>
        </paintAreas>
    </leveling>

    <indoorAreas>
        <indoorArea startNode="indoorAreaStart01" widthNode="indoorAreaWidth01" heightNode="indoorArea1Height" />
        <indoorArea startNode="indoorArea2Start" 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="unloadTriggerMarker" />
    </hotspots>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart filename="$data/placeables/brandless/productionPointsGeneric/cerealFactory/props.i3d" node="0" linkNode="propsLinkNode" />
        <dynamicallyLoadedPart filename="$data/effects/chimneySmoke/smokeTrailSubUV.i3d"  node="0" linkNode="effectChimney1" shaderParameterName="colorAlpha" shaderParameter="0.5 0.5 0.5 0.5"/>
        <dynamicallyLoadedPart filename="$data/effects/chimneySmoke/smokeTrailSubUV.i3d"  node="0" linkNode="effectChimney2" shaderParameterName="colorAlpha" shaderParameter="0.5 0.5 0.5 0.5"/>
    </dynamicallyLoadedParts>

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

    <lights>
        <group weatherRequiredFlags="NIGHT" />

        <sharedLight filename="$data/shared/assets/lights/lizard/buildings/industrialWallLight.xml" linkNode="linkedLight1" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/lizard/buildings/industrialWallLight.xml" linkNode="linkedLight2" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/lizard/buildings/industrialWallLight.xml" linkNode="linkedLight3" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/lizard/buildings/industrialWallLight.xml" linkNode="linkedLight4" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/lizard/buildings/industrialWallLight.xml" linkNode="linkedLight5" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/lizard/buildings/industrialWallLight.xml" linkNode="linkedLight6" groupIndex="1"/>

        <lightShape node="interiorDay" groupIndex="1"/>
        <lightShape node="interiorDayLOD" groupIndex="1"/>
    </lights>

    <productionPoint>
        <productions>
            <production id="cereal_raisins" name="%s (%s)" params="$l10n_fillType_cereal|$l10n_fillType_raisins" cyclesPerHour="20" costsPerActiveHour="5">
                <inputs>
                    <input fillType="HONEY"   amount="30" />
                    <input fillType="RAISINS" amount="30" />
                    <input fillType="OAT"     amount="120" />
                    <input fillType="MAIZE"   amount="120" />
                </inputs>
                <outputs>
                    <output fillType="CEREAL" amount="250" />
                </outputs>
            </production>
            <production id="cereal_chocolate" name="%s (%s)" params="$l10n_fillType_cereal|$l10n_fillType_chocolate" cyclesPerHour="20" costsPerActiveHour="5">
                <inputs>
                    <input fillType="HONEY"     amount="30" />
                    <input fillType="CHOCOLATE" amount="30" />
                    <input fillType="OAT"       amount="115" />
                    <input fillType="MAIZE"     amount="115" />
                </inputs>
                <outputs>
                    <output fillType="CEREAL" amount="240" />
                </outputs>
            </production>
            <production id="cereal_riceLongGrain" name="%s (%s)" params="$l10n_fillType_cereal|$l10n_fillType_riceLongGrain" cyclesPerHour="20" costsPerActiveHour="10">
                <inputs>
                    <input fillType="HONEY"         amount="45" />
                    <input fillType="RICELONGGRAIN" amount="120" />
                </inputs>
                <outputs>
                    <output fillType="CEREAL" amount="130" />
                </outputs>
            </production>
            <production id="cereal_rice" name="%s (%s)" params="$l10n_fillType_cereal|$l10n_fillType_rice" cyclesPerHour="20" costsPerActiveHour="10">
                <inputs>
                    <input fillType="HONEY" amount="45" />
                    <input fillType="RICE"  amount="115" />
                </inputs>
                <outputs>
                    <output fillType="CEREAL" amount="120" />
                </outputs>
            </production>
        </productions>

        <storage isExtension="false" fillLevelSyncThreshold="50">
            <capacity fillType="HONEY"         capacity="100000" />
            <capacity fillType="RAISINS"       capacity="100000" />
            <capacity fillType="CHOCOLATE"     capacity="100000" />
            <capacity fillType="OAT"           capacity="1000000" />
            <capacity fillType="MAIZE"         capacity="1000000" />
            <capacity fillType="RICELONGGRAIN" capacity="1000000" />
            <capacity fillType="RICE"          capacity="500000" />
            <capacity fillType="CEREAL"        capacity="500000" />
        </storage>

        <sellingStation node="sellingStation" supportsExtension="false">
            <unloadTrigger exactFillRootNode="exactFillRootNode" aiNode="unloadTriggerAINode" fillTypes="OAT MAIZE RICELONGGRAIN RICE"/>
            <palletTrigger triggerNode="palletTrigger" aiNode="unloadTriggerAINode" fillTypes="HONEY RAISINS CHOCOLATE"/>
        </sellingStation>

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

        <playerTrigger node="playerTrigger" />

        <sounds>
            <idle template="cerealFactoryIdle" linkNode="0>" />
            <active template="cerealFactoryWork" linkNode="0>" />
        </sounds>
    </productionPoint>

    <i3dMappings>
        <i3dMapping id="clearAreaStart01" node="0>0|0" />
        <i3dMapping id="clearAreaWidth01" node="0>0|0|0" />
        <i3dMapping id="clearArea1Height" node="0>0|0|1" />
        <i3dMapping id="clearAreaStart02" node="0>0|1" />
        <i3dMapping id="clearAreaWidth02" node="0>0|1|0" />
        <i3dMapping id="clearArea2Height" node="0>0|1|1" />
        <i3dMapping id="levelAreaStart01" node="0>1|0" />
        <i3dMapping id="levelArea1Width" node="0>1|0|0" />
        <i3dMapping id="levelArea01Height" node="0>1|0|1" />
        <i3dMapping id="levelArea2Start" node="0>1|1" />
        <i3dMapping id="levelAreaWidth02" node="0>1|1|0" />
        <i3dMapping id="levelArea2Height" node="0>1|1|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="paintArea2Start" node="0>2|1" />
        <i3dMapping id="paintAreaWidth02" node="0>2|1|0" />
        <i3dMapping id="paintAreaHeight02" node="0>2|1|1" />
        <i3dMapping id="indoorAreaStart01" node="0>3|0" />
        <i3dMapping id="indoorAreaWidth01" node="0>3|0|0" />
        <i3dMapping id="indoorArea1Height" node="0>3|0|1" />
        <i3dMapping id="indoorArea2Start" 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="testAreaStart02" node="0>4|1" />
        <i3dMapping id="testAreaEnd02" node="0>4|1|0" />
        <i3dMapping id="tipOcclusionUpdateAreaStart01" node="0>5|0" />
        <i3dMapping id="tipOcclusionUpdateAreaEnd01" node="0>5|0|0" />
        <i3dMapping id="infoTrigger" node="0>6" />
        <i3dMapping id="realLightsLow" node="0>7|0|0" />
        <i3dMapping id="realLightsHigh" node="0>7|0|1" />
        <i3dMapping id="linkedLight1" node="0>7|1|0" />
        <i3dMapping id="linkedLight2" node="0>7|1|1" />
        <i3dMapping id="linkedLight3" node="0>7|1|2" />
        <i3dMapping id="linkedLight4" node="0>7|1|3" />
        <i3dMapping id="linkedLight5" node="0>7|1|4" />
        <i3dMapping id="linkedLight6" node="0>7|1|5" />
        <i3dMapping id="effectChimney1" node="0>8|0" />
        <i3dMapping id="effectChimney2" node="0>8|1" />
        <i3dMapping id="sellingStation" node="0>9" />
        <i3dMapping id="exactFillRootNode" node="0>9|0" />
        <i3dMapping id="unloadTriggerAINode" node="0>9|1" />
        <i3dMapping id="palletTrigger" node="0>9|2" />
        <i3dMapping id="unloadTriggerMarker" node="0>9|3" />
        <i3dMapping id="playerTrigger" node="0>10|0" />
        <i3dMapping id="playerTriggerMarker" node="0>10|0|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="warningStripes" node="0>12" />
        <i3dMapping id="warningStripes01" node="0>12|0" />
        <i3dMapping id="warningStripes02" node="0>12|1" />
        <i3dMapping id="interiorDay" node="0>13|0|0|0|2|0" />
        <i3dMapping id="interiorDayLOD" node="0>13|0|1|0|5" />
        <i3dMapping id="propsLinkNode" node="0>13|1" />
    </i3dMappings>
</placeable>
