Files
minecraft-pe-0.6.1/src/commands/CommandManager.hpp
2026-04-04 01:13:56 +03:00

21 lines
400 B
C++

#pragma once
#include <string>
#include <vector>
#include "Command.hpp"
class CommandManager {
public:
CommandManager();
std::vector<std::string> getListAllCommands();
std::string execute(Minecraft& mc, Player& player, const std::string& input);
Command* getCommand(const std::string& name);
private:
void registerAllCommands();
std::vector<Command*> m_commands;
};