aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/GameModeCommand.h
blob: 664015872478e90804be06f8704a7324a75b00ec (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(shared_ptr<CommandSender> source, byteArray commandData);

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