FEAT: Meet the commands

This commit is contained in:
Kolyah35
2026-03-30 14:04:16 +03:00
parent 3cfa2d9ee7
commit 5194575092
12 changed files with 230 additions and 119 deletions

View 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;
};