saviola777 / haxball-headless-manager

Suite of management scripts for headless haxball hosts, including plugins with dependency management
MIT License
7 stars 3 forks source link

Add function to get the plugins that are dependent of given plugin #9

Closed morko closed 5 years ago

morko commented 5 years ago

When disabling plugins the HHM.manager.disablePluginById will return false for plugins that has enabled plugins that depend on it.

For better user feedback there could be a function to get the dependent plugins.

e.g.

HHM.manager.getDependentPluginsById(id, listDisabled = false)

where listDisabled = false would return only plugins that are disabled and therefore not interrupting the disablePluginById.