Limo
A simple mod manager
Loading...
Searching...
No Matches
fomod::Plugin Struct Reference

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 > &current_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< PluginDependencypotential_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< Filefiles
 Files to be installed when this is selected.
 

Detailed Description

Represents one selectable option during installation.

Member Function Documentation

◆ updateType()

void fomod::Plugin::updateType ( const std::filesystem::path & target_path,
const std::map< std::string, std::string > & current_flags,
std::function< bool(std::string)> version_eval_fun,
std::function< bool(std::string)> fomm_eval_fun = [](auto s) { return true; } )
inline

Updates type according to potential_types.

Parameters
target_pathPath file conditions.
current_flagsFlags to check.
version_eval_funUsed to evaluate game version conditions.
fomm_eval_funUsed to evaluate game fromm conditions.

The documentation for this struct was generated from the following file: