![]() |
Limo
A simple mod manager
|
Represents one selectable option during installation. More...
#include <plugin.h>
Public Member Functions | |
void | updateType (const std::filesystem::path &target_path, const std::map< std::string, std::string > ¤t_flags, std::function< bool(std::string)> version_eval_fun, std::function< bool(std::string)> fomm_eval_fun=[](auto s) { return true;}) |
Updates type according to potential_types. | |
Public Attributes | |
std::string | name |
Plugin name. | |
std::string | description |
Plugin description. | |
std::filesystem::path | image_path |
Path to an image representing this plugin. | |
PluginType | type |
Affects how this plugin is displayed. | |
PluginType | default_type |
Fallback type if this has potential types but none are valid. | |
std::vector< PluginDependency > | potential_types |
Plugin takes the first type for which the condition is fulfilled. | |
std::map< std::string, std::string > | flags |
Flags to be set when this is selected. | |
std::vector< File > | files |
Files to be installed when this is selected. | |
Represents one selectable option during installation.
|
inline |
Updates type according to potential_types.
target_path | Path file conditions. |
current_flags | Flags to check. |
version_eval_fun | Used to evaluate game version conditions. |
fomm_eval_fun | Used to evaluate game fromm conditions. |