first commit
This commit is contained in:
19
Minecraft.World/CommandDispatcher.h
Normal file
19
Minecraft.World/CommandDispatcher.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
class Command;
|
||||
class CommandSender;
|
||||
|
||||
class CommandDispatcher
|
||||
{
|
||||
private:
|
||||
#ifdef __ORBIS__
|
||||
unordered_map<EGameCommand, Command *,std::hash<int>> commandsById;
|
||||
#else
|
||||
unordered_map<EGameCommand, Command *> commandsById;
|
||||
#endif
|
||||
unordered_set<Command *> commands;
|
||||
|
||||
public:
|
||||
void performCommand(shared_ptr<CommandSender> sender, EGameCommand command, byteArray commandData);
|
||||
Command *addCommand(Command *command);
|
||||
};
|
||||
Reference in New Issue
Block a user