26#define g_Mods (Mod::Instance())
75 bool EnableMods(
const std::vector<CStr>& mods,
const bool addPublic);
94 static bool AreModsPlayCompatible(
const std::vector<const Mod::ModData*>& modsA,
const std::vector<const Mod::ModData*>& modsB);
const ModData * GetModData(const CStr &mod) const
Get data for the given mod.
Definition: Mod.cpp:175
static Mod & Instance()
Definition: Mod.cpp:127
std::vector< ModData > m_AvailableMods
Definition: Mod.h:107
friend class TestMod
Definition: Mod.h:30
const std::vector< CStr > & GetEnabledMods() const
Definition: Mod.cpp:132
void UpdateAvailableMods(const ScriptInterface &scriptInterface)
Fetches available mods and stores some metadata about them.
Definition: Mod.cpp:238
std::vector< CStr > CheckForIncompatibleMods(const std::vector< CStr > &mods) const
Checks a list of mods and returns the incompatible mods, if any.
Definition: Mod.cpp:284
const std::vector< ModData > & GetAvailableMods() const
Definition: Mod.cpp:142
const std::vector< CStr > & GetIncompatibleMods() const
Definition: Mod.cpp:137
const std::vector< const Mod::ModData * > GetEnabledModsData() const
Get a list of the enabled mod's data (intended for compatibility checks).
Definition: Mod.cpp:184
bool CompareVersionStrings(const CStr &required, const CStr &op, const CStr &version) const
Definition: Mod.cpp:347
std::vector< CStr > m_EnabledMods
Definition: Mod.h:103
bool EnableMods(const std::vector< CStr > &mods, const bool addPublic)
Enables specified mods (& mods required by the engine).
Definition: Mod.cpp:147
std::vector< CStr > m_IncompatibleMods
Definition: Mod.h:105
static bool AreModsPlayCompatible(const std::vector< const Mod::ModData * > &modsA, const std::vector< const Mod::ModData * > &modsB)
Definition: Mod.cpp:206
Abstraction around a SpiderMonkey JS::Realm.
Definition: ScriptInterface.h:72
Parsed mod.json data for C++ usage.
Definition: Mod.h:40
CStr m_Version
Definition: Mod.h:46
std::vector< CStr > m_Dependencies
Definition: Mod.h:47
CStr m_Pathname
Definition: Mod.h:42
bool m_IgnoreInCompatibilityChecks
Definition: Mod.h:49
CStr m_Name
Definition: Mod.h:44
CStr m_Text
Definition: Mod.h:52