#pragma once #include "Command.h" class GameType; class GameCommandPacket; class GameModeCommand : public Command { public: virtual EGameCommand getId(); int getPermissionLevel(); virtual void execute(shared_ptr source, byteArray commandData); static shared_ptr preparePacket(shared_ptr player, int gameMode); protected: GameType *getModeForString(shared_ptr source, const wstring &name); };