32 const std::string _path;
33 std::string _name, _desc, _version, _author, _url, _id, _master;
35 std::vector<std::string> _externalResourceDirs;
38 ModInfo(
const std::string &path);
42 void load(
const std::string &filename);
44 const std::string &
getPath()
const;
46 const std::string &
getName()
const;
54 const std::string &
getId()
const;
const std::string & getId() const
Gets the id for this mod.
Definition: ModInfo.cpp:72
virtual ~ModInfo()
Cleans up.
Definition: ModInfo.cpp:35
bool isMaster() const
Gets whether this mod is a master (i.e. a vanilla game/total conversion)
Definition: ModInfo.cpp:74
const std::string & getAuthor() const
Gets the author of this mod.
Definition: ModInfo.cpp:71
ModInfo(const std::string &path)
Creates default metadata for a mod at the specified path.
Definition: ModInfo.cpp:27
const std::string & getMaster() const
Gets the master this mod can load under. If it can load under any master (or if this mod is a master ...
Definition: ModInfo.cpp:73
const std::string & getDescription() const
Gets the description for this mod.
Definition: ModInfo.cpp:69
const std::string & getName() const
Gets the name of this mod.
Definition: ModInfo.cpp:68
const std::string & getVersion() const
Gets the version of this mod.
Definition: ModInfo.cpp:70
Represents mod metadata.
Definition: ModInfo.h:29
const std::vector< std::string > & getExternalResourceDirs() const
Gets the list of external resource dirs to load for this mod.
Definition: ModInfo.cpp:76
const std::string & getPath() const
Gets the path where this mod resides on disk.
Definition: ModInfo.cpp:67
void load(const std::string &filename)
Loads the metadata from YAML.
Definition: ModInfo.cpp:40
Definition: BaseInfoState.cpp:40