1 parent
01362d2e51
commit
39aff68d8d
29 files changed
+2061
-1818
No files matched your search
@@ -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_;
|
||||
|
||||
|
||||
Reference in new issue
Block a user