/// <summary> /// Add a plugin instance to this manager. This should be called inside /// PluginEntryPoint subclasses. Doing it this way allows a dll to load /// multiple plugins. /// </summary> /// <param name="plugin">The plugin to add.</param> public void addPlugin(PluginInterface plugin) { Log.Default.sendMessage("Plugin {0} added.", LogLevel.Info, "Engine", plugin.Name); loadedPlugins.Add(plugin); plugin.initialize(this, serviceCollection); if (renamedTypeMap != null) { plugin.setupRenamedSaveableTypes(renamedTypeMap); } }