aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/GameModeCommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/GameModeCommand.h')
-rw-r--r--Minecraft.World/GameModeCommand.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/Minecraft.World/GameModeCommand.h b/Minecraft.World/GameModeCommand.h
new file mode 100644
index 00000000..66401587
--- /dev/null
+++ b/Minecraft.World/GameModeCommand.h
@@ -0,0 +1,16 @@
+#pragma once
+
+#include "Command.h"
+
+class GameType;
+
+class GameModeCommand : public Command
+{
+public:
+ virtual EGameCommand getId();
+ virtual void execute(shared_ptr<CommandSender> source, byteArray commandData);
+
+protected:
+ GameType *getModeForString(shared_ptr<CommandSender> source, const wstring &name);
+ shared_ptr<Player> getPlayer(PlayerUID playerId);
+}; \ No newline at end of file