Skip to content

ResourceTrickle

XML Elements

The following elements can be used within this component:

ResourceTrickle

Rates

Trickle Rates

Path: ResourceTrickle/Rates

food

Type: non-negative decimal

Path: ResourceTrickle/Rates/food

wood

Type: non-negative decimal

Path: ResourceTrickle/Rates/wood

stone

Type: non-negative decimal

Path: ResourceTrickle/Rates/stone

metal

Type: non-negative decimal

Path: ResourceTrickle/Rates/metal

Interval

Number of milliseconds must pass for the player to gain the next trickle.

Type: non-negative decimal

Path: ResourceTrickle/Interval

RELAX NG Grammar

<define name="component.ResourceTrickle">
  <element name="ResourceTrickle">
    <interleave>
      <element name="Rates">
        <interleave>
          <optional>
            <element name="food">
              <ref name="nonNegativeDecimal"/>
            </element>
          </optional>
          <optional>
            <element name="wood">
              <ref name="nonNegativeDecimal"/>
            </element>
          </optional>
          <optional>
            <element name="stone">
              <ref name="nonNegativeDecimal"/>
            </element>
          </optional>
          <optional>
            <element name="metal">
              <ref name="nonNegativeDecimal"/>
            </element>
          </optional>
        </interleave>
      </element>
      <element name="Interval">
        <ref name="nonNegativeDecimal"/>
      </element>
    </interleave>
  </element>
</define>