mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 00:49:54 +00:00
a74bf1baec
(cherry picked from commit 7748e582a8
)
27 lines
639 B
C++
27 lines
639 B
C++
#ifndef OPENMW_PROCESSORCHATMESSAGE_HPP
|
|
#define OPENMW_PROCESSORCHATMESSAGE_HPP
|
|
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
#include "apps/openmw/mwmp/Main.hpp"
|
|
#include "apps/openmw/mwmp/GUIController.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class ProcessorChatMessage final: public PlayerProcessor
|
|
{
|
|
public:
|
|
ProcessorChatMessage()
|
|
{
|
|
BPP_INIT(ID_CHAT_MESSAGE)
|
|
}
|
|
|
|
virtual void Do(PlayerPacket &packet, BasePlayer *player)
|
|
{
|
|
if (player != 0)
|
|
Main::get().getGUIController()->printChatMessage(player->chatMessage);
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_PROCESSORCHATMESSAGE_HPP
|