This repository has been archived on 2025-08-04. You can view files and clone it, but cannot push or open issues or pull requests.
rhaj/rhai_engine/rhaibook/ref/modules/index.md
2025-04-03 09:18:05 +02:00

13 lines
480 B
Markdown

Modules
=======
Rhai allows organizing code into _modules_.
A module holds a collection of [functions](../functions.md), [constants](../constants.md) and sub-modules.
It may encapsulates a Rhai script together with the [functions](../functions.md) and
[constants](../constants.md) defined by that script.
Other scripts can then load this module and use the [functions](../functions.md) and
[constants](../constants.md) exported as if they were defined inside the same script.