<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="silo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/placeable.xsd">
    <storeData>
        <name>$l10n_storeItem_oldHayLoft</name>
        <functions>
            <function>$l10n_function_hayStorage</function>
        </functions>
        <image>placeables/hayLofts/textures/store_hayLoft02.dds</image>
        <price>3000</price>
        <dailyUpkeep>10</dailyUpkeep>
        <lifetime>1000</lifetime>
        <brand>NONE</brand>
        <species>placeable</species>
        <category>storages</category>
        <brush>
            <type>placeable</type>
            <category>buildings</category>
            <tab>silos</tab>
        </brush>
        <vertexBufferMemoryUsage>446208</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>58112</indexBufferMemoryUsage>
        <textureMemoryUsage>3997696</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>placeables/hayLofts/hayLoft02.i3d</filename>
        <canBeRenamed>true</canBeRenamed>
        <boughtWithFarmland>true</boughtWithFarmland>
    </base>

    <placement useRandomYRotation="false" useManualYRotation="true">
        <testAreas>
            <testArea startNode="testArea1Start" endNode="testArea1End" />
        </testAreas>

        <sounds>
            <place template="smallImp" />
        </sounds>
    </placement>

    <hotspots/>

    <clearAreas>
        <clearArea startNode="clearArea1Start" widthNode="clearArea1Width" heightNode="clearArea1Height"/>
    </clearAreas>

    <leveling requireLeveling="true" maxSmoothDistance="10" maxSlope="75" maxEdgeAngle="30">
        <levelAreas>
            <levelArea startNode="levelArea1Start" widthNode="levelArea1Width" heightNode="levelArea1Height"/>
        </levelAreas>
    </leveling>

    <indoorAreas>
        <indoorArea startNode="indoorArea1Start" widthNode="indoorArea1Width" heightNode="indoorArea1Height" />
    </indoorAreas>

    <tipOcclusionUpdateAreas>
        <tipOcclusionUpdateArea startNode="tipOcclusionUpdateArea1Start" endNode="tipOcclusionUpdateArea1End"/>
    </tipOcclusionUpdateAreas>

    <ai>
        <updateAreas>
            <updateArea startNode="tipOcclusionUpdateArea1Start" endNode="tipOcclusionUpdateArea1End" />
        </updateAreas>
    </ai>

    <infoTrigger triggerNode="infoTrigger"/>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0" linkNode="propsNode" filename="placeables/hayLofts/props02.i3d" />
    </dynamicallyLoadedParts>

    <silo>
        <loadingStation supportsExtension="false" >
            <loadTrigger triggerNode="loadingTrigger" fillTypeCategories="hayloft" fillLitersPerSecond="1000" dischargeNode="dischargeNode" aiNode="aiNodeLoading" />
        </loadingStation>

        <unloadingStation supportsExtension="false" >
            <unloadTrigger exactFillRootNode="exactFillRootNode" fillTypeCategories="hayloft" aiNode="aiNodeUnloading"/>
            <baleTrigger triggerNode="baleTrigger" deleteLitersPerSecond="4000" fillTypeCategories="hayloft" />
        </unloadingStation>

        <storages>
            <storage node="hayLoft02" fillTypeCategories="hayloft" capacity="150000" isExtension="false">
                <dynamicFillPlane node="fillVolume" allSidePlanes="true" changeColor="true" maxAllowedHeapAngle="35" maxDelta="0.5" maxSurfaceDistanceError="0.3"/>
            </storage>
        </storages>
    </silo>

    <triggerMarkers>
        <triggerMarker node="markerUnloading" filename="$data/shared/assets/marker/markerIconUnload.i3d" />
        <triggerMarker node="markerLoading"   filename="$data/shared/assets/marker/markerIconLoad.i3d" />
    </triggerMarkers>

    <!-- Roof configuration -->
    <colorConfigurations title="$l10n_configuration_roof">
        <colorConfiguration name="$l10n_configuration_shakeRoof" color="0.165 0.122 0.078">
            <objectChange node="shakeRoof" visibilityActive="true" visibilityInactive="false"/>
        </colorConfiguration>

        <colorConfiguration name="$l10n_configuration_tinRoof" color="0.144 0.141 0.138">
            <objectChange node="tinRoof" visibilityActive="true" visibilityInactive="false"/>
        </colorConfiguration>
    </colorConfigurations>

    <!-- Props configuration -->
    <solarPanels>
        <solarPanelsConfigurations title="$l10n_configuration_props">
            <solarPanelsConfiguration name="$l10n_ui_no" isActive="false">
                <objectChange node="propsNode" visibilityActive="false" translationActive="0 -5 0"/>
            </solarPanelsConfiguration>

            <solarPanelsConfiguration name="$l10n_ui_yes" isActive="true"/>
        </solarPanelsConfigurations>
    </solarPanels>

    <i3dMappings>
        <i3dMapping id="hayLoft02" node="0>" />
        <i3dMapping id="fillVolume" node="0>0|0" />
        <i3dMapping id="infoTrigger" node="0>0|1" />
        <i3dMapping id="aiNodeLoading" node="0>0|2|0" />
        <i3dMapping id="dischargeNode" node="0>0|2|1" />
        <i3dMapping id="loadingTrigger" node="0>0|2|2" />
        <i3dMapping id="markerLoading" node="0>0|2|3" />
        <i3dMapping id="aiNodeUnloading" node="0>0|3|0" />
        <i3dMapping id="baleTrigger" node="0>0|3|1" />
        <i3dMapping id="exactFillRootNode" node="0>0|3|2" />
        <i3dMapping id="markerUnloading" node="0>0|3|3" />
        <i3dMapping id="clearArea1Start" node="0>1|0" />
        <i3dMapping id="clearArea1Width" node="0>1|0|0" />
        <i3dMapping id="clearArea1Height" node="0>1|0|1" />
        <i3dMapping id="indoorArea1Start" node="0>2|0" />
        <i3dMapping id="indoorArea1Width" node="0>2|0|0" />
        <i3dMapping id="indoorArea1Height" node="0>2|0|1" />
        <i3dMapping id="levelArea1Start" node="0>3|0" />
        <i3dMapping id="levelArea1Width" node="0>3|0|0" />
        <i3dMapping id="levelArea1Height" node="0>3|0|1" />
        <i3dMapping id="testArea1Start" node="0>4|0" />
        <i3dMapping id="testArea1End" node="0>4|0|0" />
        <i3dMapping id="tipOcclusionUpdateArea1Start" node="0>5|0" />
        <i3dMapping id="tipOcclusionUpdateArea1End" node="0>5|0|0" />
        <i3dMapping id="shakeRoof" node="0>6|1|0" />
        <i3dMapping id="tinRoof" node="0>6|1|1" />
        <i3dMapping id="propsNode" node="0>6|3" />
    </i3dMappings>
</placeable>
