diff options
author | Emma Miler <emma.pi@protonmail.com> | 2022-12-22 19:59:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-22 19:59:10 +0100 |
commit | 64100065b55f79e76542ba689545c60e6fb0dcef (patch) | |
tree | 396bfeb9eacdd6d8070dee89de16c6c216ac6b10 /NorthstarDLL/mods/modmanager.h | |
parent | 7cdf27e6dfcf61329317e641e6625599cda3f5b0 (diff) | |
download | NorthstarLauncher-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.h | 12 |
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; |