13,241
edits
(Major update and rewrite, mostly based on readme and comments in source files) |
m (fix minor layout drag an drop mess-up) |
||
Line 62: | Line 62: | ||
|script_version = 0.40 | |script_version = 0.40 | ||
}}</ref> | }}</ref> | ||
== Addon initialization == | == Addon initialization == | ||
Line 77: | Line 72: | ||
** Loading <code>/foo/bar/baz/addon-main.nas</code> into namespace <code>__addon[ADDON_ID]__</code> | ** Loading <code>/foo/bar/baz/addon-main.nas</code> into namespace <code>__addon[ADDON_ID]__</code> | ||
** Calling <code>main(addonGhost)</code> from <code>/foo/bar/baz/addon-main.nas</code>. | ** Calling <code>main(addonGhost)</code> from <code>/foo/bar/baz/addon-main.nas</code>. | ||
== APIs == | |||
{{hatnote|For more details about these APIs, see the readme file, {{readme file|add-ons}}.}} | |||
=== C++ API === | |||
There is a C++ API on FlightGear's side that handle some on the addon related tasks manly through the <code>AddonManager()</code>, <code>Addon()</code> and <code>AddonVersion()</code> classes. | |||
=== Nasal API === | === Nasal API === |