Minetest  5.4.0
ModSpec Struct Reference

#include <mods.h>

+ Collaboration diagram for ModSpec:

Public Member Functions

 ModSpec (const std::string &name="", const std::string &path="")
 
 ModSpec (const std::string &name, const std::string &path, bool part_of_modpack)
 

Public Attributes

std::string name
 
std::string author
 
std::string path
 
std::string desc
 
int release = 0
 
std::unordered_set< std::string > depends
 
std::unordered_set< std::string > optdepends
 
std::unordered_set< std::string > unsatisfied_depends
 
bool part_of_modpack = false
 
bool is_modpack = false
 
std::map< std::string, ModSpecmodpack_content
 

Constructor & Destructor Documentation

◆ ModSpec() [1/2]

ModSpec::ModSpec ( const std::string &  name = "",
const std::string &  path = "" 
)
inline

◆ ModSpec() [2/2]

ModSpec::ModSpec ( const std::string &  name,
const std::string &  path,
bool  part_of_modpack 
)
inline

Member Data Documentation

◆ author

std::string ModSpec::author

Referenced by parseModContents().

◆ depends

std::unordered_set<std::string> ModSpec::depends

◆ desc

std::string ModSpec::desc

Referenced by parseModContents().

◆ is_modpack

bool ModSpec::is_modpack = false

Referenced by flattenMods(), and parseModContents().

◆ modpack_content

std::map<std::string, ModSpec> ModSpec::modpack_content

Referenced by flattenMods(), and parseModContents().

◆ name

◆ optdepends

std::unordered_set<std::string> ModSpec::optdepends

◆ part_of_modpack

bool ModSpec::part_of_modpack = false

◆ path

◆ release

int ModSpec::release = 0

Referenced by parseModContents().

◆ unsatisfied_depends

std::unordered_set<std::string> ModSpec::unsatisfied_depends

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