#include <mods.h>
◆ ModSpec() [1/2]
◆ ModSpec() [2/2]
ModSpec::ModSpec |
( |
const std::string & | name, |
|
|
const std::string & | path, |
|
|
bool | part_of_modpack, |
|
|
const std::string & | virtual_path ) |
|
inline |
◆ checkAndLog()
void ModSpec::checkAndLog |
( |
| ) |
const |
◆ author
std::string ModSpec::author |
◆ depends
std::unordered_set<std::string> ModSpec::depends |
◆ deprecation_msgs
std::vector<const char *> ModSpec::deprecation_msgs |
◆ desc
std::string ModSpec::desc |
◆ is_modpack
bool ModSpec::is_modpack = false |
◆ modpack_content
std::map<std::string, ModSpec> ModSpec::modpack_content |
◆ name
std::string ModSpec::name |
◆ optdepends
std::unordered_set<std::string> ModSpec::optdepends |
◆ part_of_modpack
bool ModSpec::part_of_modpack = false |
◆ path
std::string ModSpec::path |
Referenced by ModConfiguration::addMods(), checkAndLog(), ScriptApiSecurity::checkPath(), ModApiBase::getCurrentModPath(), ServerModManager::getModsMediaPaths(), ModApiMainMenu::l_check_mod_configuration(), ModApiMainMenu::l_get_content_info(), ModApiServer::l_get_modpath(), parseModContents(), push_mod_spec(), and TestServerModManager::testGetModMediaPaths().
◆ release
◆ unsatisfied_depends
std::unordered_set<std::string> ModSpec::unsatisfied_depends |
◆ virtual_path
std::string ModSpec::virtual_path |
A constructed canonical path to represent this mod's location.
This intended to be used as an identifier for a modpath that tolerates file movement, and cannot be used to read the mod files.
Note that mymod
is the directory name, not the mod name specified in mod.conf.
Ex:
- mods/mymod
- mods/mymod (1) (^ this would have name=mymod in mod.conf)
- mods/modpack1/mymod
- games/mygame/mods/mymod
- worldmods/mymod
Referenced by ModApiMainMenu::l_check_mod_configuration(), parseModContents(), and push_mod_spec().
The documentation for this struct was generated from the following files: