<?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_WarehouseM2</name>
        <functions>
            <function>$l10n_function_WarehouseBS</function>
        </functions>
        <image>Warehouse/store_WarehouseM.dds</image>
        <price>250000</price>
        <dailyUpkeep>170</dailyUpkeep>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>placeable</species>
        <category>silos</category>
        <brush>
            <type>placeable</type>
            <category>buildings</category>
            <tab>silos</tab>
        </brush>
        <vertexBufferMemoryUsage>415744</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>118016</indexBufferMemoryUsage>
        <textureMemoryUsage>17956864</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>Warehouse/WarehouseM.i3d</filename>
        <canBeRenamed>true</canBeRenamed>
    </base>

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

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

    <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" groundType="asphalt"/>
        </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"/>
 
    <animatedObjects>
        <animatedObject saveId="hangers" >
            <animation duration="1.0">
                <part node="hanger11">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="-180 0 0"/>
                </part>
                <part node="hanger12">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="-180 0 0"/>
                </part>	
                <part node="hanger13">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="-180 0 0"/>
                </part>	
                <part node="hanger14">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="-180 0 0"/>
                </part>
                <part node="hanger21">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="180 0 0"/>
                </part>
                <part node="hanger22">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="180 0 0"/>
                </part>	
                <part node="hanger23">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="180 0 0"/>
                </part>	
                <part node="hanger24">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="180 0 0"/>
                </part>
            </animation>
            <controls triggerNode="hangerTrigger" posAction="ACTIVATE_HANDTOOL" posText="action_Loads_act" negText="action_Loads_dis" />
            <sounds>
                <moving linkNode="hangers" template="woodBigDoorLoop" />
                <posEnd linkNode="hangers" template="metalDoorsOpen" />
                <negEnd linkNode="hangers" template="metalDoorsClose" />
            </sounds>
        </animatedObject>
    </animatedObjects>

    <lights>
        <group weatherRequiredFlags="NIGHT" />

        <sharedLight filename="$data/shared/assets/lights/lizard/buildings/industrialWallLight.xml" linkNode="linkedLight1" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/lizard/buildings/industrialWallLight.xml" linkNode="linkedLight2" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/lizard/buildings/industrialWallLight.xml" linkNode="linkedLight3" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/lizard/buildings/industrialWallLight.xml" linkNode="linkedLight4" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/lizard/buildings/industrialWallLight.xml" linkNode="linkedLight5" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/lizard/buildings/industrialWallLight.xml" linkNode="linkedLight6" groupIndex="1"/>
        
        <realLights>
            <low>
                <light node="realLightsLow" groupIndex="1"/>
            </low>
            <high>
                <light node="realLightsHigh" groupIndex="1"/>
            </high>
        </realLights>
    </lights>

    <silo>
        <loadingStation node="trigger" supportsExtension="true" storageRadius="50">
			<loadTrigger triggerNode="loadingTrigger1" fillLitersPerSecond="1000" dischargeNode="dischargeNode1" fillTypeCategories="PRODUCT ADDITIONALS" />
			<loadTrigger triggerNode="loadingTrigger2" fillLitersPerSecond="1000" dischargeNode="dischargeNode2" fillTypeCategories="PRODUCT ADDITIONALS" />
			<loadTrigger triggerNode="loadingTrigger3" fillLitersPerSecond="1000" dischargeNode="dischargeNode3" fillTypeCategories="PRODUCT ADDITIONALS" />
			<loadTrigger triggerNode="loadingTrigger4" fillLitersPerSecond="1000" dischargeNode="dischargeNode4" fillTypeCategories="PRODUCT ADDITIONALS" />
			<loadTrigger triggerNode="loadingTrigger5" fillLitersPerSecond="1000" dischargeNode="dischargeNode5" fillTypeCategories="PRODUCT ADDITIONALS" />
        </loadingStation>

        <unloadingStation supportsExtension="true" storageRadius="50">
			<unloadTrigger exactFillRootNode="unloadTrigger" aiNode="unloadingMarker" fillTypeCategories="PRODUCT ADDITIONALS" fillTypesExclude="FORAGE" />
			<palletTrigger triggerNode="palletTrigger" aiNode="unloadingMarker" fillTypeCategories="PRODUCT ADDITIONALS" />
			<!-- <palletTrigger triggerNode="palletTrigger" aiNode="unloadingMarker" fillTypeCategories="PRODUCT VEGETABLES" /> -->
		</unloadingStation>

        <storages>
            <storage node="storage" fillTypeCategories="PRODUCT ADDITIONALS" capacity="1000000" isExtension="false"/>
        </storages>
		
		<palletSpawner>
            <spawnPlaces>
                <spawnPlace startNode="palletAreaStart01" endNode="palletAreaEnd01"/>
                <spawnPlace startNode="palletAreaStart02" endNode="palletAreaEnd02"/>
            </spawnPlaces>
        </palletSpawner>
    </silo>

    <hotspots>
        <hotspot type="UNLOADING" linkNode="unloadingMarker" teleportNode="teleportNode" />
    </hotspots>

    <triggerMarkers>
        <triggerMarker node="warningStripes_in" />
        <triggerMarker node="playerTriggerMarker" filename="$data/shared/assets/marker/markerIconWrench.i3d" adjustToGround="true" />
        <triggerMarker node="unloadingMarker" filename="$data/shared/assets/marker/markerIconUnload.i3d" adjustToGround="true" />
        <triggerMarker node="loadingMarker" filename="$data/shared/assets/marker/markerIconLoad.i3d" adjustToGround="true" />
    </triggerMarkers>
	
    <solarPanels>
        <solarPanelsConfigurations title="$l10n_config_adds">
            <solarPanelsConfiguration name="$l10n_config_all" isActive="false" />
            <solarPanelsConfiguration name="$l10n_config_entry" isActive="false" >
                <objectChange node="props" visibilityActive="false"/>
            </solarPanelsConfiguration>
            <solarPanelsConfiguration name="$l10n_config_deko" isActive="false" >
                <objectChange node="hangers_small" visibilityActive="false"/>
            </solarPanelsConfiguration>
            <solarPanelsConfiguration name="$l10n_config_nothing" isActive="false" >
                <objectChange node="hangers_small" visibilityActive="false"/>
                <objectChange node="props" visibilityActive="false"/>
            </solarPanelsConfiguration>
        </solarPanelsConfigurations>
    </solarPanels>

    <i3dMappings>
        <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="levelArea1Start" node="0>2|0" />
        <i3dMapping id="levelArea1Width" node="0>2|0|0" />
        <i3dMapping id="levelArea1Height" node="0>2|0|1" />
        <i3dMapping id="indoorArea1Start" node="0>3|0" />
        <i3dMapping id="indoorArea1Width" node="0>3|0|0" />
        <i3dMapping id="indoorArea1Height" 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="realLightsLow" node="0>6|0|0" />
        <i3dMapping id="realLightsHigh" node="0>6|0|1" />
        <i3dMapping id="linkedLight1" node="0>6|1|0" />
        <i3dMapping id="linkedLight2" node="0>6|1|1" />
        <i3dMapping id="linkedLight3" node="0>6|1|2" />
        <i3dMapping id="linkedLight4" node="0>6|1|3" />
        <i3dMapping id="linkedLight5" node="0>6|1|4" />
        <i3dMapping id="linkedLight6" node="0>6|1|5" />
        <i3dMapping id="trigger" node="0>7" />
        <i3dMapping id="unloadTrigger" node="0>7|0" />
        <i3dMapping id="loadingTrigger1" node="0>7|1" />
        <i3dMapping id="loadingTrigger2" node="0>7|2" />
        <i3dMapping id="loadingTrigger3" node="0>7|3" />
        <i3dMapping id="loadingTrigger4" node="0>7|4" />
        <i3dMapping id="dischargeNode1" node="0>7|5" />
        <i3dMapping id="dischargeNode2" node="0>7|6" />
        <i3dMapping id="dischargeNode3" node="0>7|7" />
        <i3dMapping id="dischargeNode4" node="0>7|8" />
        <i3dMapping id="palletTrigger" node="0>7|9" />
        <i3dMapping id="loadingTrigger5" node="0>7|10" />
        <i3dMapping id="dischargeNode5" node="0>7|11" />
        <i3dMapping id="storage" node="0>8|0" />
        <i3dMapping id="unloadingMarker" node="0>8|1" />
        <i3dMapping id="loadingMarker" node="0>8|2" />
        <i3dMapping id="warningStripes_in" node="0>8|3" />
        <i3dMapping id="teleportNode" node="0>8|4" />
        <i3dMapping id="playerTriggerMarker" node="0>8|5" />
        <i3dMapping id="playerTrigger" node="0>8|6" />		
        <i3dMapping id="warningStripes_out1" node="0>8|7|0" />	
        <i3dMapping id="warningStripes_out2" node="0>8|7|1" />	
        <i3dMapping id="warningStripes_out3" node="0>8|7|2" />	
        <i3dMapping id="warningStripes_out4" node="0>8|7|3" />	
        <i3dMapping id="infoTrigger" node="0>9" />
        <i3dMapping id="palletAreaStart01" node="0>10|0" />
        <i3dMapping id="palletAreaEnd01" node="0>10|0|0" />
        <i3dMapping id="palletAreaStart02" node="0>10|1" />
        <i3dMapping id="palletAreaEnd02" node="0>10|1|0" />
        <i3dMapping id="hangerTrigger" node="0>11|0" />
        <i3dMapping id="hangers" node="0>11" />
        <i3dMapping id="hanger11" node="0>11|1" />
        <i3dMapping id="hanger12" node="0>11|2" />
        <i3dMapping id="hanger13" node="0>11|3" />
        <i3dMapping id="hanger14" node="0>11|4" />
        <i3dMapping id="hanger21" node="0>11|5" />
        <i3dMapping id="hanger22" node="0>11|6" />
        <i3dMapping id="hanger23" node="0>11|7" />
        <i3dMapping id="hanger24" node="0>11|8" />
        <i3dMapping id="hangerSwitch" node="0>11|9" />
        <i3dMapping id="hangers_small" node="0>12" />
        <i3dMapping id="props" node="0>15" />
    </i3dMappings>
</placeable>

