<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="waterTrailer" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>Tank</name>
        <functions>
            <function>$l10n_function_tank</function>
        </functions>
        <image>store_liquidTank.dds</image>
        <price>300</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>Eliteman</brand>
        <category>pallets</category>
        <shopTranslationOffset>0 -0.077 0</shopTranslationOffset>
        <shopRotationOffset>0.026 0 0</shopRotationOffset>
        <shopLoadingDelay initial="0.35"/>
        <vertexBufferMemoryUsage>1284096</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>218880</indexBufferMemoryUsage>
        <textureMemoryUsage>1245184</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>pallet</typeDesc>
        <filename>pallets/liquidtank/liquidtank.i3d</filename>
        <size width="3.2" length="7.5" lengthOffset="1.05"/>
        <components>
            <component centerOfMass="0 0.1 0" solverIterationCount="10" mass="100"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="false" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailer" rootNode="liquidtank_main_component1" attacherHeight="0.874" />
        </inputAttacherJoints>
        <brakeForce force="0.55"/>
        <support animationName="moveSupport" />
    </attachable>
    
	<ai>
        <allowTurnBackward value="false"/>
        <turningRadiusLimitation radius="9"/>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="" width="2.95" height="3.8" length="7.7" lengthOffset="1.2"/>
    </ai>
	
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="LIQUID" capacity="2000" allowAILoading="true">
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

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

    <dischargeable>
        <dischargeNode node="dischargeNode" emptySpeed="450" fillUnitIndex="1" canDischargeToGround="false" allowAIDischarge="true">
            <info width="1.0" length="0.5" zOffset="0.4" />
            <trigger node="dischargeTrigger" />
        </dischargeNode>
    </dischargeable>

    <waterTrailer fillUnitIndex="1" fillLitersPerSecond="450" fillNode="liquidtank_main_component1">
        <sounds>
            <refill template="DEFAULT_REFUEL_SOUND" linkNode="0>" />
        </sounds>
    </waterTrailer>
	
	<tensionBeltObject>
        <meshNodes>
            <meshNode node="liquidtank_vis"/>
        </meshNodes>
    </tensionBeltObject>

    <i3dMappings>
        <i3dMapping id="liquidtank_main_component1" node="0>" />
        <i3dMapping id="liquidtank_vis" node="0>0" />
        <i3dMapping id="exactFillRootNode" node="0>0|0|0" />
        <i3dMapping id="fillTrigger" node="0>0|0|1" />
        <i3dMapping id="dischargeNode" node="0>0|0|2" />
        <i3dMapping id="dischargeTrigger" node="0>0|0|3" />
        <i3dMapping id="attacherJoint" node="0>0|1" />
    </i3dMappings>
</vehicle>
