mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/LCEMP-Server.git
synced 2026-05-21 22:35:27 +00:00
18 lines
404 B
C++
18 lines
404 B
C++
#pragma once
|
|
|
|
#include "ServerCommand.h"
|
|
#include <map>
|
|
|
|
class ConsoleCommandDispatcher
|
|
{
|
|
private:
|
|
map<wstring, ServerCommand *> commandsByName;
|
|
|
|
public:
|
|
~ConsoleCommandDispatcher();
|
|
|
|
void addCommand(ServerCommand *command);
|
|
bool performCommand(const wstring& name, const wstring& args, ConsoleInputSource *src, MinecraftServer *server);
|
|
const map<wstring, ServerCommand *>& getCommands() const;
|
|
};
|