WorldSimulation / PluginManager.py
yingqianjiang-lingoace
Add application file
bcf0302
raw
history blame
345 Bytes
class PluginManager:
def __init__(self):
self.plugins = []
def add_plugin(self, plugin):
self.plugins.append(plugin)
def remove_plugin(self, plugin):
self.plugins.remove(plugin)
def execute_plugins(self, *args, **kwargs):
for plugin in self.plugins:
plugin.execute(*args, **kwargs)