public void CreateInterfaces() { foreach (var plugin in Plugins) { var type = plugin.Type; PluginInterface iface = null; switch (type) { case PluginType.PacketSource: iface = new PacketSourceHandler(plugin); break; case PluginType.Generic: iface = new GenericHandler(plugin); break; default: Core.Log(LogSeverity.Error, "No interface for type " + type + " and plugin " + plugin.Name); break; } if (iface != null) { plugin.SetInterface(iface); } } }
public void SetInterface(PluginInterface iface) { }