the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 19 lines 426 B view raw
1#pragma once 2 3class Command; 4class CommandSender; 5 6class CommandDispatcher 7{ 8private: 9#ifdef __ORBIS__ 10 unordered_map<EGameCommand, Command *,std::hash<int>> commandsById; 11#else 12 unordered_map<EGameCommand, Command *> commandsById; 13#endif 14 unordered_set<Command *> commands; 15 16public: 17 int performCommand(shared_ptr<CommandSender> sender, EGameCommand command, byteArray commandData); 18 Command *addCommand(Command *command); 19};