diff options
Diffstat (limited to 'NorthstarDedicatedTest/modmanager.h')
-rw-r--r-- | NorthstarDedicatedTest/modmanager.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/NorthstarDedicatedTest/modmanager.h b/NorthstarDedicatedTest/modmanager.h index 079e1613..df3cd1d3 100644 --- a/NorthstarDedicatedTest/modmanager.h +++ b/NorthstarDedicatedTest/modmanager.h @@ -40,7 +40,7 @@ public: std::string Path; std::string RsonRunOn; - std::vector<ModScriptCallback*> Callbacks; + std::vector<ModScriptCallback> Callbacks; }; class Mod @@ -67,9 +67,9 @@ public: int LoadPriority; // custom scripts used by the mod - std::vector<ModScript*> Scripts; + std::vector<ModScript> Scripts; // convars created by the mod - std::vector<ModConVar*> ConVars; + std::vector<ModConVar> ConVars; // custom localisation files created by the mod std::vector<std::string> LocalisationFiles; @@ -97,8 +97,8 @@ public: class ModManager { public: - std::vector<Mod*> m_loadedMods; - std::unordered_map<std::string, ModOverrideFile*> m_modFiles; + std::vector<Mod> m_loadedMods; + std::unordered_map<std::string, ModOverrideFile> m_modFiles; public: ModManager(); @@ -113,4 +113,4 @@ public: void InitialiseModManager(HMODULE baseAddress); -extern ModManager* g_ModManager;
\ No newline at end of file +extern std::unique_ptr<ModManager> g_ModManager;
\ No newline at end of file |