Working compile copy.
This commit is contained in:
1 parent
41ff757f09
commit
f894f3fb66
54 files changed
+249
-355
No files matched your search
+3
-1
@@ -9,13 +9,15 @@ namespace core {
|
||||
void CommandList::add(Command &command, std::string name) {
|
||||
command.setName(name);
|
||||
commands.push_back(&command);
|
||||
|
||||
}
|
||||
|
||||
void CommandList::remove(Command &command) {
|
||||
|
||||
}
|
||||
|
||||
bool CommandList::processRequest(std::string request, Session *session) {
|
||||
bool CommandList::processRequest(std::string request, Session *session) {
|
||||
|
||||
for(auto *command : commands) {
|
||||
if(command->check(request)) {
|
||||
command->processCommand(request, session);
|
||||
|
||||
Reference in new issue
Block a user