plugin_loader#

A simple plugin loader.

class PluginInterface#

Bases: object

Represents a plugin interface.

A plugin has a single register function.

static register() None#

Register the necessary items in the game character factory.

import_module(name: str) PluginInterface#

Imports a module given a name.

Parameters:

name – The name of the module to import.

Returns:

The imported module.

load_plugins(plugins: list[str]) None#

Loads the plugins defined in the plugins list.

Parameters:

plugins – A list of plugins (complete names) to load.