<?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>whisky factory</name>
        <functions>
            <function>$l10n_function_productionPoint</function>
        </functions>
        <image>store_whisky.dds</image>
        <price>180000</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>1568000</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>346624</indexBufferMemoryUsage>
        <textureMemoryUsage>1638400</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <filename>whiskyfactory.i3d</filename>
        <canBeRenamed>true</canBeRenamed>
    </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="clearAreaStart01" widthNode="clearAreaWidth01" heightNode="clearAreaHeight01" groundType="asphalt"/>
        </levelAreas>
    </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" />

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart filename="$data/placeables/mapEU/spinnery/props.i3d"      node="0" linkNode="spinnery" />
        <dynamicallyLoadedPart filename="$data/placeables/shared/sellingStationGeneric/sellingStationGenericNoCoverWideGrid.i3d" node="0" linkNode="exactFillNode" rotation="0 90 0" />
        <dynamicallyLoadedPart filename="$data/effects/chimneySmoke/smokeTrailSubUV.i3d" node="0" linkNode="smokeBigTower01" shaderParameterName="colorAlpha" shaderParameter="0.5 0.5 0.5 0.5"/>
        <dynamicallyLoadedPart filename="$data/effects/chimneySmoke/smokeTrailSubUV.i3d" node="1" linkNode="smokeSmall01" shaderParameterName="colorAlpha" shaderParameter="0.5 0.5 0.5 0.5"/>
        <dynamicallyLoadedPart filename="$data/effects/chimneySmoke/smokeTrailSubUV.i3d" node="1" linkNode="smokeSmall02" shaderParameterName="colorAlpha" shaderParameter="0.5 0.5 0.5 0.5"/>
        <dynamicallyLoadedPart filename="$data/effects/chimneySmoke/smokeTrailSubUV.i3d" node="1" linkNode="smokeSmall03" shaderParameterName="colorAlpha" shaderParameter="0.5 0.5 0.5 0.5"/>
    </dynamicallyLoadedParts>

    <productionPoint>
       <productions>
            <production id="WHISKY" name="pallette de whisky" cyclesPerHour="30" costsPerActiveHour="5">
                <inputs>
                    <input fillType="BARLEY" amount="90" />
					<input fillType="MAIZE" amount="10" />
                </inputs>
                <outputs>
                    <output fillType="WHISKY" amount="100" />
                </outputs>
            </production>
            
        </productions>

        <storage isExtension="false" fillLevelSyncThreshold="50">
            <capacity fillType="BARLEY"               capacity="240000" />
            <capacity fillType="MAIZE"                capacity="80000" />
			<capacity fillType="WHISKY"               capacity="255000" />
			
        </storage>

        <sellingStation node="sellingStation" supportsExtension="false">
            <unloadTrigger exactFillRootNode="exactFillNode" aiNode="unloadTriggerAINode" fillTypes="BARLEY MAIZE"/>
            <palletTrigger triggerNode="palletTrigger" aiNode="unloadTriggerAINode" fillTypes="BARLEY MAIZE"/>
        </sellingStation>

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

        <playerTrigger node="playerTrigger" />
        <sounds>
            <idle   template="spinneryIdle" linkNode="0>" />
            <active template="spinneryWork" linkNode="0>" />
        </sounds>
    </productionPoint>

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

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

    <i3dMappings>
        <i3dMapping id="whiskyfactory" node="0>" />
        <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="testAreaStart01" node="0>1|0" />
        <i3dMapping id="testAreaEnd01" node="0>1|0|0" />
        <i3dMapping id="indoorAreaStart01" node="0>2|0" />
        <i3dMapping id="indoorAreaWidth01" node="0>2|0|0" />
        <i3dMapping id="indoorAreaHeight01" node="0>2|0|1" />
        <i3dMapping id="indoorAreaStart02" node="0>2|1" />
        <i3dMapping id="indoorAreaWidth02" node="0>2|1|0" />
        <i3dMapping id="indoorAreaHeight02" node="0>2|1|1" />
        <i3dMapping id="tipOcclusionUpdateAreaStart01" node="0>3|0" />
        <i3dMapping id="tipOcclusionUpdateAreaEnd01" node="0>3|0|0" />
        <i3dMapping id="smokeBigTower01" node="0>4|0" />
        <i3dMapping id="smokeSmall01" node="0>4|1" />
        <i3dMapping id="smokeSmall02" node="0>4|2" />
        <i3dMapping id="smokeSmall03" node="0>4|3" />
        <i3dMapping id="infoTrigger" node="0>5" />
        <i3dMapping id="sellingStation" node="0>6" />
        <i3dMapping id="exactFillNode" node="0>6|0" />
        <i3dMapping id="unloadTriggerMarker" node="0>6|0|0" />
        <i3dMapping id="unloadTriggerAINode" node="0>6|0|1" />
        <i3dMapping id="palletTrigger" node="0>6|1" />
        <i3dMapping id="productionPoint" node="0>7" />
        <i3dMapping id="playerTrigger" node="0>7|0" />
        <i3dMapping id="playerTriggerMarker" node="0>7|0|0" />
        <i3dMapping id="palletSpawner" node="0>8" />
        <i3dMapping id="palletAreaStart01" node="0>8|0" />
        <i3dMapping id="palletAreaEnd01" node="0>8|0|0" />
        <i3dMapping id="palletAreaStart02" node="0>8|1" />
        <i3dMapping id="palletAreaEnd02" node="0>8|1|0" />
        <i3dMapping id="warningStripes01" node="0>8|2" />
    </i3dMappings>
</placeable>
