20,741
edits
Line 13: | Line 13: | ||
In ''modules.nas'' the class ''Module'' is defined. | In ''modules.nas'' the class ''Module'' is defined. | ||
A module object holds information about the path and filename of the Nasal script and supports unloading and reloading the code at runtime | A module object holds information about the path and filename of the Nasal script and supports unloading and reloading the code at runtime | ||
(e.g. without restarting Flightgear as a whole) by tracking some critical resources like [[ | (e.g. without restarting Flightgear as a whole) by tracking some critical resources like [[Listeners|listeners]] and [[Timers|timers]]. | ||
Parts of this functionality were added to the [[Addons|addons]] manager earlier and have now been extracted to avoid code duplication. | Parts of this functionality were added to the [[Addons|addons]] manager earlier and have now been extracted to avoid code duplication. |