<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable>
    <storeData>
        <name>$l10n_shopItem_pigsty</name>
        <image>store_pigsty.dds</image>
        <price>200000</price>
        <functions>
            <function>$l10n_function_pigsty</function>
        </functions>
        <lifetime>1000</lifetime>
        <dailyUpkeep>250</dailyUpkeep>
        <rotation>0</rotation>
        <brand>Lizard</brand>
        <species>placeable</species>
        <category>animalpens</category>
        <vertexBufferMemoryUsage>1173176</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>141186</indexBufferMemoryUsage>
        <textureMemoryUsage>32101520</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <placeableType>husbandry</placeableType>
    <filename>OutdoorClimatePigsty.i3d</filename>
    <placement testSizeX="42.0" testSizeZ="28.0" sizeX="42" sizeZ="28" useRandomYRotation="false" useManualYRotation="true" placementRotationSnapAngle="90" placementPositionSnapSize="0.5" placementPositionSnapOffset="0.45"/>

    <clearAreas>
        <clearArea startNode="0|9|0" widthNode="0|9|0|0" heightNode="0|9|0|1" />
    </clearAreas>

    <leveling requireLeveling="true" maxSmoothDistance="10" maxSlope="75" maxEdgeAngle="30">
        <levelAreas>
            <levelArea startNode="0|10|0" widthNode="0|10|0|0" heightNode="0|10|0|1" groundType="concrete"/>
            <levelArea startNode="0|10|1" widthNode="0|10|1|0" heightNode="0|10|1|1" groundType="concrete"/>
            <levelArea startNode="0|10|2" widthNode="0|10|2|0" heightNode="0|10|2|1" groundType="concrete"/>
            <levelArea startNode="0|10|3" widthNode="0|10|3|0" heightNode="0|10|3|1" groundType="grass"/>
            <levelArea startNode="0|10|4" widthNode="0|10|4|0" heightNode="0|10|4|1" groundType="gravel"/>
        </levelAreas>
        <rampAreas> <!-- Deprecated! no longer used in script -->
            <rampArea maxSlope="75" rootNode="0|11|0" startNode="0|11|0" widthNode="0|11|0|0" heightNode="0|11|0|1" groundType="gravel"/>
            <rampArea maxSlope="75" rootNode="0|11|1" startNode="0|11|1" widthNode="0|11|1|0" heightNode="0|11|1|1" groundType="gravel"/>
            <rampArea maxSlope="75" rootNode="0|11|2" startNode="0|11|2" widthNode="0|11|2|0" heightNode="0|11|2|1" groundType="grass"/>
            <rampArea maxSlope="75" rootNode="0|11|3" startNode="0|11|3" widthNode="0|11|3|0" heightNode="0|11|3|1" groundType="gravel"/>
        </rampAreas>
    </leveling>

    <foliageAreas>
        <foliageArea fruitType="grass" rootNode="0|12|0" />
    </foliageAreas>

    <triggerMarkers>
        <triggerMarker node="0|13" />
    </triggerMarkers>

    <seasons>
        <maskAreas>
            <maskArea startNode="0|20|0" widthNode="0|20|1" heightNode="0|20|2"/>
        </maskAreas>

        <admirers>
            <snowAdmirer node="0|20|3" minimumLevel="1"/>
        </admirers>
    </seasons>

    <hotspots>
        <hotspot name="Pig stable" fullName="$l10n_animals_pigPasture" imageName="PIG_STABLE" hidable="true" category="CATEGORY_TRIGGERS" />
    </hotspots>

    <animatedObjects>
    <!-- Lights -->
        <animatedObject saveId="light01" >
            <animation duration="0.1">
                    <part node="0|19|1"> <!-- light01 --> 
                    <keyFrame time="0" visibility="false" />
                    <keyFrame time="1" visibility="true" />
                </part>
            </animation>	
            <controls triggerNode="0|19|0" posAction="ACTIVATE_HANDTOOL" posText="action_lightSwitchON" negText="action_lightSwitchOFF" />
        </animatedObject>
    <!-- Doors -->
        <animatedObject saveId="gate01" >
            <animation duration="1.5">
                <part node="0|14|1">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 90 0"/>
                </part>
            </animation>
            <controls triggerNode="0|14|0" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving file="$data/sounds/prefab/gate/gate_loop.wav" loops="0" linkNode="0|14|1" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd file="$data/sounds/prefab/gate/gate_opened.wav" linkNode="0|14|1" volume="0.8" radius="25" innerRadius="3" />
                <negEnd file="$data/sounds/prefab/gate/gate_closed.wav" linkNode="0|14|1" volume="0.8" radius="25" innerRadius="3" />
            </sounds>
        </animatedObject>
        <animatedObject saveId="gate02" >
            <animation duration="1.5">
                <part node="0|15|1">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 -90 0"/>
                </part>
            </animation>
            <controls triggerNode="0|15|0" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving file="$data/sounds/prefab/gate/gate_loop.wav" loops="0" linkNode="0|15|1" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd file="$data/sounds/prefab/gate/gate_opened.wav" linkNode="0|15|1" volume="0.8" radius="25" innerRadius="3" />
                <negEnd file="$data/sounds/prefab/gate/gate_closed.wav" linkNode="0|15|1" volume="0.8" radius="25" innerRadius="3" />
            </sounds>
        </animatedObject>
        <animatedObject saveId="gate03" >
            <animation duration="1.5">
                <part node="0|16|1">
                    <keyFrame time="0.0" rotation="0 -180 0"/>
                    <keyFrame time="1.0" rotation="0 -90 0"/>
                </part>
            </animation>
            <controls triggerNode="0|16|0" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving file="$data/sounds/prefab/gate/gate_loop.wav" loops="0" linkNode="0|16|1" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd file="$data/sounds/prefab/gate/gate_opened.wav" linkNode="0|16|1" volume="0.8" radius="25" innerRadius="3" />
                <negEnd file="$data/sounds/prefab/gate/gate_closed.wav" linkNode="0|16|1" volume="0.8" radius="25" innerRadius="3" />
            </sounds>
        </animatedObject>
        <animatedObject saveId="gate04" >
            <animation duration="1.5">
                <part node="0|17|1">
                    <keyFrame time="0.0" rotation="0 180 0"/>
                    <keyFrame time="1.0" rotation="0 90 0"/>
                </part>
            </animation>
            <controls triggerNode="0|17|0" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving file="$data/sounds/prefab/gate/gate_loop.wav" loops="0" linkNode="0|17|1" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd file="$data/sounds/prefab/gate/gate_opened.wav" linkNode="0|17|1" volume="0.8" radius="25" innerRadius="3" />
                <negEnd file="$data/sounds/prefab/gate/gate_closed.wav" linkNode="0|17|1" volume="0.8" radius="25" innerRadius="3" />
            </sounds>
        </animatedObject>
    </animatedObjects>

    <husbandry saveId="Animals_PIG" hasStatistics="false">
        <modules>
            <module name="animals">
                <config type="PIG" navmeshNode="0|7" animalLoadTriggerNode="0|0" maxNumAnimals="300" husbandryFileName="$dataS/character/pigAnimalHusbandry.xml" placementRaycastDistance="2.0" carryingCapacity="50" rideableDeliveryStartNode="0|6|0" rideableDeliveryWidthNode="0|6|0|0" rideableDeliveryHeightNode="0|6|0|0" />
            </module>
            <module name="food">
                <config node="0|1|0" exactFillRootNode="0" animalPlacesNode="1" >
                    <fillPlane node="0|1|1" minY="-0.29" maxY="0" colorChange="true" />
                </config>
            </module>
            <module name="water">
                <config node="0|2|0" exactFillRootNode="0" fillTypes="WATER" acceptedToolTypes="undefined trailer">
                    <fillPlane node="0|2|1" minY="0.06" maxY="0.275" colorChange="true" />
                </config>
            </module>
            <module name="liquidManure">
                <config node="0|3|0" fillTypes="LIQUIDMANURE" triggerNode="0">
                    <fillPlane node="0|3|0|1" minY="0.02" maxY="0.5" />
                </config>
            </module>
            <module name="manure">
                <config startNode="0|4|1|0" widthNode="0|4|1|0|0" heightNode="0|4|1|0|1" fillType="MANURE"/>
            </module>
            <module name="foodSpillage">
                <config fillType="PIGFOOD">
                    <area startNode="0|1|0|2|0" widthNode="0|1|0|2|0|0" heightNode="0|1|0|2|0|1" />
                    <area startNode="0|1|0|2|1" widthNode="0|1|0|2|1|0" heightNode="0|1|0|2|1|1" />
                    <area startNode="0|1|0|2|2" widthNode="0|1|0|2|2|0" heightNode="0|1|0|2|2|1" />
                    <area startNode="0|1|0|2|3" widthNode="0|1|0|2|3|0" heightNode="0|1|0|2|3|1" />
                </config>
            </module>
            <module name="straw">
                <config node="0|5" exactFillRootNode="0" fillTypes="STRAW">
                    <fillPlane node="0|5|1" minY="-0.1" maxY="0.0" colorChange="false" />
                </config>
            </module>
        </modules>
        <placementRaycast distance="2" />
    </husbandry>

    <tipOcclusionUpdateArea sizeX="42" sizeZ="27" />

</placeable>
