mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-31 21:45:33 +00:00
30 lines
798 B
C++
30 lines
798 B
C++
//
|
|
// Created by koncord on 01.04.17.
|
|
//
|
|
|
|
#ifndef OPENMW_PROCESSORGUIMESSAGEBOX_HPP
|
|
#define OPENMW_PROCESSORGUIMESSAGEBOX_HPP
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class ProcessorGUIMessageBox final: public PlayerProcessor
|
|
{
|
|
public:
|
|
ProcessorGUIMessageBox()
|
|
{
|
|
BPP_INIT(ID_GUI_MESSAGEBOX)
|
|
}
|
|
|
|
void Do(PlayerPacket &packet, const std::shared_ptr<Player> &player) override
|
|
{
|
|
DEBUG_PRINTF(strPacketID.c_str());
|
|
|
|
Networking::get().getState().getEventCtrl().Call<CoreEvent::ON_GUI_ACTION>(player, player->guiMessageBox.id,
|
|
player->guiMessageBox.data);
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_PROCESSORGUIMESSAGEBOX_HPP
|