aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/GameModeCommand.h
blob: 7c08caabeb290062a4a6c1dce20998b5b6f4404e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include "Command.h"

class GameType;

class GameModeCommand : public Command
{
public:
	virtual EGameCommand getId();
	virtual void execute(std::shared_ptr<CommandSender> source, byteArray commandData);

protected:
	GameType *getModeForString(std::shared_ptr<CommandSender> source, const wstring &name);
	std::shared_ptr<Player> getPlayer(PlayerUID playerId);
};