mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 15:49:55 +00:00
31 lines
657 B
C++
31 lines
657 B
C++
|
//
|
||
|
// Created by koncord on 16.04.17.
|
||
|
//
|
||
|
|
||
|
#ifndef OPENMW_PROCESSORCHATMESSAGE_HPP
|
||
|
#define OPENMW_PROCESSORCHATMESSAGE_HPP
|
||
|
|
||
|
|
||
|
#include "apps/openmw/mwmp/PlayerProcessor.hpp"
|
||
|
#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)
|
||
|
{
|
||
|
Main::get().getGUIController()->printChatMessage(player->chatMessage);
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif //OPENMW_PROCESSORCHATMESSAGE_HPP
|