mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-15 16:26:08 +00:00
feat(Core/Scripts): split the huge scriptloader into smaller pieces (#5346)
* feat(Core/Scripts): split the huge scriptloader into smaller pieces
* AddSC_swamp_of_sorrows del
* 1
* add mod info
* 1
* 039f0e0faa
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
# Copyright (C)
|
||||
#
|
||||
# This file is free software; as a special exception the author gives
|
||||
# unlimited permission to copy and/or distribute it, with or without
|
||||
# modifications, as long as this notice is preserved.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
set(scripts_STAT_SRCS
|
||||
${scripts_STAT_SRCS}
|
||||
${AC_SCRIPTS_DIR}/World/achievement_scripts.cpp
|
||||
${AC_SCRIPTS_DIR}/World/areatrigger_scripts.cpp
|
||||
${AC_SCRIPTS_DIR}/World/boss_emerald_dragons.cpp
|
||||
${AC_SCRIPTS_DIR}/World/chat_log.cpp
|
||||
${AC_SCRIPTS_DIR}/World/go_scripts.cpp
|
||||
${AC_SCRIPTS_DIR}/World/guards.cpp
|
||||
${AC_SCRIPTS_DIR}/World/item_scripts.cpp
|
||||
${AC_SCRIPTS_DIR}/World/mob_generic_creature.cpp
|
||||
${AC_SCRIPTS_DIR}/World/npc_innkeeper.cpp
|
||||
${AC_SCRIPTS_DIR}/World/npc_professions.cpp
|
||||
${AC_SCRIPTS_DIR}/World/npc_taxi.cpp
|
||||
${AC_SCRIPTS_DIR}/World/npcs_special.cpp
|
||||
${AC_SCRIPTS_DIR}/World/character_creation.cpp
|
||||
${AC_SCRIPTS_DIR}/World/action_ip_logger.cpp
|
||||
)
|
||||
|
||||
AC_ADD_SCRIPT_LOADER("World" "ScriptLoader.h")
|
||||
|
||||
message(" -> Prepared: World")
|
||||
40
src/server/scripts/World/world_script_loader.cpp
Normal file
40
src/server/scripts/World/world_script_loader.cpp
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3
|
||||
* Copyright (C) 2021+ WarheadCore <https://github.com/WarheadCore>
|
||||
*/
|
||||
|
||||
// This is where scripts' loading functions should be declared:
|
||||
void AddSC_areatrigger_scripts();
|
||||
void AddSC_emerald_dragons();
|
||||
void AddSC_generic_creature();
|
||||
void AddSC_go_scripts();
|
||||
void AddSC_guards();
|
||||
void AddSC_item_scripts();
|
||||
void AddSC_npc_professions();
|
||||
void AddSC_npc_innkeeper();
|
||||
void AddSC_npcs_special();
|
||||
void AddSC_npc_taxi();
|
||||
void AddSC_achievement_scripts();
|
||||
void AddSC_chat_log(); // location: scripts\World\chat_log.cpp
|
||||
void AddSC_character_creation();
|
||||
void AddSC_action_ip_logger(); // location: scripts\World\action_ip_logger.cpp
|
||||
|
||||
// The name of this function should match:
|
||||
// void Add${NameOfDirectory}Scripts()
|
||||
void AddWorldScripts()
|
||||
{
|
||||
AddSC_areatrigger_scripts();
|
||||
AddSC_emerald_dragons();
|
||||
AddSC_generic_creature();
|
||||
AddSC_go_scripts();
|
||||
AddSC_guards();
|
||||
AddSC_item_scripts();
|
||||
AddSC_npc_professions();
|
||||
AddSC_npc_innkeeper();
|
||||
AddSC_npcs_special();
|
||||
AddSC_npc_taxi();
|
||||
AddSC_achievement_scripts();
|
||||
AddSC_chat_log(); // location: scripts\World\chat_log.cpp
|
||||
AddSC_character_creation();
|
||||
AddSC_action_ip_logger(); // location: scripts\World\action_ip_logger.cpp
|
||||
}
|
||||
Reference in New Issue
Block a user