1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-31 19:45:32 +00:00
openmw-tes3mp/apps/openmw/mwmp/processors/player/ProcessorGUIWindow.hpp

29 lines
605 B
C++

//
// Created by koncord on 24.11.17.
//
#pragma once
#include "../PlayerProcessor.hpp"
namespace mwmp
{
class ProcessorGUIWindow final: public PlayerProcessor
{
public:
ProcessorGUIWindow()
{
BPP_INIT(ID_GUI_WINDOW)
}
virtual void Do(PlayerPacket &packet, BasePlayer *player)
{
if (isLocal())
{
LOG_MESSAGE_SIMPLE(Log::LOG_TRACE, "ID_GUI_WINDOW, ID %d", player->guiWindow.id);
Main::get().getGUIController()->showCustomWindow(player->guiWindow);
}
}
};
}