Includes¶
It is possible include the content of a file in another file using the include
directive.
Syntax of the include
directive
In a script, the include
directive is replaced by the content of the
corresponding file.
Example of file inclusion
Let's say foo.xs
contains the following code and is placed in the same
folder as Age3AI.xs
:
We can include it like this:
Which will ultimately look like this once the game is done putting files together:
Absolute and relative paths are both supported.
Absolute paths start at the AI Root Folder.