// // Created by koncord on 16.04.17. // #ifndef OPENMW_PROCESSORPLAYERCHARCLASS_HPP #define OPENMW_PROCESSORPLAYERCHARCLASS_HPP #include "apps/openmw/mwmp/PlayerProcessor.hpp" namespace mwmp { class ProcessorPlayerCharClass : public PlayerProcessor { public: ProcessorPlayerCharClass() { BPP_INIT(ID_PLAYER_CHARCLASS) } virtual void Do(PlayerPacket &packet, BasePlayer *player) { if (isLocal()) { if(isRequest()) static_cast(player)->sendClass(); else static_cast(player)->setClass(); } } }; } #endif //OPENMW_PROCESSORPLAYERCHARCLASS_HPP