Files
ForeverCore/src/modules/ModuleLoader.cpp.in.cmake
T
Advocaite af808e1492 Modules: load optional modules through ScriptMgr, bots start/tick/stop as a WorldScript
src/modules: every folder with a CMakeLists.txt is added; a module registers its
library, script loader and configs with trinity_add_module(). worldserver links
the generated `modules` library, whose AddModuleScripts() runs after AddScripts()
and is empty when no module is built. Module configs go to worldserver.conf.d.

New WorldScript hooks: OnBeforeMapsUpdate (each tick, before the maps update)
and OnWorldInitialized (world loaded, before the network starts). The bot module
uses them instead of direct calls from World.cpp and Main.cpp. The world script
update is back at its place after the maps, as in forever.

Removed the unused ModuleManager, modules/Common and TestModule, and the bot
freeze dump and settings log from Main.cpp (the settings line moved into the
module).
2026-10-13 10:20:15 +08:00

24 lines
924 B
CMake

/*
* This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// This file was created automatically from src/modules/ModuleLoader.cpp.in.cmake
@TRINITY_MODULE_LOADER_DECLARATIONS@
void AddModuleScripts()
{
@TRINITY_MODULE_LOADER_CALLS@}