<?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_dairy</name>
        <functions>
            <function>$l10n_function_productionPoint</function>
        </functions>
        <image>store_garage.png</image>
        <price>50000</price>
		<dailyUpkeep>100</dailyUpkeep>
        <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>1039616</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>288512</indexBufferMemoryUsage>
        <textureMemoryUsage>9371648</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>garage.i3d</filename>
		<canBeRenamed>true</canBeRenamed>
    </base>

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

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

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

    <leveling requireLeveling="true" maxSmoothDistance="5" maxSlope="75" maxEdgeAngle="30">
        <levelAreas>
            <levelArea startNode="levelAreaStart01" widthNode="levelAreaWidth01" heightNode="levelAreaHeight01" groundType="asphalt"/>
        </levelAreas>
    </leveling>

    <indoorAreas>
        <indoorArea startNode="indoorAreaStart01" widthNode="indoorAreaWidth01" heightNode="indoorAreaHeight01"/>
    </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>

     <animatedObjects>
        <animatedObject saveId="door">
            <animation duration="3">
                <part node="door">
                    <keyFrame time="0.0" translation="0 0.03 1.63" rotation="90 0 0"/>
                    <keyFrame time="1.0" translation="0 0.0 0"     rotation="0 0 0"/>
                </part>
            </animation>
            <controls triggerNode="doorTrigger" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor"/>
            <sounds>
                <moving linkNode="door" template="rollingGarageDoor"    pitchScale="0.9" volumeScale="0.5"/>
                <posEnd linkNode="door" template="fenceMetalOpen"       pitchScale="0.8" volumeScale="0.6"/>
                <negEnd linkNode="door" template="slidingGateMetalOpen" pitchScale="1.1" volumeScale="0.5"/>
            </sounds>
        </animatedObject>
    </animatedObjects>		
	
	<triggerMarkers>
        <triggerMarker node="warningStripes01"/>
        <triggerMarker node="warningStripes02"/>
        <triggerMarker node="unloadTriggerMarker" adjustToGround="true" filename="$data/shared/assets/marker/markerIconUnload.i3d"/>
        <triggerMarker node="playerTriggerMarker" adjustToGround="true" filename="$data/shared/assets/marker/markerIconWrench.i3d"/>
    </triggerMarkers>

   
    <productionPoint>
        <productions>
            <production id="butter_milk" name="%s (%s)" params="$l10n_fillType_butter|$l10n_fillType_milk" cyclesPerHour="104" costsPerActiveHour="1">
                <inputs>
                    <input fillType="MILK" amount="15" />
                </inputs>
                <outputs>
                    <output fillType="BUTTER" amount="13" />
                </outputs>
            </production>
			<production id="cheese" name="$l10n_fillType_cheese" cyclesPerHour="104" costsPerActiveHour="1">
                <inputs>
                    <input fillType="MILK" amount="3" />
                </inputs>
                <outputs>
                    <output fillType="CHEESE" amount="2" />
                </outputs>
            </production>
            <production id="goatcheese" name="$l10n_fillType_goatCheese" cyclesPerHour="104" costsPerActiveHour="4">
                <inputs>
                    <input fillType="GOATMILK" amount="3" />
                </inputs>
                <outputs>
                    <output fillType="GOATCHEESE" amount="6" />
                </outputs>
            </production>
            <production id="buffalomozzarella" name="$l10n_fillType_buffaloMozzarella" cyclesPerHour="100" costsPerActiveHour="8">
                <inputs>
                    <input fillType="BUFFALOMILK" amount="3" />
                </inputs>
                <outputs>
                    <output fillType="BUFFALOMOZZARELLA" amount="2" />
                </outputs>
            </production>
            <production id="milkBottled" name="$l10n_fillType_milk_bottled" cyclesPerHour="102" costsPerActiveHour="1">
                <inputs>
                    <input fillType="MILK" amount="10" />
                </inputs>
                <outputs>
                    <output fillType="MILK_BOTTLED" amount="20" />
                </outputs>
            </production>
            <production id="goatmilkBottled" name="$l10n_fillType_goatMilk_bottled" cyclesPerHour="100" costsPerActiveHour="4">
                <inputs>
                    <input fillType="GOATMILK" amount="10" />
                </inputs>
                <outputs>
                    <output fillType="GOATMILK_BOTTLED" amount="20" />
                </outputs>
            </production>
            <production id="buffalomilkBottled" name="$l10n_fillType_buffaloMilk_bottled" cyclesPerHour="100" costsPerActiveHour="8">
                <inputs>
                    <input fillType="BUFFALOMILK" amount="10" />
                </inputs>
                <outputs>
                    <output fillType="BUFFALOMILK_BOTTLED" amount="20" />
                </outputs>
            </production>
        </productions>

        <storage isExtension="false" fillLevelSyncThreshold="50">
            <capacity fillType="MILK"                capacity="30000" />
            <capacity fillType="GOATMILK"            capacity="30000" />
            <capacity fillType="BUFFALOMILK"         capacity="30000" />
            <capacity fillType="BUTTER"              capacity="15000" />
            <capacity fillType="CHEESE"              capacity="15000" />
            <capacity fillType="GOATCHEESE"          capacity="15000" />
            <capacity fillType="BUFFALOMOZZARELLA"   capacity="15000" />
            <capacity fillType="MILK_BOTTLED"        capacity="20000" />
            <capacity fillType="GOATMILK_BOTTLED"    capacity="20000" />
            <capacity fillType="BUFFALOMILK_BOTTLED" capacity="20000" />
        </storage>

        <sellingStation node="sellingStation" supportsExtension="false" allowMissions="false">
            <unloadTrigger exactFillRootNode="exactFillRootNode" aiNode="unloadTriggerAINode" fillTypes="MILK GOATMILK BUFFALOMILK"/>
            <palletTrigger triggerNode="palletTrigger" fillTypes="MILK GOATMILK BUFFALOMILK SUGAR"/>
        </sellingStation>

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

        <playerTrigger node="playerTrigger" />
        <sounds>
            <idle   template="placeableSmallIdleGeneric" linkNode="0>"/>
            <active template="dairyWork" linkNode="0>" pitchScale="1.2" innerRadius="2" outerRadius="15" volumeScale="0.9"/>
        </sounds>
    </productionPoint>

   

    <i3dMappings>
        <i3dMapping id="clearAreaStart01" node="4>0|0" />
        <i3dMapping id="clearAreaWidth01" node="4>0|0|0" />
        <i3dMapping id="clearAreaHeight01" node="4>0|0|1" />
        <i3dMapping id="levelAreaStart01" node="1>1|0" />
        <i3dMapping id="levelAreaWidth01" node="1>1|0|0" />
        <i3dMapping id="levelAreaHeight01" node="1>1|0|1" />
        <i3dMapping id="indoorAreaStart01" node="4>1|0" />
        <i3dMapping id="indoorAreaWidth01" node="4>1|0|0" />
        <i3dMapping id="indoorAreaHeight01" node="4>1|0|1" />
        <i3dMapping id="tipOcclusionUpdateAreaStart01" node="4>3|0" />
        <i3dMapping id="tipOcclusionUpdateAreaEnd01" node="4>3|0|0" />
        <i3dMapping id="testAreaStart01" node="4>2|0" />
        <i3dMapping id="testAreaEnd01" node="4>2|0|0" />
		<i3dMapping id="infoTrigger" node="1>6" />
        <i3dMapping id="sellingStation" node="1>7" />
        <i3dMapping id="exactFillRootNode" node="3>" />
        <i3dMapping id="palletTrigger" node="1>7|1" />
        <i3dMapping id="unloadTriggerMarker" node="1>7|2" />
        <i3dMapping id="unloadTriggerAINode" node="1>7|3" />
        <i3dMapping id="playerTrigger" node="1>8|0" />
        <i3dMapping id="playerTriggerMarker" node="1>8|1" />
        <i3dMapping id="warningStripes01" node="1>9|0" />
        <i3dMapping id="warningStripes02" node="1>9|1" />
        <i3dMapping id="palletSpawner" node="1>10" />
        <i3dMapping id="palletAreaStart01" node="1>10|0" />
        <i3dMapping id="palletAreaEnd01" node="1>10|0|0" /> 
		<i3dMapping id="door" node="4>6|0|0" />
        <i3dMapping id="doorTrigger" node="4>6|1" />
       
    </i3dMappings>
</placeable>
