<?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>storeItem_silo granjeiro</name>
        <functions>
            <function>$l10n_function_farmSilo</function>
        </functions>
        <image>store_granjerSilo.dds</image>
        <price>100000</price>
        <dailyUpkeep>70</dailyUpkeep>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <species>PLACEABLE</species>
        <category>silos</category>
        <canBeSold>true</canBeSold>
        <showInStore>true</showInStore>
		<brush>
            <type>placeable</type>
            <category>buildings</category>
            <tab>silos</tab>
        </brush>
        
        <vertexBufferMemoryUsage>4232704</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>1558016</indexBufferMemoryUsage>
        <textureMemoryUsage>13107200</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <filename>silo.i3d</filename>
		<canBeRenamed>true</canBeRenamed>
		<boughtWithFarmland>true</boughtWithFarmland>
    </base>

    <placement useRandomYRotation="false" useManualYRotation="true" >
        <testAreas>
            <testArea startNode="testAreaStart01" endNode="testAreaEnd01" />
        </testAreas>

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

    <clearAreas>
        <clearArea startNode="clearAreaStart01" widthNode="clearAreaWidth01" heightNode="clearAreaHeight01"/>
    </clearAreas>

    <leveling requireLeveling="true" maxSmoothDistance="5" maxSlope="75" maxEdgeAngle="30">
        <levelAreas>
            <levelArea startNode="levelAreaStart01" widthNode="levelAreaWidth01" heightNode="levelAreaHeight01" groundType="asphalt"/>
        </levelAreas>
    </leveling>

    <indoorAreas>
        <indoorArea startNode="indoorAreaStart01" widthNode="indoorAreaWidth01" heightNode="indoorAreaHeight01"/>
    </indoorAreas>

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

    <ai>
        <updateAreas>
            <updateArea startNode="tipOcclusionUpdateAreaStart01" endNode="tipOcclusionUpdateAreaEnd01" />
        </updateAreas>
		<splines>
            <spline node="aiLoadingSpline"   maxWidth="4.2"/>
            <spline node="aiUnloadingSpline" maxWidth="4.2"/>
        </splines>
    </ai>
	
	<dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0" linkNode="powerSwitch01" filename="$data/shared/assets/lights/rudolfHormann/powerSwitch.i3d" />
    </dynamicallyLoadedParts>

    <lights>
        <sharedLight filename="$data/shared/assets/lights/rudolfHormann/light150.xml" linkNode="lightNode01" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/rudolfHormann/light150.xml" linkNode="lightNode02" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/rudolfHormann/light150.xml" linkNode="lightNode03" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/rudolfHormann/light150.xml" linkNode="lightNode04" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/rudolfHormann/light150.xml" linkNode="lightNode05" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/rudolfHormann/light150.xml" linkNode="lightNode06" groupIndex="1"/>
        <sharedLight filename="$data/shared/assets/lights/rudolfHormann/light150.xml" linkNode="lightNode07" groupIndex="1"/>

        <realLights>
            <low>
                <light node="realLightsLow" groupIndex="1"/>
            </low>
            <high>
                <light node="realLightsHigh" groupIndex="1"/>
            </high>
        </realLights>

        <group name="$l10n_action_placeableLightShed" triggerNode="lightTrigger">
            <sounds>
                <toggle template="lizardFloodLight" innerRadius="50" outerRadius="100" volumeScale="0.2"/>
            </sounds>
        </group>
    </lights>
	
	<animatedObjects>
		<animatedObject saveId="porta01">
            <animation duration="3.0">
                <part node="porta1">
                    <keyFrame time="0.0" translation="0 0 0"/>
                    <keyFrame time="1.0" translation="0 0 4.22"/>
                </part>
            </animation>
            <controls triggerNode="triggerDoor01" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="porta01" template="slidingGateMetalLoop" />
                <posEnd linkNode="porta01" template="slidingGateMetalOpen" />
                <negEnd linkNode="porta01" template="slidingGateMetalClose" />
            </sounds>
        </animatedObject>
		
		<animatedObject saveId="porta02">
            <animation duration="3.0">
                <part node="porta2">
                    <keyFrame time="0.0" translation="0 0 0"/>
                    <keyFrame time="1.0" translation="0 0 -4.2"/>
                </part>
            </animation>
            <controls triggerNode="triggerDoor02" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="porta02" template="slidingGateMetalLoop" />
                <posEnd linkNode="porta02" template="slidingGateMetalOpen" />
                <negEnd linkNode="porta02" template="slidingGateMetalClose" />
            </sounds>
        </animatedObject>
	</animatedObjects>
	
	<silo>
        <loadingStation node="loadingTrigger" supportsExtension="true" storageRadius="50">
            <loadTrigger triggerNode="loadingTrigger" fillLitersPerSecond="2000" dischargeNode="dischargeNode" fillTypeCategories="farmSilo" aiNode="aiLoadingNode">
                <effectNode effectClass="PipeEffect" effectNode="pipeEffect"      materialType="pipe"           fadeTime="0.5" maxBending="0" controlPoint="4.8 0 0 0"/>
                <effectNode                          effectNode="pipeEffectSmoke" materialType="unloadingSmoke" fadeTime="0.5" />
                <sounds>
                    <loading template="silosActive" />
                </sounds>
            </loadTrigger>
        </loadingStation>

        <unloadingStation supportsExtension="true" storageRadius="50">
            <unloadTrigger exactFillRootNode="exactFillRootNode" fillTypeCategories="farmSilo" aiNode="aiUnloadingNode"/>
        </unloadingStation>

        <storages>
            <storage node="storage" fillTypeCategories="BULK" capacity="600000" isExtension="false"/>
        </storages>
    </silo>
	
	<hotspots>
        <hotspot type="UNLOADING" linkNode="mapPosition" teleportNode="markerLoading"/>
    </hotspots>

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

    <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="indoorAreaStart01" node="0>2|0" />
        <i3dMapping id="indoorAreaWidth01" node="0>2|0|0" />
        <i3dMapping id="indoorAreaHeight01" node="0>2|0|1" />
        <i3dMapping id="tipOcclusionUpdateAreaStart01" node="0>3|0" />
        <i3dMapping id="tipOcclusionUpdateAreaEnd01" node="0>3|0|0" />
        <i3dMapping id="testAreaStart01" node="0>4|0" />
        <i3dMapping id="testAreaEnd01" node="0>4|0|0" />
		<i3dMapping id="lightNode01" node="0>5|0"/>
		<i3dMapping id="lightNode02" node="0>5|1"/>
		<i3dMapping id="lightNode03" node="0>5|2"/>
		<i3dMapping id="lightNode04" node="0>5|3"/>
		<i3dMapping id="lightNode05" node="0>5|4"/>
		<i3dMapping id="lightNode06" node="0>5|5"/>
		<i3dMapping id="lightNode07" node="0>5|6"/>
		<i3dMapping id="lightTrigger" node="0>5|7"/>
		<i3dMapping id="realLightsLow" node="0>5|8|0"/>
		<i3dMapping id="realLightsHigh" node="0>5|8|1"/>
		<i3dMapping id="powerSwitch01" node="0>5|9"/>
		<i3dMapping id="mapPosition" node="0>6|0"/>
		<i3dMapping id="storage" node="0>6|1"/>
		<i3dMapping id="loadingTrigger" node="0>6|2|0|0"/>
		<i3dMapping id="dischargeNode" node="0>6|2|0|1"/>
		<i3dMapping id="pipeEffect" node="0>6|2|0|2|0"/>
		<i3dMapping id="pipeEffectSmoke" node="0>6|2|0|2|1"/>
		<i3dMapping id="aiLoadingNode" node="0>6|2|0|3"/>
		<i3dMapping id="aiLoadingSpline" node="0>6|2|1"/>
		<i3dMapping id="exactFillRootNode" node="0>6|3|0"/>
		<i3dMapping id="aiUnloadingNode" node="0>6|3|1"/>
		<i3dMapping id="aiUnloadingSpline" node="0>6|3|2"/>
		<i3dMapping id="infoTrigger" node="0>6|4"/>
		<i3dMapping id="markerLoading" node="0>7|0"/>
		<i3dMapping id="markerUnloading" node="0>7|1"/>
		<i3dMapping id="doors" node="0>8"/>
		<i3dMapping id="porta01" node="0>8|0"/>
		<i3dMapping id="porta1" node="0>8|0|0"/>
		<i3dMapping id="triggerDoor01" node="0>8|0|1"/>
		<i3dMapping id="porta02" node="0>8|1"/>
		<i3dMapping id="porta2" node="0>8|1|0"/>
		<i3dMapping id="triggerDoor02" node="0>8|1|1"/>
		<i3dMapping id="silo" node="0>9|0"/>
		<i3dMapping id="props" node="0>9|1"/>
    </i3dMappings>
</placeable>
