<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="pallet">
    <storeData>
        <name>$l10n_silageAdditive_barrel_pallet</name>
        <functions>
            <function>$l10n_function_silageAdditive</function>
        </functions>
        <specs>
            <capacity>200</capacity>
            <fillTypes>SILAGEADDITIVE</fillTypes>
        </specs>
        <image>silageAdditive/store_silageAdditive_barrel_pallet.png</image> 
        <price>1022</price>
        <allowLeasing>false</allowLeasing>
        <canBeSold>false</canBeSold>
        <rotation>0</rotation>
        <brand>PIONEER</brand>
        <category>pallets</category>
        <financeCategory>PURCHASE_FERTILIZER</financeCategory>
    </storeData>

    <base>
        <filename>silageAdditive/barrel_pallet.i3d</filename>
        <size width="1.55" length="1.05" lengthOffset="0" />
        <input allowed="false"/>
        <canBeReset>false</canBeReset>
        <components>
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="100" />
        </components>
    </base>

	<animations>
        <animation name="barrelAnimantion">
		
			<part node="barrel2"  startTime="0.000" endTime="400" visibility="false" />
            <part node="barrel2"  startTime="400.001" endTime="800" visibility="true" />
			
			<part node="barrel1"  startTime="400" endTime="400.001" startTrans="0 0 -0.2" endTrans="-0.32 0 -0.2" />

        </animation>
    </animations>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_1barrel" price="0" >
                <fillUnits removeVehicleIfEmpty="true">
                    <fillUnit unit="$l10n_unit_literShort" fillTypes="SILAGEADDITIVE" capacity="200" startFillType="SILAGEADDITIVE" startFillLevel="200">
                        <fillRootNode node="0>" />
                    </fillUnit>
                </fillUnits>
				<objectChange node="barrel2" visibilityActive="false" visibilityInactive="true"/>
				<objectChange node="barrel2_col" compoundChildActive="false" />
            </fillUnitConfiguration>
			<fillUnitConfiguration name="$l10n_2barrel" price="958" >
                <fillUnits removeVehicleIfEmpty="true">
                    <fillUnit unit="$l10n_unit_literShort" fillTypes="SILAGEADDITIVE" capacity="400" startFillType="SILAGEADDITIVE" startFillLevel="400">
                        <fillRootNode node="0>" />
						<dashboard displayType="ANIMATION" valueType="fillLevel" animName="barrelAnimantion" />
                    </fillUnit>
                </fillUnits>
				<objectChange node="barrel2" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="barrel2_col" compoundChildActive="true" />
				<objectChange node="barrel1" translationActive="-0.32 0 -0.2" translationInactive="0 0 -0.2"/>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillTriggerVehicle triggerNode="fillTrigger" fillUnitIndex="1" litersPerSecond="0.5"/>
	

    <dynamicMount triggerNode="dynamicMountTrigger" />

    <dischargeable requiresTipOcclusionArea="false" />

    <tensionBeltObject>
        <meshNodes>
            <meshNode node="barrel1"/>
			<meshNode node="barrel2"/>
			<meshNode node="pallet_vis"/>
        </meshNodes>
    </tensionBeltObject>

    <i3dMappings>
        <i3dMapping id="barrel1" node="0>0" />
        <i3dMapping id="barrel2" node="0>1" />
		<i3dMapping id="barrel2_col" node="0>1|1" />
        <i3dMapping id="fillTrigger" node="0>2" />
		<i3dMapping id="pallet" node="0>3" />
        <i3dMapping id="dynamicMountTrigger" node="0>3|1" />
		<i3dMapping id="pallet_vis" node="0>3|2" />
    </i3dMappings>
</vehicle>
