aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/mods/modmanager.h
diff options
context:
space:
mode:
authorEmma Miler <emma.pi@protonmail.com>2022-12-22 19:59:10 +0100
committerGitHub <noreply@github.com>2022-12-22 19:59:10 +0100
commit64100065b55f79e76542ba689545c60e6fb0dcef (patch)
tree396bfeb9eacdd6d8070dee89de16c6c216ac6b10 /NorthstarDLL/mods/modmanager.h
parent7cdf27e6dfcf61329317e641e6625599cda3f5b0 (diff)
downloadNorthstarLauncher-64100065b55f79e76542ba689545c60e6fb0dcef.tar.gz
NorthstarLauncher-64100065b55f79e76542ba689545c60e6fb0dcef.zip
Add script concommands (#373)
* Add script concommands * Fix indent * Formatting * Formatting stuff * Changes for review * Fix typo * Forgot to remove the return statement * Formatting
Diffstat (limited to 'NorthstarDLL/mods/modmanager.h')
-rw-r--r--NorthstarDLL/mods/modmanager.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/NorthstarDLL/mods/modmanager.h b/NorthstarDLL/mods/modmanager.h
index a77d85bd..ded6ff06 100644
--- a/NorthstarDLL/mods/modmanager.h
+++ b/NorthstarDLL/mods/modmanager.h
@@ -22,6 +22,16 @@ struct ModConVar
int Flags;
};
+struct ModConCommand
+{
+ public:
+ std::string Name;
+ std::string Function;
+ std::string HelpString;
+ ScriptContext Context;
+ int Flags;
+};
+
struct ModScriptCallback
{
public:
@@ -87,6 +97,8 @@ class Mod
std::vector<ModScript> Scripts;
// convars created by the mod
std::vector<ModConVar*> ConVars;
+ // concommands created by the mod
+ std::vector<ModConCommand*> ConCommands;
// custom localisation files created by the mod
std::vector<std::string> LocalisationFiles;