<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable>
    <storeData>
        <name>$l10n_object_fachwerkhaus</name>
        <functions>
            <function>$l10n_function_fachwerkhaus</function>
        </functions>
        <image>maps/placeables/FS19_TimberedFarm/store_fachwerkhaus.dds</image>
        <price>80000</price>
        <dailyUpkeep>0</dailyUpkeep>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <species>placeable</species>
        <category>farmhouses</category>
        <vertexBufferMemoryUsage>1937720</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>194406</indexBufferMemoryUsage>
        <textureMemoryUsage>17089576</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <placeableType>farmhouse</placeableType>
    <filename>maps/placeables/FS19_TimberedFarm/fachwerkhaus.i3d</filename>
    <placement testSizeX="26" testSizeZ="13" sizeX="26" sizeZ="13" useRandomYRotation="false" useManualYRotation="true" />

    <farmhouse spawnNode="7">
        <sleeping triggerNode="8" cameraNode="9"/>
    </farmhouse>

    <tipOcclusionUpdateArea sizeX="26" sizeZ="13" />

    <clearAreas>
        <clearArea startNode="10|0" widthNode="10|0|0" heightNode="10|0|1"/>
    </clearAreas>

    <hotspots>
        <hotspot name="fachwerkhaus" fullName="$l10n_object_fachwerkhaus" imageName="TRUSS_HOUSE" hidable="false" linkNode="3" category="CATEGORY_DEFAULT" />
    </hotspots>

    <leveling requireLeveling="true" maxSmoothDistance="10" maxSlope="75" maxEdgeAngle="30">
        <levelAreas>
            <levelArea startNode="11|0" widthNode="11|0|0" heightNode="11|0|1" groundType="asphalt"/>
        </levelAreas>
        <rampAreas> <!-- Deprecated! no longer used in script -->
            <rampArea maxSlope="75" rootNode="12|0" startNode="12|0" widthNode="12|0|0" heightNode="12|0|1" />
            <rampArea maxSlope="75" rootNode="12|1" startNode="12|1" widthNode="12|1|0" heightNode="12|1|1" />
            <rampArea maxSlope="75" rootNode="12|2" startNode="12|2" widthNode="12|2|0" heightNode="12|2|1" />
            <rampArea maxSlope="75" rootNode="12|3" startNode="12|3" widthNode="12|3|0" heightNode="12|3|1" />
        </rampAreas>
    </leveling>

    <seasons>
        <maskAreas>
            <maskArea startNode="13|0" widthNode="13|1" heightNode="13|2"/>
        </maskAreas>

        <admirers>
            <snowAdmirer node="13|3" minimumLevel="1"/>
        </admirers>
    </seasons>
	
	<animatedObjects>
        <!-- Lights -->
        <animatedObject saveId="lightSwitch01" >
            <animation duration="0.1">
                <part node="2|1"> <!-- light01 --> 
                    <keyFrame time="0" visibility="false" />
                    <keyFrame time="1" visibility="true" />
                </part>
            </animation>	
            <controls triggerNode="2|0" posAction="ACTIVATE_HANDTOOL" posText="action_lightSwitchON" negText="action_lightSwitchOFF" />
        </animatedObject>	
        <animatedObject saveId="lightSwitch02" >
            <animation duration="0.1">
                <part node="3|1"> <!-- light02 --> 
                    <keyFrame time="0" visibility="false" />
                    <keyFrame time="1" visibility="true" />
                </part>
            </animation>
            <controls triggerNode="3|0" posAction="ACTIVATE_HANDTOOL" posText="action_lightSwitchON" negText="action_lightSwitchOFF" />
        </animatedObject>
		        <animatedObject saveId="lightSwitch02" >
            <animation duration="0.1">
                <part node="4|1"> <!-- light02 --> 
                    <keyFrame time="0" visibility="false" />
                    <keyFrame time="1" visibility="true" />
                </part>
            </animation>
            <controls triggerNode="4|0" posAction="ACTIVATE_HANDTOOL" posText="action_lightSwitchON" negText="action_lightSwitchOFF" />
        </animatedObject>
	
        <!-- Doors -->
        <animatedObject saveId="door01"	>
            <animation duration="2">
                <part node="5|1"> 
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="0.5" rotation="0 -55 0"/>
                    <keyFrame time="1.0" rotation="0 -110 0"/>
                </part>
                <part node="5|2">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="0.5" rotation="0 55 0"/>
                    <keyFrame time="1.0" rotation="0 110 0"/>
                </part>
            </animation>
            <controls triggerNode="5|0" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving file="$data/sounds/prefab/gate/gate_loop.wav" loops="0" linkNode="5" volume="0.6" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd file="$data/sounds/prefab/gate/gate_opened.wav" linkNode="5" volume="0.6" radius="25" innerRadius="3" />
                <negEnd file="$data/sounds/prefab/gate/gate_closed.wav" linkNode="5" volume="0.6" radius="25" innerRadius="3" />
            </sounds>
        </animatedObject>
		        <animatedObject saveId="door02"	>
        <animation duration="2">
                <part node="6|1"> 
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="0.5" rotation="0 -55 0"/>
                    <keyFrame time="1.0" rotation="0 -110 0"/>
                </part>
                <part node="6|2">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="0.5" rotation="0 55 0"/>
                    <keyFrame time="1.0" rotation="0 110 0"/>
                </part>
            </animation>
            <controls triggerNode="6|0" posAction="ACTIVATE_HANDTOOL" posText="action_openSidedoor" negText="action_closeSidedoor" />
            <sounds>
                <moving file="$data/sounds/prefab/gate/gate_loop.wav" loops="0" linkNode="6" volume="0.6" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd file="$data/sounds/prefab/gate/gate_opened.wav" linkNode="6" volume="0.6" radius="25" innerRadius="3" />
                <negEnd file="$data/sounds/prefab/gate/gate_closed.wav" linkNode="6" volume="0.6" radius="25" innerRadius="3" />
            </sounds>
        </animatedObject>
    </animatedObjects>
</placeable>
