#pragma once class Command; class CommandSender; class CommandDispatcher { private: #ifdef __ORBIS__ std::unordered_map> commandsById; #else std::unordered_map commandsById; #endif std::unordered_set commands; public: void performCommand(std::shared_ptr sender, EGameCommand command, byteArray commandData); Command *addCommand(Command *command); };