<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="pigHusbandry" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/placeable.xsd">
    <storeData>
        <name>$l10n_storeItem_animalBarnPigBig</name>
		
        <image>store_Chiqueiro.dds</image>
        <price>60000</price>
        <functions>
            <function>$l10n_function_animalPenPig</function>
        </functions>
        <lifetime>1000</lifetime>
        <dailyUpkeep>100</dailyUpkeep>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>PLACEABLE</species>
        <category>animalpens</category>
        <brush>
            <type>placeable</type>
            <category>animals</category>
            <tab>pigs</tab>
        </brush>
		
		<storeIconRendering>
            <settings cameraXRot="-4" cameraYRot="-36" zoomFactor="1" />
        </storeIconRendering>
        <vertexBufferMemoryUsage>1226240</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>340224</indexBufferMemoryUsage>
        <textureMemoryUsage>9175040</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
    <base>
        <filename>Chiqueiro.i3d</filename>
        <canBeRenamed>true</canBeRenamed>
		<boughtWithFarmland>true</boughtWithFarmland>
    </base>
    <placement useRandomYRotation="false" useManualYRotation="true">
        <testAreas>
            <testArea startNode="0>14|0" endNode="0>14|0|0"/>
        </testAreas>
        <sounds>
            <place template="smallImp"/>
            <placeLayered template="pigLayer"/>
        </sounds>
    </placement>
    <clearAreas>
        <clearArea startNode="0>11|0" widthNode="0>11|0|0" heightNode="0>11|0|1"/>
    </clearAreas>
    <leveling requireLeveling="true" maxSmoothDistance="10" maxSlope="75" maxEdgeAngle="30">
        <levelAreas>
            <levelArea startNode="0>12|0" widthNode="0>12|0|0" heightNode="0>12|0|1" groundType="dirt"/>
        </levelAreas>
    </leveling>
    <indoorAreas>
        <indoorArea startNode="0>13|0" widthNode="0>13|0|0" heightNode="0>13|0|1"/>
    </indoorAreas>
    <tipOcclusionUpdateAreas>
        <tipOcclusionUpdateArea startNode="0>15|0" endNode="0>15|0|0"/>
    </tipOcclusionUpdateAreas>
    <ai>
        <updateAreas>
            <updateArea startNode="0>15|0" endNode="0>15|0|0"/>
        </updateAreas>
    </ai>
	
	
    <triggerMarkers>
        <triggerMarker node="0>7|0" filename="marker/markerIconSlurry.i3d"/>
        <triggerMarker node="0>7|1" filename="marker/markerIconFood.i3d"/>
		<triggerMarker node="0>7|2" filename="marker/markerIconAnimals.i3d" />
        <triggerMarker node="0>7|3" filename="marker/markerIconCortina.i3d"/>
    </triggerMarkers>
    <hotspots>
        <hotspot type="PIG" teleportNode="0>2"/>
    </hotspots>
    <animatedObjects>
        <animatedObject saveId="porta1">
            <animation duration="2">
                <part node="0>1|5|0">
                    <keyFrame time="0.0" translation="1.460 0 0"/>
                    <keyFrame time="1.0" translation="0 0 0"/>
                </part>
            </animation>
            <controls triggerNode="0>1|5|1" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate"/>
            <sounds>
                <moving linkNode="0>1|5|0" template="metalDoorsLoop"/>
                <posEnd linkNode="0>1|5|0" template="metalDoorsOpen"/>
                <negEnd linkNode="0>1|5|0" template="metalDoorsClose"/>
            </sounds>
        </animatedObject>
        <animatedObject saveId="porta2">
            <animation duration="1.5">
                <part node="0>1|2|0|0">
                    <keyFrame time="0.0" translation="0.011 0.285 -0.867"/>
                    <keyFrame time="0.5" translation="0.011 0.285 -0.811"/>
                </part>
                <part node="0>1|2|0">
                    <keyFrame time="0.6" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 -100 0"/>
                </part>
            </animation>
            <controls triggerNode="0>1|2|1" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate"/>
            <sounds>
                <moving linknode="0>1|2|0" template="slidingGateMetalLoop"/>
                <posEnd linknode="0>1|2|0" template="slidingGateMetalOpen"/>
                <negEnd linknode="0>1|2|0" template="slidingGateMetalClose"/>
            </sounds>
        </animatedObject>
        <animatedObject saveId="porta3">
            <animation duration="2">
                <part node="0>1|6|0">
                    <keyFrame time="0.0" translation="1.460 0 0"/>
                    <keyFrame time="1.0" translation="0 0 0"/>
                </part>
            </animation>
            <controls triggerNode="0>1|6|1" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate"/>
            <sounds>
                <moving linkNode="0>1|6|0" template="metalDoorsLoop"/>
                <posEnd linkNode="0>1|6|0" template="metalDoorsOpen"/>
                <negEnd linkNode="0>1|6|0" template="metalDoorsClose"/>
            </sounds>
        </animatedObject>
        <animatedObject saveId="porta4">
            <animation duration="2">
                <part node="0>1|4|0">
                    <keyFrame time="0.0" translation="0 0 -1.463"/>
                    <keyFrame time="1.0" translation="0 0 0"/>
                </part>
            </animation>
            <controls triggerNode="0>1|4|1" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate"/>
            <sounds>
                <moving linkNode="0>1|4|0" template="metalDoorsLoop"/>
                <posEnd linkNode="0>1|4|0" template="metalDoorsOpen"/>
                <negEnd linkNode="0>1|4|0" template="metalDoorsClose"/>
            </sounds>
        </animatedObject>
        <animatedObject saveId="janela1">
            <animation duration="5">
                <part node="0>1|1|0">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 135 0"/>
                </part>
                <part node="0>1|1|1">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 -135 0"/>
                </part>
            </animation>
            <controls triggerNode="0>1|1|2" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate"/>
            <sounds>
                <moving linkNode="0>1|1|0" template="fenceLoop"/>
                <posEnd linkNode="0>1|1|0" template="fenceOpen"/>
                <negEnd linkNode="0>1|1|0" template="fenceClose"/>
            </sounds>
        </animatedObject>
        <!-- Lona -->
        <animatedObject saveId="lona">
            <animation duration="8">
                <part node="0>1|3|0">
                    <keyFrame time="0.0" scale="1 1 1"/>
                    <keyFrame time="1.0" scale="1 0 1"/>
                </part>
            </animation>
            <controls triggerNode="0>1|3|2" posAction="ACTIVATE_HANDTOOL" posText="action_curtainSideOpen" negText="action_curtainSideClose"/>
            <sounds>
                <moving template="plasitcVentilationGateLoop" linkNode="0>1|3|0"/>
            </sounds>
        </animatedObject>
        <!-- Lights -->
        <animatedObject saveId="Lampadas">
            <animation duration="1">
                <part node="0>8|0|0">
                    <keyFrame time="0" visibility="false"/>
                    <keyFrame time="0.4" visibility="true"/>
                </part>
                <part node="0>8|1|0">
                    <keyFrame time="0" visibility="false"/>
                    <keyFrame time="0.4" visibility="true"/>
                </part>
                <part node="0>8|2|0">
                    <keyFrame time="0" visibility="false"/>
                    <keyFrame time="0.1" visibility="true"/>
                </part>
                <part node="0>8|3|0">
                    <keyFrame time="0" visibility="false"/>
                    <keyFrame time="0.3" visibility="true"/>
                </part>
                <part node="0>8|4|0">
                    <keyFrame time="0" visibility="false"/>
                    <keyFrame time="0.1" visibility="true"/>
                </part>
                <part node="0>8|5|0">
                    <keyFrame time="0" visibility="false"/>
                    <keyFrame time="0.1" visibility="true"/>
                </part>
                <part node="0>8|6|0">
                    <keyFrame time="0" visibility="false"/>
                    <keyFrame time="0.1" visibility="true"/>
                </part>
                <part node="0>8|7|0">
                    <keyFrame time="0" visibility="false"/>
                    <keyFrame time="0.1" visibility="true"/>
                </part>
                <part node="0>8|8|0">
                    <keyFrame time="0" visibility="false"/>
                    <keyFrame time="0.1" visibility="true"/>
                </part>
                <part node="0>8|9|0">
                    <keyFrame time="0" visibility="false"/>
                    <keyFrame time="0.1" visibility="true"/>
                </part>
            </animation>
            <controls triggerNode="0>8|12" posAction="ACTIVATE_HANDTOOL" posText="action_turnOnLight" negText="action_turnOffLight"/>
            <posEnd linkNode="0>8|11" template="plasticDoorsOpen"/>
            <negEnd linkNode="0>8|11" template="plasticDoorsClose"/>
        </animatedObject>
        <animatedObject saveId="Lampadas">
            <animation duration="1">
                <part node="0>8|13|0">
                    <keyFrame time="0" visibility="false"/>
                    <keyFrame time="0.4" visibility="true"/>
                </part>
            </animation>
            <controls triggerNode="0>8|16" posAction="ACTIVATE_HANDTOOL" posText="action_turnOnLight" negText="action_turnOffLight"/>
            <posEnd linkNode="0>8|15" template="plasticDoorsOpen"/>
            <negEnd linkNode="0>8|15" template="plasticDoorsClose"/>
        </animatedObject>
        <animatedObject saveId="Lampadas">
            <animation duration="1">
                <part node="0>8|17|0">
                    <keyFrame time="0" visibility="false"/>
                    <keyFrame time="0.4" visibility="true"/>
                </part>
            </animation>
            <controls triggerNode="0>8|20" posAction="ACTIVATE_HANDTOOL" posText="action_turnOnLight" negText="action_turnOffLight"/>
            <posEnd linkNode="0>8|19" template="plasticDoorsOpen"/>
            <negEnd linkNode="0>8|19" template="plasticDoorsClose"/>
        </animatedObject>
    </animatedObjects>
    <infoTrigger triggerNode="0>9"/>
    <husbandry saveId="Animals_PIG" hasStatistics="false">
        <storage node="0>5" fillTypes="LIQUIDMANURE STRAW MANURE" isExtension="false">
            <capacity fillType="LIQUIDMANURE" capacity="150000"/>
            <capacity fillType="STRAW" capacity="50000"/>
            <capacity fillType="MANURE" capacity="0"/>
        </storage>
        <unloadingStation supportsExtension="true" storageRadius="50" hideFromPricesMenu="true">
            <unloadTrigger exactFillRootNode="0>17|2" fillTypes="STRAW">
                <baleTrigger triggerNode="0>17|1"/>
            </unloadTrigger>
            <unloadTrigger fillTypes="MANURE LIQUIDMANURE"/>
        </unloadingStation>
        <loadingStation supportsExtension="true" storageRadius="50">
            <loadTrigger triggerNode="0>4|0" fillTypes="LIQUIDMANURE" fillLitersPerSecond="2000" aiNode="0>4|1">
                <effectNode effectClass="PipeEffect" effectNode="0>4|0|0|0" materialType="pipe" fadeTime="0.5" maxBending="0" shapeScaleSpread="0.8 0.8 1 0" controlPoint="3 0 0 0"/>
            </loadTrigger>
        </loadingStation>
        <animals type="PIG" maxNumAnimals="400" maxNumVisualAnimals="200">
            <navigation rootNode="0>6" filename="navigationMesh.i3d"/>
            <loadingTrigger node="0>10"/>
        </animals>
        <straw>
            <manure factor="1.5"/>
            <strawPlane node="0>17|0" minY="-0.07" maxY="0" changeVisibility="true"/>
        </straw>
		
		<food capacity="85000" >
            <foodPlane node="0>3|2" minY="0.0" maxY="0.016" changeVisibility="true" defaultFillType="PIGFOOD"/>
            <foodPlaces>
                <foodPlace node="0>3|1|0"/>
                <foodPlace node="0>3|1|1"/>
                <foodPlace node="0>3|1|2"/>
                <foodPlace node="0>3|1|3"/>
                <foodPlace node="0>3|1|4"/>
                <foodPlace node="0>3|1|5"/>
            </foodPlaces>
            <unloadTrigger exactFillRootNode="0>3|0" />
            <palletTrigger triggerNode="0>3|3"/>
        </food>

        <water automaticWaterSupply="true" />
    </husbandry>
	
    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart filename="Large_Pigsty_props.i3d" node="0" linkNode="0>0|11"/>
    </dynamicallyLoadedParts>
	
	<colorConfigurations useDefaultColors="true">
        <material slotName="madeira_mat" />
    </colorConfigurations>
</placeable>
