ServerCore/Command.cpp
2021-08-11 21:38:22 -07:00

28 lines
568 B
C++

#include "Command.h"
#include "Log.h"
#include "CommandList.h"
namespace core {
int Command::processCommand(coreutils::ZString &request, TCPSession &session) {
return 0;
}
void Command::output(std::stringstream &out) {
out << "Write your own command description here for the help system." << std::endl;
}
bool Command::check(coreutils::ZString &request) {
return request[0].equals(name);
}
void Command::setName(std::string name) {
this->name = name;
}
std::string Command::getName() {
return name;
}
}