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 "Bag.h"
|
||||||
#include "Vehicle.h"
|
#include "Vehicle.h"
|
||||||
#include "ArenaTeam.h"
|
#include "ArenaTeam.h"
|
||||||
|
#include "WorldSessionMgr.h"
|
||||||
|
|
||||||
typedef Opcodes OpcodesList;
|
typedef Opcodes OpcodesList;
|
||||||
|
|
||||||
@@ -62,6 +63,7 @@ typedef Opcodes OpcodesList;
|
|||||||
#define CORE_NAME "AzerothCore"
|
#define CORE_NAME "AzerothCore"
|
||||||
|
|
||||||
#define CORE_VERSION (GitRevision::GetFullVersion())
|
#define CORE_VERSION (GitRevision::GetFullVersion())
|
||||||
|
#define eWorldSessionMgr (sWorldSessionMgr)
|
||||||
#define eWorld (sWorld)
|
#define eWorld (sWorld)
|
||||||
#define eMapMgr (sMapMgr)
|
#define eMapMgr (sMapMgr)
|
||||||
#define eConfigMgr (sConfigMgr)
|
#define eConfigMgr (sConfigMgr)
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ void Eluna::_ReloadEluna()
|
|||||||
ASSERT(IsInitialized());
|
ASSERT(IsInitialized());
|
||||||
|
|
||||||
if (eConfigMgr->GetOption<bool>("Eluna.PlayerAnnounceReload", false))
|
if (eConfigMgr->GetOption<bool>("Eluna.PlayerAnnounceReload", false))
|
||||||
eWorld->SendServerMessage(SERVER_MSG_STRING, "Reloading Eluna...");
|
eWorldSessionMgr->SendServerMessage(SERVER_MSG_STRING, "Reloading Eluna...");
|
||||||
else
|
else
|
||||||
ChatHandler(nullptr).SendGMText(SERVER_MSG_STRING, "Reloading Eluna...");
|
ChatHandler(nullptr).SendGMText(SERVER_MSG_STRING, "Reloading Eluna...");
|
||||||
|
|
||||||
|
|||||||
@@ -282,7 +282,7 @@ namespace LuaGlobalFunctions
|
|||||||
*/
|
*/
|
||||||
int GetPlayerCount(lua_State* L)
|
int GetPlayerCount(lua_State* L)
|
||||||
{
|
{
|
||||||
Eluna::Push(L, eWorld->GetActiveSessionCount());
|
Eluna::Push(L, eWorldSessionMgr->GetActiveSessionCount());
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1278,7 +1278,7 @@ namespace LuaGlobalFunctions
|
|||||||
int SendWorldMessage(lua_State* L)
|
int SendWorldMessage(lua_State* L)
|
||||||
{
|
{
|
||||||
const char* message = Eluna::CHECKVAL<const char*>(L, 1);
|
const char* message = Eluna::CHECKVAL<const char*>(L, 1);
|
||||||
eWorld->SendServerMessage(SERVER_MSG_STRING, message);
|
eWorldSessionMgr->SendServerMessage(SERVER_MSG_STRING, message);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user