feat(Core/Warden): Allow sending of custom lua payloads through Warden. (#14723)

This commit is contained in:
AnchyDev
2023-02-13 10:42:58 +11:00
committed by GitHub
parent 6354d1598e
commit 246b20683f
8 changed files with 559 additions and 99 deletions

View File

@@ -30,7 +30,7 @@
#include "WorldSession.h"
Warden::Warden() : _session(nullptr), _checkTimer(10000/*10 sec*/), _clientResponseTimer(0),
_dataSent(false), _module(nullptr), _initialized(false)
_dataSent(false), _module(nullptr), _initialized(false), _interrupted(false), _checkInProgress(false)
{
memset(_inputKey, 0, sizeof(_inputKey));
memset(_outputKey, 0, sizeof(_outputKey));
@@ -305,6 +305,11 @@ bool Warden::ProcessLuaCheckResponse(std::string const& msg)
return true;
}
WardenPayloadMgr* Warden::GetPayloadMgr()
{
return &_payloadMgr;
}
void WorldSession::HandleWardenDataOpcode(WorldPacket& recvData)
{
if (!_warden || recvData.empty())