20,741
edits
(→Design) |
|||
Line 197: | Line 197: | ||
Each script in any of these two folders is loaded into a namespace based on the file name - which is identical to FlightGear. However, the '''lib''' folder is processed prior to the '''app''' folder obviously. | Each script in any of these two folders is loaded into a namespace based on the file name - which is identical to FlightGear. However, the '''lib''' folder is processed prior to the '''app''' folder obviously. | ||
In addition to these two folders, there's a third folder named '''tests''' this includes Nasal-based unit tests that are executed after loading the '''lib''' directory, and prior to running the '''app''' directory. | |||
Note that support for Nasal sub modules (where all Nasal files in a single folder are loaded into the same namespace) hasn't yet been implemented, but will soon be added to make it easier to support the [[Canvas]] scripting layer. That will probably mean another folder in data/Nasal (loaded prior to '''app''', but after '''lib'''), namely: | Note that support for Nasal sub modules (where all Nasal files in a single folder are loaded into the same namespace) hasn't yet been implemented, but will soon be added to make it easier to support the [[Canvas]] scripting layer. That will probably mean another folder in data/Nasal (loaded prior to '''app''', but after '''lib'''), namely: |