- Joined
- Sep 22, 2008
- Messages
- 602
- Reaction score
- 2
- Points
- 0
I've been messing around with the new SDK and found that oapi::Module::clbkNewVessel() would come in handy for a mini-project of mine (a rewrite of someone else's addon
). The only problem is that I cannot find any function that would register an oapi::Module instance to be used by Orbiter.
From the Orbiter SDK docs:
---------- Post added at 12:44 PM ---------- Previous post was at 10:31 AM ----------
Never mind, just found oapiRegisterModule() :rofl:
From the Orbiter SDK docs:
If I understood this correctly, the use of the oapi::Module class only clutters the code (you'll have to use opc* callbacks anyway) and not all of it's functionality is available (there is no opcNewVessel(), for example). Is that correct? If not, what am I missing?Note that most of the top-level plugin callback functions (opcXXX) are now obsolete and should no longer be used. Addon modules should instead create an instance of a class derived from the oapi::Module class during InitModule and overload the appropriate class-level callback functions.
---------- Post added at 12:44 PM ---------- Previous post was at 10:31 AM ----------
Never mind, just found oapiRegisterModule() :rofl: