#include "UI/Window/UIOpenRoulletteWnd.h" #include "Network/Connection/Connection.h" #include "Network/Packets/PacketId.h" #include "Network/Packets/PacketLengths.h" #include "UI/Window/UIWindowMgr.h" #include namespace { #pragma pack(push, 1) struct RouletteOpenPacket { /* 0000 */ std::int16_t id; }; #pragma pack(pop) } // OFFSET: 0x00950B60 // FUNCTION: fn_12946 int UIOpenRoulletteWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) { if (message != 6) { return this->UIWindow::SendMsg(sender, message, a, b, c, d); } if (a == 192 && g_windowMgr.unknown_0464 == nullptr) { RouletteOpenPacket packet; packet.id = ID_CZ_REQ_OPEN_ROULETTE; CRagConnection& connection = GetRagConnection(); connection.Send(g_packetLengths.FixedLength(packet.id), &packet); } return 0; }