Grandparent

From GECK
Jump to: navigation, search

A function to reference the trait of the first tile from any sub tile.

Syntax

<x><copy src="Grandparent()" trait="Something"/></x>

You may use sub, div, mul, etc... here instead of copy.

Exemple

<rect name="SomeFirstRect">
    <_Trait>10</_Trait>
    <rect name="SomeRect">
        <image name="SomeTile">
            <x><copy src="Grandparent()" trait="_Trait"/></x>
        </Image>
    </rect>
</rect>

See Also

XML Reference Operators