1
0
Fork 0
fgdata/Nasal/modules/canvas_efis/main.nas

17 lines
473 B
Text
Raw Normal View History

2020-02-18 20:18:09 +00:00
#
# canvas-efis loader
#
var EFIS_namespace = "_uninitalized_";
2020-02-18 20:18:09 +00:00
var unload = func(module) {
globals[EFIS_namespace].DisplayUnit.unload();
globals[EFIS_namespace].EFISCanvas.unload();
globals[EFIS_namespace].EFIS.unload();
}
var main = func(module) {
EFIS_namespace = module.getNamespaceName();
2020-02-18 20:18:09 +00:00
io.load_nasal(module.getFilePath()~"efis-framework.nas", EFIS_namespace);
io.load_nasal(module.getFilePath()~"eicas-message-sys.nas", EFIS_namespace);
}