<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="farmhouse" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/placeable.xsd">
    <storeData>
        <name>$l10n_object_farmhouse</name>
        <functions>
            <function>$l10n_function_farmHouse</function>
        </functions>
        <image>store_smallHouse.dds</image>
        <canBeSold>true</canBeSold>
        <showInStore>true</showInStore>
        <price>10000</price>
        <lifetime>1000</lifetime>
        <dailyUpkeep>50</dailyUpkeep>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>PLACEABLE</species>
        <category>farmhouses</category>
        <brush>
            <type>placeable</type>
            <category>buildings</category>
            <tab>farmhouses</tab>
        </brush>
        
        <vertexBufferMemoryUsage>1145600</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>244736</indexBufferMemoryUsage>
        <textureMemoryUsage>16973824</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>trailerHouse.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" pitchScale="1.2"/>
        </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" />
        <indoorArea startNode="indoorAreaStart02" widthNode="indoorAreaWidth02" heightNode="indoorAreaHeight02" />
        <indoorArea startNode="indoorAreaStart03" widthNode="indoorAreaWidth03" heightNode="indoorAreaHeight03" />
    </indoorAreas>

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

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

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0" linkNode="lightSwitch01" filename="$data/shared/assets/lights/rudolfHormann/powerSwitch.i3d" />
        
    </dynamicallyLoadedParts>

    <lights>
        <group name="$l10n_action_placeableLightShed" triggerNode="triggerLight"/>

        <sharedLight filename="$data/shared/assets/lights/lizard/buildings/industrialWallLight.xml" linkNode="lightNode01" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/lizard/buildings/industrialWallLight.xml" linkNode="lightNode02" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/lizard/buildings/industrialWallLight.xml" linkNode="lightNode03" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/lizard/buildings/industrialWallLight.xml" linkNode="lightNode04" groupIndex="1"/>
        <realLights>
            <low>
                <light node="realLightsLow" groupIndex="1"/>
            </low>
            <high>
                <light node="realLightsHigh" groupIndex="1"/>
            </high>
        </realLights>
    </lights>

    <animatedObjects>
        <animatedObject saveId="doorRotate01" >
            <animation duration="3.5">
                <part node="door01">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 115 0"/>
                </part>
            </animation>
            <controls triggerNode="triggerDoor01" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
            <sounds>
                <moving linkNode="door01" template="metalDoorsLoop" />
                <posEnd linkNode="door01" template="metalDoorsOpen" />
                <negEnd linkNode="door01" template="metalDoorsClose" />
            </sounds>
        </animatedObject>

        <animatedObject saveId="doorRotate02" >
            <animation duration="3.5">
                <part node="door02">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 115 0"/>
                </part>
            </animation>
            <controls triggerNode="triggerDoor02" posAction="ACTIVATE_HANDTOOL" posText="action_openDoor" negText="action_closeDoor" />
            <sounds>
                <moving linkNode="door02" template="metalDoorsLoop" />
                <posEnd linkNode="door02" template="metalDoorsOpen" />
                <negEnd linkNode="door02" template="metalDoorsClose" />
            </sounds>
        </animatedObject>
    </animatedObjects>

    <hotspots>
        <hotspot type="FARM" linkNode="0>" teleportNode="spawnPoint" />
    </hotspots>

    <triggerMarkers>
        <triggerMarker node="sleepTriggerMarker"    filename="$data/shared/assets/marker/markerIconSleep.i3d"/>
        <triggerMarker node="wardrobeTriggerMarker" filename="$data/shared/assets/marker/markerIconWardrobe.i3d"/>
    </triggerMarkers>

    <farmhouse spawnNode="spawnPoint">
        <sleeping triggerNode="sleepingTrigger" cameraNode="sleepCamera"/>
    </farmhouse>

    <wardrobe triggerNode="wardrobeTrigger"/>

    <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="indoorAreaStart02" node="0>3|1" />
        <i3dMapping id="indoorAreaWidth02" node="0>3|1|0" />
        <i3dMapping id="indoorAreaHeight02" node="0>3|1|1" />
        <i3dMapping id="indoorAreaStart03" node="0>3|2" />
        <i3dMapping id="indoorAreaWidth03" node="0>3|2|0" />
        <i3dMapping id="indoorAreaHeight03" node="0>3|2|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="sleepCamera" node="0>6|0" />
        <i3dMapping id="sleepingTrigger" node="0>6|1" />
        <i3dMapping id="sleepTriggerMarker" node="0>6|2" />
        <i3dMapping id="spawnPoint" node="0>6|3" />
        <i3dMapping id="wardrobeTriggerMarker" node="0>7|0" />
        <i3dMapping id="wardrobeTrigger" node="0>7|1" />
        <i3dMapping id="realLightsLow" node="0>8|0|0|0" />
        <i3dMapping id="realLightsHigh" node="0>8|0|0|1" />
        <i3dMapping id="lightNode01" node="0>8|0|1|0" />
        <i3dMapping id="lightNode02" node="0>8|0|1|1" />
        <i3dMapping id="lightNode03" node="0>8|0|1|2" />
        <i3dMapping id="lightNode04" node="0>8|0|1|3" />
       
        <i3dMapping id="lightSwitch01" node="0>8|0|2" />
        <i3dMapping id="triggerLight" node="0>8|0|3" />
        <i3dMapping id="door01" node="0>8|1|0|0" />
        <i3dMapping id="door02" node="0>8|1|1|0" />
        <i3dMapping id="triggerDoor01" node="0>8|1|2" />
        <i3dMapping id="triggerDoor02" node="0>8|1|3" />
    </i3dMappings>
</placeable>
