|
Polyphase Game Engine
|
Lightweight plugin manager for runtime (non-editor) builds. More...
Go to the source code of this file.
Classes | |
| struct | RuntimePluginState |
| Runtime state for a registered plugin. More... | |
| class | RuntimePluginManager |
| Singleton manager for runtime plugins. More... | |
Macros | |
| #define | POLYPHASE_REGISTER_PLUGIN(pluginId, getDescFunc) |
| Helper macro for static plugin registration. | |
Functions | |
| void | QueuePluginRegistration (int(*getDescFunc)(PolyphasePluginDesc *), const char *pluginId) |
| Queue a plugin descriptor for registration. | |
Lightweight plugin manager for runtime (non-editor) builds.
This manager handles plugins that are compiled directly into the game. Unlike NativeAddonManager (editor-only), this doesn't handle building or hot-reloading - it just manages the plugin lifecycle and ticking.
| #define POLYPHASE_REGISTER_PLUGIN | ( | pluginId, | |
| getDescFunc | |||
| ) |
Helper macro for static plugin registration.
Usage in plugin source file: POLYPHASE_REGISTER_PLUGIN(MyPlugin, GetMyPluginDesc);
Where GetMyPluginDesc is a function that fills in PolyphasePluginDesc.
| void QueuePluginRegistration | ( | int(*)(PolyphasePluginDesc *) | getDescFunc, |
| const char * | pluginId | ||
| ) |
Queue a plugin descriptor for registration.
This can be called before RuntimePluginManager::Create() - the descriptors are stored in a pending queue and processed when Create() is called.
| getDescFunc | Function that fills in PolyphasePluginDesc |
| pluginId | Unique identifier for the plugin |