chore: update to support WorldSessionMgr PR 21400 (#258)

This commit is contained in:
manstfu
2025-02-14 14:22:39 +01:00
committed by GitHub
parent 17ca75dd61
commit 247a7f6763
3 changed files with 5 additions and 3 deletions

View File

@@ -52,6 +52,7 @@
#include "Bag.h"
#include "Vehicle.h"
#include "ArenaTeam.h"
#include "WorldSessionMgr.h"
typedef Opcodes OpcodesList;
@@ -62,6 +63,7 @@ typedef Opcodes OpcodesList;
#define CORE_NAME "AzerothCore"
#define CORE_VERSION (GitRevision::GetFullVersion())
#define eWorldSessionMgr (sWorldSessionMgr)
#define eWorld (sWorld)
#define eMapMgr (sMapMgr)
#define eConfigMgr (sConfigMgr)

View File

@@ -128,7 +128,7 @@ void Eluna::_ReloadEluna()
ASSERT(IsInitialized());
if (eConfigMgr->GetOption<bool>("Eluna.PlayerAnnounceReload", false))
eWorld->SendServerMessage(SERVER_MSG_STRING, "Reloading Eluna...");
eWorldSessionMgr->SendServerMessage(SERVER_MSG_STRING, "Reloading Eluna...");
else
ChatHandler(nullptr).SendGMText(SERVER_MSG_STRING, "Reloading Eluna...");

View File

@@ -282,7 +282,7 @@ namespace LuaGlobalFunctions
*/
int GetPlayerCount(lua_State* L)
{
Eluna::Push(L, eWorld->GetActiveSessionCount());
Eluna::Push(L, eWorldSessionMgr->GetActiveSessionCount());
return 1;
}
@@ -1278,7 +1278,7 @@ namespace LuaGlobalFunctions
int SendWorldMessage(lua_State* L)
{
const char* message = Eluna::CHECKVAL<const char*>(L, 1);
eWorld->SendServerMessage(SERVER_MSG_STRING, message);
eWorldSessionMgr->SendServerMessage(SERVER_MSG_STRING, message);
return 0;
}