Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-07-15 19:49:57 +03:00
1 parent 01362d2e51
commit 39aff68d8d
29 files changed
+2061 -1818

No files matched your search

+5
View File
@@ -120,6 +120,9 @@ namespace Echoion::Core
getCommand(std::string_view name) const;
[[nodiscard]] std::vector<std::pair<std::string, CommandPtr>>
getAllCommands() const;
[[nodiscard]] bool registerExternalCommand(
std::string owner, std::string primaryName, CommandPtr command);
void unregisterExternalCommands(std::string_view owner);
// Get commands visible to a specific client (for help)
[[nodiscard]] std::vector<std::pair<std::string, CommandPtr>>
@@ -202,6 +205,8 @@ namespace Echoion::Core
// List for generating help: {"play", PlayCommand}
std::vector<CommandEntry> uniqueCommands_;
std::map<std::string, std::vector<CommandPtr>, std::less<>>
externalCommands_;
mutable std::mutex mutex_;