Plugins module for FrameworkZ. Extends the framework with modular plugins.
More...
Plugins module for FrameworkZ. Extends the framework with modular plugins.
Definition at line 5 of file Plugins.lua.
◆ AddEventHandler()
void AddEventHandler |
( |
eventName | | ) |
|
Add a new event handler to the list.
- Parameters
-
eventName | string The name of the event handler to add. |
◆ CreatePlugin()
◆ ExecuteCommand()
void ExecuteCommand |
( |
commandName | , |
|
|
| ... ) |
Execute a custom command.
- Parameters
-
commandName | string The name of the command. |
... | \vararg Additional arguments to pass to the command function. |
◆ ExecutePluginHook()
void ExecutePluginHook |
( |
hookName | , |
|
|
| ... ) |
Execute a hook for all loaded plugins.
- Parameters
-
hookName | string The name of the hook to execute. |
... | \vararg Additional arguments to pass to the hook functions. |
◆ GetPlugin()
void GetPlugin |
( |
pluginName | | ) |
|
◆ LoadPlugin()
void LoadPlugin |
( |
pluginName | | ) |
|
Load a registered plugin.
- Parameters
-
pluginName | string The name of the plugin to load. |
◆ Log()
Log a message for debugging purposes.
- Parameters
-
message | string The message to log. |
◆ RegisterCommand()
Register a custom command for a plugin.
- Parameters
-
commandName | string The name of the command. |
callback | function The function to call when the command is executed. |
◆ RegisterPlugin()
Register a plugin.
- Parameters
-
pluginName | string The name of the plugin. |
pluginTable | table The table containing the plugin's functions and data. |
metadata | table Optional metadata for the plugin. |
◆ RegisterPluginEventHandlers()
Register event handlers for a plugin.
- Parameters
-
plugin | table The plugin table containing the functions. |
◆ RemoveEventHandler()
void RemoveEventHandler |
( |
eventName | | ) |
|
Remove an event handler from the list.
- Parameters
-
eventName | string The name of the event handler to remove. |
◆ UnloadPlugin()
void UnloadPlugin |
( |
pluginName | | ) |
|
Unload a loaded plugin.
- Parameters
-
pluginName | string The name of the plugin to unload. |
◆ UnregisterPluginEventHandlers()
Unregister event handlers for a plugin.
- Parameters
-
plugin | table The plugin table containing the functions. |
◆ UnregisterPluginHook()
void UnregisterPluginHook |
( |
pluginName | , |
|
|
hookName | ) |
Unregister a specific hook for a plugin.
- Parameters
-
pluginName | string The name of the plugin. |
hookName | string The name of the hook to unregister. |
◆ __index [1/2]
◆ __index [2/2]
◆ BasePlugin
◆ Commands
◆ EventHandlers
◆ LoadedPlugins
◆ Plugins
◆ RegisteredPlugins
The documentation for this class was generated from the following file: