2020-02-18 20:18:09 +00:00
|
|
|
#
|
|
|
|
# canvas-efis loader
|
|
|
|
#
|
2020-03-08 19:57:04 +00:00
|
|
|
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) {
|
2020-03-08 19:57:04 +00:00
|
|
|
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);
|
|
|
|
}
|