Module cityrp.plugin
Plugin registration and utilities library.
Module Overview
Functions
| cityrp.plugin.register(plugin) | Register a new plugin. |
| cityrp.plugin.call(name, ...) | Call a function for all plugins. |
| cityrp.plugin.get(name) | Get a plugin by it's name. |
- cityrp.plugin.register(plugin)
-
Register a new plugin.
Parameters:
- cityrp.plugin.call(name, ...)
-
Call a function for all plugins.
Parameters:
- name string The name of the function to call.
- ... vararg to send to the called functions.
- cityrp.plugin.get(name)
-
Get a plugin by it's name.
Parameters:
- name string The name of the plugin to find.
Returns:
-
optional table
The plugin table.