mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-02 18:43:48 +00:00
feat(Core/Modules): add separated lib for modules (#9281)
This commit is contained in:
@@ -92,10 +92,6 @@
|
||||
#include <boost/asio/ip/address.hpp>
|
||||
#include <cmath>
|
||||
|
||||
#ifdef ELUNA
|
||||
#include "LuaEngine.h"
|
||||
#endif
|
||||
|
||||
std::atomic_long World::m_stopEvent = false;
|
||||
uint8 World::m_ExitCode = SHUTDOWN_EXIT_CODE;
|
||||
uint32 World::m_worldLoopCounter = 0;
|
||||
@@ -444,15 +440,6 @@ void World::LoadConfigSettings(bool reload)
|
||||
// Set realm id and enable db logging
|
||||
sLog->SetRealmId(realm.Id.Realm);
|
||||
|
||||
#ifdef ELUNA
|
||||
///- Initialize Lua Engine
|
||||
if (!reload)
|
||||
{
|
||||
LOG_INFO("eluna", "Initialize Eluna Lua Engine...");
|
||||
Eluna::Initialize();
|
||||
}
|
||||
#endif
|
||||
|
||||
sScriptMgr->OnBeforeConfigLoad(reload);
|
||||
|
||||
///- Read the player limit and the Message of the day from the config file
|
||||
@@ -2081,12 +2068,7 @@ void World::SetInitialWorldSettings()
|
||||
LOG_INFO("server.loading", "Load Channels...");
|
||||
ChannelMgr::LoadChannels();
|
||||
|
||||
#ifdef ELUNA
|
||||
///- Run eluna scripts.
|
||||
// in multithread foreach: run scripts
|
||||
sEluna->RunScripts();
|
||||
sEluna->OnConfigLoad(false, false); // Must be done after Eluna is initialized and scripts have run.
|
||||
#endif
|
||||
sScriptMgr->OnBeforeWorldInitialized();
|
||||
|
||||
if (sWorld->getBoolConfig(CONFIG_PRELOAD_ALL_NON_INSTANCED_MAP_GRIDS))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user