mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-30 20:13:31 +00:00
FEAT: Meet the commands
This commit is contained in:
21
src/commands/CommandManager.hpp
Normal file
21
src/commands/CommandManager.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#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;
|
||||
};
|
||||
Reference in New Issue
Block a user