mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 17:11:15 +00:00
15 lines
375 B
C++
15 lines
375 B
C++
#pragma once
|
|
|
|
class Command;
|
|
class CommandSender;
|
|
|
|
class CommandDispatcher {
|
|
private:
|
|
std::unordered_map<EGameCommand, Command*> commandsById;
|
|
std::unordered_set<Command*> commands;
|
|
|
|
public:
|
|
int performCommand(std::shared_ptr<CommandSender> sender,
|
|
EGameCommand command, byteArray commandData);
|
|
Command* addCommand(Command* command);
|
|
}; |