<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="rlSlaughterhouse" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../shared/xml/schema/placeable.xsd">
    <storeData>
        <name>$l10n_storeItem_pervichnaya</name>
        <functions>
            <function>$l10n_function_pervichnaya</function>
        </functions>
        <image>store/store_pervichnaya.dds</image>
        <price>600000</price>
        <dailyUpkeep>500</dailyUpkeep>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>placeable</species>
        <category>productionPoints</category>
        <brush>
            <type>placeable</type>
            <category>RK</category>
            <tab>Abatedouro</tab>
        </brush>
        <vertexBufferMemoryUsage>1668864</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>220160</indexBufferMemoryUsage>
        <textureMemoryUsage>13041664</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>i3D/pervichnaya.i3d</filename>
        <canBeRenamed>true</canBeRenamed>
        <boughtWithFarmland>true</boughtWithFarmland>
    </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" />
    </indoorAreas>

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

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

    <rlSlaughterhouse animalTriggerNode="animalTrigger"
                     unloadTriggerNode="unloadTriggerAnimal"
                     minAgeCow="12"
                     minAgePig="6"
                     minAgeSheep="8"
                     minAgeChicken="6"
                     carcassFillTypeCow="COW_CARCASS"
                     carcassFillTypePig="PIG_CARCASS"
                     carcassFillTypeSheep="SHEEP_CARCASS"
                     carcassFillTypeChicken="CHICKEN_CARCASS"
                     actionText="Abater animais"
    />

    <productionPoint>   
        <productions sharedThroughputCapacity="false" mixMode="most"> 
            <production id="cow_rl" name="$l10n_fillType_beef" cyclesPerHour="2.5" costsPerActiveHour="10">
              <inputs>
                <input fillType="COW_CARCASS" amount="100"/>
              </inputs>
              <outputs>
                <output fillType="BEEF" amount="72" boost="false"/>
                <output fillType="LEATHER" amount="8" boost="false"/>
              </outputs>
            </production>

            <production id="pig_rl" name="$l10n_fillType_porc" cyclesPerHour="3.5" costsPerActiveHour="10">
              <inputs>
                <input fillType="PIG_CARCASS" amount="80"/>
              </inputs>
              <outputs>
                <output fillType="PORK" amount="65" boost="false"/>
              </outputs>
            </production>

            <production id="sheep_rl" name="$l10n_fillType_mutton" cyclesPerHour="5.00" costsPerActiveHour="10">
              <inputs>
                <input fillType="SHEEP_CARCASS" amount="50"/>
              </inputs>
              <outputs>
                <output fillType="MUTTON" amount="32" boost="false"/>
                <output fillType="WOOL" amount="4" boost="false"/>
              </outputs>
            </production>

            <production id="chicken_rl" name="$l10n_fillType_chickenmeat" cyclesPerHour="20.00" costsPerActiveHour="10">
              <inputs>
                <input fillType="CHICKEN_CARCASS" amount="20"/>
              </inputs>
              <outputs>
                <output fillType="CHICKENMEAT" amount="16" boost="false"/>
              </outputs>
            </production>
        </productions>
        
        <storage isExtension="false" fillLevelSyncThreshold="50">
            <capacity fillType="COW_CARCASS" capacity="50000" />
            <capacity fillType="PIG_CARCASS" capacity="50000" />
            <capacity fillType="SHEEP_CARCASS" capacity="50000" />
            <capacity fillType="CHICKEN_CARCASS" capacity="50000" />
            
            <capacity fillType="BEEF" capacity="40000" />
            <capacity fillType="PORK" capacity="40000" />
            <capacity fillType="MUTTON" capacity="40000" />
            <capacity fillType="CHICKENMEAT" capacity="40000" />
            <capacity fillType="WOOL" capacity="5000" />
            <capacity fillType="LEATHER" capacity="5000" />
        </storage>

        <unloadingStation node="unloadingStation" supportsExtension="false" storageRadius="50" hideFromPricesMenu="true">
            <unloadTrigger exactFillRootNode="unloadTriggerAnimal"
                           aiNode="unloadTriggerAINodeAnimal"
                           fillTypes="COW_CARCASS PIG_CARCASS SHEEP_CARCASS CHICKEN_CARCASS" />
        </unloadingStation>

        <loadingStation node="palletSpawner" supportsExtension="false" storageRadius="50">
            <loadTrigger triggerNode="unloadTriggerAnimal" fillTypes="BEEF PORK MUTTON CHICKENMEAT WOOL LEATHER" fillLitersPerSecond="2000" autoStart="true"/>
        </loadingStation>
        
        <palletSpawner node="palletSpawner">
            <spawnPlaces>
                <spawnPlace startNode="palletAreaStart01" endNode="palletAreaEnd01"/>
                <spawnPlace startNode="palletAreaStart02" endNode="palletAreaEnd02"/>
                <spawnPlace startNode="palletAreaStart03" endNode="palletAreaEnd03"/>
                <spawnPlace startNode="palletAreaStart04" endNode="palletAreaEnd04"/>
                <spawnPlace startNode="palletAreaStart05" endNode="palletAreaEnd05"/>
                <spawnPlace startNode="palletAreaStart06" endNode="palletAreaEnd06"/>
            </spawnPlaces>
        </palletSpawner>
        
        <playerTrigger node="playerTrigger" />
    
        <sounds>
            <idle   file="$data/placeables/brandless/productionPointsGeneric/paperFactory/sounds/paperFactoryIdle.wav" linkNode="0>" loops="0" innerRadius="7" outerRadius="40" supportsReverb="false">
                <volume indoor="0.4" outdoor="1.8"/>
            </idle>
            <active file="$data/placeables/brandless/productionPointsGeneric/paperFactory/sounds/paperFactoryWork.wav" linkNode="0>" loops="0" innerRadius="7" outerRadius="40" supportsReverb="false">
                <volume indoor="0.4" outdoor="1.8"/>
            </active>
        </sounds>
    </productionPoint>

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

    <triggerMarkers>
        <triggerMarker node="warningStripes01"/>
        <triggerMarker node="warningStripes02"/>
        <triggerMarker node="playerTriggerMarker" adjustToGround="true" filename="$data/shared/assets/marker/markerIconWrench.i3d"/>
        <triggerMarker node="markerAnimals"       adjustToGround="true" filename="$data/shared/assets/marker/markerIconAnimals.i3d" />
    </triggerMarkers>
    
    <lights>
        <group weatherRequiredFlags="NIGHT" />
        <realLights>
            <low>
                <light node="realLightsLow" groupIndex="1"/>
            </low>
            <high>
                <light node="realLightsHigh" groupIndex="1"/>
            </high>
        </realLights>
    </lights>
    
    <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="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="unloadingStation" node="0>8" />
        <i3dMapping id="unloadTriggerAnimal" node="0>12|2" />
        <i3dMapping id="unloadTriggerAINodeAnimal" node="0>12|3" />
        
        <i3dMapping id="animalTrigger" node="0>12|0" /> 
        <i3dMapping id="markerAnimals" node="0>12|4" />
        
        <i3dMapping id="warningStripes01" node="0>9|0" />
        <i3dMapping id="warningStripes02" node="0>9|1" />
        
        <i3dMapping id="playerTrigger" node="0>10|0" />
        <i3dMapping id="playerTriggerMarker" node="0>10|1" />
        
        <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="palletAreaStart04" node="0>11|3" />
        <i3dMapping id="palletAreaEnd04" node="0>11|3|0" />
        <i3dMapping id="palletAreaStart05" node="0>11|4" />
        <i3dMapping id="palletAreaEnd05" node="0>11|4|0" />
        <i3dMapping id="palletAreaStart06" node="0>11|5" />
        <i3dMapping id="palletAreaEnd06" node="0>11|5|0" />
        
        <i3dMapping id="realLightsLow" node="0>16|0" />
        <i3dMapping id="realLightsHigh" node="0>16|1" />
    </i3dMappings>
</placeable>