mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-31 19:45:32 +00:00
29 lines
600 B
C++
29 lines
600 B
C++
//
|
|
// Created by koncord on 24.11.17.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class ProcessorGUIWindow : 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);
|
|
}
|
|
}
|
|
};
|
|
}
|