This article is a stub. Feel free to expand it.
Main Entry point for Addons, registers the addon with Apollo so that OnLoad, OnSave, OnRestore events are all sent to the addon.
- tAddonTable (Table)
- bHasConfig (Boolean)
- strConfigName (String)
- tDependencies (Table)
The above code would register an addon that has a config option (Accessible via the options screen) called "My Config". This addon would also try to make sure that Nameplates and FooLib were loaded before calling its OnLoad. If they were not present it would call the OnDependencyError function with the name of the dependency that did not load and an error relating to that failure.