mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
chore: update to support WorldSessionMgr PR 21400 (#258)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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...");
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user