aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/mods/modmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDLL/mods/modmanager.h')
-rw-r--r--NorthstarDLL/mods/modmanager.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/NorthstarDLL/mods/modmanager.h b/NorthstarDLL/mods/modmanager.h
index c141414f..233f004d 100644
--- a/NorthstarDLL/mods/modmanager.h
+++ b/NorthstarDLL/mods/modmanager.h
@@ -19,7 +19,7 @@ const std::set<std::string> MODS_BLACKLIST = {"Mod Settings"};
struct ModConVar
{
- public:
+public:
std::string Name;
std::string DefaultValue;
std::string HelpString;
@@ -28,7 +28,7 @@ struct ModConVar
struct ModConCommand
{
- public:
+public:
std::string Name;
std::string Function;
std::string HelpString;
@@ -38,7 +38,7 @@ struct ModConCommand
struct ModScriptCallback
{
- public:
+public:
ScriptContext Context;
// called before the codecallback is executed
@@ -51,7 +51,7 @@ struct ModScriptCallback
struct ModScript
{
- public:
+public:
std::string Path;
std::string RunOn;
@@ -61,14 +61,14 @@ struct ModScript
// these are pretty much identical, could refactor to use the same stuff?
struct ModVPKEntry
{
- public:
+public:
bool m_bAutoLoad;
std::string m_sVpkPath;
};
struct ModRpakEntry
{
- public:
+public:
bool m_bAutoLoad;
std::string m_sPakName;
std::string m_sLoadAfterPak;
@@ -76,7 +76,7 @@ struct ModRpakEntry
class Mod
{
- public:
+public:
// runtime stuff
bool m_bEnabled = true;
bool m_bWasReadSuccessfully = false;
@@ -127,10 +127,10 @@ class Mod
std::unordered_map<std::string, std::string> DependencyConstants;
std::vector<std::string> PluginDependencyConstants;
- public:
+public:
Mod(fs::path modPath, char* jsonBuf);
- private:
+private:
void ParseConVars(rapidjson_document& json);
void ParseConCommands(rapidjson_document& json);
void ParseScripts(rapidjson_document& json);
@@ -142,14 +142,14 @@ class Mod
struct ModOverrideFile
{
- public:
+public:
Mod* m_pOwningMod;
fs::path m_Path;
};
class ModManager
{
- private:
+private:
bool m_bHasLoadedMods = false;
bool m_bHasEnabledModsCfg;
rapidjson_document m_EnabledModsCfg;
@@ -159,13 +159,13 @@ class ModManager
size_t m_hPdefHash;
size_t m_hKBActHash;
- public:
+public:
std::vector<Mod> m_LoadedMods;
std::unordered_map<std::string, ModOverrideFile> m_ModFiles;
std::unordered_map<std::string, std::string> m_DependencyConstants;
std::unordered_set<std::string> m_PluginDependencyConstants;
- public:
+public:
ModManager();
void LoadMods();
void UnloadMods();