mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-30 12:03:30 +00:00
21 lines
377 B
C++
21 lines
377 B
C++
#pragma once
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "Command.hpp"
|
|
|
|
class CommandManager {
|
|
public:
|
|
CommandManager();
|
|
|
|
std::vector<std::string> getListAllCommands();
|
|
|
|
void execute(Minecraft& mc, const std::string& input);
|
|
|
|
Command* getCommand(const std::string& name);
|
|
|
|
private:
|
|
void registerAllCommands();
|
|
|
|
std::vector<Command*> m_commands;
|
|
}; |