2017-04-16 07:00:25 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 16.04.17.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef OPENMW_PROCESSORCHATMESSAGE_HPP
|
|
|
|
#define OPENMW_PROCESSORCHATMESSAGE_HPP
|
|
|
|
|
|
|
|
|
2017-06-06 16:06:10 +00:00
|
|
|
#include "../PlayerProcessor.hpp"
|
2017-04-16 07:00:25 +00:00
|
|
|
#include "apps/openmw/mwmp/Main.hpp"
|
|
|
|
#include "apps/openmw/mwmp/GUIController.hpp"
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
|
|
|
class ProcessorChatMessage : public PlayerProcessor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessorChatMessage()
|
|
|
|
{
|
|
|
|
BPP_INIT(ID_CHAT_MESSAGE)
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void Do(PlayerPacket &packet, BasePlayer *player)
|
|
|
|
{
|
2017-04-23 22:46:27 +00:00
|
|
|
if (player != 0)
|
|
|
|
Main::get().getGUIController()->printChatMessage(player->chatMessage);
|
2017-04-16 07:00:25 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSORCHATMESSAGE_HPP
|